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 |
Authorization token. |
account_token |
Fleetio account token. |
Example
Below is an example of the item/update_fleetio_tokens request.
https://hst-api.wialon.com/wialon/ajax.html?svc=item/update_fleetio_tokens¶ms={"itemId":912,"auth_token":"auth_token value","account_token":"account_token value"}&sid=SESSION_IDENTIFIER
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. This happens if the account doesn’t exist, the user doesn’t have the Edit not mentioned properties access right to it, or the Fleetio service isn’t available in the billing plan.