Back to Google Calendar Programming Languages Index
C Google Calendar REST API Examples
More Google Calendar Examples at example-code.com.
List Calendars
Returns entries on the user's calendar list.
Create (Insert) a Calendar
Creates a new calendar. (i.e. Adds an entry to the user's calendar list.)
Delete a Calendar
Deletes an entry on the user's calendar list. (i.e. Deletes a calendar.)
This example deletes the calendar having the calenderId = "chilkatcloud.com_he3bfm0ljrl7p427u8vjmg9afo@group.calendar.google.com". The calendar ID's can be obtained by listing the calendars.
A response status code equal to 204 indicates success (with no response body).
Get Calendar
Returns an entry on the user's calendar list.
This example gets the calendar having the ID = "support@chilkatcloud.com".
Update (Patch) a Calendar Entry
Updates an entry on the user's calendar list.
This example updates the "summary" for the calendar having the ID = "chilkatcloud.com_su2u8trmo6rlq2jh6cr9hb032o@group.calendar.google.com". The new summary will be "Party Calendar".
List Events on a Calendar
Returns events on the specified calendar.
This example returns the events for the calendar having the ID = "support@chilkatcloud.com"
Delete an Event
Deletes an event from a calendar.
This example deletes an event from the calendar having the ID = "support@chilkatcloud.com". The event ID to be deleted is "1p7fb5vob7vm57fepk4p1teft9".
If successful, the response is empty and the response status code = 204.
Get an Event
Returns a specified event from a specified calendar.
This example gets an event from the calendar having the ID = "support@chilkatcloud.com", where the event ID equals "35ocdnnjofbtfs6c602uqvdg9u"
Insert an Event
Inserts a new event to a specified calendar.
This example inserts an event into the calender specified by ID = "support@chilkatcloud.com"
Returns the JSON of the event that was created.
Get Instances of a Recurring Event
Returns instances of the specified recurring event.
This example gets instances for an event from the calendar having the ID = "support@chilkatcloud.com", where the event ID equals "6li3bfqqq65edprt4ms6vdld2j"
Move Event to Another Calendar
Moves an event to another calendar, i.e. changes an event's organizer.
This example moves event ID="35ocdnnjofbtfs6c602uqvdg9u" from the calendar (ID = "support@chilkatcloud.com") to the calendar (ID = "chilkatcloud.com_su2u8trmo6rlq2jh6cr9hb032o@group.calendar.google.com")
QuickAdd a Calendar Event
Creates an event based on a simple text string. (This example adds an event to the calendar with id = "support@chilkatcloud.com".)
Update (Patch) an Event
Updates an event. (This example modifies the start/end date/time for the event id 52e7uk7j7vl5dosj7b25memov0 in the calendar with id = "support@chilkatcloud.com".)
Get Color Definitions
Returns the color definitions for calendars and events.
Change the Color of an Event
Changes the color of a particular event. The calendar and event are specified by ID. This example changes the color for an event (id = 52e7uk7j7vl5dosj7b25memov0) on the calendar (id = support@chilkatcloud.com).
This changes the event to colorId = "6" which seems to be an orange-ish color..