问题
I'm trying to access the Google Calendar API in Ruby using a Service Account (e.g., server-to-server communication).
I'm having difficulty finding a good tutorial/example of how to do this. I have created a service account, and downloaded a JSON private key file. How can I authenticated with the Calendar API using this JSON file and make a request for calendar information?
The Ruby API examples don't contain examples for apps that aren't running on a Google Apps domain.
To summarize, I'm looking for some help to understand how to
- Authenticating with the API using the API Ruby Client using the JSON private key file for my service account
- Make some requests to get calendar information after I've authenticated
来源:https://stackoverflow.com/questions/37635873/google-calendar-api-in-ruby-using-service-account