Search code examples
ruby-on-railsrubygoogle-apigoogle-calendar-apigoogle-api-ruby-client

Google API Ruby Client execute vs Service methods


It seems like there are two ways to use the Google API Client Ruby gem:

The Calendar API documentation examples use the former method, but it seems like the latter method is required to batch requests (https://developers.google.com/api-client-library/ruby/guide/batch).

Is there a way to batch requests with the former method? Is there a way to reconcile these two methods?


Solution

  • Heard back from gem author — the latter is preferred, as it is part of the new syntax being introduced in v0.9 of the gem. Not all the documentation/examples on Google's developer site has been updated at this time, but they have a migration guide:

    https://github.com/google/google-api-ruby-client/blob/master/MIGRATING.md