From 638f8a810c056014bed7b4bd303db7b2de9e08ca Mon Sep 17 00:00:00 2001 From: Bob Aman Date: Thu, 7 Oct 2010 22:44:14 +0000 Subject: [PATCH] Extra indentation removed. git-svn-id: https://google-api-ruby-client.googlecode.com/svn/trunk@50 c1d61fac-ed7f-fcc1-18f7-ff78120a04ef --- README | 74 +++++++++++++++++++++++++++++----------------------------- 1 file changed, 37 insertions(+), 37 deletions(-) diff --git a/README b/README index 676990a6d..6ac35e13a 100644 --- a/README +++ b/README @@ -12,46 +12,46 @@ APIs. == Example Usage - # Initialize the client - require 'google/api_client' - require 'signet/oauth_1/client' - client = Google::APIClient.new( - :service => 'buzz', - :authorization => Signet::OAuth1::Client.new( - :temporary_credential_uri => - 'https://www.google.com/accounts/OAuthGetRequestToken', - :authorization_uri => - 'https://www.google.com/buzz/api/auth/OAuthAuthorizeToken', - :token_credential_uri => - 'https://www.google.com/accounts/OAuthGetAccessToken', - :client_credential_key => 'anonymous', - :client_credential_secret => 'anonymous' - ) + # Initialize the client + require 'google/api_client' + require 'signet/oauth_1/client' + client = Google::APIClient.new( + :service => 'buzz', + :authorization => Signet::OAuth1::Client.new( + :temporary_credential_uri => + 'https://www.google.com/accounts/OAuthGetRequestToken', + :authorization_uri => + 'https://www.google.com/buzz/api/auth/OAuthAuthorizeToken', + :token_credential_uri => + 'https://www.google.com/accounts/OAuthGetAccessToken', + :client_credential_key => 'anonymous', + :client_credential_secret => 'anonymous' ) - client.authorization.fetch_temporary_credential!( - :additional_parameters => { - 'scope' => 'https://www.googleapis.com/auth/buzz' - } - ) - redirect_uri = client.authorization.authorization_uri( - :additional_parameters => { - 'domain' => client.authorization.client_credential_key, - 'scope' => 'https://www.googleapis.com/auth/buzz' - } - ) - # Redirect user here - client.authorization.fetch_token_credential!(:verifier => '12345') + ) + client.authorization.fetch_temporary_credential!( + :additional_parameters => { + 'scope' => 'https://www.googleapis.com/auth/buzz' + } + ) + redirect_uri = client.authorization.authorization_uri( + :additional_parameters => { + 'domain' => client.authorization.client_credential_key, + 'scope' => 'https://www.googleapis.com/auth/buzz' + } + ) + # Redirect user here + client.authorization.fetch_token_credential!(:verifier => '12345') - # Discover available methods - method_names = client.discovered_service('buzz').to_h.keys + # Discover available methods + method_names = client.discovered_service('buzz').to_h.keys - # Make an API call - response = client.execute( - 'chili.activities.list', - {'scope' => '@self', 'userId' => '@me', 'alt' => 'json'}, - '', [], {:signed => true} - ) - status, headers, body = response + # Make an API call + response = client.execute( + 'chili.activities.list', + {'scope' => '@self', 'userId' => '@me', 'alt' => 'json'}, + '', [], {:signed => true} + ) + status, headers, body = response == Requirements