I am trying to make a simple free request in the Google Calendar API. I have my authorization, everything works fine, they can view user calendars, etc. When I try to send a request for employment, I get an error of 400 (as far as I can tell), and not the details that I don't like it.
This is true both in my own code and when using the Google Calendar API "Try It" feature.
Here is my request (created using the Try It widget) and the answer: Request
POST https://www.googleapis.com/calendar/v3/freeBusy?key={YOUR_API_KEY} Content-Type: application/json Authorization: Bearer ya29.AHES6ZTr-2wksEvp0iGPTnHTirTIItib5WwxmSAySq1ghfI98Cz88kA X-JavaScript-User-Agent: Google APIs Explorer { "items": [ { "id": "[my calendar id goes here]@group.calendar.google.com" } ], "timeMin": "2012-01-31T09:00:00", "timeMax": "2012-01-31T10:00:00", "timeZone": "GMT" } Response 400 Bad Request cache-control: private, max-age=0 content-encoding: gzip content-length: 122 content-type: application/json; charset=UTF-8 date: Sun, 16 Jun 2013 13:08:32 GMT expires: Sun, 16 Jun 2013 13:08:32 GMT server: GSE { "error": { "errors": [ { "domain": "global", "reason": "badRequest", "message": "Bad Request" } ], "code": 400, "message": "Bad Request" } }
I think this may have something to do with dateTime objects / formatting? But I have no idea what. I would really appreciate help; I was already staring at her for a week!
source share