get_activity_settings
To find out the source of driver activity, use the unit/get_activity_settings method.
svc=unit/get_activity_settings¶ms={"itemId":<long>}
Parameters
The request must contain the itemId parameter, which specifies the unit ID.
Example
Below is an example of the unit/get_activity_settings request.
svc=unit/get_activity_settings¶ms={"itemId": 200393}
Response
If the request is completed successfully, the response contains the selected source of driver activity.
{
"type": <int> /* selected source */
}
Otherwise, an error code is returned.
Error codes
| Error code | Description |
|---|---|
| 4 | Invalid input parameters. |
| 7 | The unit doesn’t exist, or the user doesn’t have the View detailed object properties access right to it. |