Người dùng
Danh sách người dùng
Lấy danh sách người dùng trên hệ thống
HTTP Request
[GET] /api/v6/users
Query Parameters
Fields
| Fields | Type | Description |
|---|---|---|
| user_id | integer | Định danh người dùng |
| contact_id | integer | Định danh liên hệ |
| contact_name | string | Tên người dùng |
| dept_id | integer | Định danh phòng ban |
| dept_name | string | Tên phòng ban |
| string | Email người dùng | |
| contact_mobile | numeric | Điện thoại người dùng |
| extensions | object | Số máy nhánh của người dùng |
Filtering
| Fields | Support | Type | Description |
|---|---|---|---|
| user_id | eq,in | integer | Định danh |
| valid | eq | integer | Hợp lệ hay không |
| contact_name | eq,contains | string | Tên người dùng |
| eq,contains | string | Email người dùng | |
| contact_mobile | eq,contains | numeric | Điện thoại người dùng |
Sort
| Sort (field) | Direction |
|---|---|
| id | asc,desc |
Limit & Offset
| Type | Description | |
|---|---|---|
| Limit | integer | Lấy bao nhiêu bản ghi |
| Offset | integer | Bỏ qua bao nhiêu bản ghi |
Example
HTTP Request
GET api/v6/users?fields=contact_name&filtering[id]=2&filtering[contact_name:contains]=Lê&limit=1&offset=1 HTTP/1.1
Host: example.getflycrm.com
Authorization: Bearer token
Status
200 OK
Response
{
"data": [
{
"user_id": 3,
"contact_id": 2,
"contact_name": "Lê Văn Duy",
"dept_id": 4,
"dept_name": "Hành chính - Nhân sự",
"email": "[email protected]",
"contact_mobile": "",
"extensions": {
"VFONE": "212",
"CALLIO": "3333",
"EPACIFICV2": "4444"
}
}
],
"has_more": true,
"offset": 1,
"limited": 1
}