lib/purecloud/api/external_contacts_api.rb in purecloud-0.27.0 vs lib/purecloud/api/external_contacts_api.rb in purecloud-0.28.0
- old
+ new
@@ -35,11 +35,11 @@
if @api_client.config.debugging
@api_client.config.logger.debug "Calling API: ExternalContactsApi#get_contacts ..."
end
# resource path
- path = "/api/v1/externalcontacts/contacts".sub('{format}','json')
+ path = "/api/v2/externalcontacts/contacts".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']
@@ -98,11 +98,11 @@
if @api_client.config.debugging
@api_client.config.logger.debug "Calling API: ExternalContactsApi#post_contacts ..."
end
# resource path
- path = "/api/v1/externalcontacts/contacts".sub('{format}','json')
+ path = "/api/v2/externalcontacts/contacts".sub('{format}','json')
# query parameters
query_params = {}
# header parameters
@@ -161,11 +161,11 @@
# verify the required parameter 'contact_id' is set
fail "Missing the required parameter 'contact_id' when calling get_contacts_contact_id" if contact_id.nil?
# resource path
- path = "/api/v1/externalcontacts/contacts/{contactId}".sub('{format}','json').sub('{' + 'contactId' + '}', contact_id.to_s)
+ path = "/api/v2/externalcontacts/contacts/{contactId}".sub('{format}','json').sub('{' + 'contactId' + '}', contact_id.to_s)
# query parameters
query_params = {}
query_params[:'expand'] = @api_client.build_collection_param(opts[:'expand'], :multi) if opts[:'expand']
@@ -225,11 +225,11 @@
# verify the required parameter 'contact_id' is set
fail "Missing the required parameter 'contact_id' when calling put_contacts_contact_id" if contact_id.nil?
# resource path
- path = "/api/v1/externalcontacts/contacts/{contactId}".sub('{format}','json').sub('{' + 'contactId' + '}', contact_id.to_s)
+ path = "/api/v2/externalcontacts/contacts/{contactId}".sub('{format}','json').sub('{' + 'contactId' + '}', contact_id.to_s)
# query parameters
query_params = {}
# header parameters
@@ -286,11 +286,11 @@
# verify the required parameter 'contact_id' is set
fail "Missing the required parameter 'contact_id' when calling delete_contacts_contact_id" if contact_id.nil?
# resource path
- path = "/api/v1/externalcontacts/contacts/{contactId}".sub('{format}','json').sub('{' + 'contactId' + '}', contact_id.to_s)
+ path = "/api/v2/externalcontacts/contacts/{contactId}".sub('{format}','json').sub('{' + 'contactId' + '}', contact_id.to_s)
# query parameters
query_params = {}
# header parameters
@@ -352,11 +352,11 @@
# verify the required parameter 'contact_id' is set
fail "Missing the required parameter 'contact_id' when calling get_contacts_contact_id_notes" if contact_id.nil?
# resource path
- path = "/api/v1/externalcontacts/contacts/{contactId}/notes".sub('{format}','json').sub('{' + 'contactId' + '}', contact_id.to_s)
+ path = "/api/v2/externalcontacts/contacts/{contactId}/notes".sub('{format}','json').sub('{' + 'contactId' + '}', contact_id.to_s)
# query parameters
query_params = {}
query_params[:'pageSize'] = opts[:'page_size'] if opts[:'page_size']
query_params[:'pageNumber'] = opts[:'page_number'] if opts[:'page_number']
@@ -418,11 +418,11 @@
# verify the required parameter 'contact_id' is set
fail "Missing the required parameter 'contact_id' when calling post_contacts_contact_id_notes" if contact_id.nil?
# resource path
- path = "/api/v1/externalcontacts/contacts/{contactId}/notes".sub('{format}','json').sub('{' + 'contactId' + '}', contact_id.to_s)
+ path = "/api/v2/externalcontacts/contacts/{contactId}/notes".sub('{format}','json').sub('{' + 'contactId' + '}', contact_id.to_s)
# query parameters
query_params = {}
# header parameters
@@ -484,11 +484,11 @@
# verify the required parameter 'note_id' is set
fail "Missing the required parameter 'note_id' when calling get_contacts_contact_id_notes_note_id" if note_id.nil?
# resource path
- path = "/api/v1/externalcontacts/contacts/{contactId}/notes/{noteId}".sub('{format}','json').sub('{' + 'contactId' + '}', contact_id.to_s).sub('{' + 'noteId' + '}', note_id.to_s)
+ path = "/api/v2/externalcontacts/contacts/{contactId}/notes/{noteId}".sub('{format}','json').sub('{' + 'contactId' + '}', contact_id.to_s).sub('{' + 'noteId' + '}', note_id.to_s)
# query parameters
query_params = {}
# header parameters
@@ -552,11 +552,11 @@
# verify the required parameter 'note_id' is set
fail "Missing the required parameter 'note_id' when calling put_contacts_contact_id_notes_note_id" if note_id.nil?
# resource path
- path = "/api/v1/externalcontacts/contacts/{contactId}/notes/{noteId}".sub('{format}','json').sub('{' + 'contactId' + '}', contact_id.to_s).sub('{' + 'noteId' + '}', note_id.to_s)
+ path = "/api/v2/externalcontacts/contacts/{contactId}/notes/{noteId}".sub('{format}','json').sub('{' + 'contactId' + '}', contact_id.to_s).sub('{' + 'noteId' + '}', note_id.to_s)
# query parameters
query_params = {}
# header parameters
@@ -618,11 +618,11 @@
# verify the required parameter 'note_id' is set
fail "Missing the required parameter 'note_id' when calling delete_contacts_contact_id_notes_note_id" if note_id.nil?
# resource path
- path = "/api/v1/externalcontacts/contacts/{contactId}/notes/{noteId}".sub('{format}','json').sub('{' + 'contactId' + '}', contact_id.to_s).sub('{' + 'noteId' + '}', note_id.to_s)
+ path = "/api/v2/externalcontacts/contacts/{contactId}/notes/{noteId}".sub('{format}','json').sub('{' + 'contactId' + '}', contact_id.to_s).sub('{' + 'noteId' + '}', note_id.to_s)
# query parameters
query_params = {}
# header parameters
@@ -681,11 +681,11 @@
if @api_client.config.debugging
@api_client.config.logger.debug "Calling API: ExternalContactsApi#get_organizations ..."
end
# resource path
- path = "/api/v1/externalcontacts/organizations".sub('{format}','json')
+ path = "/api/v2/externalcontacts/organizations".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']
@@ -743,11 +743,11 @@
if @api_client.config.debugging
@api_client.config.logger.debug "Calling API: ExternalContactsApi#post_organizations ..."
end
# resource path
- path = "/api/v1/externalcontacts/organizations".sub('{format}','json')
+ path = "/api/v2/externalcontacts/organizations".sub('{format}','json')
# query parameters
query_params = {}
# header parameters
@@ -804,11 +804,11 @@
# verify the required parameter 'external_organization_id' is set
fail "Missing the required parameter 'external_organization_id' when calling get_organizations_externalorganization_id" if external_organization_id.nil?
# resource path
- path = "/api/v1/externalcontacts/organizations/{externalOrganizationId}".sub('{format}','json').sub('{' + 'externalOrganizationId' + '}', external_organization_id.to_s)
+ path = "/api/v2/externalcontacts/organizations/{externalOrganizationId}".sub('{format}','json').sub('{' + 'externalOrganizationId' + '}', external_organization_id.to_s)
# query parameters
query_params = {}
# header parameters
@@ -867,11 +867,11 @@
# verify the required parameter 'external_organization_id' is set
fail "Missing the required parameter 'external_organization_id' when calling put_organizations_externalorganization_id" if external_organization_id.nil?
# resource path
- path = "/api/v1/externalcontacts/organizations/{externalOrganizationId}".sub('{format}','json').sub('{' + 'externalOrganizationId' + '}', external_organization_id.to_s)
+ path = "/api/v2/externalcontacts/organizations/{externalOrganizationId}".sub('{format}','json').sub('{' + 'externalOrganizationId' + '}', external_organization_id.to_s)
# query parameters
query_params = {}
# header parameters
@@ -928,11 +928,11 @@
# verify the required parameter 'external_organization_id' is set
fail "Missing the required parameter 'external_organization_id' when calling delete_organizations_externalorganization_id" if external_organization_id.nil?
# resource path
- path = "/api/v1/externalcontacts/organizations/{externalOrganizationId}".sub('{format}','json').sub('{' + 'externalOrganizationId' + '}', external_organization_id.to_s)
+ path = "/api/v2/externalcontacts/organizations/{externalOrganizationId}".sub('{format}','json').sub('{' + 'externalOrganizationId' + '}', external_organization_id.to_s)
# query parameters
query_params = {}
# header parameters
@@ -998,11 +998,11 @@
# verify the required parameter 'external_organization_id' is set
fail "Missing the required parameter 'external_organization_id' when calling get_organizations_externalorganization_id_contacts" if external_organization_id.nil?
# resource path
- path = "/api/v1/externalcontacts/organizations/{externalOrganizationId}/contacts".sub('{format}','json').sub('{' + 'externalOrganizationId' + '}', external_organization_id.to_s)
+ path = "/api/v2/externalcontacts/organizations/{externalOrganizationId}/contacts".sub('{format}','json').sub('{' + 'externalOrganizationId' + '}', external_organization_id.to_s)
# query parameters
query_params = {}
query_params[:'pageSize'] = opts[:'page_size'] if opts[:'page_size']
query_params[:'pageNumber'] = opts[:'page_number'] if opts[:'page_number']
@@ -1070,11 +1070,11 @@
# verify the required parameter 'external_organization_id' is set
fail "Missing the required parameter 'external_organization_id' when calling get_organizations_externalorganization_id_notes" if external_organization_id.nil?
# resource path
- path = "/api/v1/externalcontacts/organizations/{externalOrganizationId}/notes".sub('{format}','json').sub('{' + 'externalOrganizationId' + '}', external_organization_id.to_s)
+ path = "/api/v2/externalcontacts/organizations/{externalOrganizationId}/notes".sub('{format}','json').sub('{' + 'externalOrganizationId' + '}', external_organization_id.to_s)
# query parameters
query_params = {}
query_params[:'pageSize'] = opts[:'page_size'] if opts[:'page_size']
query_params[:'pageNumber'] = opts[:'page_number'] if opts[:'page_number']
@@ -1136,11 +1136,11 @@
# verify the required parameter 'external_organization_id' is set
fail "Missing the required parameter 'external_organization_id' when calling post_organizations_externalorganization_id_notes" if external_organization_id.nil?
# resource path
- path = "/api/v1/externalcontacts/organizations/{externalOrganizationId}/notes".sub('{format}','json').sub('{' + 'externalOrganizationId' + '}', external_organization_id.to_s)
+ path = "/api/v2/externalcontacts/organizations/{externalOrganizationId}/notes".sub('{format}','json').sub('{' + 'externalOrganizationId' + '}', external_organization_id.to_s)
# query parameters
query_params = {}
# header parameters
@@ -1202,11 +1202,11 @@
# verify the required parameter 'note_id' is set
fail "Missing the required parameter 'note_id' when calling get_organizations_externalorganization_id_notes_note_id" if note_id.nil?
# resource path
- path = "/api/v1/externalcontacts/organizations/{externalOrganizationId}/notes/{noteId}".sub('{format}','json').sub('{' + 'externalOrganizationId' + '}', external_organization_id.to_s).sub('{' + 'noteId' + '}', note_id.to_s)
+ path = "/api/v2/externalcontacts/organizations/{externalOrganizationId}/notes/{noteId}".sub('{format}','json').sub('{' + 'externalOrganizationId' + '}', external_organization_id.to_s).sub('{' + 'noteId' + '}', note_id.to_s)
# query parameters
query_params = {}
# header parameters
@@ -1270,11 +1270,11 @@
# verify the required parameter 'note_id' is set
fail "Missing the required parameter 'note_id' when calling put_organizations_externalorganization_id_notes_note_id" if note_id.nil?
# resource path
- path = "/api/v1/externalcontacts/organizations/{externalOrganizationId}/notes/{noteId}".sub('{format}','json').sub('{' + 'externalOrganizationId' + '}', external_organization_id.to_s).sub('{' + 'noteId' + '}', note_id.to_s)
+ path = "/api/v2/externalcontacts/organizations/{externalOrganizationId}/notes/{noteId}".sub('{format}','json').sub('{' + 'externalOrganizationId' + '}', external_organization_id.to_s).sub('{' + 'noteId' + '}', note_id.to_s)
# query parameters
query_params = {}
# header parameters
@@ -1336,11 +1336,11 @@
# verify the required parameter 'note_id' is set
fail "Missing the required parameter 'note_id' when calling delete_organizations_externalorganization_id_notes_note_id" if note_id.nil?
# resource path
- path = "/api/v1/externalcontacts/organizations/{externalOrganizationId}/notes/{noteId}".sub('{format}','json').sub('{' + 'externalOrganizationId' + '}', external_organization_id.to_s).sub('{' + 'noteId' + '}', note_id.to_s)
+ path = "/api/v2/externalcontacts/organizations/{externalOrganizationId}/notes/{noteId}".sub('{format}','json').sub('{' + 'externalOrganizationId' + '}', external_organization_id.to_s).sub('{' + 'noteId' + '}', note_id.to_s)
# query parameters
query_params = {}
# header parameters
@@ -1402,11 +1402,11 @@
# verify the required parameter 'external_organization_id' is set
fail "Missing the required parameter 'external_organization_id' when calling get_organizations_externalorganization_id_relationships" if external_organization_id.nil?
# resource path
- path = "/api/v1/externalcontacts/organizations/{externalOrganizationId}/relationships".sub('{format}','json').sub('{' + 'externalOrganizationId' + '}', external_organization_id.to_s)
+ path = "/api/v2/externalcontacts/organizations/{externalOrganizationId}/relationships".sub('{format}','json').sub('{' + 'externalOrganizationId' + '}', external_organization_id.to_s)
# query parameters
query_params = {}
query_params[:'pageSize'] = opts[:'page_size'] if opts[:'page_size']
query_params[:'pageNumber'] = opts[:'page_number'] if opts[:'page_number']
@@ -1463,11 +1463,11 @@
if @api_client.config.debugging
@api_client.config.logger.debug "Calling API: ExternalContactsApi#post_relationships ..."
end
# resource path
- path = "/api/v1/externalcontacts/relationships".sub('{format}','json')
+ path = "/api/v2/externalcontacts/relationships".sub('{format}','json')
# query parameters
query_params = {}
# header parameters
@@ -1524,11 +1524,11 @@
# verify the required parameter 'relationship_id' is set
fail "Missing the required parameter 'relationship_id' when calling get_relationships_relationship_id" if relationship_id.nil?
# resource path
- path = "/api/v1/externalcontacts/relationships/{relationshipId}".sub('{format}','json').sub('{' + 'relationshipId' + '}', relationship_id.to_s)
+ path = "/api/v2/externalcontacts/relationships/{relationshipId}".sub('{format}','json').sub('{' + 'relationshipId' + '}', relationship_id.to_s)
# query parameters
query_params = {}
# header parameters
@@ -1587,11 +1587,11 @@
# verify the required parameter 'relationship_id' is set
fail "Missing the required parameter 'relationship_id' when calling put_relationships_relationship_id" if relationship_id.nil?
# resource path
- path = "/api/v1/externalcontacts/relationships/{relationshipId}".sub('{format}','json').sub('{' + 'relationshipId' + '}', relationship_id.to_s)
+ path = "/api/v2/externalcontacts/relationships/{relationshipId}".sub('{format}','json').sub('{' + 'relationshipId' + '}', relationship_id.to_s)
# query parameters
query_params = {}
# header parameters
@@ -1648,10 +1648,10 @@
# verify the required parameter 'relationship_id' is set
fail "Missing the required parameter 'relationship_id' when calling delete_relationships_relationship_id" if relationship_id.nil?
# resource path
- path = "/api/v1/externalcontacts/relationships/{relationshipId}".sub('{format}','json').sub('{' + 'relationshipId' + '}', relationship_id.to_s)
+ path = "/api/v2/externalcontacts/relationships/{relationshipId}".sub('{format}','json').sub('{' + 'relationshipId' + '}', relationship_id.to_s)
# query parameters
query_params = {}
# header parameters