0
好像有使用谷歌API客戶端紅寶石寶石兩種方式:谷歌API Ruby客戶端執行VS服務方法
- 創建一個客戶端,發現API,並呼籲
execute
:(https://developers.google.com/google-apps/calendar/v3/reference/calendarList/list#examples) - 創建API服務對象和調用特定的API方法:http://www.rubydoc.info/github/google/google-api-ruby-client/Google/Apis/CalendarV3/CalendarService#list_events-instance_method
日曆API文檔示例使用前一種方法,但它似乎是後一種方法需要批量請求(https://developers.google.com/api-client-library/ruby/guide/batch)。
有沒有辦法用前一種方法批量請求?有沒有辦法調和這兩種方法?