Documentation for google-api-client (0.8.6) or how to post parameters

57 views
Skip to first unread message

Mark Finkelstein

unread,
Oct 14, 2015, 10:25:14 AM10/14/15
to Google Analytics Management API
I was wondering where the documentation for the ruby 0.8.6 api is? I can only find the one for 0.9.pre3. In particular, I was wondering how to post parameters such as name or webURL that aren't put into the url. Basically I'm looking for documentation on the 'execute' function. The only `execute` I can find in the 0.9.pre3 docs is http://www.rubydoc.info/github/google/google-api-ruby-client/Google/Apis/Core/HttpCommand#execute-instance_method, which seems different. I've tried the following:

analytics = client.discovered_api('analytics', 'v3')
resp
= client.execute(:api_method => analytics.management.webproperties.insert, :parameters => {
   
'accountId' => account_id,
 
}, :options => { 'name' => 'testname' })

I've also tried putting `name` in parameters. I'm really just guessing here.

Any help would be really appreciated!

Mark Finkelstein

unread,
Oct 14, 2015, 10:41:22 AM10/14/15
to Google Analytics Management API
The answer is that it should go into a hash associated with :body_object.

Matthew Cohoon

unread,
Oct 14, 2015, 11:16:16 AM10/14/15
to Google Analytics Management API
Hi Mark, Not sure if earlier versions of the client libraries are available but the Ruby client libraries documentation can be found here: https://developers.google.com/api-client-library/ruby/start/get_started

-Matt

--
You received this message because you are subscribed to the Google Groups "Google Analytics Management API" group.
To unsubscribe from this group and stop receiving emails from it, send an email to google-analytics-mana...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Mark Finkelstein

unread,
Oct 14, 2015, 12:20:08 PM10/14/15
to Google Analytics Management API
Saw that - links you to 0.9.pre3 documentation - but I was able to find someone doing an insert in another API and tried out the body_object; worked like a charm!
To unsubscribe from this group and stop receiving emails from it, send an email to google-analytics-management-api+unsubscribe@googlegroups.com.
Reply all
Reply to author
Forward
0 new messages