POST api/Notification/FCMSaveToken
記錄 Token
Request Information
URI Parameters
None.
Body Parameters
FCMSaveToken_Input| Name | Description | Type | Additional information |
|---|---|---|---|
| Ticket |
身份票據 |
string |
Required |
| userId |
帳號 |
string |
Required |
| ToKen |
FCM憑證 |
string |
Required |
| ToKenType |
0 Android ,1 IOS |
integer |
Required |
Request Formats
application/json, text/json
Sample:
{
"Ticket": "sample string 1",
"userId": "sample string 2",
"ToKen": "sample string 3",
"ToKenType": 4
}
text/html
Sample:
{"Ticket":"sample string 1","userId":"sample string 2","ToKen":"sample string 3","ToKenType":4}
application/x-www-form-urlencoded
Sample:
Sample not available.
Response Information
Resource Description
記錄 Token
FCMSaveToken_Output| Name | Description | Type | Additional information |
|---|---|---|---|
| ticketVerified |
驗證是否通過 |
boolean |
None. |
| status |
狀態 0:系統錯誤 1:設定成功 |
integer |
None. |
Response Formats
application/json, text/json
Sample:
{
"ticketVerified": true,
"status": 2
}
text/html
Sample:
{"ticketVerified":true,"status":2}