Google Calendar push notifications not hitting my Azure Function Webhook -


here's quick summary of have done far:

1.) azure function - generic javascript webhook saves request message azure queue (for later processing) includes setting custom domain + ssl certificate validated google. verified request messages post endpoint saved azure queue.

2.) added custom domain "google search console" + verified

3.) added custom domain "google api console" > domain verification (as allowed webhook notification domains)

4.) registered watch changes calendar events particular user using js code:

            gapi.auth.authorize(               {                   client_id: client_id, scope: scopes, immediate: true, authuser: -1, login_hint: some_user@gmail.com               },               function (auth) {                   $.ajax({                       url: 'https://www.googleapis.com/calendar/v3/calendars/some_user@gmail.com/events/watch',                       type: 'post',                       headers: {                           authorization: 'bearer ' + auth.access_token                       },                       contenttype: 'application/json',                       datatype: "json",                       data: json.stringify({                           id: '2bf922f5-3415-492a-9270-************',                               token: 'email=some_user@gmail.com',                               type: 'web_hook',                               address: 'https://googlecalendarwebhook.some_custom_domain.com/api/processwebhook?code=hampvhllf6dd8eukzz******************mcypwa7ju909i6epghpw==',                               params: {                                   ttl: 2592000                               }                       })                   });               }             );    

i status code 200 watch request , following response back:

{ "kind": "api#channel", "id": "2bf922f5-3415-492a-9270-************", "resourceid": "so8dvfghvqeurfl************", "resourceuri": "https://www.googleapis.com/calendar/v3/calendars/some_user@gmail.com/events?maxresults=250&alt=json", "token": "email=some_user@gmail.com", "expiration": "1494186032000" }

everything seems setup far, don't seem hits webhook endpoint when try add/update/delete calendar events some_user@gmail.com calendar.

is there way debug/query google service see going on? google api portal shows calendar.events.watch requests sent google.

does know response time google start processing watch request , executing push notifications calendar event updates?

my azure function doesn't seem show activity coming google, own manual tests of webhook > saving azure queue.

anyone else run issue before and/or have implemented azure function webhook google calendar api push notification watch?


Comments

Popular posts from this blog

c# - Update a combobox from a presenter (MVP) -

How to understand 2 main() functions after using uftrace to profile the C++ program? -

How to put a lock and transaction on table using spring 4 or above using jdbcTemplate and annotations like @Transactional? -