oauth
Generate and manage OAuth tokens.
getAuthorize a user
Displays an authorization form to the user. If approved, it will create and return an authorization code, then redirect to the desired redirect_uri
, or show the authorization code if urn:ietf:wg:oauth:2.0:oob
was requested. The authorization code can be used while requesting a token to obtain access to user-level methods.
Request
Form Data Parameters
string
code
.string
string
urn:ietf:wg:oauth:2.0:oob
then the authorization code will be shown instead. Must match one of the redirect URIs declared during app registration.string
read
.bool
Response
200: Success
The authorization code will be returned as a query parameter named code
.
redirect_uri?code=qDFUEaYrRK5c-HNmTCJbAzazwLRInJ7VHFat0wcMgCU
400:
If the authorization code is incorrect or has been used already, the request will fail.
{
"error": "invalid_grant",
"error_description": "The provided authorization grant is invalid, expired, revoked, does not match the redirection URI used in the authorization request, or was issued to another client."
}