Signed requests can now be generated and transmitted by the client.
authorBob Aman <bobaman@google.com>
Thu, 16 Sep 2010 23:40:08 +0000 (23:40 +0000)
committerBob Aman <bobaman@google.com>
Thu, 16 Sep 2010 23:40:08 +0000 (23:40 +0000)
commit3a9d58108af35baf4cbaba576ecfeaf6b41af9cb
tree978ba3ea35e92abcc982172ffbf54cce2b536034
parentf462322be590be24f07772d46952c6614d806370
Signed requests can now be generated and transmitted by the client.

Example code:
    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

git-svn-id: https://google-api-ruby-client.googlecode.com/svn/trunk@34 c1d61fac-ed7f-fcc1-18f7-ff78120a04ef
lib/google/api_client.rb
lib/google/api_client/discovery/service.rb