ip2k / google-api-ruby-client

Automatically exported from code.google.com/p/google-api-ruby-client
Apache License 2.0
0 stars 0 forks source link

execute does not return [status,headers,body] as the docs say #32

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
The documents (including the example project) refer to calls like this:

status, headers, body = @client.execute(
  @plus.people.list_by_activity,
  'activityId' => 'some id',
)

This is incorrect. The current version returns like this:

response = @client.execute(
  @plus.people.list_by_activity,
  'activityId' => 'some id',
)

response.status # response is a Google::APIClient::Result
response.headers
response.body

Original issue reported on code.google.com by sai...@gmail.com on 10 Jan 2012 at 2:34

GoogleCodeExporter commented 9 years ago
Yeah, documentation is out-of-date. Known issue and already working on it. Next 
couple of commits should resolve this hopefully, but thanks for letting me know 
it's causing problems. I'll make sure this gets resolved ASAP.

Original comment by bobaman@google.com on 10 Jan 2012 at 7:08

GoogleCodeExporter commented 9 years ago

Original comment by bobaman@google.com on 10 Jan 2012 at 7:13