1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
|
{
"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"
}
}
|