lib/purecloud/api/languages_api.rb in purecloud-0.27.0 vs lib/purecloud/api/languages_api.rb in purecloud-0.28.0
- old
+ new
@@ -35,11 +35,11 @@
if opts[:'sort_order'] && !['[ascending', 'descending]'].include?(opts[:'sort_order'])
fail 'invalid value for "sort_order", must be one of [ascending, descending]'
end
# resource path
- path = "/api/v1/languages".sub('{format}','json')
+ path = "/api/v2/languages".sub('{format}','json')
# query parameters
query_params = {}
query_params[:'pageSize'] = opts[:'page_size'] if opts[:'page_size']
query_params[:'pageNumber'] = opts[:'page_number'] if opts[:'page_number']
@@ -99,10 +99,10 @@
# verify the required parameter 'language_id' is set
fail "Missing the required parameter 'language_id' when calling get_language_id" if language_id.nil?
# resource path
- path = "/api/v1/languages/{languageId}".sub('{format}','json').sub('{' + 'languageId' + '}', language_id.to_s)
+ path = "/api/v2/languages/{languageId}".sub('{format}','json').sub('{' + 'languageId' + '}', language_id.to_s)
# query parameters
query_params = {}
# header parameters