POST api/chatting/addMessage
Request Information
URI Parameters
None.
Body Parameters
tbl_chatting| Name | Description | Type | Additional information |
|---|---|---|---|
| id | integer |
None. |
|
| send_from | integer |
None. |
|
| send_to | integer |
None. |
|
| message | string |
None. |
|
| sending_date | string |
None. |
|
| received_date | string |
None. |
|
| altered_time | string |
None. |
|
| user_token | string |
None. |
|
| reading_state | boolean |
None. |
|
| isAltered | boolean |
None. |
|
| roomId | integer |
None. |
|
| lastModified | integer |
None. |
|
| syncWithPoet | boolean |
None. |
|
| syncWithSupervisor | boolean |
None. |
|
| sendingTimestamp | integer |
None. |
|
| receivedTimestamp | integer |
None. |
|
| msgType | string |
None. |
|
| attach | string |
None. |
Request Formats
application/json, text/json
Sample:
{
"id": 1,
"send_from": 2,
"send_to": 3,
"message": "sample string 4",
"sending_date": "sample string 5",
"received_date": "sample string 6",
"altered_time": "sample string 7",
"user_token": "sample string 8",
"reading_state": true,
"isAltered": true,
"roomId": 11,
"lastModified": 12,
"syncWithPoet": true,
"syncWithSupervisor": true,
"sendingTimestamp": 15,
"receivedTimestamp": 16,
"msgType": "sample string 17",
"attach": "sample string 18"
}
application/xml, text/xml
Sample:
<tbl_chatting xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/PoetAPI.Models"> <altered_time>sample string 7</altered_time> <attach>sample string 18</attach> <id>1</id> <isAltered>true</isAltered> <lastModified>12</lastModified> <message>sample string 4</message> <msgType>sample string 17</msgType> <reading_state>true</reading_state> <receivedTimestamp>16</receivedTimestamp> <received_date>sample string 6</received_date> <roomId>11</roomId> <send_from>2</send_from> <send_to>3</send_to> <sendingTimestamp>15</sendingTimestamp> <sending_date>sample string 5</sending_date> <syncWithPoet>true</syncWithPoet> <syncWithSupervisor>true</syncWithSupervisor> <user_token>sample string 8</user_token> </tbl_chatting>
application/x-www-form-urlencoded
Sample:
Sample not available.
Response Information
Resource Description
stringResponse Formats
application/json, text/json
Sample:
"sample string 1"
application/xml, text/xml
Sample:
<string xmlns="http://schemas.microsoft.com/2003/10/Serialization/">sample string 1</string>