POST api/Mem/SubscribeEpaper
訂閱電子報
Request Information
URI Parameters
None.
Body Parameters
SubscribeEpaper_Input| Name | Description | Type | Additional information |
|---|---|---|---|
| Ticket |
身份票據 |
string |
Required |
| userId |
帳號 |
string |
Required |
| newsletter |
訂閱電子報 |
boolean |
Required |
Request Formats
application/json, text/json
Sample:
{
"Ticket": "sample string 1",
"userId": "sample string 2",
"newsletter": true
}
text/html
Sample:
{"Ticket":"sample string 1","userId":"sample string 2","newsletter":true}
application/x-www-form-urlencoded
Sample:
Sample not available.
Response Information
Resource Description
訂閱電子報
SubscribeEpaper_Output| Name | Description | Type | Additional information |
|---|---|---|---|
| status |
值範圍0:系統錯誤1:訂閱/取消訂閱成功2:此帳號不存在 |
integer |
None. |
| ticketVerified |
驗證是否通過 |
boolean |
None. |
Response Formats
application/json, text/json
Sample:
{
"status": 1,
"ticketVerified": true
}
text/html
Sample:
{"status":1,"ticketVerified":true}