Drivers list
This API is used to get information about drivers registered in the account. It allows retrieving data for each driver, including full name, contact information, description, access rights, and identifiers.
How to get data
Method
GET
Request address
To get the data, use the address: https://<server_address>/api/api.php?
Request parameters
-
cmd=drivers_list — command to get the list of drivers
-
node — node number where the command should be executed
Example request
https://<server_address>/api/api.php?cmd=drivers_list&node=1
|
Response
{
"code": 0,
"data": [
{
"id": 317,
"name": "Ivan Ivanov",
"code": "",
"description": "Driver #3",
"phone": "798345546",
"license": "",
"email": "",
"access": []
},
{
"id": 1122,
"name": "Andrey Petrov",
"code": "",
"description": "Driver #1",
"phone": "+525531696255",
"license": "",
"email": null,
"access": [1122]
}
]
}
|
In response to the API request, the following is returned:
-
id — driver identifier
-
name — full name of the driver
-
code — driver code (if available)
-
description — driver description
-
phone — phone number
-
license — driver’s license data
-
email — email address
-
access — list of resource or object IDs the driver has access to