update_fleetio_tokens
To update fleetio tokens, use the item/update_fleetio_tokens method:
svc=item/update_fleetio_tokens¶ms={
"itemId": long,
"auth_token": "text",
"account_token": "text"
}
&sid= text
Parameters
The request must contain the following parameters:
Parameter | Description |
---|---|
itemId | Account ID. |
auth_token | Authentication token. |
account_token | Account token. |
Example
Below is an example of the item/update_fleetio_tokens request.
http://127.0.0.1:8011/wialon/ajax.html?svc=item/update_fleetio_tokens¶ms={"itemId":912,"auth_token":"auth_token value","account_token":"account_token value"}&sid=f0c4b586ec1ebb4bc2694766effbc1b3
Response
If the request is completed successfully, the response is returned in the following format:
{ "auth": "auth_token", "act": "account_token"}
Otherwise, error code 7 is returned, indicating that the user doesn’t have the required access right to the account (ADF_ACL_AVL_RES_MANAGE_ACCOUNT).