url - Create/insert event (Google Calendar API v3) via HTTP Post > "400: Missing end time" -
i using filemaker interact google calendar api. have managed authorize app, list of user's calendars , list of events in calendars , details events. however, having trouble creating events.
i make following http post request. header: content-type : application/json, authorization : bearer access_token
https://www.googleapis.com/calendar/v3/calendars/**********@gmail.com/events?{"attachments":[{"fileurl":""}],"attendees":[{"email":"***********@gmail.com"}],"end":{"datetime":"2017-08-20t13:00:00-05:00"},"reminders":{"usedefault":true},"start":{"datetime":"2017-08-20t12:00:00-05:00"},"summary":"test event"}
i receive following json error response:
{ "error": { "errors": [ { "domain": "global", "reason": "required", "message": "missing end time." } ], "code": 400, "message": "missing end time." } }
it appears pretty common error people run into. looks having problem using frameworks there libraries google calendar api supports. i've tried pick out fix of posts on stackoverflow , elsewhere concerning these other frameworks , apply them filemaker / http get/post setup no avail.
any appreciated!
try using this instead.
post https://www.googleapis.com/calendar/v3/calendars/calendarid/events
and supply calendarid
according parameter requires
calendar identifier. retrieve calendar ids call calendarlist.list method. if want access primary calendar of logged in user, use "primary" keyword.
Comments
Post a Comment