Skip to content

Latest commit

 

History

History
85 lines (61 loc) · 2.76 KB

File metadata and controls

85 lines (61 loc) · 2.76 KB

EzmaxApi::ObjectContacttitleApi

All URIs are relative to https://prod.api.appcluster01.ca-central-1.ezmax.com/rest

Method HTTP request Description
contacttitle_get_autocomplete_v2 GET /2/object/contacttitle/getAutocomplete/{sSelector} Retrieve Contacttitles and IDs

contacttitle_get_autocomplete_v2

contacttitle_get_autocomplete_v2(s_selector, opts)

Retrieve Contacttitles and IDs

Get the list of Contacttitle to be used in a dropdown or autocomplete control.

Examples

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::ObjectContacttitleApi.new
s_selector = 'All' # String | The type of Contacttitles to return
opts = {
  s_query: 's_query_example', # String | Allow to filter the returned results
  accept_language: EzmaxApi::HeaderAcceptLanguage:: # HeaderAcceptLanguage | 
}

begin
  # Retrieve Contacttitles and IDs
  result = api_instance.contacttitle_get_autocomplete_v2(s_selector, opts)
  p result
rescue EzmaxApi::ApiError => e
  puts "Error when calling ObjectContacttitleApi->contacttitle_get_autocomplete_v2: #{e}"
end

Using the contacttitle_get_autocomplete_v2_with_http_info variant

This returns an Array which contains the response data, status code and headers.

<Array(, Integer, Hash)> contacttitle_get_autocomplete_v2_with_http_info(s_selector, opts)

begin
  # Retrieve Contacttitles and IDs
  data, status_code, headers = api_instance.contacttitle_get_autocomplete_v2_with_http_info(s_selector, opts)
  p status_code # => 2xx
  p headers # => { ... }
  p data # => <ContacttitleGetAutocompleteV2Response>
rescue EzmaxApi::ApiError => e
  puts "Error when calling ObjectContacttitleApi->contacttitle_get_autocomplete_v2_with_http_info: #{e}"
end

Parameters

Name Type Description Notes
s_selector String The type of Contacttitles to return
s_query String Allow to filter the returned results [optional]
accept_language HeaderAcceptLanguage [optional]

Return type

ContacttitleGetAutocompleteV2Response

Authorization

Authorization

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json