Bob Aman
|
3a9d58108a
|
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
|
2010-09-16 23:40:08 +00:00 |
Bob Aman
|
f462322be5
|
URI template expansion works.
git-svn-id: https://google-api-ruby-client.googlecode.com/svn/trunk@33 c1d61fac-ed7f-fcc1-18f7-ff78120a04ef
|
2010-09-16 19:12:52 +00:00 |
Matt Pokrzywa
|
bbe6cec303
|
skeleton for api request/respone abstraction
git-svn-id: https://google-api-ruby-client.googlecode.com/svn/trunk@32 c1d61fac-ed7f-fcc1-18f7-ff78120a04ef
|
2010-09-14 03:39:23 +00:00 |
bobaman@google.com
|
9d68bf115c
|
Removing transport and OAuth code that is no longer needed.
git-svn-id: https://google-api-ruby-client.googlecode.com/svn/trunk@28 c1d61fac-ed7f-fcc1-18f7-ff78120a04ef
|
2010-09-13 21:54:18 +00:00 |
bobaman@google.com
|
541054e88d
|
Made the builder more flexible by adding a callback parameter.
git-svn-id: https://google-api-ruby-client.googlecode.com/svn/trunk@27 c1d61fac-ed7f-fcc1-18f7-ff78120a04ef
|
2010-08-24 21:59:53 +00:00 |
bobaman@google.com
|
d61916b110
|
Added a rudimentary implementation of a MethodBuilder.
git-svn-id: https://google-api-ruby-client.googlecode.com/svn/trunk@25 c1d61fac-ed7f-fcc1-18f7-ff78120a04ef
|
2010-08-24 21:26:12 +00:00 |
mattpok@google.com
|
1b232831c4
|
added basic json parser support and tests
git-svn-id: https://google-api-ruby-client.googlecode.com/svn/trunk@23 c1d61fac-ed7f-fcc1-18f7-ff78120a04ef
|
2010-08-23 22:07:50 +00:00 |
bobaman@google.com
|
bc844db311
|
Initial implementation of HTTP.
git-svn-id: https://google-api-ruby-client.googlecode.com/svn/trunk@22 c1d61fac-ed7f-fcc1-18f7-ff78120a04ef
|
2010-08-19 23:21:45 +00:00 |
mattpok@google.com
|
139302fd5e
|
added basic rspec for transport and fix imports in transport class
git-svn-id: https://google-api-ruby-client.googlecode.com/svn/trunk@19 c1d61fac-ed7f-fcc1-18f7-ff78120a04ef
|
2010-08-18 22:18:21 +00:00 |
mattpok@google.com
|
e88fdbfef6
|
add parser configuration to http transport, will add tests next commit
git-svn-id: https://google-api-ruby-client.googlecode.com/svn/trunk@18 c1d61fac-ed7f-fcc1-18f7-ff78120a04ef
|
2010-08-18 21:39:44 +00:00 |
mattpok@google.com
|
89b0e1c31a
|
added json parsing skeleton
git-svn-id: https://google-api-ruby-client.googlecode.com/svn/trunk@17 c1d61fac-ed7f-fcc1-18f7-ff78120a04ef
|
2010-08-18 20:29:18 +00:00 |
bobaman@google.com
|
e6ba0f6860
|
Updating code to consistent coding style.
git-svn-id: https://google-api-ruby-client.googlecode.com/svn/trunk@15 c1d61fac-ed7f-fcc1-18f7-ff78120a04ef
|
2010-08-17 01:21:17 +00:00 |
bobaman@google.com
|
31132ffbb9
|
Added some tests for determining the discovery document URI.
git-svn-id: https://google-api-ruby-client.googlecode.com/svn/trunk@13 c1d61fac-ed7f-fcc1-18f7-ff78120a04ef
|
2010-08-14 01:35:06 +00:00 |
bobaman@google.com
|
63783453e6
|
Added brief documentation to the handler classes.
git-svn-id: https://google-api-ruby-client.googlecode.com/svn/trunk@12 c1d61fac-ed7f-fcc1-18f7-ff78120a04ef
|
2010-08-14 01:28:57 +00:00 |
bobaman@google.com
|
25786356d3
|
Added code to determine the location of the discovery document.
git-svn-id: https://google-api-ruby-client.googlecode.com/svn/trunk@11 c1d61fac-ed7f-fcc1-18f7-ff78120a04ef
|
2010-08-14 01:26:01 +00:00 |
bobaman@google.com
|
a6d7aa570e
|
Updated the configuration handling code.
git-svn-id: https://google-api-ruby-client.googlecode.com/svn/trunk@10 c1d61fac-ed7f-fcc1-18f7-ff78120a04ef
|
2010-08-14 01:16:35 +00:00 |
bobaman@google.com
|
0d45cbe27b
|
Updated OAuth1 configuration code. Added docs.
git-svn-id: https://google-api-ruby-client.googlecode.com/svn/trunk@9 c1d61fac-ed7f-fcc1-18f7-ff78120a04ef
|
2010-08-14 00:53:57 +00:00 |
bobaman@google.com
|
e4b6f8528e
|
Updated OAuth to actually perform authorization stuff.
git-svn-id: https://google-api-ruby-client.googlecode.com/svn/trunk@8 c1d61fac-ed7f-fcc1-18f7-ff78120a04ef
|
2010-08-12 01:07:35 +00:00 |
bobaman@google.com
|
10f9db8ac6
|
Added addressable/template require to discovery.rb.
git-svn-id: https://google-api-ruby-client.googlecode.com/svn/trunk@7 c1d61fac-ed7f-fcc1-18f7-ff78120a04ef
|
2010-08-11 21:20:13 +00:00 |
mattpok@google.com
|
991fc86231
|
add skeleton for discovery
git-svn-id: https://google-api-ruby-client.googlecode.com/svn/trunk@6 c1d61fac-ed7f-fcc1-18f7-ff78120a04ef
|
2010-08-11 19:11:06 +00:00 |
bobaman@google.com
|
70ed84ffec
|
Added some stubs for OAuth and HTTP.
git-svn-id: https://google-api-ruby-client.googlecode.com/svn/trunk@3 c1d61fac-ed7f-fcc1-18f7-ff78120a04ef
|
2010-08-10 04:44:14 +00:00 |
bobaman@google.com
|
d371bc3cbf
|
Basic project skeleton.
git-svn-id: https://google-api-ruby-client.googlecode.com/svn/trunk@2 c1d61fac-ed7f-fcc1-18f7-ff78120a04ef
|
2010-07-28 19:30:56 +00:00 |