So I've been using the REST method of invoking Google's API. I need to insert events into a particular calendar whose ID I have. This is the POST request I'm sending:
Address: https://www.googleapis.com/calendar/v3/calendars/{calendarID}/events
Body:
Authorization: Bearer {access_token}
{
"end": {
"dateTime": "2012-08-30T12:30:00",
"timeZone": "America/Chicago"
},
"start": {
"dateTime": "2012-08-30T14:00:00",
"timeZone": "America/Chicago"
},
"summary": "E E 306",
"colorId": "9"
"kind": "calendar#event"
}
And this is the response I keep getting:
{
"error":{
"errors":[
{
"domain":"calendar",
"reason":"timeRangeEmpty",
"message":"The specified time range is empty.",
"locationType":"parameter",
"location":"timeMax"
}
],
"code":400,
"message":"The specified time range is empty."
}
}
I don't understand what I could possibly be doing wrong. I've entered all necessary data, and it's asking me for a parameter that doesn't even exist for events. I also can't find any documentation out there on this particular problem. Does anyone see something I'm missing?