I am using FileMaker to interact with the Google Calendar API. I have managed to authorize my app, get a list of user's calendars and a list of events in those calendars and details for those events. However, I am having trouble creating events.
I make the 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 the following JSON error response:
{
"error":
{
"errors":
[
{
"domain": "global",
"reason": "required",
"message": "Missing end time."
}
],
"code": 400,
"message": "Missing end time."
}
}
It appears that this is a pretty common error that people run into. However it looks like most having this problem are using frameworks for which there are libraries that Google Calendar API supports. I've tried to pick out the fix from some of the posts on stackoverflow and elsewhere concerning these other frameworks and apply them to my FileMaker / HTTP GET/POST setup to no avail.
Any help greatly appreciated!