Page list
Lấy danh sách các page còn hạn sử dụng.
Request
Xem sample Postman tại đây.
curl --location 'https://vpage.open.nhanh.vn/v3.0/page/list?appId={{appId}}&businessId={{businessId}}' \
--header 'Authorization: {{accessToken}}' \
--header 'Content-Type: application/json' \
--data '{
"filters": { },
"paginator": {
"size": 30,
"sort": {"createdAt": "desc"}
}
}'
Filters
Key
Type
Description
ids
array
Mảng page ids
channels
array
Mảng kênh chat
Paginator
Key
Type
Description
size
int
Số lượng bản ghi trên 1 trang. Tối đa không quá 50
next
array
Mảng dữ liệu next (được trả về từ trang trước đó - nếu có)
sort
array
Mảng dữ liệu các tiêu chí sort. Xem bảng bên dưới
sort
Key
Description
Value
createdAt
Thời tạo page
ASC, DESC
name
Page name
ASC, DESC
Response
Xem cấu trúc chung tại đây.
Failed response
Xem các mã lỗi chung tại đây.
Successful response
{
"code": 1,
"paginator": {
"next": [
1684232267000,
13
]
},
"data": [
{
"id": "562525723619135",
"name": "Good bag 2",
"channel": 1,
"createdAt": 1743839994,
"expiredAt": 2692630800
},
{
"id": "596777126857368",
"name": "Good bag 1",
"channel": 1,
"createdAt": 1743839994,
"expiredAt": 2692630800
}
]
}
Last updated