update_video_autopay

Can only be used in Wialon Hosting.

To enable the automatic purchase of traffic packages, use the update_video_autopay method. This method required dealer rights.

Copied!
svc = unit/update_unique_id2&params = {
  "itemId": <long>,         
  "uniqueId2": <text>       
}

Parameters

The request must contain the following parameters:

Parameter Description
units Array of unit IDs.
uniqueId2 The maximum number of packages per month (the limit) that can be purchased for each unit automatically.

Example

Below is an example of the update_video_autopay request.

Copied!
svc = unit/update_video_autopay&params = {
    "units": [5523461,1548776],
    "value": 10
    }   

Response

If the request is completed successfully, the response contains unit IDs with response codes (code 0 means that the changes were applied). Example:

Copied!
[
    {result:{5523461:{code:0}}},
    {result:{1548776:{code:0}}}
]  

Otherwise, error code 4 is returned, indicating that the input parameters are invalid.

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