Jump to content
View in the app

A better way to browse. Learn more.

FMForums.com

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Error 400 when sending a POST google calendar insert event request

Featured Replies

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

Create an account or sign in to comment

Important Information

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

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.