POST message/getUsersMessages
Request Information
URI Parameters
None.
Body Parameters
MessageRequestName | Description | Type | Additional information |
---|---|---|---|
UserID | integer |
None. |
|
SenderID | integer |
None. |
|
RecieverID | integer |
None. |
|
Message | string |
None. |
Request Formats
application/json, text/json
Sample:
{ "UserID": 1, "SenderID": 2, "RecieverID": 3, "Message": "sample string 4" }
text/html
Sample:
{"UserID":1,"SenderID":2,"RecieverID":3,"Message":"sample string 4"}
application/xml, text/xml
Sample:
<MessageRequest xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/PilledApi.Models.Request"> <Message>sample string 4</Message> <RecieverID>3</RecieverID> <SenderID>2</SenderID> <UserID>1</UserID> </MessageRequest>
application/x-www-form-urlencoded
Sample:
Sample not available.
Response Information
Resource Description
Collection of MessageResponseName | Description | Type | Additional information |
---|---|---|---|
SenderID | integer |
None. |
|
RecieverID | integer |
None. |
|
Message | string |
None. |
|
UserName | string |
None. |
|
SentTime | date |
None. |
|
SeenTime | date |
None. |
|
ProfilePicID | integer |
None. |
|
ProfilePicUri | string |
None. |
Response Formats
application/json, text/json
Sample:
[ { "SenderID": 1, "RecieverID": 2, "Message": "sample string 3", "UserName": "sample string 4", "SentTime": "2024-11-25T02:48:49.8287857-08:00", "SeenTime": "2024-11-25T02:48:49.8287857-08:00", "ProfilePicID": 5, "ProfilePicUri": "sample string 6" }, { "SenderID": 1, "RecieverID": 2, "Message": "sample string 3", "UserName": "sample string 4", "SentTime": "2024-11-25T02:48:49.8287857-08:00", "SeenTime": "2024-11-25T02:48:49.8287857-08:00", "ProfilePicID": 5, "ProfilePicUri": "sample string 6" } ]
text/html
Sample:
[{"SenderID":1,"RecieverID":2,"Message":"sample string 3","UserName":"sample string 4","SentTime":"2024-11-25T02:48:49.8287857-08:00","SeenTime":"2024-11-25T02:48:49.8287857-08:00","ProfilePicID":5,"ProfilePicUri":"sample string 6"},{"SenderID":1,"RecieverID":2,"Message":"sample string 3","UserName":"sample string 4","SentTime":"2024-11-25T02:48:49.8287857-08:00","SeenTime":"2024-11-25T02:48:49.8287857-08:00","ProfilePicID":5,"ProfilePicUri":"sample string 6"}]
application/xml, text/xml
Sample:
<ArrayOfMessageResponse xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/PilledApi.Models.Response"> <MessageResponse> <Message>sample string 3</Message> <ProfilePicID>5</ProfilePicID> <ProfilePicUri>sample string 6</ProfilePicUri> <RecieverID>2</RecieverID> <SeenTime>2024-11-25T02:48:49.8287857-08:00</SeenTime> <SenderID>1</SenderID> <SentTime>2024-11-25T02:48:49.8287857-08:00</SentTime> <UserName>sample string 4</UserName> </MessageResponse> <MessageResponse> <Message>sample string 3</Message> <ProfilePicID>5</ProfilePicID> <ProfilePicUri>sample string 6</ProfilePicUri> <RecieverID>2</RecieverID> <SeenTime>2024-11-25T02:48:49.8287857-08:00</SeenTime> <SenderID>1</SenderID> <SentTime>2024-11-25T02:48:49.8287857-08:00</SentTime> <UserName>sample string 4</UserName> </MessageResponse> </ArrayOfMessageResponse>