You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 

294 lines
8.6 KiB

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