summaryrefslogblamecommitdiff
path: root/services/googleoauth.json
blob: 11030307f825dca757a3328d33961d2970c5c7cf (plain) (tree)
1
2
3
4
5
6
7






                                                  











                                          




























                                                        





                                          








                                                                                  
{
   "base_url" : "https://www.google.com/accounts",
   "name" : "Google OAuth 1.0",
   "methods" : {
      "get_request_token" : {
         "path" : "/OAuthGetRequestToken",
         "method" : "GET",
         "required_params" : [
            "scope"
         ],
         "optional_params" : [
            "xoauth_displayname"
         ],
         "expected_status" : [ 200, 400 ],
         "authentication" : true
      },
      "post_request_token" : {
         "path" : "/OAuthGetRequestToken",
         "method" : "POST",
         "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",
         "expected_status" : [ 200, 400 ],
         "authentication" : true
     },
      "post_access_token" : {
         "path" : "/OAuthGetAccessToken",
         "method" : "POST",
         "expected_status" : [ 200, 400 ],
         "authentication" : true
     }
   },
   "authority" : "http://github.com/SPORE",
   "meta" : {
      "documentation" : "http://code.google.com/apis/accounts/docs/OAuth_ref.html"
   }
}