Google Calendar API in Ruby using Service Account

旧时模样 提交于 2020-01-02 08:47:07

问题


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

  1. Authenticating with the API using the API Ruby Client using the JSON private key file for my service account
  2. Make some requests to get calendar information after I've authenticated

来源:https://stackoverflow.com/questions/37635873/google-calendar-api-in-ruby-using-service-account

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!