4

这是我的代码:

@token = @auth["credentials"]["token"]
client = Google::APIClient.new
client.authorization.access_token = @token
service = client.discovered_api('calendar', 'v3')
@result = client.execute(
  :api_method => service.calendar_list.list,
  :parameters => {},
  :headers => {'Content-Type' => 'application/json'})

我的问题是:在哪里可以找到Google 日历 API的:api_method列表?

4

2 回答 2

3

您在此页面中有完整的参考资料:https ://developers.google.com/google-apps/calendar/v3/reference/?hl=pt-PT

例如,如果您想列出日历,请单击CalendarList部分下的list方法。在那里你会找到一些关于 ruby​​ 的解释、参数、响应和代码示例。

于 2013-06-15T18:26:47.433 回答
1

对于 Ruby 客户,实际上在这个地址: http ://www.rubydoc.info/github/google/google-api-ruby-client/Google/Apis/CalendarV3/

当我在寻找有关 api 方法的更多信息时,我遇到了同样的问题。谷歌似乎只提供他们的文档,而不是特定于 ruby​​ 的文档。

于 2016-06-28T21:26:51.367 回答