For security and maintainability reasons, we don't want to create permanent tokens for the customers. This API method allows us to extend tokens expiration date for up to 60 days
Parameters
Name | Type | Description |
---|---|---|
publisherToken | string | You can find your publisher token at api-keys page. |
customerToken | string | Token that identifies the customer, read more in Must know about API section. |
extensionTime* | integer | Number of seconds added to the current token expiration time. Tokens can be extended by no more than 60 days. |
API Request/Response
Request
{
"method": "extendTokenExpiration",
"params": {
"publisherToken": " If13hAEe7gQjhN_nUr_vRwFrXrfdVOaNdfs9vDQ1nz8cCLzb",
"customerToken": "a6Yrd0ppps0ZOCABdMOc-QhiSIFjJ7tOG_cofAJAETUidkx3",
"extensionTime": "1234"
},
"jsonrpc": "2.0",
"id": 1
}
Response
{
"result": {
"success": true
},
"id": "1",
"jsonrpc": "2.0"
}