Authentication
Market Integration
Validate login token and return access token
This function validates a login token with the cPanel Store or a cPanel Market provider, and then returns access tokens.
get/validate_login_token
Query parameters
login_tokenstring required
Example:1a676e6f-99fc-11e6-9ab6-e60a769b73bc
The login token to validate.
providerstring required
Example:cPStore
The cPanel Store or cPanel Market provider's name.
url_after_loginstring url required
Example:http://hostname.example.com/redirectionlocation.cgi?state
The location to which the cPanel Store or cPanel Market provider redirects the user's browser after they log in.
Response
HTTP Request was successful.
Example response
{
"data": {
"payload": [
{
"access_token": "b7a6f029-99fc-11e6-a0bd-87581cb027ac",
"refresh_token": "b7a7107f-99fc-11e6-a0bd-b46329164206"
}
]
},
"metadata": {
"command": "validate_login_token",
"reason": "OK",
"result": 1,
"version": 1
}
}