crelate_client 1.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +7 -0
- data/Gemfile +7 -0
- data/Gemfile.lock +69 -0
- data/README.md +267 -0
- data/Rakefile +8 -0
- data/crelate_client-1.0.0.gem +0 -0
- data/crelate_client.gemspec +45 -0
- data/docs/AssignedTo.md +11 -0
- data/docs/AssignedToRequest.md +9 -0
- data/docs/BoardParameters.md +9 -0
- data/docs/BroadcastMessage.md +15 -0
- data/docs/BroadcastMessageCreateRequest.md +9 -0
- data/docs/CompaniesApi.md +921 -0
- data/docs/Company.md +11 -0
- data/docs/ComplianceSettingsPayload.md +8 -0
- data/docs/ConsentRequestPayload.md +9 -0
- data/docs/ContactsApi.md +1246 -0
- data/docs/CrelateAction.md +14 -0
- data/docs/CrelateActionPayload.md +10 -0
- data/docs/CrelateDetails.md +10 -0
- data/docs/CustomFormCompletedForm.md +11 -0
- data/docs/CustomFormDefinition.md +16 -0
- data/docs/CustomFormDefinitionEntities.md +9 -0
- data/docs/CustomFormFormDefinitionUsage.md +10 -0
- data/docs/CustomFormFormDefintionUsageJobs.md +9 -0
- data/docs/CustomFormFormFieldUsage.md +11 -0
- data/docs/CustomFormFormFieldUsageFormDefinition.md +10 -0
- data/docs/CustomFormLayoutSection.md +9 -0
- data/docs/CustomFormSaveResponse.md +12 -0
- data/docs/DocumentCollection.md +10 -0
- data/docs/DocumentItem.md +22 -0
- data/docs/DomainApi.md +198 -0
- data/docs/EmailAttachment.md +9 -0
- data/docs/EntityDocumentOptions.md +8 -0
- data/docs/EntityLookup.md +15 -0
- data/docs/ExtIntegrationResponseInterviewResponse.md +11 -0
- data/docs/ExtReferralRequest.md +12 -0
- data/docs/ExtResumeCandidate.md +21 -0
- data/docs/ExtResumeCareerBuilderValidateCredentialsResponse.md +9 -0
- data/docs/ExtResumeOrgState.md +27 -0
- data/docs/ExtResumePackagePricing.md +11 -0
- data/docs/ExtResumePackageUpdateRequest.md +9 -0
- data/docs/ExtResumeSearchResponse.md +9 -0
- data/docs/ExtResumeViewResponse.md +30 -0
- data/docs/FusebillStateItem.md +9 -0
- data/docs/GetDocumentListOptions.md +10 -0
- data/docs/InterviewRequest.md +9 -0
- data/docs/InterviewRequestDetails.md +15 -0
- data/docs/InterviewResponse.md +18 -0
- data/docs/JobPostRequest.md +9 -0
- data/docs/JobPostingsApi.md +378 -0
- data/docs/JobResponse.md +15 -0
- data/docs/JobsApi.md +1197 -0
- data/docs/MultiEntityLookup.md +8 -0
- data/docs/NotesApi.md +215 -0
- data/docs/OrgAuditLogEvent.md +22 -0
- data/docs/PostPurchaseRequest.md +12 -0
- data/docs/PublicApiAttachmentResponse.md +19 -0
- data/docs/PublicApiAttachmentResponseList.md +9 -0
- data/docs/PublicApiDocumentType.md +10 -0
- data/docs/PublicApiGetAccountResponse.md +85 -0
- data/docs/PublicApiGetAccountResponseList.md +9 -0
- data/docs/PublicApiGetContactJob.md +13 -0
- data/docs/PublicApiGetContactResponse.md +151 -0
- data/docs/PublicApiGetContactResponseList.md +9 -0
- data/docs/PublicApiGetJobContact.md +13 -0
- data/docs/PublicApiGetJobListResponse.md +9 -0
- data/docs/PublicApiGetJobPostingListResponse.md +9 -0
- data/docs/PublicApiGetJobPostingResponse.md +29 -0
- data/docs/PublicApiGetJobPostingSearchResponse.md +8 -0
- data/docs/PublicApiGetJobPostingSearchResult.md +18 -0
- data/docs/PublicApiGetJobResponse.md +127 -0
- data/docs/PublicApiGetNoteResponse.md +21 -0
- data/docs/PublicApiGetTaskResponse.md +23 -0
- data/docs/PublicApiIdResponse.md +8 -0
- data/docs/PublicApiPlacementResponse.md +32 -0
- data/docs/PublicApiPlacementResponseList.md +9 -0
- data/docs/PublicApiRecordOwner.md +10 -0
- data/docs/PublicApiSaveAccountRequest.md +74 -0
- data/docs/PublicApiSaveAttachmentRequest.md +13 -0
- data/docs/PublicApiSaveContactRequest.md +139 -0
- data/docs/PublicApiSaveJobApplicationRequest.md +13 -0
- data/docs/PublicApiSaveJobPostingRequest.md +19 -0
- data/docs/PublicApiSaveJobRequest.md +95 -0
- data/docs/PublicApiSaveJobRequestJobType.md +9 -0
- data/docs/PublicApiSaveNoteRequest.md +11 -0
- data/docs/PublicApiSaveTaskRequest.md +13 -0
- data/docs/PublicApiSaveWorkflowItemStatusRequest.md +9 -0
- data/docs/PublicApiTagCategory.md +9 -0
- data/docs/PublicApiWorkflowStatus.md +12 -0
- data/docs/PublicApiWorkflowType.md +9 -0
- data/docs/Question.md +13 -0
- data/docs/QuestionSetResponse.md +12 -0
- data/docs/SaveExtCredentialResponse.md +10 -0
- data/docs/SearchContact.md +11 -0
- data/docs/SendEmailResponse.md +13 -0
- data/docs/SendSubmittalDetail.md +11 -0
- data/docs/ShareLink.md +13 -0
- data/docs/SignupInformation.md +19 -0
- data/docs/SmsPlivoMessageReceivedRequest.md +15 -0
- data/docs/SmsPlivoMessageStatusReceivedRequest.md +17 -0
- data/docs/SmsPlivoVoiceAnswerRequest.md +13 -0
- data/docs/SmsPlivoVoiceHangupRequest.md +19 -0
- data/docs/SparkHireResponseInfoInterviewResponse.md +11 -0
- data/docs/SparkHireResponseInfoJobResponse.md +11 -0
- data/docs/SparkHireResponseInfoQuestionSetResponse.md +11 -0
- data/docs/TasksApi.md +215 -0
- data/docs/UserResponse.md +12 -0
- data/docs/WayupData.md +15 -0
- data/docs/WebhookDeleteResponse.md +8 -0
- data/docs/ZipApplyData.md +15 -0
- data/git_push.sh +55 -0
- data/lib/.DS_Store +0 -0
- data/lib/crelate_client/.DS_Store +0 -0
- data/lib/crelate_client/api/companies_api.rb +1151 -0
- data/lib/crelate_client/api/contacts_api.rb +1552 -0
- data/lib/crelate_client/api/domain_api.rb +239 -0
- data/lib/crelate_client/api/job_postings_api.rb +467 -0
- data/lib/crelate_client/api/jobs_api.rb +1494 -0
- data/lib/crelate_client/api/notes_api.rb +273 -0
- data/lib/crelate_client/api/tasks_api.rb +273 -0
- data/lib/crelate_client/api_client.rb +388 -0
- data/lib/crelate_client/api_error.rb +38 -0
- data/lib/crelate_client/configuration.rb +202 -0
- data/lib/crelate_client/models/assigned_to.rb +215 -0
- data/lib/crelate_client/models/assigned_to_request.rb +197 -0
- data/lib/crelate_client/models/board_parameters.rb +199 -0
- data/lib/crelate_client/models/broadcast_message.rb +284 -0
- data/lib/crelate_client/models/broadcast_message_create_request.rb +197 -0
- data/lib/crelate_client/models/company.rb +215 -0
- data/lib/crelate_client/models/compliance_settings_payload.rb +188 -0
- data/lib/crelate_client/models/consent_request_payload.rb +197 -0
- data/lib/crelate_client/models/crelate_action.rb +279 -0
- data/lib/crelate_client/models/crelate_action_payload.rb +210 -0
- data/lib/crelate_client/models/crelate_details.rb +206 -0
- data/lib/crelate_client/models/custom_form_completed_form.rb +221 -0
- data/lib/crelate_client/models/custom_form_definition.rb +264 -0
- data/lib/crelate_client/models/custom_form_definition_entities.rb +201 -0
- data/lib/crelate_client/models/custom_form_form_definition_usage.rb +210 -0
- data/lib/crelate_client/models/custom_form_form_defintion_usage_jobs.rb +197 -0
- data/lib/crelate_client/models/custom_form_form_field_usage.rb +221 -0
- data/lib/crelate_client/models/custom_form_form_field_usage_form_definition.rb +206 -0
- data/lib/crelate_client/models/custom_form_layout_section.rb +199 -0
- data/lib/crelate_client/models/custom_form_save_response.rb +259 -0
- data/lib/crelate_client/models/document_collection.rb +212 -0
- data/lib/crelate_client/models/document_item.rb +316 -0
- data/lib/crelate_client/models/email_attachment.rb +213 -0
- data/lib/crelate_client/models/entity_document_options.rb +188 -0
- data/lib/crelate_client/models/entity_lookup.rb +286 -0
- data/lib/crelate_client/models/ext_integration_response_interview_response.rb +217 -0
- data/lib/crelate_client/models/ext_referral_request.rb +224 -0
- data/lib/crelate_client/models/ext_resume_candidate.rb +342 -0
- data/lib/crelate_client/models/ext_resume_career_builder_validate_credentials_response.rb +197 -0
- data/lib/crelate_client/models/ext_resume_org_state.rb +404 -0
- data/lib/crelate_client/models/ext_resume_package_pricing.rb +215 -0
- data/lib/crelate_client/models/ext_resume_package_update_request.rb +230 -0
- data/lib/crelate_client/models/ext_resume_search_response.rb +199 -0
- data/lib/crelate_client/models/ext_resume_view_response.rb +421 -0
- data/lib/crelate_client/models/fusebill_state_item.rb +197 -0
- data/lib/crelate_client/models/get_document_list_options.rb +231 -0
- data/lib/crelate_client/models/interview_request.rb +199 -0
- data/lib/crelate_client/models/interview_request_details.rb +255 -0
- data/lib/crelate_client/models/interview_response.rb +311 -0
- data/lib/crelate_client/models/job_post_request.rb +197 -0
- data/lib/crelate_client/models/job_response.rb +251 -0
- data/lib/crelate_client/models/multi_entity_lookup.rb +190 -0
- data/lib/crelate_client/models/org_audit_log_event.rb +314 -0
- data/lib/crelate_client/models/post_purchase_request.rb +224 -0
- data/lib/crelate_client/models/public_api_attachment_response.rb +287 -0
- data/lib/crelate_client/models/public_api_attachment_response_list.rb +199 -0
- data/lib/crelate_client/models/public_api_document_type.rb +208 -0
- data/lib/crelate_client/models/public_api_get_account_response.rb +889 -0
- data/lib/crelate_client/models/public_api_get_account_response_list.rb +199 -0
- data/lib/crelate_client/models/public_api_get_contact_job.rb +233 -0
- data/lib/crelate_client/models/public_api_get_contact_response.rb +1485 -0
- data/lib/crelate_client/models/public_api_get_contact_response_list.rb +199 -0
- data/lib/crelate_client/models/public_api_get_job_contact.rb +233 -0
- data/lib/crelate_client/models/public_api_get_job_list_response.rb +199 -0
- data/lib/crelate_client/models/public_api_get_job_posting_list_response.rb +199 -0
- data/lib/crelate_client/models/public_api_get_job_posting_response.rb +379 -0
- data/lib/crelate_client/models/public_api_get_job_posting_search_response.rb +190 -0
- data/lib/crelate_client/models/public_api_get_job_posting_search_result.rb +278 -0
- data/lib/crelate_client/models/public_api_get_job_response.rb +1267 -0
- data/lib/crelate_client/models/public_api_get_note_response.rb +307 -0
- data/lib/crelate_client/models/public_api_get_task_response.rb +325 -0
- data/lib/crelate_client/models/public_api_id_response.rb +188 -0
- data/lib/crelate_client/models/public_api_placement_response.rb +404 -0
- data/lib/crelate_client/models/public_api_placement_response_list.rb +199 -0
- data/lib/crelate_client/models/public_api_record_owner.rb +206 -0
- data/lib/crelate_client/models/public_api_save_account_request.rb +786 -0
- data/lib/crelate_client/models/public_api_save_attachment_request.rb +233 -0
- data/lib/crelate_client/models/public_api_save_contact_request.rb +1373 -0
- data/lib/crelate_client/models/public_api_save_job_application_request.rb +233 -0
- data/lib/crelate_client/models/public_api_save_job_posting_request.rb +287 -0
- data/lib/crelate_client/models/public_api_save_job_request.rb +975 -0
- data/lib/crelate_client/models/public_api_save_job_request_job_type.rb +197 -0
- data/lib/crelate_client/models/public_api_save_note_request.rb +215 -0
- data/lib/crelate_client/models/public_api_save_task_request.rb +233 -0
- data/lib/crelate_client/models/public_api_save_workflow_item_status_request.rb +197 -0
- data/lib/crelate_client/models/public_api_tag_category.rb +197 -0
- data/lib/crelate_client/models/public_api_workflow_status.rb +224 -0
- data/lib/crelate_client/models/public_api_workflow_type.rb +197 -0
- data/lib/crelate_client/models/question.rb +233 -0
- data/lib/crelate_client/models/question_set_response.rb +226 -0
- data/lib/crelate_client/models/save_ext_credential_response.rb +206 -0
- data/lib/crelate_client/models/search_contact.rb +215 -0
- data/lib/crelate_client/models/send_email_response.rb +235 -0
- data/lib/crelate_client/models/send_submittal_detail.rb +217 -0
- data/lib/crelate_client/models/share_link.rb +266 -0
- data/lib/crelate_client/models/signup_information.rb +287 -0
- data/lib/crelate_client/models/sms_plivo_message_received_request.rb +251 -0
- data/lib/crelate_client/models/sms_plivo_message_status_received_request.rb +269 -0
- data/lib/crelate_client/models/sms_plivo_voice_answer_request.rb +233 -0
- data/lib/crelate_client/models/sms_plivo_voice_hangup_request.rb +287 -0
- data/lib/crelate_client/models/spark_hire_response_info_interview_response.rb +215 -0
- data/lib/crelate_client/models/spark_hire_response_info_job_response.rb +215 -0
- data/lib/crelate_client/models/spark_hire_response_info_question_set_response.rb +215 -0
- data/lib/crelate_client/models/user_response.rb +224 -0
- data/lib/crelate_client/models/wayup_data.rb +267 -0
- data/lib/crelate_client/models/webhook_delete_response.rb +188 -0
- data/lib/crelate_client/models/zip_apply_data.rb +267 -0
- data/lib/crelate_client/version.rb +15 -0
- data/lib/crelate_client.rb +143 -0
- data/spec/api/companies_api_spec.rb +273 -0
- data/spec/api/contacts_api_spec.rb +358 -0
- data/spec/api/domain_api_spec.rb +83 -0
- data/spec/api/job_postings_api_spec.rb +131 -0
- data/spec/api/jobs_api_spec.rb +346 -0
- data/spec/api/notes_api_spec.rb +88 -0
- data/spec/api/tasks_api_spec.rb +88 -0
- data/spec/api_client_spec.rb +226 -0
- data/spec/configuration_spec.rb +42 -0
- data/spec/models/assigned_to_request_spec.rb +48 -0
- data/spec/models/assigned_to_spec.rb +60 -0
- data/spec/models/board_parameters_spec.rb +48 -0
- data/spec/models/broadcast_message_create_request_spec.rb +48 -0
- data/spec/models/broadcast_message_spec.rb +88 -0
- data/spec/models/company_spec.rb +60 -0
- data/spec/models/compliance_settings_payload_spec.rb +42 -0
- data/spec/models/consent_request_payload_spec.rb +48 -0
- data/spec/models/crelate_action_payload_spec.rb +54 -0
- data/spec/models/crelate_action_spec.rb +82 -0
- data/spec/models/crelate_details_spec.rb +54 -0
- data/spec/models/custom_form_completed_form_spec.rb +60 -0
- data/spec/models/custom_form_definition_entities_spec.rb +48 -0
- data/spec/models/custom_form_definition_spec.rb +90 -0
- data/spec/models/custom_form_form_definition_usage_spec.rb +54 -0
- data/spec/models/custom_form_form_defintion_usage_jobs_spec.rb +48 -0
- data/spec/models/custom_form_form_field_usage_form_definition_spec.rb +54 -0
- data/spec/models/custom_form_form_field_usage_spec.rb +60 -0
- data/spec/models/custom_form_layout_section_spec.rb +48 -0
- data/spec/models/custom_form_save_response_spec.rb +70 -0
- data/spec/models/document_collection_spec.rb +54 -0
- data/spec/models/document_item_spec.rb +126 -0
- data/spec/models/email_attachment_spec.rb +48 -0
- data/spec/models/entity_document_options_spec.rb +42 -0
- data/spec/models/entity_lookup_spec.rb +88 -0
- data/spec/models/ext_integration_response_interview_response_spec.rb +60 -0
- data/spec/models/ext_referral_request_spec.rb +66 -0
- data/spec/models/ext_resume_candidate_spec.rb +124 -0
- data/spec/models/ext_resume_career_builder_validate_credentials_response_spec.rb +48 -0
- data/spec/models/ext_resume_org_state_spec.rb +164 -0
- data/spec/models/ext_resume_package_pricing_spec.rb +60 -0
- data/spec/models/ext_resume_package_update_request_spec.rb +52 -0
- data/spec/models/ext_resume_search_response_spec.rb +48 -0
- data/spec/models/ext_resume_view_response_spec.rb +178 -0
- data/spec/models/fusebill_state_item_spec.rb +48 -0
- data/spec/models/get_document_list_options_spec.rb +58 -0
- data/spec/models/interview_request_details_spec.rb +84 -0
- data/spec/models/interview_request_spec.rb +48 -0
- data/spec/models/interview_response_spec.rb +106 -0
- data/spec/models/job_post_request_spec.rb +48 -0
- data/spec/models/job_response_spec.rb +84 -0
- data/spec/models/multi_entity_lookup_spec.rb +42 -0
- data/spec/models/org_audit_log_event_spec.rb +126 -0
- data/spec/models/post_purchase_request_spec.rb +66 -0
- data/spec/models/public_api_attachment_response_list_spec.rb +48 -0
- data/spec/models/public_api_attachment_response_spec.rb +108 -0
- data/spec/models/public_api_document_type_spec.rb +54 -0
- data/spec/models/public_api_get_account_response_list_spec.rb +48 -0
- data/spec/models/public_api_get_account_response_spec.rb +504 -0
- data/spec/models/public_api_get_contact_job_spec.rb +72 -0
- data/spec/models/public_api_get_contact_response_list_spec.rb +48 -0
- data/spec/models/public_api_get_contact_response_spec.rb +900 -0
- data/spec/models/public_api_get_job_contact_spec.rb +72 -0
- data/spec/models/public_api_get_job_list_response_spec.rb +48 -0
- data/spec/models/public_api_get_job_posting_list_response_spec.rb +48 -0
- data/spec/models/public_api_get_job_posting_response_spec.rb +168 -0
- data/spec/models/public_api_get_job_posting_search_response_spec.rb +42 -0
- data/spec/models/public_api_get_job_posting_search_result_spec.rb +102 -0
- data/spec/models/public_api_get_job_response_spec.rb +756 -0
- data/spec/models/public_api_get_note_response_spec.rb +120 -0
- data/spec/models/public_api_get_task_response_spec.rb +132 -0
- data/spec/models/public_api_id_response_spec.rb +42 -0
- data/spec/models/public_api_placement_response_list_spec.rb +48 -0
- data/spec/models/public_api_placement_response_spec.rb +186 -0
- data/spec/models/public_api_record_owner_spec.rb +54 -0
- data/spec/models/public_api_save_account_request_spec.rb +438 -0
- data/spec/models/public_api_save_attachment_request_spec.rb +72 -0
- data/spec/models/public_api_save_contact_request_spec.rb +828 -0
- data/spec/models/public_api_save_job_application_request_spec.rb +72 -0
- data/spec/models/public_api_save_job_posting_request_spec.rb +108 -0
- data/spec/models/public_api_save_job_request_job_type_spec.rb +48 -0
- data/spec/models/public_api_save_job_request_spec.rb +564 -0
- data/spec/models/public_api_save_note_request_spec.rb +60 -0
- data/spec/models/public_api_save_task_request_spec.rb +72 -0
- data/spec/models/public_api_save_workflow_item_status_request_spec.rb +48 -0
- data/spec/models/public_api_tag_category_spec.rb +48 -0
- data/spec/models/public_api_workflow_status_spec.rb +66 -0
- data/spec/models/public_api_workflow_type_spec.rb +48 -0
- data/spec/models/question_set_response_spec.rb +66 -0
- data/spec/models/question_spec.rb +72 -0
- data/spec/models/save_ext_credential_response_spec.rb +54 -0
- data/spec/models/search_contact_spec.rb +60 -0
- data/spec/models/send_email_response_spec.rb +72 -0
- data/spec/models/send_submittal_detail_spec.rb +60 -0
- data/spec/models/share_link_spec.rb +76 -0
- data/spec/models/signup_information_spec.rb +108 -0
- data/spec/models/sms_plivo_message_received_request_spec.rb +84 -0
- data/spec/models/sms_plivo_message_status_received_request_spec.rb +96 -0
- data/spec/models/sms_plivo_voice_answer_request_spec.rb +72 -0
- data/spec/models/sms_plivo_voice_hangup_request_spec.rb +108 -0
- data/spec/models/spark_hire_response_info_interview_response_spec.rb +60 -0
- data/spec/models/spark_hire_response_info_job_response_spec.rb +60 -0
- data/spec/models/spark_hire_response_info_question_set_response_spec.rb +60 -0
- data/spec/models/user_response_spec.rb +66 -0
- data/spec/models/wayup_data_spec.rb +84 -0
- data/spec/models/webhook_delete_response_spec.rb +42 -0
- data/spec/models/zip_apply_data_spec.rb +84 -0
- data/spec/spec_helper.rb +111 -0
- metadata +654 -0
@@ -0,0 +1,1552 @@
|
|
1
|
+
=begin
|
2
|
+
#Crelate API Reference
|
3
|
+
|
4
|
+
#No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
|
5
|
+
|
6
|
+
OpenAPI spec version: v1
|
7
|
+
|
8
|
+
Generated by: https://github.com/swagger-api/swagger-codegen.git
|
9
|
+
Swagger Codegen version: 2.3.1
|
10
|
+
|
11
|
+
=end
|
12
|
+
|
13
|
+
require "uri"
|
14
|
+
|
15
|
+
module CrelateClient
|
16
|
+
class ContactsApi
|
17
|
+
attr_accessor :api_client
|
18
|
+
|
19
|
+
def initialize(api_client = ApiClient.default)
|
20
|
+
@api_client = api_client
|
21
|
+
end
|
22
|
+
|
23
|
+
# delete a contact
|
24
|
+
#
|
25
|
+
# @param contact_id identifier
|
26
|
+
# @param api_key crelate api key
|
27
|
+
# @param [Hash] opts the optional parameters
|
28
|
+
# @return [Object]
|
29
|
+
def public_api_delete_contact(contact_id, api_key, opts = {})
|
30
|
+
data, _status_code, _headers = public_api_delete_contact_with_http_info(contact_id, api_key, opts)
|
31
|
+
return data
|
32
|
+
end
|
33
|
+
|
34
|
+
# delete a contact
|
35
|
+
#
|
36
|
+
# @param contact_id identifier
|
37
|
+
# @param api_key crelate api key
|
38
|
+
# @param [Hash] opts the optional parameters
|
39
|
+
# @return [Array<(Object, Fixnum, Hash)>] Object data, response status code and response headers
|
40
|
+
def public_api_delete_contact_with_http_info(contact_id, api_key, opts = {})
|
41
|
+
if @api_client.config.debugging
|
42
|
+
@api_client.config.logger.debug "Calling API: ContactsApi.public_api_delete_contact ..."
|
43
|
+
end
|
44
|
+
# verify the required parameter 'contact_id' is set
|
45
|
+
if @api_client.config.client_side_validation && contact_id.nil?
|
46
|
+
fail ArgumentError, "Missing the required parameter 'contact_id' when calling ContactsApi.public_api_delete_contact"
|
47
|
+
end
|
48
|
+
# verify the required parameter 'api_key' is set
|
49
|
+
if @api_client.config.client_side_validation && api_key.nil?
|
50
|
+
fail ArgumentError, "Missing the required parameter 'api_key' when calling ContactsApi.public_api_delete_contact"
|
51
|
+
end
|
52
|
+
# resource path
|
53
|
+
local_var_path = "/api/pub/v1/contacts/{contactId}".sub('{' + 'contactId' + '}', contact_id.to_s)
|
54
|
+
|
55
|
+
# query parameters
|
56
|
+
query_params = {}
|
57
|
+
query_params[:'api_key'] = api_key
|
58
|
+
|
59
|
+
# header parameters
|
60
|
+
header_params = {}
|
61
|
+
# HTTP header 'Accept' (if needed)
|
62
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json', 'text/json'])
|
63
|
+
|
64
|
+
# form parameters
|
65
|
+
form_params = {}
|
66
|
+
|
67
|
+
# http body (model)
|
68
|
+
post_body = nil
|
69
|
+
auth_names = []
|
70
|
+
data, status_code, headers = @api_client.call_api(:DELETE, local_var_path,
|
71
|
+
:header_params => header_params,
|
72
|
+
:query_params => query_params,
|
73
|
+
:form_params => form_params,
|
74
|
+
:body => post_body,
|
75
|
+
:auth_names => auth_names,
|
76
|
+
:return_type => 'Object')
|
77
|
+
if @api_client.config.debugging
|
78
|
+
@api_client.config.logger.debug "API called: ContactsApi#public_api_delete_contact\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
79
|
+
end
|
80
|
+
return data, status_code, headers
|
81
|
+
end
|
82
|
+
|
83
|
+
# delete an attachment for a contact
|
84
|
+
#
|
85
|
+
# @param contact_id contact identifier
|
86
|
+
# @param attachment_id attachment identifier
|
87
|
+
# @param api_key crelate api key
|
88
|
+
# @param [Hash] opts the optional parameters
|
89
|
+
# @return [Object]
|
90
|
+
def public_api_delete_contact_attachment(contact_id, attachment_id, api_key, opts = {})
|
91
|
+
data, _status_code, _headers = public_api_delete_contact_attachment_with_http_info(contact_id, attachment_id, api_key, opts)
|
92
|
+
return data
|
93
|
+
end
|
94
|
+
|
95
|
+
# delete an attachment for a contact
|
96
|
+
#
|
97
|
+
# @param contact_id contact identifier
|
98
|
+
# @param attachment_id attachment identifier
|
99
|
+
# @param api_key crelate api key
|
100
|
+
# @param [Hash] opts the optional parameters
|
101
|
+
# @return [Array<(Object, Fixnum, Hash)>] Object data, response status code and response headers
|
102
|
+
def public_api_delete_contact_attachment_with_http_info(contact_id, attachment_id, api_key, opts = {})
|
103
|
+
if @api_client.config.debugging
|
104
|
+
@api_client.config.logger.debug "Calling API: ContactsApi.public_api_delete_contact_attachment ..."
|
105
|
+
end
|
106
|
+
# verify the required parameter 'contact_id' is set
|
107
|
+
if @api_client.config.client_side_validation && contact_id.nil?
|
108
|
+
fail ArgumentError, "Missing the required parameter 'contact_id' when calling ContactsApi.public_api_delete_contact_attachment"
|
109
|
+
end
|
110
|
+
# verify the required parameter 'attachment_id' is set
|
111
|
+
if @api_client.config.client_side_validation && attachment_id.nil?
|
112
|
+
fail ArgumentError, "Missing the required parameter 'attachment_id' when calling ContactsApi.public_api_delete_contact_attachment"
|
113
|
+
end
|
114
|
+
# verify the required parameter 'api_key' is set
|
115
|
+
if @api_client.config.client_side_validation && api_key.nil?
|
116
|
+
fail ArgumentError, "Missing the required parameter 'api_key' when calling ContactsApi.public_api_delete_contact_attachment"
|
117
|
+
end
|
118
|
+
# resource path
|
119
|
+
local_var_path = "/api/pub/v1/contacts/{contactId}/attachments/{attachmentId}".sub('{' + 'contactId' + '}', contact_id.to_s).sub('{' + 'attachmentId' + '}', attachment_id.to_s)
|
120
|
+
|
121
|
+
# query parameters
|
122
|
+
query_params = {}
|
123
|
+
query_params[:'api_key'] = api_key
|
124
|
+
|
125
|
+
# header parameters
|
126
|
+
header_params = {}
|
127
|
+
# HTTP header 'Accept' (if needed)
|
128
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json', 'text/json'])
|
129
|
+
|
130
|
+
# form parameters
|
131
|
+
form_params = {}
|
132
|
+
|
133
|
+
# http body (model)
|
134
|
+
post_body = nil
|
135
|
+
auth_names = []
|
136
|
+
data, status_code, headers = @api_client.call_api(:DELETE, local_var_path,
|
137
|
+
:header_params => header_params,
|
138
|
+
:query_params => query_params,
|
139
|
+
:form_params => form_params,
|
140
|
+
:body => post_body,
|
141
|
+
:auth_names => auth_names,
|
142
|
+
:return_type => 'Object')
|
143
|
+
if @api_client.config.debugging
|
144
|
+
@api_client.config.logger.debug "API called: ContactsApi#public_api_delete_contact_attachment\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
145
|
+
end
|
146
|
+
return data, status_code, headers
|
147
|
+
end
|
148
|
+
|
149
|
+
# delete a contact from a job for the recruiting workflow
|
150
|
+
#
|
151
|
+
# @param contact_id
|
152
|
+
# @param job_id
|
153
|
+
# @param api_key crelate api key
|
154
|
+
# @param [Hash] opts the optional parameters
|
155
|
+
# @return [Object]
|
156
|
+
def public_api_delete_contact_job(contact_id, job_id, api_key, opts = {})
|
157
|
+
data, _status_code, _headers = public_api_delete_contact_job_with_http_info(contact_id, job_id, api_key, opts)
|
158
|
+
return data
|
159
|
+
end
|
160
|
+
|
161
|
+
# delete a contact from a job for the recruiting workflow
|
162
|
+
#
|
163
|
+
# @param contact_id
|
164
|
+
# @param job_id
|
165
|
+
# @param api_key crelate api key
|
166
|
+
# @param [Hash] opts the optional parameters
|
167
|
+
# @return [Array<(Object, Fixnum, Hash)>] Object data, response status code and response headers
|
168
|
+
def public_api_delete_contact_job_with_http_info(contact_id, job_id, api_key, opts = {})
|
169
|
+
if @api_client.config.debugging
|
170
|
+
@api_client.config.logger.debug "Calling API: ContactsApi.public_api_delete_contact_job ..."
|
171
|
+
end
|
172
|
+
# verify the required parameter 'contact_id' is set
|
173
|
+
if @api_client.config.client_side_validation && contact_id.nil?
|
174
|
+
fail ArgumentError, "Missing the required parameter 'contact_id' when calling ContactsApi.public_api_delete_contact_job"
|
175
|
+
end
|
176
|
+
# verify the required parameter 'job_id' is set
|
177
|
+
if @api_client.config.client_side_validation && job_id.nil?
|
178
|
+
fail ArgumentError, "Missing the required parameter 'job_id' when calling ContactsApi.public_api_delete_contact_job"
|
179
|
+
end
|
180
|
+
# verify the required parameter 'api_key' is set
|
181
|
+
if @api_client.config.client_side_validation && api_key.nil?
|
182
|
+
fail ArgumentError, "Missing the required parameter 'api_key' when calling ContactsApi.public_api_delete_contact_job"
|
183
|
+
end
|
184
|
+
# resource path
|
185
|
+
local_var_path = "/api/pub/v1/contacts/{contactId}/jobs/{jobId}".sub('{' + 'contactId' + '}', contact_id.to_s).sub('{' + 'jobId' + '}', job_id.to_s)
|
186
|
+
|
187
|
+
# query parameters
|
188
|
+
query_params = {}
|
189
|
+
query_params[:'api_key'] = api_key
|
190
|
+
|
191
|
+
# header parameters
|
192
|
+
header_params = {}
|
193
|
+
# HTTP header 'Accept' (if needed)
|
194
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json', 'text/json'])
|
195
|
+
|
196
|
+
# form parameters
|
197
|
+
form_params = {}
|
198
|
+
|
199
|
+
# http body (model)
|
200
|
+
post_body = nil
|
201
|
+
auth_names = []
|
202
|
+
data, status_code, headers = @api_client.call_api(:DELETE, local_var_path,
|
203
|
+
:header_params => header_params,
|
204
|
+
:query_params => query_params,
|
205
|
+
:form_params => form_params,
|
206
|
+
:body => post_body,
|
207
|
+
:auth_names => auth_names,
|
208
|
+
:return_type => 'Object')
|
209
|
+
if @api_client.config.debugging
|
210
|
+
@api_client.config.logger.debug "API called: ContactsApi#public_api_delete_contact_job\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
211
|
+
end
|
212
|
+
return data, status_code, headers
|
213
|
+
end
|
214
|
+
|
215
|
+
# delete a note for a contact
|
216
|
+
#
|
217
|
+
# @param contact_id identifier
|
218
|
+
# @param note_id
|
219
|
+
# @param api_key crelate api key
|
220
|
+
# @param [Hash] opts the optional parameters
|
221
|
+
# @return [Object]
|
222
|
+
def public_api_delete_contact_note(contact_id, note_id, api_key, opts = {})
|
223
|
+
data, _status_code, _headers = public_api_delete_contact_note_with_http_info(contact_id, note_id, api_key, opts)
|
224
|
+
return data
|
225
|
+
end
|
226
|
+
|
227
|
+
# delete a note for a contact
|
228
|
+
#
|
229
|
+
# @param contact_id identifier
|
230
|
+
# @param note_id
|
231
|
+
# @param api_key crelate api key
|
232
|
+
# @param [Hash] opts the optional parameters
|
233
|
+
# @return [Array<(Object, Fixnum, Hash)>] Object data, response status code and response headers
|
234
|
+
def public_api_delete_contact_note_with_http_info(contact_id, note_id, api_key, opts = {})
|
235
|
+
if @api_client.config.debugging
|
236
|
+
@api_client.config.logger.debug "Calling API: ContactsApi.public_api_delete_contact_note ..."
|
237
|
+
end
|
238
|
+
# verify the required parameter 'contact_id' is set
|
239
|
+
if @api_client.config.client_side_validation && contact_id.nil?
|
240
|
+
fail ArgumentError, "Missing the required parameter 'contact_id' when calling ContactsApi.public_api_delete_contact_note"
|
241
|
+
end
|
242
|
+
# verify the required parameter 'note_id' is set
|
243
|
+
if @api_client.config.client_side_validation && note_id.nil?
|
244
|
+
fail ArgumentError, "Missing the required parameter 'note_id' when calling ContactsApi.public_api_delete_contact_note"
|
245
|
+
end
|
246
|
+
# verify the required parameter 'api_key' is set
|
247
|
+
if @api_client.config.client_side_validation && api_key.nil?
|
248
|
+
fail ArgumentError, "Missing the required parameter 'api_key' when calling ContactsApi.public_api_delete_contact_note"
|
249
|
+
end
|
250
|
+
# resource path
|
251
|
+
local_var_path = "/api/pub/v1/contacts/{contactId}/notes/{noteId}".sub('{' + 'contactId' + '}', contact_id.to_s).sub('{' + 'noteId' + '}', note_id.to_s)
|
252
|
+
|
253
|
+
# query parameters
|
254
|
+
query_params = {}
|
255
|
+
query_params[:'api_key'] = api_key
|
256
|
+
|
257
|
+
# header parameters
|
258
|
+
header_params = {}
|
259
|
+
# HTTP header 'Accept' (if needed)
|
260
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json', 'text/json'])
|
261
|
+
|
262
|
+
# form parameters
|
263
|
+
form_params = {}
|
264
|
+
|
265
|
+
# http body (model)
|
266
|
+
post_body = nil
|
267
|
+
auth_names = []
|
268
|
+
data, status_code, headers = @api_client.call_api(:DELETE, local_var_path,
|
269
|
+
:header_params => header_params,
|
270
|
+
:query_params => query_params,
|
271
|
+
:form_params => form_params,
|
272
|
+
:body => post_body,
|
273
|
+
:auth_names => auth_names,
|
274
|
+
:return_type => 'Object')
|
275
|
+
if @api_client.config.debugging
|
276
|
+
@api_client.config.logger.debug "API called: ContactsApi#public_api_delete_contact_note\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
277
|
+
end
|
278
|
+
return data, status_code, headers
|
279
|
+
end
|
280
|
+
|
281
|
+
# delete a task for a contact
|
282
|
+
#
|
283
|
+
# @param contact_id identifier
|
284
|
+
# @param task_id
|
285
|
+
# @param api_key crelate api key
|
286
|
+
# @param [Hash] opts the optional parameters
|
287
|
+
# @return [Object]
|
288
|
+
def public_api_delete_contact_task(contact_id, task_id, api_key, opts = {})
|
289
|
+
data, _status_code, _headers = public_api_delete_contact_task_with_http_info(contact_id, task_id, api_key, opts)
|
290
|
+
return data
|
291
|
+
end
|
292
|
+
|
293
|
+
# delete a task for a contact
|
294
|
+
#
|
295
|
+
# @param contact_id identifier
|
296
|
+
# @param task_id
|
297
|
+
# @param api_key crelate api key
|
298
|
+
# @param [Hash] opts the optional parameters
|
299
|
+
# @return [Array<(Object, Fixnum, Hash)>] Object data, response status code and response headers
|
300
|
+
def public_api_delete_contact_task_with_http_info(contact_id, task_id, api_key, opts = {})
|
301
|
+
if @api_client.config.debugging
|
302
|
+
@api_client.config.logger.debug "Calling API: ContactsApi.public_api_delete_contact_task ..."
|
303
|
+
end
|
304
|
+
# verify the required parameter 'contact_id' is set
|
305
|
+
if @api_client.config.client_side_validation && contact_id.nil?
|
306
|
+
fail ArgumentError, "Missing the required parameter 'contact_id' when calling ContactsApi.public_api_delete_contact_task"
|
307
|
+
end
|
308
|
+
# verify the required parameter 'task_id' is set
|
309
|
+
if @api_client.config.client_side_validation && task_id.nil?
|
310
|
+
fail ArgumentError, "Missing the required parameter 'task_id' when calling ContactsApi.public_api_delete_contact_task"
|
311
|
+
end
|
312
|
+
# verify the required parameter 'api_key' is set
|
313
|
+
if @api_client.config.client_side_validation && api_key.nil?
|
314
|
+
fail ArgumentError, "Missing the required parameter 'api_key' when calling ContactsApi.public_api_delete_contact_task"
|
315
|
+
end
|
316
|
+
# resource path
|
317
|
+
local_var_path = "/api/pub/v1/contacts/{contactId}/tasks/{taskId}".sub('{' + 'contactId' + '}', contact_id.to_s).sub('{' + 'taskId' + '}', task_id.to_s)
|
318
|
+
|
319
|
+
# query parameters
|
320
|
+
query_params = {}
|
321
|
+
query_params[:'api_key'] = api_key
|
322
|
+
|
323
|
+
# header parameters
|
324
|
+
header_params = {}
|
325
|
+
# HTTP header 'Accept' (if needed)
|
326
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json', 'text/json'])
|
327
|
+
|
328
|
+
# form parameters
|
329
|
+
form_params = {}
|
330
|
+
|
331
|
+
# http body (model)
|
332
|
+
post_body = nil
|
333
|
+
auth_names = []
|
334
|
+
data, status_code, headers = @api_client.call_api(:DELETE, local_var_path,
|
335
|
+
:header_params => header_params,
|
336
|
+
:query_params => query_params,
|
337
|
+
:form_params => form_params,
|
338
|
+
:body => post_body,
|
339
|
+
:auth_names => auth_names,
|
340
|
+
:return_type => 'Object')
|
341
|
+
if @api_client.config.debugging
|
342
|
+
@api_client.config.logger.debug "API called: ContactsApi#public_api_delete_contact_task\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
343
|
+
end
|
344
|
+
return data, status_code, headers
|
345
|
+
end
|
346
|
+
|
347
|
+
# retrieve a contact by id
|
348
|
+
#
|
349
|
+
# @param contact_id identifier
|
350
|
+
# @param api_key crelate api key
|
351
|
+
# @param [Hash] opts the optional parameters
|
352
|
+
# @return [PublicApiGetContactResponse]
|
353
|
+
def public_api_get_contact(contact_id, api_key, opts = {})
|
354
|
+
data, _status_code, _headers = public_api_get_contact_with_http_info(contact_id, api_key, opts)
|
355
|
+
return data
|
356
|
+
end
|
357
|
+
|
358
|
+
# retrieve a contact by id
|
359
|
+
#
|
360
|
+
# @param contact_id identifier
|
361
|
+
# @param api_key crelate api key
|
362
|
+
# @param [Hash] opts the optional parameters
|
363
|
+
# @return [Array<(PublicApiGetContactResponse, Fixnum, Hash)>] PublicApiGetContactResponse data, response status code and response headers
|
364
|
+
def public_api_get_contact_with_http_info(contact_id, api_key, opts = {})
|
365
|
+
if @api_client.config.debugging
|
366
|
+
@api_client.config.logger.debug "Calling API: ContactsApi.public_api_get_contact ..."
|
367
|
+
end
|
368
|
+
# verify the required parameter 'contact_id' is set
|
369
|
+
if @api_client.config.client_side_validation && contact_id.nil?
|
370
|
+
fail ArgumentError, "Missing the required parameter 'contact_id' when calling ContactsApi.public_api_get_contact"
|
371
|
+
end
|
372
|
+
# verify the required parameter 'api_key' is set
|
373
|
+
if @api_client.config.client_side_validation && api_key.nil?
|
374
|
+
fail ArgumentError, "Missing the required parameter 'api_key' when calling ContactsApi.public_api_get_contact"
|
375
|
+
end
|
376
|
+
# resource path
|
377
|
+
local_var_path = "/api/pub/v1/contacts/{contactId}".sub('{' + 'contactId' + '}', contact_id.to_s)
|
378
|
+
|
379
|
+
# query parameters
|
380
|
+
query_params = {}
|
381
|
+
query_params[:'api_key'] = api_key
|
382
|
+
|
383
|
+
# header parameters
|
384
|
+
header_params = {}
|
385
|
+
# HTTP header 'Accept' (if needed)
|
386
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json', 'text/json'])
|
387
|
+
|
388
|
+
# form parameters
|
389
|
+
form_params = {}
|
390
|
+
|
391
|
+
# http body (model)
|
392
|
+
post_body = nil
|
393
|
+
auth_names = []
|
394
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path,
|
395
|
+
:header_params => header_params,
|
396
|
+
:query_params => query_params,
|
397
|
+
:form_params => form_params,
|
398
|
+
:body => post_body,
|
399
|
+
:auth_names => auth_names,
|
400
|
+
:return_type => 'PublicApiGetContactResponse')
|
401
|
+
if @api_client.config.debugging
|
402
|
+
@api_client.config.logger.debug "API called: ContactsApi#public_api_get_contact\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
403
|
+
end
|
404
|
+
return data, status_code, headers
|
405
|
+
end
|
406
|
+
|
407
|
+
# get the content of a specific attachment for a contact
|
408
|
+
#
|
409
|
+
# @param contact_id identifier
|
410
|
+
# @param attachment_id attachment identifier
|
411
|
+
# @param api_key crelate api key
|
412
|
+
# @param [Hash] opts the optional parameters
|
413
|
+
# @return [Object]
|
414
|
+
def public_api_get_contact_attachment(contact_id, attachment_id, api_key, opts = {})
|
415
|
+
data, _status_code, _headers = public_api_get_contact_attachment_with_http_info(contact_id, attachment_id, api_key, opts)
|
416
|
+
return data
|
417
|
+
end
|
418
|
+
|
419
|
+
# get the content of a specific attachment for a contact
|
420
|
+
#
|
421
|
+
# @param contact_id identifier
|
422
|
+
# @param attachment_id attachment identifier
|
423
|
+
# @param api_key crelate api key
|
424
|
+
# @param [Hash] opts the optional parameters
|
425
|
+
# @return [Array<(Object, Fixnum, Hash)>] Object data, response status code and response headers
|
426
|
+
def public_api_get_contact_attachment_with_http_info(contact_id, attachment_id, api_key, opts = {})
|
427
|
+
if @api_client.config.debugging
|
428
|
+
@api_client.config.logger.debug "Calling API: ContactsApi.public_api_get_contact_attachment ..."
|
429
|
+
end
|
430
|
+
# verify the required parameter 'contact_id' is set
|
431
|
+
if @api_client.config.client_side_validation && contact_id.nil?
|
432
|
+
fail ArgumentError, "Missing the required parameter 'contact_id' when calling ContactsApi.public_api_get_contact_attachment"
|
433
|
+
end
|
434
|
+
# verify the required parameter 'attachment_id' is set
|
435
|
+
if @api_client.config.client_side_validation && attachment_id.nil?
|
436
|
+
fail ArgumentError, "Missing the required parameter 'attachment_id' when calling ContactsApi.public_api_get_contact_attachment"
|
437
|
+
end
|
438
|
+
# verify the required parameter 'api_key' is set
|
439
|
+
if @api_client.config.client_side_validation && api_key.nil?
|
440
|
+
fail ArgumentError, "Missing the required parameter 'api_key' when calling ContactsApi.public_api_get_contact_attachment"
|
441
|
+
end
|
442
|
+
# resource path
|
443
|
+
local_var_path = "/api/pub/v1/contacts/{contactId}/attachments/{attachmentId}".sub('{' + 'contactId' + '}', contact_id.to_s).sub('{' + 'attachmentId' + '}', attachment_id.to_s)
|
444
|
+
|
445
|
+
# query parameters
|
446
|
+
query_params = {}
|
447
|
+
query_params[:'api_key'] = api_key
|
448
|
+
|
449
|
+
# header parameters
|
450
|
+
header_params = {}
|
451
|
+
# HTTP header 'Accept' (if needed)
|
452
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json', 'text/json'])
|
453
|
+
|
454
|
+
# form parameters
|
455
|
+
form_params = {}
|
456
|
+
|
457
|
+
# http body (model)
|
458
|
+
post_body = nil
|
459
|
+
auth_names = []
|
460
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path,
|
461
|
+
:header_params => header_params,
|
462
|
+
:query_params => query_params,
|
463
|
+
:form_params => form_params,
|
464
|
+
:body => post_body,
|
465
|
+
:auth_names => auth_names,
|
466
|
+
:return_type => 'Object')
|
467
|
+
if @api_client.config.debugging
|
468
|
+
@api_client.config.logger.debug "API called: ContactsApi#public_api_get_contact_attachment\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
469
|
+
end
|
470
|
+
return data, status_code, headers
|
471
|
+
end
|
472
|
+
|
473
|
+
# get all attachment metadata for a contact
|
474
|
+
#
|
475
|
+
# @param contact_id
|
476
|
+
# @param api_key crelate api key
|
477
|
+
# @param [Hash] opts the optional parameters
|
478
|
+
# @return [PublicApiAttachmentResponseList]
|
479
|
+
def public_api_get_contact_attachments(contact_id, api_key, opts = {})
|
480
|
+
data, _status_code, _headers = public_api_get_contact_attachments_with_http_info(contact_id, api_key, opts)
|
481
|
+
return data
|
482
|
+
end
|
483
|
+
|
484
|
+
# get all attachment metadata for a contact
|
485
|
+
#
|
486
|
+
# @param contact_id
|
487
|
+
# @param api_key crelate api key
|
488
|
+
# @param [Hash] opts the optional parameters
|
489
|
+
# @return [Array<(PublicApiAttachmentResponseList, Fixnum, Hash)>] PublicApiAttachmentResponseList data, response status code and response headers
|
490
|
+
def public_api_get_contact_attachments_with_http_info(contact_id, api_key, opts = {})
|
491
|
+
if @api_client.config.debugging
|
492
|
+
@api_client.config.logger.debug "Calling API: ContactsApi.public_api_get_contact_attachments ..."
|
493
|
+
end
|
494
|
+
# verify the required parameter 'contact_id' is set
|
495
|
+
if @api_client.config.client_side_validation && contact_id.nil?
|
496
|
+
fail ArgumentError, "Missing the required parameter 'contact_id' when calling ContactsApi.public_api_get_contact_attachments"
|
497
|
+
end
|
498
|
+
# verify the required parameter 'api_key' is set
|
499
|
+
if @api_client.config.client_side_validation && api_key.nil?
|
500
|
+
fail ArgumentError, "Missing the required parameter 'api_key' when calling ContactsApi.public_api_get_contact_attachments"
|
501
|
+
end
|
502
|
+
# resource path
|
503
|
+
local_var_path = "/api/pub/v1/contacts/{contactId}/attachments".sub('{' + 'contactId' + '}', contact_id.to_s)
|
504
|
+
|
505
|
+
# query parameters
|
506
|
+
query_params = {}
|
507
|
+
query_params[:'api_key'] = api_key
|
508
|
+
|
509
|
+
# header parameters
|
510
|
+
header_params = {}
|
511
|
+
# HTTP header 'Accept' (if needed)
|
512
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json', 'text/json'])
|
513
|
+
|
514
|
+
# form parameters
|
515
|
+
form_params = {}
|
516
|
+
|
517
|
+
# http body (model)
|
518
|
+
post_body = nil
|
519
|
+
auth_names = []
|
520
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path,
|
521
|
+
:header_params => header_params,
|
522
|
+
:query_params => query_params,
|
523
|
+
:form_params => form_params,
|
524
|
+
:body => post_body,
|
525
|
+
:auth_names => auth_names,
|
526
|
+
:return_type => 'PublicApiAttachmentResponseList')
|
527
|
+
if @api_client.config.debugging
|
528
|
+
@api_client.config.logger.debug "API called: ContactsApi#public_api_get_contact_attachments\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
529
|
+
end
|
530
|
+
return data, status_code, headers
|
531
|
+
end
|
532
|
+
|
533
|
+
# get jobs for a contact
|
534
|
+
#
|
535
|
+
# @param contact_id contact identifier
|
536
|
+
# @param api_key crelate api key
|
537
|
+
# @param [Hash] opts the optional parameters
|
538
|
+
# @return [Array<PublicApiGetContactJob>]
|
539
|
+
def public_api_get_contact_jobs(contact_id, api_key, opts = {})
|
540
|
+
data, _status_code, _headers = public_api_get_contact_jobs_with_http_info(contact_id, api_key, opts)
|
541
|
+
return data
|
542
|
+
end
|
543
|
+
|
544
|
+
# get jobs for a contact
|
545
|
+
#
|
546
|
+
# @param contact_id contact identifier
|
547
|
+
# @param api_key crelate api key
|
548
|
+
# @param [Hash] opts the optional parameters
|
549
|
+
# @return [Array<(Array<PublicApiGetContactJob>, Fixnum, Hash)>] Array<PublicApiGetContactJob> data, response status code and response headers
|
550
|
+
def public_api_get_contact_jobs_with_http_info(contact_id, api_key, opts = {})
|
551
|
+
if @api_client.config.debugging
|
552
|
+
@api_client.config.logger.debug "Calling API: ContactsApi.public_api_get_contact_jobs ..."
|
553
|
+
end
|
554
|
+
# verify the required parameter 'contact_id' is set
|
555
|
+
if @api_client.config.client_side_validation && contact_id.nil?
|
556
|
+
fail ArgumentError, "Missing the required parameter 'contact_id' when calling ContactsApi.public_api_get_contact_jobs"
|
557
|
+
end
|
558
|
+
# verify the required parameter 'api_key' is set
|
559
|
+
if @api_client.config.client_side_validation && api_key.nil?
|
560
|
+
fail ArgumentError, "Missing the required parameter 'api_key' when calling ContactsApi.public_api_get_contact_jobs"
|
561
|
+
end
|
562
|
+
# resource path
|
563
|
+
local_var_path = "/api/pub/v1/contacts/{contactId}/jobs".sub('{' + 'contactId' + '}', contact_id.to_s)
|
564
|
+
|
565
|
+
# query parameters
|
566
|
+
query_params = {}
|
567
|
+
query_params[:'api_key'] = api_key
|
568
|
+
|
569
|
+
# header parameters
|
570
|
+
header_params = {}
|
571
|
+
# HTTP header 'Accept' (if needed)
|
572
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json', 'text/json'])
|
573
|
+
|
574
|
+
# form parameters
|
575
|
+
form_params = {}
|
576
|
+
|
577
|
+
# http body (model)
|
578
|
+
post_body = nil
|
579
|
+
auth_names = []
|
580
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path,
|
581
|
+
:header_params => header_params,
|
582
|
+
:query_params => query_params,
|
583
|
+
:form_params => form_params,
|
584
|
+
:body => post_body,
|
585
|
+
:auth_names => auth_names,
|
586
|
+
:return_type => 'Array<PublicApiGetContactJob>')
|
587
|
+
if @api_client.config.debugging
|
588
|
+
@api_client.config.logger.debug "API called: ContactsApi#public_api_get_contact_jobs\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
589
|
+
end
|
590
|
+
return data, status_code, headers
|
591
|
+
end
|
592
|
+
|
593
|
+
# get a note for a contact
|
594
|
+
#
|
595
|
+
# @param contact_id identifier
|
596
|
+
# @param note_id
|
597
|
+
# @param api_key crelate api key
|
598
|
+
# @param [Hash] opts the optional parameters
|
599
|
+
# @return [PublicApiGetNoteResponse]
|
600
|
+
def public_api_get_contact_note(contact_id, note_id, api_key, opts = {})
|
601
|
+
data, _status_code, _headers = public_api_get_contact_note_with_http_info(contact_id, note_id, api_key, opts)
|
602
|
+
return data
|
603
|
+
end
|
604
|
+
|
605
|
+
# get a note for a contact
|
606
|
+
#
|
607
|
+
# @param contact_id identifier
|
608
|
+
# @param note_id
|
609
|
+
# @param api_key crelate api key
|
610
|
+
# @param [Hash] opts the optional parameters
|
611
|
+
# @return [Array<(PublicApiGetNoteResponse, Fixnum, Hash)>] PublicApiGetNoteResponse data, response status code and response headers
|
612
|
+
def public_api_get_contact_note_with_http_info(contact_id, note_id, api_key, opts = {})
|
613
|
+
if @api_client.config.debugging
|
614
|
+
@api_client.config.logger.debug "Calling API: ContactsApi.public_api_get_contact_note ..."
|
615
|
+
end
|
616
|
+
# verify the required parameter 'contact_id' is set
|
617
|
+
if @api_client.config.client_side_validation && contact_id.nil?
|
618
|
+
fail ArgumentError, "Missing the required parameter 'contact_id' when calling ContactsApi.public_api_get_contact_note"
|
619
|
+
end
|
620
|
+
# verify the required parameter 'note_id' is set
|
621
|
+
if @api_client.config.client_side_validation && note_id.nil?
|
622
|
+
fail ArgumentError, "Missing the required parameter 'note_id' when calling ContactsApi.public_api_get_contact_note"
|
623
|
+
end
|
624
|
+
# verify the required parameter 'api_key' is set
|
625
|
+
if @api_client.config.client_side_validation && api_key.nil?
|
626
|
+
fail ArgumentError, "Missing the required parameter 'api_key' when calling ContactsApi.public_api_get_contact_note"
|
627
|
+
end
|
628
|
+
# resource path
|
629
|
+
local_var_path = "/api/pub/v1/contacts/{contactId}/notes/{noteId}".sub('{' + 'contactId' + '}', contact_id.to_s).sub('{' + 'noteId' + '}', note_id.to_s)
|
630
|
+
|
631
|
+
# query parameters
|
632
|
+
query_params = {}
|
633
|
+
query_params[:'api_key'] = api_key
|
634
|
+
|
635
|
+
# header parameters
|
636
|
+
header_params = {}
|
637
|
+
# HTTP header 'Accept' (if needed)
|
638
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json', 'text/json'])
|
639
|
+
|
640
|
+
# form parameters
|
641
|
+
form_params = {}
|
642
|
+
|
643
|
+
# http body (model)
|
644
|
+
post_body = nil
|
645
|
+
auth_names = []
|
646
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path,
|
647
|
+
:header_params => header_params,
|
648
|
+
:query_params => query_params,
|
649
|
+
:form_params => form_params,
|
650
|
+
:body => post_body,
|
651
|
+
:auth_names => auth_names,
|
652
|
+
:return_type => 'PublicApiGetNoteResponse')
|
653
|
+
if @api_client.config.debugging
|
654
|
+
@api_client.config.logger.debug "API called: ContactsApi#public_api_get_contact_note\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
655
|
+
end
|
656
|
+
return data, status_code, headers
|
657
|
+
end
|
658
|
+
|
659
|
+
# Get placements associated with a job Please Note: TimeToFill is the amount of Days it took to fill the position
|
660
|
+
#
|
661
|
+
# @param contact_id id for job
|
662
|
+
# @param api_key crelate api key
|
663
|
+
# @param [Hash] opts the optional parameters
|
664
|
+
# @option opts [Integer] :skip skip number of records, default 0
|
665
|
+
# @option opts [Integer] :take retrieve x amount of records, limit 500, default 50
|
666
|
+
# @return [PublicApiPlacementResponseList]
|
667
|
+
def public_api_get_contact_placements(contact_id, api_key, opts = {})
|
668
|
+
data, _status_code, _headers = public_api_get_contact_placements_with_http_info(contact_id, api_key, opts)
|
669
|
+
return data
|
670
|
+
end
|
671
|
+
|
672
|
+
# Get placements associated with a job Please Note: TimeToFill is the amount of Days it took to fill the position
|
673
|
+
#
|
674
|
+
# @param contact_id id for job
|
675
|
+
# @param api_key crelate api key
|
676
|
+
# @param [Hash] opts the optional parameters
|
677
|
+
# @option opts [Integer] :skip skip number of records, default 0
|
678
|
+
# @option opts [Integer] :take retrieve x amount of records, limit 500, default 50
|
679
|
+
# @return [Array<(PublicApiPlacementResponseList, Fixnum, Hash)>] PublicApiPlacementResponseList data, response status code and response headers
|
680
|
+
def public_api_get_contact_placements_with_http_info(contact_id, api_key, opts = {})
|
681
|
+
if @api_client.config.debugging
|
682
|
+
@api_client.config.logger.debug "Calling API: ContactsApi.public_api_get_contact_placements ..."
|
683
|
+
end
|
684
|
+
# verify the required parameter 'contact_id' is set
|
685
|
+
if @api_client.config.client_side_validation && contact_id.nil?
|
686
|
+
fail ArgumentError, "Missing the required parameter 'contact_id' when calling ContactsApi.public_api_get_contact_placements"
|
687
|
+
end
|
688
|
+
# verify the required parameter 'api_key' is set
|
689
|
+
if @api_client.config.client_side_validation && api_key.nil?
|
690
|
+
fail ArgumentError, "Missing the required parameter 'api_key' when calling ContactsApi.public_api_get_contact_placements"
|
691
|
+
end
|
692
|
+
# resource path
|
693
|
+
local_var_path = "/api/pub/v1/contacts/{contactId}/placements".sub('{' + 'contactId' + '}', contact_id.to_s)
|
694
|
+
|
695
|
+
# query parameters
|
696
|
+
query_params = {}
|
697
|
+
query_params[:'api_key'] = api_key
|
698
|
+
query_params[:'skip'] = opts[:'skip'] if !opts[:'skip'].nil?
|
699
|
+
query_params[:'take'] = opts[:'take'] if !opts[:'take'].nil?
|
700
|
+
|
701
|
+
# header parameters
|
702
|
+
header_params = {}
|
703
|
+
# HTTP header 'Accept' (if needed)
|
704
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json', 'text/json'])
|
705
|
+
|
706
|
+
# form parameters
|
707
|
+
form_params = {}
|
708
|
+
|
709
|
+
# http body (model)
|
710
|
+
post_body = nil
|
711
|
+
auth_names = []
|
712
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path,
|
713
|
+
:header_params => header_params,
|
714
|
+
:query_params => query_params,
|
715
|
+
:form_params => form_params,
|
716
|
+
:body => post_body,
|
717
|
+
:auth_names => auth_names,
|
718
|
+
:return_type => 'PublicApiPlacementResponseList')
|
719
|
+
if @api_client.config.debugging
|
720
|
+
@api_client.config.logger.debug "API called: ContactsApi#public_api_get_contact_placements\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
721
|
+
end
|
722
|
+
return data, status_code, headers
|
723
|
+
end
|
724
|
+
|
725
|
+
# get a task for a contact
|
726
|
+
#
|
727
|
+
# @param contact_id identifier
|
728
|
+
# @param task_id task identifier
|
729
|
+
# @param api_key crelate api key
|
730
|
+
# @param [Hash] opts the optional parameters
|
731
|
+
# @return [PublicApiGetTaskResponse]
|
732
|
+
def public_api_get_contact_task(contact_id, task_id, api_key, opts = {})
|
733
|
+
data, _status_code, _headers = public_api_get_contact_task_with_http_info(contact_id, task_id, api_key, opts)
|
734
|
+
return data
|
735
|
+
end
|
736
|
+
|
737
|
+
# get a task for a contact
|
738
|
+
#
|
739
|
+
# @param contact_id identifier
|
740
|
+
# @param task_id task identifier
|
741
|
+
# @param api_key crelate api key
|
742
|
+
# @param [Hash] opts the optional parameters
|
743
|
+
# @return [Array<(PublicApiGetTaskResponse, Fixnum, Hash)>] PublicApiGetTaskResponse data, response status code and response headers
|
744
|
+
def public_api_get_contact_task_with_http_info(contact_id, task_id, api_key, opts = {})
|
745
|
+
if @api_client.config.debugging
|
746
|
+
@api_client.config.logger.debug "Calling API: ContactsApi.public_api_get_contact_task ..."
|
747
|
+
end
|
748
|
+
# verify the required parameter 'contact_id' is set
|
749
|
+
if @api_client.config.client_side_validation && contact_id.nil?
|
750
|
+
fail ArgumentError, "Missing the required parameter 'contact_id' when calling ContactsApi.public_api_get_contact_task"
|
751
|
+
end
|
752
|
+
# verify the required parameter 'task_id' is set
|
753
|
+
if @api_client.config.client_side_validation && task_id.nil?
|
754
|
+
fail ArgumentError, "Missing the required parameter 'task_id' when calling ContactsApi.public_api_get_contact_task"
|
755
|
+
end
|
756
|
+
# verify the required parameter 'api_key' is set
|
757
|
+
if @api_client.config.client_side_validation && api_key.nil?
|
758
|
+
fail ArgumentError, "Missing the required parameter 'api_key' when calling ContactsApi.public_api_get_contact_task"
|
759
|
+
end
|
760
|
+
# resource path
|
761
|
+
local_var_path = "/api/pub/v1/contacts/{contactId}/tasks/{taskId}".sub('{' + 'contactId' + '}', contact_id.to_s).sub('{' + 'taskId' + '}', task_id.to_s)
|
762
|
+
|
763
|
+
# query parameters
|
764
|
+
query_params = {}
|
765
|
+
query_params[:'api_key'] = api_key
|
766
|
+
|
767
|
+
# header parameters
|
768
|
+
header_params = {}
|
769
|
+
# HTTP header 'Accept' (if needed)
|
770
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json', 'text/json'])
|
771
|
+
|
772
|
+
# form parameters
|
773
|
+
form_params = {}
|
774
|
+
|
775
|
+
# http body (model)
|
776
|
+
post_body = nil
|
777
|
+
auth_names = []
|
778
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path,
|
779
|
+
:header_params => header_params,
|
780
|
+
:query_params => query_params,
|
781
|
+
:form_params => form_params,
|
782
|
+
:body => post_body,
|
783
|
+
:auth_names => auth_names,
|
784
|
+
:return_type => 'PublicApiGetTaskResponse')
|
785
|
+
if @api_client.config.debugging
|
786
|
+
@api_client.config.logger.debug "API called: ContactsApi#public_api_get_contact_task\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
787
|
+
end
|
788
|
+
return data, status_code, headers
|
789
|
+
end
|
790
|
+
|
791
|
+
# retrieve a list of contact updated within a certain time frame
|
792
|
+
#
|
793
|
+
# @param modified modified within x number of minutes
|
794
|
+
# @param api_key crelate api key
|
795
|
+
# @param [Hash] opts the optional parameters
|
796
|
+
# @option opts [Integer] :skip skip number of records, default 0
|
797
|
+
# @option opts [Integer] :take retrieve x amount of records, limit 500, default 50
|
798
|
+
# @option opts [String] :type filter by record type, acceptable options are null, 0, 1, 2, 3, 4, 5, 6, 7 defaults to 0, 0 = All contacts regardless of record type null = contacts without a record type Standard: 1 = Candidate, 2 = Sales Client Contact, 4 = Lead Contact Combined: 3 = 1 and 2, 5 = 1 and 4, 6 = 2 and 4, 7 = 1 and 2 and 4] e.g. type 7 will select only contacts who are all three types
|
799
|
+
# @return [PublicApiGetContactResponseList]
|
800
|
+
def public_api_get_contacts(modified, api_key, opts = {})
|
801
|
+
data, _status_code, _headers = public_api_get_contacts_with_http_info(modified, api_key, opts)
|
802
|
+
return data
|
803
|
+
end
|
804
|
+
|
805
|
+
# retrieve a list of contact updated within a certain time frame
|
806
|
+
#
|
807
|
+
# @param modified modified within x number of minutes
|
808
|
+
# @param api_key crelate api key
|
809
|
+
# @param [Hash] opts the optional parameters
|
810
|
+
# @option opts [Integer] :skip skip number of records, default 0
|
811
|
+
# @option opts [Integer] :take retrieve x amount of records, limit 500, default 50
|
812
|
+
# @option opts [String] :type filter by record type, acceptable options are null, 0, 1, 2, 3, 4, 5, 6, 7 defaults to 0, 0 = All contacts regardless of record type null = contacts without a record type Standard: 1 = Candidate, 2 = Sales Client Contact, 4 = Lead Contact Combined: 3 = 1 and 2, 5 = 1 and 4, 6 = 2 and 4, 7 = 1 and 2 and 4] e.g. type 7 will select only contacts who are all three types
|
813
|
+
# @return [Array<(PublicApiGetContactResponseList, Fixnum, Hash)>] PublicApiGetContactResponseList data, response status code and response headers
|
814
|
+
def public_api_get_contacts_with_http_info(modified, api_key, opts = {})
|
815
|
+
if @api_client.config.debugging
|
816
|
+
@api_client.config.logger.debug "Calling API: ContactsApi.public_api_get_contacts ..."
|
817
|
+
end
|
818
|
+
# verify the required parameter 'modified' is set
|
819
|
+
if @api_client.config.client_side_validation && modified.nil?
|
820
|
+
fail ArgumentError, "Missing the required parameter 'modified' when calling ContactsApi.public_api_get_contacts"
|
821
|
+
end
|
822
|
+
# verify the required parameter 'api_key' is set
|
823
|
+
if @api_client.config.client_side_validation && api_key.nil?
|
824
|
+
fail ArgumentError, "Missing the required parameter 'api_key' when calling ContactsApi.public_api_get_contacts"
|
825
|
+
end
|
826
|
+
# resource path
|
827
|
+
local_var_path = "/api/pub/v1/contacts/recent"
|
828
|
+
|
829
|
+
# query parameters
|
830
|
+
query_params = {}
|
831
|
+
query_params[:'modified'] = modified
|
832
|
+
query_params[:'api_key'] = api_key
|
833
|
+
query_params[:'skip'] = opts[:'skip'] if !opts[:'skip'].nil?
|
834
|
+
query_params[:'take'] = opts[:'take'] if !opts[:'take'].nil?
|
835
|
+
query_params[:'type'] = opts[:'type'] if !opts[:'type'].nil?
|
836
|
+
|
837
|
+
# header parameters
|
838
|
+
header_params = {}
|
839
|
+
# HTTP header 'Accept' (if needed)
|
840
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json', 'text/json'])
|
841
|
+
|
842
|
+
# form parameters
|
843
|
+
form_params = {}
|
844
|
+
|
845
|
+
# http body (model)
|
846
|
+
post_body = nil
|
847
|
+
auth_names = []
|
848
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path,
|
849
|
+
:header_params => header_params,
|
850
|
+
:query_params => query_params,
|
851
|
+
:form_params => form_params,
|
852
|
+
:body => post_body,
|
853
|
+
:auth_names => auth_names,
|
854
|
+
:return_type => 'PublicApiGetContactResponseList')
|
855
|
+
if @api_client.config.debugging
|
856
|
+
@api_client.config.logger.debug "API called: ContactsApi#public_api_get_contacts\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
857
|
+
end
|
858
|
+
return data, status_code, headers
|
859
|
+
end
|
860
|
+
|
861
|
+
# retrieve a list of contacts by email
|
862
|
+
#
|
863
|
+
# @param email email address
|
864
|
+
# @param api_key crelate api key
|
865
|
+
# @param [Hash] opts the optional parameters
|
866
|
+
# @return [PublicApiGetContactResponseList]
|
867
|
+
def public_api_get_contacts_by_email(email, api_key, opts = {})
|
868
|
+
data, _status_code, _headers = public_api_get_contacts_by_email_with_http_info(email, api_key, opts)
|
869
|
+
return data
|
870
|
+
end
|
871
|
+
|
872
|
+
# retrieve a list of contacts by email
|
873
|
+
#
|
874
|
+
# @param email email address
|
875
|
+
# @param api_key crelate api key
|
876
|
+
# @param [Hash] opts the optional parameters
|
877
|
+
# @return [Array<(PublicApiGetContactResponseList, Fixnum, Hash)>] PublicApiGetContactResponseList data, response status code and response headers
|
878
|
+
def public_api_get_contacts_by_email_with_http_info(email, api_key, opts = {})
|
879
|
+
if @api_client.config.debugging
|
880
|
+
@api_client.config.logger.debug "Calling API: ContactsApi.public_api_get_contacts_by_email ..."
|
881
|
+
end
|
882
|
+
# verify the required parameter 'email' is set
|
883
|
+
if @api_client.config.client_side_validation && email.nil?
|
884
|
+
fail ArgumentError, "Missing the required parameter 'email' when calling ContactsApi.public_api_get_contacts_by_email"
|
885
|
+
end
|
886
|
+
# verify the required parameter 'api_key' is set
|
887
|
+
if @api_client.config.client_side_validation && api_key.nil?
|
888
|
+
fail ArgumentError, "Missing the required parameter 'api_key' when calling ContactsApi.public_api_get_contacts_by_email"
|
889
|
+
end
|
890
|
+
# resource path
|
891
|
+
local_var_path = "/api/pub/v1/contacts"
|
892
|
+
|
893
|
+
# query parameters
|
894
|
+
query_params = {}
|
895
|
+
query_params[:'email'] = email
|
896
|
+
query_params[:'api_key'] = api_key
|
897
|
+
|
898
|
+
# header parameters
|
899
|
+
header_params = {}
|
900
|
+
# HTTP header 'Accept' (if needed)
|
901
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json', 'text/json'])
|
902
|
+
|
903
|
+
# form parameters
|
904
|
+
form_params = {}
|
905
|
+
|
906
|
+
# http body (model)
|
907
|
+
post_body = nil
|
908
|
+
auth_names = []
|
909
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path,
|
910
|
+
:header_params => header_params,
|
911
|
+
:query_params => query_params,
|
912
|
+
:form_params => form_params,
|
913
|
+
:body => post_body,
|
914
|
+
:auth_names => auth_names,
|
915
|
+
:return_type => 'PublicApiGetContactResponseList')
|
916
|
+
if @api_client.config.debugging
|
917
|
+
@api_client.config.logger.debug "API called: ContactsApi#public_api_get_contacts_by_email\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
918
|
+
end
|
919
|
+
return data, status_code, headers
|
920
|
+
end
|
921
|
+
|
922
|
+
# create a contact
|
923
|
+
#
|
924
|
+
# @param api_key crelate api key
|
925
|
+
# @param request
|
926
|
+
# @param [Hash] opts the optional parameters
|
927
|
+
# @return [PublicApiIdResponse]
|
928
|
+
def public_api_post_contact(api_key, request, opts = {})
|
929
|
+
data, _status_code, _headers = public_api_post_contact_with_http_info(api_key, request, opts)
|
930
|
+
return data
|
931
|
+
end
|
932
|
+
|
933
|
+
# create a contact
|
934
|
+
#
|
935
|
+
# @param api_key crelate api key
|
936
|
+
# @param request
|
937
|
+
# @param [Hash] opts the optional parameters
|
938
|
+
# @return [Array<(PublicApiIdResponse, Fixnum, Hash)>] PublicApiIdResponse data, response status code and response headers
|
939
|
+
def public_api_post_contact_with_http_info(api_key, request, opts = {})
|
940
|
+
if @api_client.config.debugging
|
941
|
+
@api_client.config.logger.debug "Calling API: ContactsApi.public_api_post_contact ..."
|
942
|
+
end
|
943
|
+
# verify the required parameter 'api_key' is set
|
944
|
+
if @api_client.config.client_side_validation && api_key.nil?
|
945
|
+
fail ArgumentError, "Missing the required parameter 'api_key' when calling ContactsApi.public_api_post_contact"
|
946
|
+
end
|
947
|
+
# verify the required parameter 'request' is set
|
948
|
+
if @api_client.config.client_side_validation && request.nil?
|
949
|
+
fail ArgumentError, "Missing the required parameter 'request' when calling ContactsApi.public_api_post_contact"
|
950
|
+
end
|
951
|
+
# resource path
|
952
|
+
local_var_path = "/api/pub/v1/contacts"
|
953
|
+
|
954
|
+
# query parameters
|
955
|
+
query_params = {}
|
956
|
+
query_params[:'api_key'] = api_key
|
957
|
+
|
958
|
+
# header parameters
|
959
|
+
header_params = {}
|
960
|
+
# HTTP header 'Accept' (if needed)
|
961
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json', 'text/json'])
|
962
|
+
# HTTP header 'Content-Type'
|
963
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json', 'text/json', 'application/x-www-form-urlencoded'])
|
964
|
+
|
965
|
+
# form parameters
|
966
|
+
form_params = {}
|
967
|
+
|
968
|
+
# http body (model)
|
969
|
+
post_body = @api_client.object_to_http_body(request)
|
970
|
+
auth_names = []
|
971
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path,
|
972
|
+
:header_params => header_params,
|
973
|
+
:query_params => query_params,
|
974
|
+
:form_params => form_params,
|
975
|
+
:body => post_body,
|
976
|
+
:auth_names => auth_names,
|
977
|
+
:return_type => 'PublicApiIdResponse')
|
978
|
+
if @api_client.config.debugging
|
979
|
+
@api_client.config.logger.debug "API called: ContactsApi#public_api_post_contact\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
980
|
+
end
|
981
|
+
return data, status_code, headers
|
982
|
+
end
|
983
|
+
|
984
|
+
# add an attachment to a contact
|
985
|
+
#
|
986
|
+
# @param contact_id identifier
|
987
|
+
# @param api_key crelate api key
|
988
|
+
# @param request
|
989
|
+
# @param [Hash] opts the optional parameters
|
990
|
+
# @return [PublicApiIdResponse]
|
991
|
+
def public_api_post_contact_attachment(contact_id, api_key, request, opts = {})
|
992
|
+
data, _status_code, _headers = public_api_post_contact_attachment_with_http_info(contact_id, api_key, request, opts)
|
993
|
+
return data
|
994
|
+
end
|
995
|
+
|
996
|
+
# add an attachment to a contact
|
997
|
+
#
|
998
|
+
# @param contact_id identifier
|
999
|
+
# @param api_key crelate api key
|
1000
|
+
# @param request
|
1001
|
+
# @param [Hash] opts the optional parameters
|
1002
|
+
# @return [Array<(PublicApiIdResponse, Fixnum, Hash)>] PublicApiIdResponse data, response status code and response headers
|
1003
|
+
def public_api_post_contact_attachment_with_http_info(contact_id, api_key, request, opts = {})
|
1004
|
+
if @api_client.config.debugging
|
1005
|
+
@api_client.config.logger.debug "Calling API: ContactsApi.public_api_post_contact_attachment ..."
|
1006
|
+
end
|
1007
|
+
# verify the required parameter 'contact_id' is set
|
1008
|
+
if @api_client.config.client_side_validation && contact_id.nil?
|
1009
|
+
fail ArgumentError, "Missing the required parameter 'contact_id' when calling ContactsApi.public_api_post_contact_attachment"
|
1010
|
+
end
|
1011
|
+
# verify the required parameter 'api_key' is set
|
1012
|
+
if @api_client.config.client_side_validation && api_key.nil?
|
1013
|
+
fail ArgumentError, "Missing the required parameter 'api_key' when calling ContactsApi.public_api_post_contact_attachment"
|
1014
|
+
end
|
1015
|
+
# verify the required parameter 'request' is set
|
1016
|
+
if @api_client.config.client_side_validation && request.nil?
|
1017
|
+
fail ArgumentError, "Missing the required parameter 'request' when calling ContactsApi.public_api_post_contact_attachment"
|
1018
|
+
end
|
1019
|
+
# resource path
|
1020
|
+
local_var_path = "/api/pub/v1/contacts/{contactId}/attachments".sub('{' + 'contactId' + '}', contact_id.to_s)
|
1021
|
+
|
1022
|
+
# query parameters
|
1023
|
+
query_params = {}
|
1024
|
+
query_params[:'api_key'] = api_key
|
1025
|
+
|
1026
|
+
# header parameters
|
1027
|
+
header_params = {}
|
1028
|
+
# HTTP header 'Accept' (if needed)
|
1029
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json', 'text/json'])
|
1030
|
+
# HTTP header 'Content-Type'
|
1031
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json', 'text/json', 'application/x-www-form-urlencoded'])
|
1032
|
+
|
1033
|
+
# form parameters
|
1034
|
+
form_params = {}
|
1035
|
+
|
1036
|
+
# http body (model)
|
1037
|
+
post_body = @api_client.object_to_http_body(request)
|
1038
|
+
auth_names = []
|
1039
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path,
|
1040
|
+
:header_params => header_params,
|
1041
|
+
:query_params => query_params,
|
1042
|
+
:form_params => form_params,
|
1043
|
+
:body => post_body,
|
1044
|
+
:auth_names => auth_names,
|
1045
|
+
:return_type => 'PublicApiIdResponse')
|
1046
|
+
if @api_client.config.debugging
|
1047
|
+
@api_client.config.logger.debug "API called: ContactsApi#public_api_post_contact_attachment\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
1048
|
+
end
|
1049
|
+
return data, status_code, headers
|
1050
|
+
end
|
1051
|
+
|
1052
|
+
# move a contact into a job for the first time
|
1053
|
+
#
|
1054
|
+
# @param contact_id identifier
|
1055
|
+
# @param job_id identifier
|
1056
|
+
# @param api_key crelate api key
|
1057
|
+
# @param request
|
1058
|
+
# @param [Hash] opts the optional parameters
|
1059
|
+
# @return [PublicApiIdResponse]
|
1060
|
+
def public_api_post_contact_job(contact_id, job_id, api_key, request, opts = {})
|
1061
|
+
data, _status_code, _headers = public_api_post_contact_job_with_http_info(contact_id, job_id, api_key, request, opts)
|
1062
|
+
return data
|
1063
|
+
end
|
1064
|
+
|
1065
|
+
# move a contact into a job for the first time
|
1066
|
+
#
|
1067
|
+
# @param contact_id identifier
|
1068
|
+
# @param job_id identifier
|
1069
|
+
# @param api_key crelate api key
|
1070
|
+
# @param request
|
1071
|
+
# @param [Hash] opts the optional parameters
|
1072
|
+
# @return [Array<(PublicApiIdResponse, Fixnum, Hash)>] PublicApiIdResponse data, response status code and response headers
|
1073
|
+
def public_api_post_contact_job_with_http_info(contact_id, job_id, api_key, request, opts = {})
|
1074
|
+
if @api_client.config.debugging
|
1075
|
+
@api_client.config.logger.debug "Calling API: ContactsApi.public_api_post_contact_job ..."
|
1076
|
+
end
|
1077
|
+
# verify the required parameter 'contact_id' is set
|
1078
|
+
if @api_client.config.client_side_validation && contact_id.nil?
|
1079
|
+
fail ArgumentError, "Missing the required parameter 'contact_id' when calling ContactsApi.public_api_post_contact_job"
|
1080
|
+
end
|
1081
|
+
# verify the required parameter 'job_id' is set
|
1082
|
+
if @api_client.config.client_side_validation && job_id.nil?
|
1083
|
+
fail ArgumentError, "Missing the required parameter 'job_id' when calling ContactsApi.public_api_post_contact_job"
|
1084
|
+
end
|
1085
|
+
# verify the required parameter 'api_key' is set
|
1086
|
+
if @api_client.config.client_side_validation && api_key.nil?
|
1087
|
+
fail ArgumentError, "Missing the required parameter 'api_key' when calling ContactsApi.public_api_post_contact_job"
|
1088
|
+
end
|
1089
|
+
# verify the required parameter 'request' is set
|
1090
|
+
if @api_client.config.client_side_validation && request.nil?
|
1091
|
+
fail ArgumentError, "Missing the required parameter 'request' when calling ContactsApi.public_api_post_contact_job"
|
1092
|
+
end
|
1093
|
+
# resource path
|
1094
|
+
local_var_path = "/api/pub/v1/contacts/{contactId}/jobs/{jobId}".sub('{' + 'contactId' + '}', contact_id.to_s).sub('{' + 'jobId' + '}', job_id.to_s)
|
1095
|
+
|
1096
|
+
# query parameters
|
1097
|
+
query_params = {}
|
1098
|
+
query_params[:'api_key'] = api_key
|
1099
|
+
|
1100
|
+
# header parameters
|
1101
|
+
header_params = {}
|
1102
|
+
# HTTP header 'Accept' (if needed)
|
1103
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json', 'text/json'])
|
1104
|
+
# HTTP header 'Content-Type'
|
1105
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json', 'text/json', 'application/x-www-form-urlencoded'])
|
1106
|
+
|
1107
|
+
# form parameters
|
1108
|
+
form_params = {}
|
1109
|
+
|
1110
|
+
# http body (model)
|
1111
|
+
post_body = @api_client.object_to_http_body(request)
|
1112
|
+
auth_names = []
|
1113
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path,
|
1114
|
+
:header_params => header_params,
|
1115
|
+
:query_params => query_params,
|
1116
|
+
:form_params => form_params,
|
1117
|
+
:body => post_body,
|
1118
|
+
:auth_names => auth_names,
|
1119
|
+
:return_type => 'PublicApiIdResponse')
|
1120
|
+
if @api_client.config.debugging
|
1121
|
+
@api_client.config.logger.debug "API called: ContactsApi#public_api_post_contact_job\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
1122
|
+
end
|
1123
|
+
return data, status_code, headers
|
1124
|
+
end
|
1125
|
+
|
1126
|
+
# create a note for a contact
|
1127
|
+
#
|
1128
|
+
# @param contact_id identifier
|
1129
|
+
# @param api_key crelate api key
|
1130
|
+
# @param request
|
1131
|
+
# @param [Hash] opts the optional parameters
|
1132
|
+
# @return [PublicApiIdResponse]
|
1133
|
+
def public_api_post_contact_note(contact_id, api_key, request, opts = {})
|
1134
|
+
data, _status_code, _headers = public_api_post_contact_note_with_http_info(contact_id, api_key, request, opts)
|
1135
|
+
return data
|
1136
|
+
end
|
1137
|
+
|
1138
|
+
# create a note for a contact
|
1139
|
+
#
|
1140
|
+
# @param contact_id identifier
|
1141
|
+
# @param api_key crelate api key
|
1142
|
+
# @param request
|
1143
|
+
# @param [Hash] opts the optional parameters
|
1144
|
+
# @return [Array<(PublicApiIdResponse, Fixnum, Hash)>] PublicApiIdResponse data, response status code and response headers
|
1145
|
+
def public_api_post_contact_note_with_http_info(contact_id, api_key, request, opts = {})
|
1146
|
+
if @api_client.config.debugging
|
1147
|
+
@api_client.config.logger.debug "Calling API: ContactsApi.public_api_post_contact_note ..."
|
1148
|
+
end
|
1149
|
+
# verify the required parameter 'contact_id' is set
|
1150
|
+
if @api_client.config.client_side_validation && contact_id.nil?
|
1151
|
+
fail ArgumentError, "Missing the required parameter 'contact_id' when calling ContactsApi.public_api_post_contact_note"
|
1152
|
+
end
|
1153
|
+
# verify the required parameter 'api_key' is set
|
1154
|
+
if @api_client.config.client_side_validation && api_key.nil?
|
1155
|
+
fail ArgumentError, "Missing the required parameter 'api_key' when calling ContactsApi.public_api_post_contact_note"
|
1156
|
+
end
|
1157
|
+
# verify the required parameter 'request' is set
|
1158
|
+
if @api_client.config.client_side_validation && request.nil?
|
1159
|
+
fail ArgumentError, "Missing the required parameter 'request' when calling ContactsApi.public_api_post_contact_note"
|
1160
|
+
end
|
1161
|
+
# resource path
|
1162
|
+
local_var_path = "/api/pub/v1/contacts/{contactId}/notes".sub('{' + 'contactId' + '}', contact_id.to_s)
|
1163
|
+
|
1164
|
+
# query parameters
|
1165
|
+
query_params = {}
|
1166
|
+
query_params[:'api_key'] = api_key
|
1167
|
+
|
1168
|
+
# header parameters
|
1169
|
+
header_params = {}
|
1170
|
+
# HTTP header 'Accept' (if needed)
|
1171
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json', 'text/json'])
|
1172
|
+
# HTTP header 'Content-Type'
|
1173
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json', 'text/json', 'application/x-www-form-urlencoded'])
|
1174
|
+
|
1175
|
+
# form parameters
|
1176
|
+
form_params = {}
|
1177
|
+
|
1178
|
+
# http body (model)
|
1179
|
+
post_body = @api_client.object_to_http_body(request)
|
1180
|
+
auth_names = []
|
1181
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path,
|
1182
|
+
:header_params => header_params,
|
1183
|
+
:query_params => query_params,
|
1184
|
+
:form_params => form_params,
|
1185
|
+
:body => post_body,
|
1186
|
+
:auth_names => auth_names,
|
1187
|
+
:return_type => 'PublicApiIdResponse')
|
1188
|
+
if @api_client.config.debugging
|
1189
|
+
@api_client.config.logger.debug "API called: ContactsApi#public_api_post_contact_note\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
1190
|
+
end
|
1191
|
+
return data, status_code, headers
|
1192
|
+
end
|
1193
|
+
|
1194
|
+
# save a task for a contact
|
1195
|
+
#
|
1196
|
+
# @param contact_id identifier
|
1197
|
+
# @param api_key crelate api key
|
1198
|
+
# @param request
|
1199
|
+
# @param [Hash] opts the optional parameters
|
1200
|
+
# @return [PublicApiIdResponse]
|
1201
|
+
def public_api_post_contact_task(contact_id, api_key, request, opts = {})
|
1202
|
+
data, _status_code, _headers = public_api_post_contact_task_with_http_info(contact_id, api_key, request, opts)
|
1203
|
+
return data
|
1204
|
+
end
|
1205
|
+
|
1206
|
+
# save a task for a contact
|
1207
|
+
#
|
1208
|
+
# @param contact_id identifier
|
1209
|
+
# @param api_key crelate api key
|
1210
|
+
# @param request
|
1211
|
+
# @param [Hash] opts the optional parameters
|
1212
|
+
# @return [Array<(PublicApiIdResponse, Fixnum, Hash)>] PublicApiIdResponse data, response status code and response headers
|
1213
|
+
def public_api_post_contact_task_with_http_info(contact_id, api_key, request, opts = {})
|
1214
|
+
if @api_client.config.debugging
|
1215
|
+
@api_client.config.logger.debug "Calling API: ContactsApi.public_api_post_contact_task ..."
|
1216
|
+
end
|
1217
|
+
# verify the required parameter 'contact_id' is set
|
1218
|
+
if @api_client.config.client_side_validation && contact_id.nil?
|
1219
|
+
fail ArgumentError, "Missing the required parameter 'contact_id' when calling ContactsApi.public_api_post_contact_task"
|
1220
|
+
end
|
1221
|
+
# verify the required parameter 'api_key' is set
|
1222
|
+
if @api_client.config.client_side_validation && api_key.nil?
|
1223
|
+
fail ArgumentError, "Missing the required parameter 'api_key' when calling ContactsApi.public_api_post_contact_task"
|
1224
|
+
end
|
1225
|
+
# verify the required parameter 'request' is set
|
1226
|
+
if @api_client.config.client_side_validation && request.nil?
|
1227
|
+
fail ArgumentError, "Missing the required parameter 'request' when calling ContactsApi.public_api_post_contact_task"
|
1228
|
+
end
|
1229
|
+
# resource path
|
1230
|
+
local_var_path = "/api/pub/v1/contacts/{contactId}/tasks".sub('{' + 'contactId' + '}', contact_id.to_s)
|
1231
|
+
|
1232
|
+
# query parameters
|
1233
|
+
query_params = {}
|
1234
|
+
query_params[:'api_key'] = api_key
|
1235
|
+
|
1236
|
+
# header parameters
|
1237
|
+
header_params = {}
|
1238
|
+
# HTTP header 'Accept' (if needed)
|
1239
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json', 'text/json'])
|
1240
|
+
# HTTP header 'Content-Type'
|
1241
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json', 'text/json', 'application/x-www-form-urlencoded'])
|
1242
|
+
|
1243
|
+
# form parameters
|
1244
|
+
form_params = {}
|
1245
|
+
|
1246
|
+
# http body (model)
|
1247
|
+
post_body = @api_client.object_to_http_body(request)
|
1248
|
+
auth_names = []
|
1249
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path,
|
1250
|
+
:header_params => header_params,
|
1251
|
+
:query_params => query_params,
|
1252
|
+
:form_params => form_params,
|
1253
|
+
:body => post_body,
|
1254
|
+
:auth_names => auth_names,
|
1255
|
+
:return_type => 'PublicApiIdResponse')
|
1256
|
+
if @api_client.config.debugging
|
1257
|
+
@api_client.config.logger.debug "API called: ContactsApi#public_api_post_contact_task\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
1258
|
+
end
|
1259
|
+
return data, status_code, headers
|
1260
|
+
end
|
1261
|
+
|
1262
|
+
# update a contact
|
1263
|
+
# Replaces all fields. To partially update a contact, first retrieve it using the GET method, apply changes and submit to the PUT method.
|
1264
|
+
# @param contact_id identifier
|
1265
|
+
# @param api_key crelate api key
|
1266
|
+
# @param request
|
1267
|
+
# @param [Hash] opts the optional parameters
|
1268
|
+
# @return [Object]
|
1269
|
+
def public_api_put_contact(contact_id, api_key, request, opts = {})
|
1270
|
+
data, _status_code, _headers = public_api_put_contact_with_http_info(contact_id, api_key, request, opts)
|
1271
|
+
return data
|
1272
|
+
end
|
1273
|
+
|
1274
|
+
# update a contact
|
1275
|
+
# Replaces all fields. To partially update a contact, first retrieve it using the GET method, apply changes and submit to the PUT method.
|
1276
|
+
# @param contact_id identifier
|
1277
|
+
# @param api_key crelate api key
|
1278
|
+
# @param request
|
1279
|
+
# @param [Hash] opts the optional parameters
|
1280
|
+
# @return [Array<(Object, Fixnum, Hash)>] Object data, response status code and response headers
|
1281
|
+
def public_api_put_contact_with_http_info(contact_id, api_key, request, opts = {})
|
1282
|
+
if @api_client.config.debugging
|
1283
|
+
@api_client.config.logger.debug "Calling API: ContactsApi.public_api_put_contact ..."
|
1284
|
+
end
|
1285
|
+
# verify the required parameter 'contact_id' is set
|
1286
|
+
if @api_client.config.client_side_validation && contact_id.nil?
|
1287
|
+
fail ArgumentError, "Missing the required parameter 'contact_id' when calling ContactsApi.public_api_put_contact"
|
1288
|
+
end
|
1289
|
+
# verify the required parameter 'api_key' is set
|
1290
|
+
if @api_client.config.client_side_validation && api_key.nil?
|
1291
|
+
fail ArgumentError, "Missing the required parameter 'api_key' when calling ContactsApi.public_api_put_contact"
|
1292
|
+
end
|
1293
|
+
# verify the required parameter 'request' is set
|
1294
|
+
if @api_client.config.client_side_validation && request.nil?
|
1295
|
+
fail ArgumentError, "Missing the required parameter 'request' when calling ContactsApi.public_api_put_contact"
|
1296
|
+
end
|
1297
|
+
# resource path
|
1298
|
+
local_var_path = "/api/pub/v1/contacts/{contactId}".sub('{' + 'contactId' + '}', contact_id.to_s)
|
1299
|
+
|
1300
|
+
# query parameters
|
1301
|
+
query_params = {}
|
1302
|
+
query_params[:'api_key'] = api_key
|
1303
|
+
|
1304
|
+
# header parameters
|
1305
|
+
header_params = {}
|
1306
|
+
# HTTP header 'Accept' (if needed)
|
1307
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json', 'text/json'])
|
1308
|
+
# HTTP header 'Content-Type'
|
1309
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json', 'text/json', 'application/x-www-form-urlencoded'])
|
1310
|
+
|
1311
|
+
# form parameters
|
1312
|
+
form_params = {}
|
1313
|
+
|
1314
|
+
# http body (model)
|
1315
|
+
post_body = @api_client.object_to_http_body(request)
|
1316
|
+
auth_names = []
|
1317
|
+
data, status_code, headers = @api_client.call_api(:PUT, local_var_path,
|
1318
|
+
:header_params => header_params,
|
1319
|
+
:query_params => query_params,
|
1320
|
+
:form_params => form_params,
|
1321
|
+
:body => post_body,
|
1322
|
+
:auth_names => auth_names,
|
1323
|
+
:return_type => 'Object')
|
1324
|
+
if @api_client.config.debugging
|
1325
|
+
@api_client.config.logger.debug "API called: ContactsApi#public_api_put_contact\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
1326
|
+
end
|
1327
|
+
return data, status_code, headers
|
1328
|
+
end
|
1329
|
+
|
1330
|
+
# update job stage for a contact
|
1331
|
+
#
|
1332
|
+
# @param contact_id contact identifier
|
1333
|
+
# @param job_id job identifier
|
1334
|
+
# @param api_key crelate api key
|
1335
|
+
# @param request
|
1336
|
+
# @param [Hash] opts the optional parameters
|
1337
|
+
# @return [Object]
|
1338
|
+
def public_api_put_contact_job_status(contact_id, job_id, api_key, request, opts = {})
|
1339
|
+
data, _status_code, _headers = public_api_put_contact_job_status_with_http_info(contact_id, job_id, api_key, request, opts)
|
1340
|
+
return data
|
1341
|
+
end
|
1342
|
+
|
1343
|
+
# update job stage for a contact
|
1344
|
+
#
|
1345
|
+
# @param contact_id contact identifier
|
1346
|
+
# @param job_id job identifier
|
1347
|
+
# @param api_key crelate api key
|
1348
|
+
# @param request
|
1349
|
+
# @param [Hash] opts the optional parameters
|
1350
|
+
# @return [Array<(Object, Fixnum, Hash)>] Object data, response status code and response headers
|
1351
|
+
def public_api_put_contact_job_status_with_http_info(contact_id, job_id, api_key, request, opts = {})
|
1352
|
+
if @api_client.config.debugging
|
1353
|
+
@api_client.config.logger.debug "Calling API: ContactsApi.public_api_put_contact_job_status ..."
|
1354
|
+
end
|
1355
|
+
# verify the required parameter 'contact_id' is set
|
1356
|
+
if @api_client.config.client_side_validation && contact_id.nil?
|
1357
|
+
fail ArgumentError, "Missing the required parameter 'contact_id' when calling ContactsApi.public_api_put_contact_job_status"
|
1358
|
+
end
|
1359
|
+
# verify the required parameter 'job_id' is set
|
1360
|
+
if @api_client.config.client_side_validation && job_id.nil?
|
1361
|
+
fail ArgumentError, "Missing the required parameter 'job_id' when calling ContactsApi.public_api_put_contact_job_status"
|
1362
|
+
end
|
1363
|
+
# verify the required parameter 'api_key' is set
|
1364
|
+
if @api_client.config.client_side_validation && api_key.nil?
|
1365
|
+
fail ArgumentError, "Missing the required parameter 'api_key' when calling ContactsApi.public_api_put_contact_job_status"
|
1366
|
+
end
|
1367
|
+
# verify the required parameter 'request' is set
|
1368
|
+
if @api_client.config.client_side_validation && request.nil?
|
1369
|
+
fail ArgumentError, "Missing the required parameter 'request' when calling ContactsApi.public_api_put_contact_job_status"
|
1370
|
+
end
|
1371
|
+
# resource path
|
1372
|
+
local_var_path = "/api/pub/v1/contacts/{contactId}/jobs/{jobId}".sub('{' + 'contactId' + '}', contact_id.to_s).sub('{' + 'jobId' + '}', job_id.to_s)
|
1373
|
+
|
1374
|
+
# query parameters
|
1375
|
+
query_params = {}
|
1376
|
+
query_params[:'api_key'] = api_key
|
1377
|
+
|
1378
|
+
# header parameters
|
1379
|
+
header_params = {}
|
1380
|
+
# HTTP header 'Accept' (if needed)
|
1381
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json', 'text/json'])
|
1382
|
+
# HTTP header 'Content-Type'
|
1383
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json', 'text/json', 'application/x-www-form-urlencoded'])
|
1384
|
+
|
1385
|
+
# form parameters
|
1386
|
+
form_params = {}
|
1387
|
+
|
1388
|
+
# http body (model)
|
1389
|
+
post_body = @api_client.object_to_http_body(request)
|
1390
|
+
auth_names = []
|
1391
|
+
data, status_code, headers = @api_client.call_api(:PUT, local_var_path,
|
1392
|
+
:header_params => header_params,
|
1393
|
+
:query_params => query_params,
|
1394
|
+
:form_params => form_params,
|
1395
|
+
:body => post_body,
|
1396
|
+
:auth_names => auth_names,
|
1397
|
+
:return_type => 'Object')
|
1398
|
+
if @api_client.config.debugging
|
1399
|
+
@api_client.config.logger.debug "API called: ContactsApi#public_api_put_contact_job_status\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
1400
|
+
end
|
1401
|
+
return data, status_code, headers
|
1402
|
+
end
|
1403
|
+
|
1404
|
+
# update a note for a contact
|
1405
|
+
#
|
1406
|
+
# @param contact_id identifier
|
1407
|
+
# @param note_id
|
1408
|
+
# @param api_key crelate api key
|
1409
|
+
# @param request
|
1410
|
+
# @param [Hash] opts the optional parameters
|
1411
|
+
# @return [Object]
|
1412
|
+
def public_api_put_contact_note(contact_id, note_id, api_key, request, opts = {})
|
1413
|
+
data, _status_code, _headers = public_api_put_contact_note_with_http_info(contact_id, note_id, api_key, request, opts)
|
1414
|
+
return data
|
1415
|
+
end
|
1416
|
+
|
1417
|
+
# update a note for a contact
|
1418
|
+
#
|
1419
|
+
# @param contact_id identifier
|
1420
|
+
# @param note_id
|
1421
|
+
# @param api_key crelate api key
|
1422
|
+
# @param request
|
1423
|
+
# @param [Hash] opts the optional parameters
|
1424
|
+
# @return [Array<(Object, Fixnum, Hash)>] Object data, response status code and response headers
|
1425
|
+
def public_api_put_contact_note_with_http_info(contact_id, note_id, api_key, request, opts = {})
|
1426
|
+
if @api_client.config.debugging
|
1427
|
+
@api_client.config.logger.debug "Calling API: ContactsApi.public_api_put_contact_note ..."
|
1428
|
+
end
|
1429
|
+
# verify the required parameter 'contact_id' is set
|
1430
|
+
if @api_client.config.client_side_validation && contact_id.nil?
|
1431
|
+
fail ArgumentError, "Missing the required parameter 'contact_id' when calling ContactsApi.public_api_put_contact_note"
|
1432
|
+
end
|
1433
|
+
# verify the required parameter 'note_id' is set
|
1434
|
+
if @api_client.config.client_side_validation && note_id.nil?
|
1435
|
+
fail ArgumentError, "Missing the required parameter 'note_id' when calling ContactsApi.public_api_put_contact_note"
|
1436
|
+
end
|
1437
|
+
# verify the required parameter 'api_key' is set
|
1438
|
+
if @api_client.config.client_side_validation && api_key.nil?
|
1439
|
+
fail ArgumentError, "Missing the required parameter 'api_key' when calling ContactsApi.public_api_put_contact_note"
|
1440
|
+
end
|
1441
|
+
# verify the required parameter 'request' is set
|
1442
|
+
if @api_client.config.client_side_validation && request.nil?
|
1443
|
+
fail ArgumentError, "Missing the required parameter 'request' when calling ContactsApi.public_api_put_contact_note"
|
1444
|
+
end
|
1445
|
+
# resource path
|
1446
|
+
local_var_path = "/api/pub/v1/contacts/{contactId}/notes/{noteId}".sub('{' + 'contactId' + '}', contact_id.to_s).sub('{' + 'noteId' + '}', note_id.to_s)
|
1447
|
+
|
1448
|
+
# query parameters
|
1449
|
+
query_params = {}
|
1450
|
+
query_params[:'api_key'] = api_key
|
1451
|
+
|
1452
|
+
# header parameters
|
1453
|
+
header_params = {}
|
1454
|
+
# HTTP header 'Accept' (if needed)
|
1455
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json', 'text/json'])
|
1456
|
+
# HTTP header 'Content-Type'
|
1457
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json', 'text/json', 'application/x-www-form-urlencoded'])
|
1458
|
+
|
1459
|
+
# form parameters
|
1460
|
+
form_params = {}
|
1461
|
+
|
1462
|
+
# http body (model)
|
1463
|
+
post_body = @api_client.object_to_http_body(request)
|
1464
|
+
auth_names = []
|
1465
|
+
data, status_code, headers = @api_client.call_api(:PUT, local_var_path,
|
1466
|
+
:header_params => header_params,
|
1467
|
+
:query_params => query_params,
|
1468
|
+
:form_params => form_params,
|
1469
|
+
:body => post_body,
|
1470
|
+
:auth_names => auth_names,
|
1471
|
+
:return_type => 'Object')
|
1472
|
+
if @api_client.config.debugging
|
1473
|
+
@api_client.config.logger.debug "API called: ContactsApi#public_api_put_contact_note\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
1474
|
+
end
|
1475
|
+
return data, status_code, headers
|
1476
|
+
end
|
1477
|
+
|
1478
|
+
# update a task for a contact
|
1479
|
+
#
|
1480
|
+
# @param contact_id identifier
|
1481
|
+
# @param task_id
|
1482
|
+
# @param api_key crelate api key
|
1483
|
+
# @param request
|
1484
|
+
# @param [Hash] opts the optional parameters
|
1485
|
+
# @return [Object]
|
1486
|
+
def public_api_put_contact_task(contact_id, task_id, api_key, request, opts = {})
|
1487
|
+
data, _status_code, _headers = public_api_put_contact_task_with_http_info(contact_id, task_id, api_key, request, opts)
|
1488
|
+
return data
|
1489
|
+
end
|
1490
|
+
|
1491
|
+
# update a task for a contact
|
1492
|
+
#
|
1493
|
+
# @param contact_id identifier
|
1494
|
+
# @param task_id
|
1495
|
+
# @param api_key crelate api key
|
1496
|
+
# @param request
|
1497
|
+
# @param [Hash] opts the optional parameters
|
1498
|
+
# @return [Array<(Object, Fixnum, Hash)>] Object data, response status code and response headers
|
1499
|
+
def public_api_put_contact_task_with_http_info(contact_id, task_id, api_key, request, opts = {})
|
1500
|
+
if @api_client.config.debugging
|
1501
|
+
@api_client.config.logger.debug "Calling API: ContactsApi.public_api_put_contact_task ..."
|
1502
|
+
end
|
1503
|
+
# verify the required parameter 'contact_id' is set
|
1504
|
+
if @api_client.config.client_side_validation && contact_id.nil?
|
1505
|
+
fail ArgumentError, "Missing the required parameter 'contact_id' when calling ContactsApi.public_api_put_contact_task"
|
1506
|
+
end
|
1507
|
+
# verify the required parameter 'task_id' is set
|
1508
|
+
if @api_client.config.client_side_validation && task_id.nil?
|
1509
|
+
fail ArgumentError, "Missing the required parameter 'task_id' when calling ContactsApi.public_api_put_contact_task"
|
1510
|
+
end
|
1511
|
+
# verify the required parameter 'api_key' is set
|
1512
|
+
if @api_client.config.client_side_validation && api_key.nil?
|
1513
|
+
fail ArgumentError, "Missing the required parameter 'api_key' when calling ContactsApi.public_api_put_contact_task"
|
1514
|
+
end
|
1515
|
+
# verify the required parameter 'request' is set
|
1516
|
+
if @api_client.config.client_side_validation && request.nil?
|
1517
|
+
fail ArgumentError, "Missing the required parameter 'request' when calling ContactsApi.public_api_put_contact_task"
|
1518
|
+
end
|
1519
|
+
# resource path
|
1520
|
+
local_var_path = "/api/pub/v1/contacts/{contactId}/tasks/{taskId}".sub('{' + 'contactId' + '}', contact_id.to_s).sub('{' + 'taskId' + '}', task_id.to_s)
|
1521
|
+
|
1522
|
+
# query parameters
|
1523
|
+
query_params = {}
|
1524
|
+
query_params[:'api_key'] = api_key
|
1525
|
+
|
1526
|
+
# header parameters
|
1527
|
+
header_params = {}
|
1528
|
+
# HTTP header 'Accept' (if needed)
|
1529
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json', 'text/json'])
|
1530
|
+
# HTTP header 'Content-Type'
|
1531
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json', 'text/json', 'application/x-www-form-urlencoded'])
|
1532
|
+
|
1533
|
+
# form parameters
|
1534
|
+
form_params = {}
|
1535
|
+
|
1536
|
+
# http body (model)
|
1537
|
+
post_body = @api_client.object_to_http_body(request)
|
1538
|
+
auth_names = []
|
1539
|
+
data, status_code, headers = @api_client.call_api(:PUT, local_var_path,
|
1540
|
+
:header_params => header_params,
|
1541
|
+
:query_params => query_params,
|
1542
|
+
:form_params => form_params,
|
1543
|
+
:body => post_body,
|
1544
|
+
:auth_names => auth_names,
|
1545
|
+
:return_type => 'Object')
|
1546
|
+
if @api_client.config.debugging
|
1547
|
+
@api_client.config.logger.debug "API called: ContactsApi#public_api_put_contact_task\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
1548
|
+
end
|
1549
|
+
return data, status_code, headers
|
1550
|
+
end
|
1551
|
+
end
|
1552
|
+
end
|