POST api/v1/GetChat
Request Information
URI Parameters
None.
Body Parameters
GetChatRequest| Name | Description | Type | Additional information |
|---|---|---|---|
| uid | integer |
None. |
Request Formats
application/json, text/json
Sample:
{
"uid": 1
}
application/xml, text/xml
Sample:
<GetChatRequest xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/AppBridge"> <uid>1</uid> </GetChatRequest>
application/x-www-form-urlencoded
Sample:
Sample not available.
Response Information
Resource Description
Collection of ChatResponse| Name | Description | Type | Additional information |
|---|---|---|---|
| MessageId | integer |
None. |
|
| SenderId | integer |
None. |
|
| SenderName | string |
None. |
|
| ReceiverId | integer |
None. |
|
| ReceiverName | string |
None. |
|
| Message | string |
None. |
|
| AttachmentUrl | string |
None. |
|
| AttachmentName | string |
None. |
|
| AttachmentType | string |
None. |
|
| IsRead | boolean |
None. |
|
| CreatedAt | string |
None. |
Response Formats
application/json, text/json
Sample:
[
{
"MessageId": 1,
"SenderId": 2,
"SenderName": "sample string 3",
"ReceiverId": 4,
"ReceiverName": "sample string 5",
"Message": "sample string 6",
"AttachmentUrl": "sample string 7",
"AttachmentName": "sample string 8",
"AttachmentType": "sample string 9",
"IsRead": true,
"CreatedAt": "sample string 11"
},
{
"MessageId": 1,
"SenderId": 2,
"SenderName": "sample string 3",
"ReceiverId": 4,
"ReceiverName": "sample string 5",
"Message": "sample string 6",
"AttachmentUrl": "sample string 7",
"AttachmentName": "sample string 8",
"AttachmentType": "sample string 9",
"IsRead": true,
"CreatedAt": "sample string 11"
}
]
application/xml, text/xml
Sample:
<ArrayOfChatResponse xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/AppBridge">
<ChatResponse>
<AttachmentName>sample string 8</AttachmentName>
<AttachmentType>sample string 9</AttachmentType>
<AttachmentUrl>sample string 7</AttachmentUrl>
<CreatedAt>sample string 11</CreatedAt>
<IsRead>true</IsRead>
<Message>sample string 6</Message>
<MessageId>1</MessageId>
<ReceiverId>4</ReceiverId>
<ReceiverName>sample string 5</ReceiverName>
<SenderId>2</SenderId>
<SenderName>sample string 3</SenderName>
</ChatResponse>
<ChatResponse>
<AttachmentName>sample string 8</AttachmentName>
<AttachmentType>sample string 9</AttachmentType>
<AttachmentUrl>sample string 7</AttachmentUrl>
<CreatedAt>sample string 11</CreatedAt>
<IsRead>true</IsRead>
<Message>sample string 6</Message>
<MessageId>1</MessageId>
<ReceiverId>4</ReceiverId>
<ReceiverName>sample string 5</ReceiverName>
<SenderId>2</SenderId>
<SenderName>sample string 3</SenderName>
</ChatResponse>
</ArrayOfChatResponse>