X-Git-Url: https://git.arvados.org/arvados.git/blobdiff_plain/638f8a810c056014bed7b4bd303db7b2de9e08ca..b3dabec63a6340ea6b62d908245e1cd3438898fa:/README diff --git a/README b/README index 6ac35e13ae..6e7557f45e 100644 --- a/README +++ b/README @@ -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', @@ -43,20 +44,25 @@ APIs. client.authorization.fetch_token_credential!(:verifier => '12345') # Discover available methods - method_names = client.discovered_service('buzz').to_h.keys + method_names = client.discovered_api('buzz').to_h.keys # 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