1{
2  "auth": {
3    "oauth2": {
4      "scopes": {
5        "https://www.googleapis.com/auth/userinfo.email": {
6          "description": "View your email address"
7        },
8        "https://www.googleapis.com/auth/userinfo.profile": {
9          "description": "See your personal info, including any personal info you've made publicly available"
10        },
11        "openid": {
12          "description": "Associate you with your personal info on Google"
13        }
14      }
15    }
16  },
17  "basePath": "/",
18  "baseUrl": "https://www.googleapis.com/",
19  "batchPath": "batch/oauth2/v2",
20  "description": "Obtains end-user authorization grants for use with other Google APIs.",
21  "discoveryVersion": "v1",
22  "documentationLink": "https://developers.google.com/identity/protocols/oauth2/",
23  "etag": "\"u9GIe6H63LSGq-9_t39K2Zx_EAc/VCyF6WfWVwIuhIs_gw3LA4B3w1E\"",
24  "icons": {
25    "x16": "https://www.gstatic.com/images/branding/product/1x/googleg_16dp.png",
26    "x32": "https://www.gstatic.com/images/branding/product/1x/googleg_32dp.png"
27  },
28  "id": "oauth2:v2",
29  "kind": "discovery#restDescription",
30  "methods": {
31    "tokeninfo": {
32      "httpMethod": "POST",
33      "id": "oauth2.tokeninfo",
34      "parameters": {
35        "access_token": {
36          "location": "query",
37          "type": "string"
38        },
39        "alt": {
40          "default": "json",
41          "description": "Data format for the response.",
42          "enum": [
43            "json"
44          ],
45          "enumDescriptions": [
46            "Responses with Content-Type of application/json"
47          ],
48          "location": "query",
49          "type": "string"
50        },
51        "fields": {
52          "description": "Selector specifying which fields to include in a partial response.",
53          "location": "query",
54          "type": "string"
55        },
56        "id_token": {
57          "location": "query",
58          "type": "string"
59        },
60        "key": {
61          "description": "API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token.",
62          "location": "query",
63          "type": "string"
64        },
65        "oauth_token": {
66          "description": "OAuth 2.0 token for the current user.",
67          "location": "query",
68          "type": "string"
69        },
70        "pp": {
71          "location": "query",
72          "type": "string"
73        },
74        "prettyPrint": {
75          "default": "true",
76          "description": "Returns response with indentations and line breaks.",
77          "location": "query",
78          "type": "boolean"
79        },
80        "quotaUser": {
81          "description": "An opaque string that represents a user for quota purposes. Must not exceed 40 characters.",
82          "location": "query",
83          "type": "string"
84        },
85        "strict": {
86          "location": "query",
87          "type": "string"
88        },
89        "trace": {
90          "location": "query",
91          "type": "string"
92        },
93        "userIp": {
94          "description": "Deprecated. Please use quotaUser instead.",
95          "location": "query",
96          "type": "string"
97        },
98        "userip": {
99          "location": "query",
100          "type": "string"
101        }
102      },
103      "path": "oauth2/v2/tokeninfo",
104      "response": {
105        "$ref": "Tokeninfo"
106      }
107    }
108  },
109  "name": "oauth2",
110  "ownerDomain": "google.com",
111  "ownerName": "Google",
112  "parameters": {
113    "alt": {
114      "default": "json",
115      "description": "Data format for the response.",
116      "enum": [
117        "json"
118      ],
119      "enumDescriptions": [
120        "Responses with Content-Type of application/json"
121      ],
122      "location": "query",
123      "type": "string"
124    },
125    "fields": {
126      "description": "Selector specifying which fields to include in a partial response.",
127      "location": "query",
128      "type": "string"
129    },
130    "key": {
131      "description": "API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token.",
132      "location": "query",
133      "type": "string"
134    },
135    "oauth_token": {
136      "description": "OAuth 2.0 token for the current user.",
137      "location": "query",
138      "type": "string"
139    },
140    "prettyPrint": {
141      "default": "true",
142      "description": "Returns response with indentations and line breaks.",
143      "location": "query",
144      "type": "boolean"
145    },
146    "quotaUser": {
147      "description": "An opaque string that represents a user for quota purposes. Must not exceed 40 characters.",
148      "location": "query",
149      "type": "string"
150    },
151    "userIp": {
152      "description": "Deprecated. Please use quotaUser instead.",
153      "location": "query",
154      "type": "string"
155    }
156  },
157  "protocol": "rest",
158  "resources": {
159    "userinfo": {
160      "methods": {
161        "get": {
162          "httpMethod": "GET",
163          "id": "oauth2.userinfo.get",
164          "path": "oauth2/v2/userinfo",
165          "response": {
166            "$ref": "Userinfo"
167          },
168          "scopes": [
169            "openid",
170            "https://www.googleapis.com/auth/userinfo.email",
171            "https://www.googleapis.com/auth/userinfo.profile"
172          ]
173        }
174      },
175      "resources": {
176        "v2": {
177          "resources": {
178            "me": {
179              "methods": {
180                "get": {
181                  "httpMethod": "GET",
182                  "id": "oauth2.userinfo.v2.me.get",
183                  "path": "userinfo/v2/me",
184                  "response": {
185                    "$ref": "Userinfo"
186                  },
187                  "scopes": [
188                    "openid",
189                    "https://www.googleapis.com/auth/userinfo.email",
190                    "https://www.googleapis.com/auth/userinfo.profile"
191                  ]
192                }
193              }
194            }
195          }
196        }
197      }
198    }
199  },
200  "revision": "20200213",
201  "rootUrl": "https://www.googleapis.com/",
202  "schemas": {
203    "Tokeninfo": {
204      "id": "Tokeninfo",
205      "properties": {
206        "audience": {
207          "description": "Who is the intended audience for this token. In general the same as issued_to.",
208          "type": "string"
209        },
210        "email": {
211          "description": "The email address of the user. Present only if the email scope is present in the request.",
212          "type": "string"
213        },
214        "expires_in": {
215          "description": "The expiry time of the token, as number of seconds left until expiry.",
216          "format": "int32",
217          "type": "integer"
218        },
219        "issued_to": {
220          "description": "To whom was the token issued to. In general the same as audience.",
221          "type": "string"
222        },
223        "scope": {
224          "description": "The space separated list of scopes granted to this token.",
225          "type": "string"
226        },
227        "user_id": {
228          "description": "The obfuscated user id.",
229          "type": "string"
230        },
231        "verified_email": {
232          "description": "Boolean flag which is true if the email address is verified. Present only if the email scope is present in the request.",
233          "type": "boolean"
234        }
235      },
236      "type": "object"
237    },
238    "Userinfo": {
239      "id": "Userinfo",
240      "properties": {
241        "email": {
242          "description": "The user's email address.",
243          "type": "string"
244        },
245        "family_name": {
246          "description": "The user's last name.",
247          "type": "string"
248        },
249        "gender": {
250          "description": "The user's gender.",
251          "type": "string"
252        },
253        "given_name": {
254          "description": "The user's first name.",
255          "type": "string"
256        },
257        "hd": {
258          "description": "The hosted domain e.g. example.com if the user is Google apps user.",
259          "type": "string"
260        },
261        "id": {
262          "description": "The obfuscated ID of the user.",
263          "type": "string"
264        },
265        "link": {
266          "description": "URL of the profile page.",
267          "type": "string"
268        },
269        "locale": {
270          "description": "The user's preferred locale.",
271          "type": "string"
272        },
273        "name": {
274          "description": "The user's full name.",
275          "type": "string"
276        },
277        "picture": {
278          "description": "URL of the user's picture image.",
279          "type": "string"
280        },
281        "verified_email": {
282          "default": "true",
283          "description": "Boolean flag which is true if the email address is verified. Always verified because we only return the user's primary email address.",
284          "type": "boolean"
285        }
286      },
287      "type": "object"
288    }
289  },
290  "servicePath": "",
291  "title": "Google OAuth2 API",
292  "version": "v2"
293}