0

I'm trying to set up Google Calendar API push notifications, but I don't know how to access the auth_token_for_current_user that I need in my POST request to the watch method. How do I access it?

I'm asking about the auth token part after the Bearer in the authorization header.

POST https://www.googleapis.com/calendar/v3/calendars/my_calendar@gmail.com/events/watch Authorization: Bearer auth_token_for_current_user

Content-Type: application/json

If it matters, my registered domain is a heroku instance. And I know how to retrieve calendar event info after going through the javascript quickstart tutorial.

lukkyjoe
  • 174
  • 3
  • 13
  • For testing purposes, get an auth token from the [OAuth Playground](https://developers.google.com/oauthplayground/) and enable the Calendar API. Exchange authorization code for access token. Use that for now and tell us how it goes. – noogui Jun 22 '17 at 16:18
  • Refer to: https://stackoverflow.com/questions/28751995/how-to-obtain-google-service-account-access-token-javascript – Maha Oct 09 '17 at 14:58

0 Answers0