Authentication
Login URL
Return cPanel Store or cPanel Market login URL
This function retrieves the login URL for the cPanel Store or a cPanel Market provider.
get/get_login_url
Query parameters
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": "https://account.cpanel.net/oauth2/auth/login?client_id=d5eff4a09e29d5b20752674c0ab2c799c428eb23df4db2df10a5c9d96c37472c76013a41e9a0c714e852965ceaed2e8e05e2f738bc27ee562cfb683fbfc75a01&email=&redirect_uri=http%3A%2F%2Fhostname.example.com%2Fredirectionlocation.cgi%3Fstate&response_type=token"
},
"metadata": {
"command": "get_login_url",
"reason": "OK",
"result": 1,
"version": 1
}
}