Can anyone tell me why this is a bad request?
function addToCalendar()
{
gapi.client.load('calendar', 'v3', function()
{
var request = gapi.client.calendar.events.quickAdd({
calendarId: 'primary',
text: 'Assignment due Feb 9th at 11:50 PM'
});
request.execute(function(resp)
{
console.log(resp);
});
});
}
I have already authenticated the user and all that appears to work
properly. I also get the same response just using the sample at:
https://code.google.com/p/google-api-javascript-client/source/browse/samples/authSample.html
I have set up my own server on localhost. Got a client ID for
localhost and changed it in the code. Got my own API key for
localhost and changed the code to reflect that also. All of the
authenticating works and I have the proper scopes to access the
calendar added in. Still both the calendar call and the plus call give
me a response of "400 Bad Request". There is no information on what
is actually wrong with the request so I was hoping someone knew.