update_fleetio_tokens

To update fleetio tokens, use the item/update_fleetio_tokens method:

Copied!
svc=item/update_fleetio_tokens&params={
  "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.

Copied!
http://127.0.0.1:8011/wialon/ajax.html?svc=item/update_fleetio_tokens&params={"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:

Copied!
{  "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).

If you find a mistake in the text, please select it and press Ctrl+Enter.

Report a mistake

Your message was sent. Thank you!

An error occurred while submitting the form

Download PDF file
Download Word document

See also