POST api/DataList/TimeZoneList
时区列表获取接口
Request Information
Body Parameters
TimeZoneListModel| Name | Description | Type | Additional information |
|---|---|---|---|
| Token |
登录后获取到的 Token |
string |
None. |
| Language |
语言选项 |
string |
None. |
| AppId |
APP应用标识 |
string |
None. |
Request Formats
application/json, text/json
Sample:
{
"Token": "sample string 1",
"Language": "sample string 2",
"AppId": "sample string 3"
}
application/xml, text/xml
Sample:
<TimeZoneListModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/NewGPS2012.AppApi.Models.ParModel"> <AppId>sample string 3</AppId> <Language>sample string 2</Language> <Token>sample string 1</Token> </TimeZoneListModel>
Response Information
Resource Description
返回时区列表
TimeZoneListResult| Name | Description | Type | Additional information |
|---|---|---|---|
| Items | Collection of TimeZone |
None. |
|
| State |
状态码 |
integer |
None. |
Response Formats
application/json, text/json
Sample:
{
"Items": [
{
"OffsetTime": 1.1,
"TimeZoneName": "sample string 2"
},
{
"OffsetTime": 1.1,
"TimeZoneName": "sample string 2"
}
],
"State": 1
}
application/xml, text/xml
Sample:
<TimeZoneListResult xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/NewGPS2012.AppApi.Models.ResModel">
<State>1</State>
<Items>
<TimeZone>
<OffsetTime>1.1</OffsetTime>
<TimeZoneName>sample string 2</TimeZoneName>
</TimeZone>
<TimeZone>
<OffsetTime>1.1</OffsetTime>
<TimeZoneName>sample string 2</TimeZoneName>
</TimeZone>
</Items>
</TimeZoneListResult>