It sounds like there might be a bit of ground to cover before getting to that point, but there are ways.
The most likely solutions are via API's.
Certainly most major services have one for their calendars, and here's a link for Google's: http://code.google.com/apis/calendar/
I hope this puts you on the right path.
NOTE: When someone asks others to do their work for them without putting any blood into the game themselves (aka, asking for some sample code without already having put something together to grow from )
, as a rule of thumb, that person doesn't get the "help" they seek.