Reorganized some of the code and removed unnecessary stuff.

git-svn-id: https://google-api-ruby-client.googlecode.com/svn/trunk@35 c1d61fac-ed7f-fcc1-18f7-ff78120a04ef
This commit is contained in:
Bob Aman committed 2010-09-18 00:30:02 +00:00
1 parent 3a9d58108a
commit f96412cf23
11 files changed
+130 -222

No files matched your search

+15 -1
View File
@@ -15,7 +15,21 @@ The Google API Ruby Client makes it trivial to discover and access supported API
== Example Usage
# Some code goes here.
require 'google/api_client'
client = Google::APIClient.new(:service => 'buzz')
client.authorization.fetch_temporary_credential!(
:additional_parameters => {
'scope' => 'https://www.googleapis.com/auth/buzz'
}
)
client.authorization.authorization_uri
# Redirect user here
client.authorization.fetch_token_credential!(:verifier => '12345')
response = client.execute(
'buzz.activities.list',
'scope' => '@self', 'userId' => '@me', 'alt' => 'json'
)
status, headers, body = response
== Requirements