Closed GoogleCodeExporter closed 9 years ago
You need to specify an API version. The API you're looking for only publishes a
discovery document for v3 and you're trying to retrieve v1. Just pass in 'v3'
as a second parameter (it defaults to 'v1').
Original comment by bobaman@google.com
on 19 Jan 2012 at 12:08
Actually, I guess they also publish v2.4. Either way though, there's no
discovery document for v1, so what you're trying won't work.
Original comment by bobaman@google.com
on 19 Jan 2012 at 12:10
That example comes from the google api doc:
http://code.google.com/p/google-api-ruby-client/
Also that url lists V1.
Original comment by chabg...@gmail.com
on 19 Jan 2012 at 3:33
The example you're referring to is for a different API. The analytics team
hasn't committed a Ruby sample for that API to the repo yet. Trust me, you want
to pass 'v3' as a second parameter if you're trying to access the analytics
API. :-)
Original comment by bobaman@google.com
on 19 Jan 2012 at 3:43
client.discovered_api('analytics','v3') worked for me
Original comment by hectorga...@gmail.com
on 6 Jun 2013 at 8:01
Original issue reported on code.google.com by
chabg...@gmail.com
on 18 Jan 2012 at 10:42