Register an OAuth application
Registers a new OAuth application to your client account.
| HTTP Method | URL |
|---|---|
| POST | baseUrl/oauth/applications/register/ |
Request headers
Requires a valid login token.
{
"Authorization" : "Bearer" + token
}
Request body
{
"name" : // Your OAuth application name
"redirectUris" : // A space separated string list of all your OAuth redirect URIs
}
Success Response
HTTP code: 200
In case of success, it will return JSON containing your OAuth application configs.
OAuth application config
{
"clientId" : // OAuth client id
"clientSecret": // OAuth client secret
"redirectUris": // A space separated string list of all your OAuth redirect URIs
}
Error Response
{
"code" : // Error code
"message": // Error message
}
| code | message |
|---|---|
| 1903 | Invalid redirect uri |
| 1905 | Invalid application name |
| 1906 | Application name already exists |
| 1908 | There is already an application registered for this account |