POST api/chatting/getMessagesLast?user_id={user_id}&user_type={user_type}
Request Information
URI Parameters
| Name | Description | Type | Additional information |
|---|---|---|---|
| user_id | integer |
Required |
|
| user_type | integer |
Required |
Body Parameters
None.
Response Information
Resource Description
Collection of 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. |
Response 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"
},
{
"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:
<ArrayOftbl_chatting xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/PoetAPI.Models">
<tbl_chatting>
<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>
<tbl_chatting>
<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>
</ArrayOftbl_chatting>