This function validates a login token with the cPanel Store or a cPanel Market provider, and then returns access tokens.
HTTP Request was successful.
object | |
object |
whmapi1 --output=jsonpretty \ validate_login_token \ provider='cPStore' \ url_after_login='http://hostname.example.com/redirectionlocation.cgi?state' \ login_token='1a676e6f-99fc-11e6-9ab6-e60a769b73bc'
{- "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
}
}