Jump to content
Sign in to follow this  
Olivier Chenot

Error 400 when sending a POST google calendar insert event request

Recommended Posts

Hi everybody,

I use FileMaker 11 with scriptmaster.

I am looking for right syntax to send a insert event POST request

I write my request as follows, with OAuth2 protocol, including access_token :

POST https : // www.googleapis.com/calendar/v3/calendars/myCalendar/events?access_token=myAcessToken

body='{ "summary": "Test", "start": {"timeZone": "Europe/Paris","dateTime": "2012-08-09T09:00:00"}, "end": {"timeZone": "Europe/Paris","dateTime": "2012-08-09T10:00:00"} }'

I have an error 400, which comes from :

- my key (body), which is supposed to be a 'events resource' but I cannot find its explicit value here (it is empty) :



- my value '{ "summary" ...}', which I wrote from this issue :

http://code.google.c...es/detail?id=86 ,

where I found the 'body' key value and my syntax with double and simple quotes.

I suppose I am really close to success as this request perfectly works and adds an event in my calendar :

POST https : // www.googleapis.com/calendar/v3/calendars/myCalendar/events/quickAdd?access_token=myAcessToken


I tried as well this :

POST https : // www.googleapis.com/calendar/v3/calendars/myCalendar/events?access_token=myAcessToken

'{ "summary": "Test", "start": {"timeZone": "Europe/Paris","dateTime": "2012-08-09T09:00:00"}, "end": {"timeZone": "Europe/Paris","dateTime": "2012-08-09T10:00:00"} }'

with same error 400


Share this post

Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  


Important Information

By using this site, you agree to our Terms of Use.