I'm using Google Calendar API and I have problems with Google Calendar Push Notifications.
When I make a Watch Request I have to send to Google a Channel Id
and Google send me the Resource Id
in the response.
If I want to stop notifications for the channel, I have to send to Google both Channel Id
and Resource Id
.
If I lose one of these two values, I can't stop the channel.
Is there a way to stop all the channels or a channel knowing only the Channel Id
?
Edit:
The solution is simple... I can get the Channel Id and the Resource Id from a notification, and then I can stop the channel.
So far, when you check the documentation, the structure required to supply in the request body is:
{
"id": string,
"resourceId": string
}
I think this is required to stop notifications and supported in Google Calendar API as of the moment.
You can follow this SO post, which is related to your question.