All URIs are relative to https://prod.api.appcluster01.ca-central-1.ezmax.com/rest
Method | HTTP request | Description |
---|---|---|
timezone_get_autocomplete_v2 | GET /2/object/timezone/getAutocomplete/{sSelector} | Retrieve Timezones and IDs |
timezone_get_autocomplete_v2(s_selector, opts)
Retrieve Timezones and IDs
Get the list of Timezone to be used in a dropdown or autocomplete control.
require 'time'
require 'Ezmaxapi'
# setup authorization
EzmaxApi.configure do |config|
# Configure API key authorization: Authorization
config.api_key['Authorization'] = 'YOUR API KEY'
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
# config.api_key_prefix['Authorization'] = 'Bearer'
end
api_instance = EzmaxApi::ObjectTimezoneApi.new
s_selector = 'All' # String | The type of Timezones to return
opts = {
e_filter_active: 'All', # String | Specify which results we want to display.
s_query: 's_query_example', # String | Allow to filter the returned results
accept_language: EzmaxApi::HeaderAcceptLanguage:: # HeaderAcceptLanguage |
}
begin
# Retrieve Timezones and IDs
result = api_instance.timezone_get_autocomplete_v2(s_selector, opts)
p result
rescue EzmaxApi::ApiError => e
puts "Error when calling ObjectTimezoneApi->timezone_get_autocomplete_v2: #{e}"
end
This returns an Array which contains the response data, status code and headers.
<Array(, Integer, Hash)> timezone_get_autocomplete_v2_with_http_info(s_selector, opts)
begin
# Retrieve Timezones and IDs
data, status_code, headers = api_instance.timezone_get_autocomplete_v2_with_http_info(s_selector, opts)
p status_code # => 2xx
p headers # => { ... }
p data # => <TimezoneGetAutocompleteV2Response>
rescue EzmaxApi::ApiError => e
puts "Error when calling ObjectTimezoneApi->timezone_get_autocomplete_v2_with_http_info: #{e}"
end
Name | Type | Description | Notes |
---|---|---|---|
s_selector | String | The type of Timezones to return | |
e_filter_active | String | Specify which results we want to display. | [optional][default to 'Active'] |
s_query | String | Allow to filter the returned results | [optional] |
accept_language | HeaderAcceptLanguage | [optional] |
TimezoneGetAutocompleteV2Response
- Content-Type: Not defined
- Accept: application/json