Get News
Description
取得最新消息。
Resource
GET /v2/basic/news
Authorization
採用 OAuth 2.0 Bearer Token,詳細使用流程請參考 Auth Login。
Response
{
"news": [
{
"category_id": "1",
"category_name": "最新消息",
"info": [
{
"id": "15",
"subject": "母親節活動",
"share_url": "http://xxxxxxx.com.tw/share_web_page.html",
"image_url": "http://40.83.96.208:8080/kiosk/apptest/public/news/15.jpg",
"body": "<p>母親節最新消息內容</p>",
"start_date": "2020-05-01",
"end_date": "2020-05-08"
}
]
},
{
"category_id": "2",
"category_name": "熱門活動",
"info": [
{
"id": "15",
"subject": "母親節活動",
"share_url": "http://xxxxxxx.com.tw/share_web_page.html",
"image_url": "http://40.83.96.208:8080/kiosk/apptest/public/news/15.jpg",
"body": "<p>母親節最新消息內容</p>",
"start_date": "2020-05-01",
"end_date": "2020-05-08"
}
]
}
]
}
Response Body Parameters
| Name | Type | Description |
|---|---|---|
| news | New[] | 網頁列表 |
Response Body Parameters - New
| Name | Type | Description |
|---|---|---|
| category_id | string | 分類編號 |
| category_name | string | 分類名稱 |
| info | Info[] | 資訊 |
Response Body Parameters - Info
| Name | Type | Description |
|---|---|---|
| id | string | 最新消息ID |
| subject | string | 標題 |
| share_url | string | APP分享URL |
| image_url | string | 圖檔URL |
| body | string | 內容(HTML格式) |
| start_date | string | 上架日 |
| end_date | string | 下架日 |