summaryrefslogtreecommitdiff
path: root/services/googleoauth.json
diff options
context:
space:
mode:
Diffstat (limited to 'services/googleoauth.json')
-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"
+ }
+}