Não pode escolher mais do que 25 tópicos Os tópicos devem começar com uma letra ou um número, podem incluir traços ('-') e podem ter até 35 caracteres.
 
 
 

407 linhas
12 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/v1",
  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/izr_0N7-y4dagYg2GSFs18rZ6Tw\"",
  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:v1",
  32. "kind": "discovery#restDescription",
  33. "methods": {
  34. "getCertForOpenIdConnect": {
  35. "httpMethod": "GET",
  36. "id": "oauth2.getCertForOpenIdConnect",
  37. "path": "oauth2/v1/certs",
  38. "response": {
  39. "$ref": "X509"
  40. }
  41. },
  42. "getCertForOpenIdConnectRaw": {
  43. "httpMethod": "GET",
  44. "id": "oauth2.getCertForOpenIdConnectRaw",
  45. "path": "oauth2/v1/raw_public_keys",
  46. "response": {
  47. "$ref": "Raw"
  48. }
  49. },
  50. "getRobotJwk": {
  51. "httpMethod": "GET",
  52. "id": "oauth2.getRobotJwk",
  53. "parameterOrder": [
  54. "robotEmail"
  55. ],
  56. "parameters": {
  57. "robotEmail": {
  58. "description": "The email of robot account.",
  59. "location": "path",
  60. "required": true,
  61. "type": "string"
  62. }
  63. },
  64. "path": "service_accounts/v1/jwk/{robotEmail}",
  65. "response": {
  66. "$ref": "Jwk"
  67. }
  68. },
  69. "getRobotMetadataRaw": {
  70. "httpMethod": "GET",
  71. "id": "oauth2.getRobotMetadataRaw",
  72. "parameterOrder": [
  73. "robotEmail"
  74. ],
  75. "parameters": {
  76. "robotEmail": {
  77. "description": "The email of robot account.",
  78. "location": "path",
  79. "required": true,
  80. "type": "string"
  81. }
  82. },
  83. "path": "service_accounts/v1/metadata/raw/{robotEmail}",
  84. "response": {
  85. "$ref": "Raw"
  86. }
  87. },
  88. "getRobotMetadataX509": {
  89. "httpMethod": "GET",
  90. "id": "oauth2.getRobotMetadataX509",
  91. "parameterOrder": [
  92. "robotEmail"
  93. ],
  94. "parameters": {
  95. "robotEmail": {
  96. "description": "The email of robot account.",
  97. "location": "path",
  98. "required": true,
  99. "type": "string"
  100. }
  101. },
  102. "path": "service_accounts/v1/metadata/x509/{robotEmail}",
  103. "response": {
  104. "$ref": "X509"
  105. }
  106. },
  107. "tokeninfo": {
  108. "description": "Get token info",
  109. "httpMethod": "POST",
  110. "id": "oauth2.tokeninfo",
  111. "parameters": {
  112. "access_token": {
  113. "description": "The oauth2 access token",
  114. "location": "query",
  115. "type": "string"
  116. },
  117. "id_token": {
  118. "description": "The ID token",
  119. "location": "query",
  120. "type": "string"
  121. }
  122. },
  123. "path": "oauth2/v1/tokeninfo",
  124. "response": {
  125. "$ref": "Tokeninfo"
  126. }
  127. }
  128. },
  129. "name": "oauth2",
  130. "ownerDomain": "google.com",
  131. "ownerName": "Google",
  132. "parameters": {
  133. "alt": {
  134. "default": "json",
  135. "description": "Data format for the response.",
  136. "enum": [
  137. "json"
  138. ],
  139. "enumDescriptions": [
  140. "Responses with Content-Type of application/json"
  141. ],
  142. "location": "query",
  143. "type": "string"
  144. },
  145. "fields": {
  146. "description": "Selector specifying which fields to include in a partial response.",
  147. "location": "query",
  148. "type": "string"
  149. },
  150. "key": {
  151. "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.",
  152. "location": "query",
  153. "type": "string"
  154. },
  155. "oauth_token": {
  156. "description": "OAuth 2.0 token for the current user.",
  157. "location": "query",
  158. "type": "string"
  159. },
  160. "prettyPrint": {
  161. "default": "true",
  162. "description": "Returns response with indentations and line breaks.",
  163. "location": "query",
  164. "type": "boolean"
  165. },
  166. "quotaUser": {
  167. "description": "An opaque string that represents a user for quota purposes. Must not exceed 40 characters.",
  168. "location": "query",
  169. "type": "string"
  170. },
  171. "userIp": {
  172. "description": "Deprecated. Please use quotaUser instead.",
  173. "location": "query",
  174. "type": "string"
  175. }
  176. },
  177. "protocol": "rest",
  178. "resources": {
  179. "userinfo": {
  180. "methods": {
  181. "get": {
  182. "description": "Get user info",
  183. "httpMethod": "GET",
  184. "id": "oauth2.userinfo.get",
  185. "path": "oauth2/v1/userinfo",
  186. "response": {
  187. "$ref": "Userinfoplus"
  188. },
  189. "scopes": [
  190. "https://www.googleapis.com/auth/plus.login",
  191. "https://www.googleapis.com/auth/plus.me",
  192. "https://www.googleapis.com/auth/userinfo.email",
  193. "https://www.googleapis.com/auth/userinfo.profile"
  194. ]
  195. }
  196. },
  197. "resources": {
  198. "v2": {
  199. "resources": {
  200. "me": {
  201. "methods": {
  202. "get": {
  203. "description": "Get user info",
  204. "httpMethod": "GET",
  205. "id": "oauth2.userinfo.v2.me.get",
  206. "path": "userinfo/v2/me",
  207. "response": {
  208. "$ref": "Userinfoplus"
  209. },
  210. "scopes": [
  211. "https://www.googleapis.com/auth/plus.login",
  212. "https://www.googleapis.com/auth/plus.me",
  213. "https://www.googleapis.com/auth/userinfo.email",
  214. "https://www.googleapis.com/auth/userinfo.profile"
  215. ]
  216. }
  217. }
  218. }
  219. }
  220. }
  221. }
  222. }
  223. },
  224. "revision": "20190129",
  225. "rootUrl": "https://www.googleapis.com/",
  226. "schemas": {
  227. "Jwk": {
  228. "id": "Jwk",
  229. "properties": {
  230. "keys": {
  231. "items": {
  232. "properties": {
  233. "alg": {
  234. "default": "RS256",
  235. "type": "string"
  236. },
  237. "e": {
  238. "type": "string"
  239. },
  240. "kid": {
  241. "type": "string"
  242. },
  243. "kty": {
  244. "default": "RSA",
  245. "type": "string"
  246. },
  247. "n": {
  248. "type": "string"
  249. },
  250. "use": {
  251. "default": "sig",
  252. "type": "string"
  253. }
  254. },
  255. "type": "object"
  256. },
  257. "type": "array"
  258. }
  259. },
  260. "type": "object"
  261. },
  262. "Raw": {
  263. "id": "Raw",
  264. "properties": {
  265. "keyvalues": {
  266. "items": {
  267. "properties": {
  268. "algorithm": {
  269. "default": "RSA",
  270. "type": "string"
  271. },
  272. "exponent": {
  273. "type": "string"
  274. },
  275. "keyid": {
  276. "type": "string"
  277. },
  278. "modulus": {
  279. "type": "string"
  280. }
  281. },
  282. "type": "object"
  283. },
  284. "type": "array"
  285. }
  286. },
  287. "type": "object"
  288. },
  289. "Tokeninfo": {
  290. "id": "Tokeninfo",
  291. "properties": {
  292. "access_type": {
  293. "description": "The access type granted with this token. It can be offline or online.",
  294. "type": "string"
  295. },
  296. "audience": {
  297. "description": "Who is the intended audience for this token. In general the same as issued_to.",
  298. "type": "string"
  299. },
  300. "email": {
  301. "description": "The email address of the user. Present only if the email scope is present in the request.",
  302. "type": "string"
  303. },
  304. "email_verified": {
  305. "description": "Boolean flag which is true if the email address is verified. Present only if the email scope is present in the request.",
  306. "type": "boolean"
  307. },
  308. "expires_in": {
  309. "description": "The expiry time of the token, as number of seconds left until expiry.",
  310. "format": "int32",
  311. "type": "integer"
  312. },
  313. "issued_at": {
  314. "description": "The issue time of the token, as number of seconds.",
  315. "format": "int32",
  316. "type": "integer"
  317. },
  318. "issued_to": {
  319. "description": "To whom was the token issued to. In general the same as audience.",
  320. "type": "string"
  321. },
  322. "issuer": {
  323. "description": "Who issued the token.",
  324. "type": "string"
  325. },
  326. "nonce": {
  327. "description": "Nonce of the id token.",
  328. "type": "string"
  329. },
  330. "scope": {
  331. "description": "The space separated list of scopes granted to this token.",
  332. "type": "string"
  333. },
  334. "user_id": {
  335. "description": "The obfuscated user id.",
  336. "type": "string"
  337. },
  338. "verified_email": {
  339. "description": "Boolean flag which is true if the email address is verified. Present only if the email scope is present in the request.",
  340. "type": "boolean"
  341. }
  342. },
  343. "type": "object"
  344. },
  345. "Userinfoplus": {
  346. "id": "Userinfoplus",
  347. "properties": {
  348. "email": {
  349. "description": "The user's email address.",
  350. "type": "string"
  351. },
  352. "family_name": {
  353. "description": "The user's last name.",
  354. "type": "string"
  355. },
  356. "gender": {
  357. "description": "The user's gender.",
  358. "type": "string"
  359. },
  360. "given_name": {
  361. "description": "The user's first name.",
  362. "type": "string"
  363. },
  364. "hd": {
  365. "description": "The hosted domain e.g. example.com if the user is Google apps user.",
  366. "type": "string"
  367. },
  368. "id": {
  369. "description": "The obfuscated ID of the user.",
  370. "type": "string"
  371. },
  372. "link": {
  373. "description": "URL of the profile page.",
  374. "type": "string"
  375. },
  376. "locale": {
  377. "description": "The user's preferred locale.",
  378. "type": "string"
  379. },
  380. "name": {
  381. "description": "The user's full name.",
  382. "type": "string"
  383. },
  384. "picture": {
  385. "description": "URL of the user's picture image.",
  386. "type": "string"
  387. },
  388. "verified_email": {
  389. "default": "true",
  390. "description": "Boolean flag which is true if the email address is verified. Always verified because we only return the user's primary email address.",
  391. "type": "boolean"
  392. }
  393. },
  394. "type": "object"
  395. },
  396. "X509": {
  397. "additionalProperties": {
  398. "type": "string"
  399. },
  400. "id": "X509",
  401. "type": "object"
  402. }
  403. },
  404. "servicePath": "",
  405. "title": "Google OAuth2 API",
  406. "version": "v1"
  407. }