percolatestudio / meteor-google-api

A simple API encapsulating some common patterns regarding Google's APIs
https://atmospherejs.com/percolate/google-api
MIT License
48 stars 30 forks source link

Does this work with a Service Account? #27

Closed streamnsight closed 8 years ago

streamnsight commented 8 years ago

Hello,

trying to use the Google API to manage calendars. I had started by making my own package around the node.js google-api, but running into lots of issues, so I'm looking into this package, but I use a service account to do the work.

Here it seems like only an OAuth authenticated user is a valid credential. Am I mistaken? Is there an option to authenticate with a JWT token?

Thanks for the help

streamnsight commented 8 years ago

after looking through this code, I simply wrapped the nodejs google-api with wrapAsync and used the Meteor.bindEnvironement and got things to work on my package. Good job on the code here. It is nice and clean, and that helped me understand my own issues.