POST api/ChatMessage/Msgtoken
獲取token
Request Information
URI Parameters
None.
Body Parameters
Msgtoken_Input| Name | Description | Type | Additional information |
|---|---|---|---|
| Ticket |
身份票據 |
string |
Required |
| userId |
帳號 |
string |
Required |
Request Formats
application/json, text/json
Sample:
{
"Ticket": "sample string 1",
"userId": "sample string 2"
}
text/html
Sample:
{"Ticket":"sample string 1","userId":"sample string 2"}
application/x-www-form-urlencoded
Sample:
Sample not available.
Response Information
Resource Description
獲取token
Msgtoken_Output| Name | Description | Type | Additional information |
|---|---|---|---|
| ticketVerified |
驗證是否通過 |
boolean |
None. |
| status |
狀態 0 失敗 1成功 |
integer |
None. |
| token |
token |
string |
None. |
Response Formats
application/json, text/json
Sample:
{
"ticketVerified": true,
"status": 2,
"token": "sample string 3"
}
text/html
Sample:
{"ticketVerified":true,"status":2,"token":"sample string 3"}