Reputation: 161
I am trying to watch some calendar events via API. I am having trouble with getting this to work though. I had been thinking it might have been the library I'm using (https://hex.pm/packages/google_api_calendar)
But I had recently tried using Google oAuth playground to try the same and that had not been working either.
So I think I might not fundamentally understand something about watching calendar events. What am I doing wrong here?
Upvotes: 0
Views: 397
Reputation: 5543
As stated in the documentation of Google Calendar API Events:watch, you have to provide a request body with the following structure:
{
"id": string,
"token": string,
"type": string,
"address": string,
"params": {
"ttl": string
}
}
Upvotes: 1