Updated version sorting code and added authorization shortcuts.
git-svn-id: https://google-api-ruby-client.googlecode.com/svn/trunk@60 c1d61fac-ed7f-fcc1-18f7-ff78120a04ef
This commit is contained in:
1 parent
c183d6ddfd
commit
3bd7056e86
5 files changed
+116
-50
No files matched your search
@@ -17,6 +17,7 @@ APIs.
|
||||
require 'signet/oauth_1/client'
|
||||
client = Google::APIClient.new(
|
||||
:service => 'buzz',
|
||||
# Buzz has API-specific endpoints
|
||||
:authorization => Signet::OAuth1::Client.new(
|
||||
:temporary_credential_uri =>
|
||||
'https://www.google.com/accounts/OAuthGetRequestToken',
|
||||
@@ -48,8 +49,7 @@ APIs.
|
||||
# Make an API call
|
||||
response = client.execute(
|
||||
'chili.activities.list',
|
||||
{'scope' => '@self', 'userId' => '@me', 'alt' => 'json'},
|
||||
'', [], {:signed => true}
|
||||
{'scope' => '@self', 'userId' => '@me', 'alt' => 'json'}
|
||||
)
|
||||
status, headers, body = response
|
||||
|
||||
|
||||
Reference in new issue
Block a user