Get Messages
Description
取得訊息。
Resource
GET /v1/messages
Authorization
採用 OAuth 2.0 Bearer Token,詳細使用流程請參考 Auth Login。
Response
{
"messages": [
{
"id": "1",
"subject": "恭喜您獲得大薯兌換卷乙張",
"body": "親愛的貴賓您好,恭喜您獲得大薯兌換卷乙張,可線上訂購享用兌換商品",
"type": "TEXT",
"url": null,
"send_time": "2020-08-17 17:22:13"
},
{
"id": "2",
"subject": "恭喜您獲得大可兌換卷乙張",
"body": "親愛的貴賓您好,恭喜您獲得大可兌換卷乙張,可線上訂購享用兌換商品",
"type": "TEXT",
"url": null,
"send_time": "2020-08-17 17:22:14"
}
]
}
Response Body Parameters
| Name | Type | Description |
|---|---|---|
| messages | Message | 訊息列表 |
Response Body Parameters - Message
| Name | Type | Description |
|---|---|---|
| id | string | 訊息編號 |
| subject | string | 標題 |
| body | string | 內容 |
| type | string (enum) |
訊息類型 ALLOWED VALUES:
|
| url | string | WEB VIEW的URL |
| send_time | string | 發送時間 |