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',
# 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
-== Requirements
+== Install
-* APIClient has no dependencies.
+Be sure both http://gems.github.com/ and http://rubygems.org/ are in your gem
+sources.
-== Install
+For normal client usage, this is sufficient:
+
+sudo gem install google-api-client
+
+The command line interface, the example applications, and the test suite
+require additional dependencies. These may be obtained with:
-* sudo gem install google-api-client
+sudo gem install google-api-client --development --force --no-rdoc --no-ri