Skip to content

Get News

Description

取得最新消息。

Resource

GET /v1/news

Authorization

採用 OAuth 2.0 Bearer Token,詳細使用流程請參考 Auth Login

Query Parameters

Name Type Description
category_id integer 類別編號
(optional)
keyword string 關鍵字
(optional)

Response

{
  "news": [
    {
      "id": "15",
      "category_id": "1",
      "category_name": "最新消息",
      "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
id string 最新消息ID
category_id string 分類編號
category_name string 分類名稱
subject string 標題
share_url string APP分享URL
image_url string 圖檔URL
body string 內容(HTML格式)
start_date string 上架日
end_date string 下架日