Google supports a general data access protocol GData. They supply a Java library which wraps the protocol and provides a higher level API. Groovy programs can make use of this library "as is". However, it's not very Groovy! The GData module provides a couple of Categories which make it a lot easier to manipulate the Google data.
Here's an example of reading events from Google Calendar and then adding an event to the calendar: