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.