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 |
Filtering
Fields | Support | Type | Description |
---|---|---|---|
id | eq,in | integer | Định danh |
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&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": ""
}
],
"has_more": true,
"offset": 1,
"limited": 1
}