Get TimeZones
getTimeZones
This web service returns an array of TimeZone objects.
TimeZone[] getTimeZones(string companyId, string locale) throws WSException
- companyId: (optional) A string of maximum length 10 that specifies the unique company identifier. If a company is specified, the locale will be ignored and the valid timezones for the company will be returned. If no company or locale is specified, the company of the authorized user will be used.
-
locale: (optional) A string of maximum length 2 that specifies the locale to retrieve timezones for. This parameter will be ignored if a companyId is specified. Valid values for locale are:
Value
Description
CA
Canada
CO
Colombia
MX
Mexico
PE
Peru
US
United States
VE
Venezuela
Returns a null string on exceptions; otherwise returns an array of TimeZone objects.
Authorization Requirements
The credentials supplied with this method call (as specified in the accompanying WS-Security header) must be authorized to the following application(s) and their associated role-based permissions.
Required Application Licenses
- Remote Integration
Required User Permissions
- None
Customer integrators are authorized to their own company's data only.
Sample XML Request
Only the SOAP body is shown. To see a sample SOAP Envelope and Header, click here.
|
Sample XML Response
|
Exceptions
001 Unknown Error.
003 Company not authorized for integration.
004 User not authorized.
005 Company ID is invalid.
006 Locale is invalid.