Market
Market Integration
Validate login token
This function validates a login token to a cPanel Market provider and returns an access token.
get/Market/validate_login_token
Query parameters
login_tokenstring required
Example:8675309
The login token for the cPanel Market provider.
providerstring required
Example:cPStore
The name of the cPanel Market provider.
url_after_loginstring url required
Example:http://hostname.example.com/redirectionlocation.cgi?state
The url_after_login value that you sent to UAPI's Market::get_login_url function.
Response
HTTP Request was successful.
Example response
{
"apiversion": 3,
"func": "validate_login_token",
"module": "Market",
"result": {
"data": {
"access_token": "8675309"
},
"metadata": {
"transformed": 1
},
"status": 1
}
}