summaryrefslogtreecommitdiff
path: root/services/googleoauth.json
diff options
context:
space:
mode:
authorFrancois Perrad <francois.perrad@gadz.org>2011-06-06 02:47:01 +0200
committerFrancois Perrad <francois.perrad@gadz.org>2011-06-06 02:47:01 +0200
commit264062ae71ea8aa4fc38e4477c35c25453eed3d5 (patch)
treefb4fd7be775a3f60040cde9289b24645cbbe2b6e /services/googleoauth.json
parentadd Google Translate (diff)
downloadapi-description-264062ae71ea8aa4fc38e4477c35c25453eed3d5.tar.gz
add Google URL Shortener
add Google OAuth 1.0
Diffstat (limited to '')
-rw-r--r--services/googleoauth.json75
1 files changed, 75 insertions, 0 deletions
diff --git a/services/googleoauth.json b/services/googleoauth.json
new file mode 100644
index 0000000..e57dd56
--- /dev/null
+++ b/services/googleoauth.json
@@ -0,0 +1,75 @@
+{
+ "base_url" : "https://www.google.com/accounts",
+ "name" : "Google OAuth 1.0",
+ "methods" : {
+ "get_request_token" : {
+ "path" : "/OAuthGetRequestToken",
+ "method" : "GET",
+ "headers" : {
+ "authorization" : "OAuth oauth_consumer_key=\":oauth_consumer_key\", oauth_signature_method=\":oauth_signature_method\", oauth_signature=\":oauth_signature\", oauth_timestamp=\":oauth_timestamp\", oauth_nonce=\":oauth_nonce\", oauth_version=\":oauth_version\", oauth_callback=\":oauth_callback\""
+ },
+ "required_params" : [
+ "scope"
+ ],
+ "optional_params" : [
+ "xoauth_displayname"
+ ],
+ "expected_status" : [ 200, 400 ],
+ "authentication" : true
+ },
+ "post_request_token" : {
+ "path" : "/OAuthGetRequestToken",
+ "method" : "POST",
+ "headers" : {
+ "authorization" : "OAuth oauth_consumer_key=\":oauth_consumer_key\", oauth_signature_method=\":oauth_signature_method\", oauth_signature=\":oauth_signature\", oauth_timestamp=\":oauth_timestamp\", oauth_nonce=\":oauth_nonce\", oauth_version=\":oauth_version\", oauth_callback=\":oauth_callback\""
+ },
+ "form-data" : {
+ "scope" : ":scope",
+ "xoauth_displayname" : ":xoauth_displayname"
+ },
+ "required_params" : [
+ "scope"
+ ],
+ "optional_params" : [
+ "xoauth_displayname"
+ ],
+ "expected_status" : [ 200, 400 ],
+ "authentication" : true
+ },
+ "authorize_token" : {
+ "path" : "/OAuthAuthorizeToken",
+ "method" : "GET",
+ "required_params" : [
+ "oauth_token"
+ ],
+ "optional_params" : [
+ "hd",
+ "hl",
+ "btmpl"
+ ],
+ "expected_status" : [ 302 ]
+ },
+ "get_access_token" : {
+ "path" : "/OAuthGetAccessToken",
+ "method" : "GET",
+ "headers" : {
+ "authorization" : "OAuth oauth_consumer_key=\":oauth_consumer_key\", oauth_token=\":oauth_token\", oauth_verifier=\":oauth_verifier\", oauth_signature_method=\":oauth_signature_method\", oauth_signature=\":oauth_signature\", oauth_timestamp=\":oauth_timestamp\", oauth_nonce=\":oauth_nonce\", oauth_version=\":oauth_version\""
+ },
+ "expected_status" : [ 200, 400 ],
+ "authentication" : true
+ },
+ "post_access_token" : {
+ "path" : "/OAuthGetAccessToken",
+ "method" : "POST",
+ "headers" : {
+ "authorization" : "OAuth oauth_consumer_key=\":oauth_consumer_key\", oauth_token=\":oauth_token\", oauth_verifier=\":oauth_verifier\", oauth_signature_method=\":oauth_signature_method\", oauth_signature=\":oauth_signature\", oauth_timestamp=\":oauth_timestamp\", oauth_nonce=\":oauth_nonce\", oauth_version=\":oauth_version\""
+ },
+ "expected_status" : [ 200, 400 ],
+ "authentication" : true
+ }
+ },
+ "authority" : "http://github.com/SPORE",
+ "meta" : {
+ "documentation" : "http://code.google.com/apis/accounts/docs/OAuth_ref.html"
+ }
+}