Handle Push Notification Response

179 views
Skip to first unread message

Himanshu Jain

unread,
Aug 17, 2013, 12:24:56 AM8/17/13
to google-ca...@googlegroups.com
Hi,
I am developing ASP.NET application for Google calendar integration. as I am able to created a proper watch channel between my app and Google calendar watch service, but i am little bit confused, how will it communicate with my application. Means if any one change to the Google calendar then how can i get the proper response i.e. what are the events that have changed or what has changed over the Google calendar. I am specifing my code below for creating channel.

Channel channel = new Channel();
channel.Id = System.Guid.NewGuid().ToString();
channel.Type = "web_hook";
EventsResource.WatchRequest request = service.Events.Watch(channel, "XXX...@gmail.com");
request.Oauth_token = token;
Channel ch1 = request.Execute();     

Petr Kolínek

unread,
May 26, 2015, 4:51:03 AM5/26/15
to google-ca...@googlegroups.com
Hello,
I'll put this straight. When a change over watched resources occurs, google will send POST request to your channel.Adress, where you have to make IncrementalSync since that POST does NOT contain any data about the changes.
Hope this answer helps you to clarify your question.
Read:
https://developers.google.com/google-apps/calendar/v3/push
https://developers.google.com/google-apps/calendar/v3/sync#incremental_sync

Dne sobota 17. srpna 2013 6:24:56 UTC+2 Himanshu Jain napsal(a):
Reply all
Reply to author
Forward
0 new messages