Lấy danh sách nội dung dạng bài viết
HTTP request
- URL: https://openapi.zalo.me/v2.0/article/getslice
- Method: GET
- Content Type: application/json
- Reponse Type: text/json
Sample
https://openapi.zalo.me/v2.0/article/getslice?offset=0&limit=1&type=normal
Tham số header
Tham số | Kiểu dữ liệu | Tính bắt buộc | Mô tả |
|---|---|---|---|
| access_token | String | Yes | Xem hướng dẫn lấy access_token ở đây. |
Tham số
Tham số | Kiểu dữ liệu | Tính bắt buộc | Mô tả |
|---|---|---|---|
Offset | Int | Yes | Vị trí bắt đầu lấy bài viết |
limit | Int | Yes | Số lượng bài viết muốn lấy |
type | String | Yes | Nhận 2 giá trị “normal” hoặc “video” |
Respond
{
"error": 0,
"message": "Success",
"data": {
"medias": [
{
"id": "39c07ccbe78e0ed0579f",
"type": "normal",
"title": "Title",
"status": "show",
"total_view": 1,
"total_share": 0,
"create_date": 1690260497732,
"update_date": 1690260504041,
"thumb": "https://zalo-article-photo.zadn.vn/7ad578505104b85ae115#286621339",
"link_view": "url"
}
],
"total": 2
}
}