Jump to content

Error 400 when sending a POST google calendar insert event request


This topic is 4248 days old. Please don't post here. Open a new topic instead.

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) :

https://developers.g...e/events/insert

or

- 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

text=myEvent

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

Thanks

Link to comment
Share on other sites

This topic is 4248 days old. Please don't post here. Open a new topic instead.

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
×
×
  • Create New...

Important Information

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