I’m trying to use Google calendar REST API within Meteor I can use any GET method without any problem, but when I try to create an event in a calendar I get an Unauthorized access error.
I got my code on the following gist code
Basicaly I use Meteor.loginWithGoogle and get an AccessToken, with it I can get any calendar or userInfo from google, but when I try to insert an event I get the following message:
POST https://www.googleapis.com/calendar/v3/calendars/primary/events 401 (Unauthorized)
any ideas?
After quite a good while of trying got it right..
Added the following file to my client folder
if you logged in thru {{loginButtons}} and then call insertEvent it works like a charm.