GET api/Timezone/{auth}
Retrieve a list of timezones
Request Information
URI Parameters
| Name | Description | Type | Additional information |
|---|---|---|---|
| auth |
Authorization token |
string |
Required |
Body Parameters
None.
Response Information
Resource Description
TimezoneResp| Name | Description | Type | Additional information |
|---|---|---|---|
| IsSuccessful |
Used to determine if method call was successful (true) or failure (false) |
boolean |
None. |
| ErrorMessage |
The error message if method call was not successful |
string |
None. |
| Timezones |
Listing of timezones |
Collection of TimezoneItem |
None. |
Response Formats
application/json, text/json
Sample:
{
"ErrorMessage": "sample string 2",
"IsSuccessful": true,
"Timezones": [
{
"DisplayName": "sample string 2",
"TimezoneID": "sample string 1"
},
{
"DisplayName": "sample string 2",
"TimezoneID": "sample string 1"
}
]
}
application/xml, text/xml
Sample:
<TimezoneResp xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Mnx.WebApi.Shipper.Models">
<ErrorMessage>sample string 2</ErrorMessage>
<IsSuccessful>true</IsSuccessful>
<Timezones>
<TimezoneItem>
<DisplayName>sample string 2</DisplayName>
<TimezoneID>sample string 1</TimezoneID>
</TimezoneItem>
<TimezoneItem>
<DisplayName>sample string 2</DisplayName>
<TimezoneID>sample string 1</TimezoneID>
</TimezoneItem>
</Timezones>
</TimezoneResp>