...

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

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

     1{
     2  "auth": {
     3    "oauth2": {
     4      "scopes": {
     5        "https://www.googleapis.com/auth/userinfo.email": {
     6          "description": "See your primary Google Account 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        "id_token": {
    40          "location": "query",
    41          "type": "string"
    42        }
    43      },
    44      "path": "oauth2/v2/tokeninfo",
    45      "response": {
    46        "$ref": "Tokeninfo"
    47      }
    48    }
    49  },
    50  "name": "oauth2",
    51  "ownerDomain": "google.com",
    52  "ownerName": "Google",
    53  "parameters": {
    54    "alt": {
    55      "default": "json",
    56      "description": "Data format for the response.",
    57      "enum": [
    58        "json"
    59      ],
    60      "enumDescriptions": [
    61        "Responses with Content-Type of application/json"
    62      ],
    63      "location": "query",
    64      "type": "string"
    65    },
    66    "fields": {
    67      "description": "Selector specifying which fields to include in a partial response.",
    68      "location": "query",
    69      "type": "string"
    70    },
    71    "key": {
    72      "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.",
    73      "location": "query",
    74      "type": "string"
    75    },
    76    "oauth_token": {
    77      "description": "OAuth 2.0 token for the current user.",
    78      "location": "query",
    79      "type": "string"
    80    },
    81    "prettyPrint": {
    82      "default": "true",
    83      "description": "Returns response with indentations and line breaks.",
    84      "location": "query",
    85      "type": "boolean"
    86    },
    87    "quotaUser": {
    88      "description": "An opaque string that represents a user for quota purposes. Must not exceed 40 characters.",
    89      "location": "query",
    90      "type": "string"
    91    },
    92    "userIp": {
    93      "description": "Deprecated. Please use quotaUser instead.",
    94      "location": "query",
    95      "type": "string"
    96    }
    97  },
    98  "protocol": "rest",
    99  "resources": {
   100    "userinfo": {
   101      "methods": {
   102        "get": {
   103          "httpMethod": "GET",
   104          "id": "oauth2.userinfo.get",
   105          "path": "oauth2/v2/userinfo",
   106          "response": {
   107            "$ref": "Userinfo"
   108          },
   109          "scopes": [
   110            "openid",
   111            "https://www.googleapis.com/auth/userinfo.email",
   112            "https://www.googleapis.com/auth/userinfo.profile"
   113          ]
   114        }
   115      },
   116      "resources": {
   117        "v2": {
   118          "resources": {
   119            "me": {
   120              "methods": {
   121                "get": {
   122                  "httpMethod": "GET",
   123                  "id": "oauth2.userinfo.v2.me.get",
   124                  "path": "userinfo/v2/me",
   125                  "response": {
   126                    "$ref": "Userinfo"
   127                  },
   128                  "scopes": [
   129                    "openid",
   130                    "https://www.googleapis.com/auth/userinfo.email",
   131                    "https://www.googleapis.com/auth/userinfo.profile"
   132                  ]
   133                }
   134              }
   135            }
   136          }
   137        }
   138      }
   139    }
   140  },
   141  "revision": "20200213",
   142  "rootUrl": "https://www.googleapis.com/",
   143  "schemas": {
   144    "Tokeninfo": {
   145      "id": "Tokeninfo",
   146      "properties": {
   147        "audience": {
   148          "description": "Who is the intended audience for this token. In general the same as issued_to.",
   149          "type": "string"
   150        },
   151        "email": {
   152          "description": "The email address of the user. Present only if the email scope is present in the request.",
   153          "type": "string"
   154        },
   155        "expires_in": {
   156          "description": "The expiry time of the token, as number of seconds left until expiry.",
   157          "format": "int32",
   158          "type": "integer"
   159        },
   160        "issued_to": {
   161          "description": "To whom was the token issued to. In general the same as audience.",
   162          "type": "string"
   163        },
   164        "scope": {
   165          "description": "The space separated list of scopes granted to this token.",
   166          "type": "string"
   167        },
   168        "user_id": {
   169          "description": "The obfuscated user id.",
   170          "type": "string"
   171        },
   172        "verified_email": {
   173          "description": "Boolean flag which is true if the email address is verified. Present only if the email scope is present in the request.",
   174          "type": "boolean"
   175        }
   176      },
   177      "type": "object"
   178    },
   179    "Userinfo": {
   180      "id": "Userinfo",
   181      "properties": {
   182        "email": {
   183          "description": "The user's email address.",
   184          "type": "string"
   185        },
   186        "family_name": {
   187          "description": "The user's last name.",
   188          "type": "string"
   189        },
   190        "gender": {
   191          "description": "The user's gender.",
   192          "type": "string"
   193        },
   194        "given_name": {
   195          "description": "The user's first name.",
   196          "type": "string"
   197        },
   198        "hd": {
   199          "description": "The hosted domain e.g. example.com if the user is Google apps user.",
   200          "type": "string"
   201        },
   202        "id": {
   203          "description": "The obfuscated ID of the user.",
   204          "type": "string"
   205        },
   206        "link": {
   207          "description": "URL of the profile page.",
   208          "type": "string"
   209        },
   210        "locale": {
   211          "description": "The user's preferred locale.",
   212          "type": "string"
   213        },
   214        "name": {
   215          "description": "The user's full name.",
   216          "type": "string"
   217        },
   218        "picture": {
   219          "description": "URL of the user's picture image.",
   220          "type": "string"
   221        },
   222        "verified_email": {
   223          "default": "true",
   224          "description": "Boolean flag which is true if the email address is verified. Always verified because we only return the user's primary email address.",
   225          "type": "boolean"
   226        }
   227      },
   228      "type": "object"
   229    }
   230  },
   231  "servicePath": "",
   232  "title": "Google OAuth2 API",
   233  "version": "v2"
   234}

View as plain text