POST api/Weather/historytoday
Request Information
URI Parameters
None.
Body Parameters
historytodayPost| Name | Description | Type | Additional information |
|---|---|---|---|
| uid |
账号id |
integer |
None. |
| token |
token |
string |
None. |
Request Formats
application/json, text/json
Sample:
{
"uid": 1,
"token": "sample string 2"
}
application/xml, text/xml
Sample:
<historytodayPost 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 2</token> <uid xmlns="http://schemas.datacontract.org/2004/07/LyWebApi.Models">1</uid> </historytodayPost>
application/x-www-form-urlencoded
Sample:
Sample not available.
Response Information
Resource Description
historytodayRes| Name | Description | Type | Additional information |
|---|---|---|---|
| list | Collection of historytodayItem |
None. |
|
| Code | integer |
None. |
|
| Msg | string |
None. |
Response Formats
application/json, text/json
Sample:
{
"list": [
{
"year": "sample string 1",
"title": "sample string 2"
},
{
"year": "sample string 1",
"title": "sample string 2"
}
],
"Code": 1,
"Msg": "sample string 2"
}
application/xml, text/xml
Sample:
<historytodayRes 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>
<historytodayItem>
<title>sample string 2</title>
<year>sample string 1</year>
</historytodayItem>
<historytodayItem>
<title>sample string 2</title>
<year>sample string 1</year>
</historytodayItem>
</list>
</historytodayRes>