...

Text file src/google.golang.org/api/oauth2/v1/oauth2-api.json

Documentation: google.golang.org/api/oauth2/v1

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

View as plain text