POST api/Message/list
Request Information
URI Parameters
None.
Body Parameters
msgListPost| Name | Description | Type | Additional information |
|---|---|---|---|
| type | MessageType |
None. |
|
| skip |
跳过多少条 |
integer |
None. |
| limit |
取多少条 |
integer |
None. |
| uid |
账号id |
integer |
None. |
| token |
token |
string |
None. |
Request Formats
application/json, text/json
Sample:
{
"type": 1,
"skip": 1,
"limit": 2,
"uid": 3,
"token": "sample string 4"
}
application/xml, text/xml
Sample:
<msgListPost xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/LyWebApi.Controllers"> <token xmlns="http://schemas.datacontract.org/2004/07/LyWebApi.Models">sample string 4</token> <uid xmlns="http://schemas.datacontract.org/2004/07/LyWebApi.Models">3</uid> <limit xmlns="http://schemas.datacontract.org/2004/07/LyWebApi.Models">2</limit> <skip xmlns="http://schemas.datacontract.org/2004/07/LyWebApi.Models">1</skip> <type>xiaoxi</type> </msgListPost>
application/x-www-form-urlencoded
Sample:
Sample not available.
Response Information
Resource Description
msgListResult| Name | Description | Type | Additional information |
|---|---|---|---|
| list | Collection of msgListItem |
None. |
|
| Code | integer |
None. |
|
| Msg | string |
None. |
Response Formats
application/json, text/json
Sample:
{
"list": [
{
"id": 1,
"title": "sample string 2",
"content": "sample string 3",
"dt": "sample string 4",
"type": 5,
"weidu": 6
},
{
"id": 1,
"title": "sample string 2",
"content": "sample string 3",
"dt": "sample string 4",
"type": 5,
"weidu": 6
}
],
"Code": 1,
"Msg": "sample string 2"
}
application/xml, text/xml
Sample:
<msgListResult xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/LyWebApi.Controllers">
<Code xmlns="http://schemas.datacontract.org/2004/07/LyWebApi.Models">1</Code>
<Msg xmlns="http://schemas.datacontract.org/2004/07/LyWebApi.Models">sample string 2</Msg>
<list>
<msgListItem>
<content>sample string 3</content>
<dt>sample string 4</dt>
<id>1</id>
<title>sample string 2</title>
<type>5</type>
<weidu>6</weidu>
</msgListItem>
<msgListItem>
<content>sample string 3</content>
<dt>sample string 4</dt>
<id>1</id>
<title>sample string 2</title>
<type>5</type>
<weidu>6</weidu>
</msgListItem>
</list>
</msgListResult>