Google Calendar API - How do I add a calendar gadget along with an event?
I am trying to add a Google Calendar gadget along with an event. However, whenever I try to add a gadget along with an event, the Google Maps API gives me an "invalid value" error.
I am using the event.insert protocol . If I send the request without the gadget block, it works fine and adds an event. However, adding a gadget block throws an error.
{
"location": "San Jose, CA",
"description": "blah blah blah blah",
"kind": "calendar#event",
"start": {
"dateTime": "2012-04-04T10:00:00.000-07:00"
},
"end": {
"dateTime": "2012-04-04T10:00:00.000-07:00"
},
"gadget": {
"iconLink": "http://www.thefreedictionary.com/favicon.ico",
"link": "http://www.thefreedictionary.com/_/WoD/wod-module.xml",
"title": "Word of the Day",
"type": "application/x-google-gadgets+xml",
"height": 136,
"width": 300,
"display": "icon"
}
}
Does anyone know why this is happening? I really need to find a way to insert images into events that I add to google calendar. Thank!
+3
source to share