Description
This function validates a login token to a cPanel Market provider and returns an access token.
Examples
Note:
Use cPanel's API Shell interface (Home >> Advanced >> API Shell) to directly test cPanel API calls.
Parameters
Parameter |
Type |
Description |
Possible values |
Example |
provider |
string |
Required The name of the cPanel Market provider. |
A valid string. |
cPStore |
login_token |
string |
Required The login token for the cPanel Market provider. |
A valid string. |
8675309 |
url_after_login |
string |
Required The url_after_loginvalue that you sent to UAPI'sMarket::get_login_urlfunction. |
A valid URL. |
http://hostname.example.com/redirectionlocation.cgi?state |
Returns
Note:
This function may return additional information that the system does not currently use.
Return |
Type |
Description |
Possible values |
Example |
access_token |
string |
The access token that returns from the code parameter after you log in with UAPI's Market::get_login_url function. |
A valid scalar. |
8675309 |