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,1151 @@
|
|
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 CompaniesApi
|
17
|
+
attr_accessor :api_client
|
18
|
+
|
19
|
+
def initialize(api_client = ApiClient.default)
|
20
|
+
@api_client = api_client
|
21
|
+
end
|
22
|
+
|
23
|
+
# delete a company
|
24
|
+
#
|
25
|
+
# @param company_id identifier
|
26
|
+
# @param api_key crelate api key
|
27
|
+
# @param [Hash] opts the optional parameters
|
28
|
+
# @return [Object]
|
29
|
+
def public_api_delete_account(company_id, api_key, opts = {})
|
30
|
+
data, _status_code, _headers = public_api_delete_account_with_http_info(company_id, api_key, opts)
|
31
|
+
return data
|
32
|
+
end
|
33
|
+
|
34
|
+
# delete a company
|
35
|
+
#
|
36
|
+
# @param company_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_account_with_http_info(company_id, api_key, opts = {})
|
41
|
+
if @api_client.config.debugging
|
42
|
+
@api_client.config.logger.debug "Calling API: CompaniesApi.public_api_delete_account ..."
|
43
|
+
end
|
44
|
+
# verify the required parameter 'company_id' is set
|
45
|
+
if @api_client.config.client_side_validation && company_id.nil?
|
46
|
+
fail ArgumentError, "Missing the required parameter 'company_id' when calling CompaniesApi.public_api_delete_account"
|
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 CompaniesApi.public_api_delete_account"
|
51
|
+
end
|
52
|
+
# resource path
|
53
|
+
local_var_path = "/api/pub/v1/companies/{companyId}".sub('{' + 'companyId' + '}', company_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: CompaniesApi#public_api_delete_account\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 company
|
84
|
+
#
|
85
|
+
# @param company_id job 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_account_attachment(company_id, attachment_id, api_key, opts = {})
|
91
|
+
data, _status_code, _headers = public_api_delete_account_attachment_with_http_info(company_id, attachment_id, api_key, opts)
|
92
|
+
return data
|
93
|
+
end
|
94
|
+
|
95
|
+
# delete an attachment for a company
|
96
|
+
#
|
97
|
+
# @param company_id job 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_account_attachment_with_http_info(company_id, attachment_id, api_key, opts = {})
|
103
|
+
if @api_client.config.debugging
|
104
|
+
@api_client.config.logger.debug "Calling API: CompaniesApi.public_api_delete_account_attachment ..."
|
105
|
+
end
|
106
|
+
# verify the required parameter 'company_id' is set
|
107
|
+
if @api_client.config.client_side_validation && company_id.nil?
|
108
|
+
fail ArgumentError, "Missing the required parameter 'company_id' when calling CompaniesApi.public_api_delete_account_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 CompaniesApi.public_api_delete_account_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 CompaniesApi.public_api_delete_account_attachment"
|
117
|
+
end
|
118
|
+
# resource path
|
119
|
+
local_var_path = "/api/pub/v1/companies/{companyId}/attachments/{attachmentId}".sub('{' + 'companyId' + '}', company_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: CompaniesApi#public_api_delete_account_attachment\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
145
|
+
end
|
146
|
+
return data, status_code, headers
|
147
|
+
end
|
148
|
+
|
149
|
+
# delete a note for a company
|
150
|
+
#
|
151
|
+
# @param company_id identifier
|
152
|
+
# @param note_id
|
153
|
+
# @param api_key crelate api key
|
154
|
+
# @param [Hash] opts the optional parameters
|
155
|
+
# @return [Object]
|
156
|
+
def public_api_delete_account_note(company_id, note_id, api_key, opts = {})
|
157
|
+
data, _status_code, _headers = public_api_delete_account_note_with_http_info(company_id, note_id, api_key, opts)
|
158
|
+
return data
|
159
|
+
end
|
160
|
+
|
161
|
+
# delete a note for a company
|
162
|
+
#
|
163
|
+
# @param company_id identifier
|
164
|
+
# @param note_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_account_note_with_http_info(company_id, note_id, api_key, opts = {})
|
169
|
+
if @api_client.config.debugging
|
170
|
+
@api_client.config.logger.debug "Calling API: CompaniesApi.public_api_delete_account_note ..."
|
171
|
+
end
|
172
|
+
# verify the required parameter 'company_id' is set
|
173
|
+
if @api_client.config.client_side_validation && company_id.nil?
|
174
|
+
fail ArgumentError, "Missing the required parameter 'company_id' when calling CompaniesApi.public_api_delete_account_note"
|
175
|
+
end
|
176
|
+
# verify the required parameter 'note_id' is set
|
177
|
+
if @api_client.config.client_side_validation && note_id.nil?
|
178
|
+
fail ArgumentError, "Missing the required parameter 'note_id' when calling CompaniesApi.public_api_delete_account_note"
|
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 CompaniesApi.public_api_delete_account_note"
|
183
|
+
end
|
184
|
+
# resource path
|
185
|
+
local_var_path = "/api/pub/v1/companies/{companyId}/notes/{noteId}".sub('{' + 'companyId' + '}', company_id.to_s).sub('{' + 'noteId' + '}', note_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: CompaniesApi#public_api_delete_account_note\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
211
|
+
end
|
212
|
+
return data, status_code, headers
|
213
|
+
end
|
214
|
+
|
215
|
+
# delete a task for a company
|
216
|
+
#
|
217
|
+
# @param company_id identifier
|
218
|
+
# @param task_id
|
219
|
+
# @param api_key crelate api key
|
220
|
+
# @param [Hash] opts the optional parameters
|
221
|
+
# @return [Object]
|
222
|
+
def public_api_delete_account_task(company_id, task_id, api_key, opts = {})
|
223
|
+
data, _status_code, _headers = public_api_delete_account_task_with_http_info(company_id, task_id, api_key, opts)
|
224
|
+
return data
|
225
|
+
end
|
226
|
+
|
227
|
+
# delete a task for a company
|
228
|
+
#
|
229
|
+
# @param company_id identifier
|
230
|
+
# @param task_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_account_task_with_http_info(company_id, task_id, api_key, opts = {})
|
235
|
+
if @api_client.config.debugging
|
236
|
+
@api_client.config.logger.debug "Calling API: CompaniesApi.public_api_delete_account_task ..."
|
237
|
+
end
|
238
|
+
# verify the required parameter 'company_id' is set
|
239
|
+
if @api_client.config.client_side_validation && company_id.nil?
|
240
|
+
fail ArgumentError, "Missing the required parameter 'company_id' when calling CompaniesApi.public_api_delete_account_task"
|
241
|
+
end
|
242
|
+
# verify the required parameter 'task_id' is set
|
243
|
+
if @api_client.config.client_side_validation && task_id.nil?
|
244
|
+
fail ArgumentError, "Missing the required parameter 'task_id' when calling CompaniesApi.public_api_delete_account_task"
|
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 CompaniesApi.public_api_delete_account_task"
|
249
|
+
end
|
250
|
+
# resource path
|
251
|
+
local_var_path = "/api/pub/v1/companies/{companyId}/tasks/{taskId}".sub('{' + 'companyId' + '}', company_id.to_s).sub('{' + 'taskId' + '}', task_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: CompaniesApi#public_api_delete_account_task\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
277
|
+
end
|
278
|
+
return data, status_code, headers
|
279
|
+
end
|
280
|
+
|
281
|
+
# retrieve a company
|
282
|
+
#
|
283
|
+
# @param company_id identifier
|
284
|
+
# @param api_key crelate api key
|
285
|
+
# @param [Hash] opts the optional parameters
|
286
|
+
# @return [PublicApiGetAccountResponse]
|
287
|
+
def public_api_get_account(company_id, api_key, opts = {})
|
288
|
+
data, _status_code, _headers = public_api_get_account_with_http_info(company_id, api_key, opts)
|
289
|
+
return data
|
290
|
+
end
|
291
|
+
|
292
|
+
# retrieve a company
|
293
|
+
#
|
294
|
+
# @param company_id identifier
|
295
|
+
# @param api_key crelate api key
|
296
|
+
# @param [Hash] opts the optional parameters
|
297
|
+
# @return [Array<(PublicApiGetAccountResponse, Fixnum, Hash)>] PublicApiGetAccountResponse data, response status code and response headers
|
298
|
+
def public_api_get_account_with_http_info(company_id, api_key, opts = {})
|
299
|
+
if @api_client.config.debugging
|
300
|
+
@api_client.config.logger.debug "Calling API: CompaniesApi.public_api_get_account ..."
|
301
|
+
end
|
302
|
+
# verify the required parameter 'company_id' is set
|
303
|
+
if @api_client.config.client_side_validation && company_id.nil?
|
304
|
+
fail ArgumentError, "Missing the required parameter 'company_id' when calling CompaniesApi.public_api_get_account"
|
305
|
+
end
|
306
|
+
# verify the required parameter 'api_key' is set
|
307
|
+
if @api_client.config.client_side_validation && api_key.nil?
|
308
|
+
fail ArgumentError, "Missing the required parameter 'api_key' when calling CompaniesApi.public_api_get_account"
|
309
|
+
end
|
310
|
+
# resource path
|
311
|
+
local_var_path = "/api/pub/v1/companies/{companyId}".sub('{' + 'companyId' + '}', company_id.to_s)
|
312
|
+
|
313
|
+
# query parameters
|
314
|
+
query_params = {}
|
315
|
+
query_params[:'api_key'] = api_key
|
316
|
+
|
317
|
+
# header parameters
|
318
|
+
header_params = {}
|
319
|
+
# HTTP header 'Accept' (if needed)
|
320
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json', 'text/json'])
|
321
|
+
|
322
|
+
# form parameters
|
323
|
+
form_params = {}
|
324
|
+
|
325
|
+
# http body (model)
|
326
|
+
post_body = nil
|
327
|
+
auth_names = []
|
328
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path,
|
329
|
+
:header_params => header_params,
|
330
|
+
:query_params => query_params,
|
331
|
+
:form_params => form_params,
|
332
|
+
:body => post_body,
|
333
|
+
:auth_names => auth_names,
|
334
|
+
:return_type => 'PublicApiGetAccountResponse')
|
335
|
+
if @api_client.config.debugging
|
336
|
+
@api_client.config.logger.debug "API called: CompaniesApi#public_api_get_account\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
337
|
+
end
|
338
|
+
return data, status_code, headers
|
339
|
+
end
|
340
|
+
|
341
|
+
# get the content of a specific attachment for a company
|
342
|
+
#
|
343
|
+
# @param company_id identifier
|
344
|
+
# @param attachment_id attachment identifier
|
345
|
+
# @param api_key crelate api key
|
346
|
+
# @param [Hash] opts the optional parameters
|
347
|
+
# @return [Object]
|
348
|
+
def public_api_get_account_attachment(company_id, attachment_id, api_key, opts = {})
|
349
|
+
data, _status_code, _headers = public_api_get_account_attachment_with_http_info(company_id, attachment_id, api_key, opts)
|
350
|
+
return data
|
351
|
+
end
|
352
|
+
|
353
|
+
# get the content of a specific attachment for a company
|
354
|
+
#
|
355
|
+
# @param company_id identifier
|
356
|
+
# @param attachment_id attachment identifier
|
357
|
+
# @param api_key crelate api key
|
358
|
+
# @param [Hash] opts the optional parameters
|
359
|
+
# @return [Array<(Object, Fixnum, Hash)>] Object data, response status code and response headers
|
360
|
+
def public_api_get_account_attachment_with_http_info(company_id, attachment_id, api_key, opts = {})
|
361
|
+
if @api_client.config.debugging
|
362
|
+
@api_client.config.logger.debug "Calling API: CompaniesApi.public_api_get_account_attachment ..."
|
363
|
+
end
|
364
|
+
# verify the required parameter 'company_id' is set
|
365
|
+
if @api_client.config.client_side_validation && company_id.nil?
|
366
|
+
fail ArgumentError, "Missing the required parameter 'company_id' when calling CompaniesApi.public_api_get_account_attachment"
|
367
|
+
end
|
368
|
+
# verify the required parameter 'attachment_id' is set
|
369
|
+
if @api_client.config.client_side_validation && attachment_id.nil?
|
370
|
+
fail ArgumentError, "Missing the required parameter 'attachment_id' when calling CompaniesApi.public_api_get_account_attachment"
|
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 CompaniesApi.public_api_get_account_attachment"
|
375
|
+
end
|
376
|
+
# resource path
|
377
|
+
local_var_path = "/api/pub/v1/companies/{companyId}/attachments/{attachmentId}".sub('{' + 'companyId' + '}', company_id.to_s).sub('{' + 'attachmentId' + '}', attachment_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 => 'Object')
|
401
|
+
if @api_client.config.debugging
|
402
|
+
@api_client.config.logger.debug "API called: CompaniesApi#public_api_get_account_attachment\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
403
|
+
end
|
404
|
+
return data, status_code, headers
|
405
|
+
end
|
406
|
+
|
407
|
+
# get all attachment metadata for a company
|
408
|
+
#
|
409
|
+
# @param company_id
|
410
|
+
# @param api_key crelate api key
|
411
|
+
# @param [Hash] opts the optional parameters
|
412
|
+
# @return [PublicApiAttachmentResponseList]
|
413
|
+
def public_api_get_account_attachments(company_id, api_key, opts = {})
|
414
|
+
data, _status_code, _headers = public_api_get_account_attachments_with_http_info(company_id, api_key, opts)
|
415
|
+
return data
|
416
|
+
end
|
417
|
+
|
418
|
+
# get all attachment metadata for a company
|
419
|
+
#
|
420
|
+
# @param company_id
|
421
|
+
# @param api_key crelate api key
|
422
|
+
# @param [Hash] opts the optional parameters
|
423
|
+
# @return [Array<(PublicApiAttachmentResponseList, Fixnum, Hash)>] PublicApiAttachmentResponseList data, response status code and response headers
|
424
|
+
def public_api_get_account_attachments_with_http_info(company_id, api_key, opts = {})
|
425
|
+
if @api_client.config.debugging
|
426
|
+
@api_client.config.logger.debug "Calling API: CompaniesApi.public_api_get_account_attachments ..."
|
427
|
+
end
|
428
|
+
# verify the required parameter 'company_id' is set
|
429
|
+
if @api_client.config.client_side_validation && company_id.nil?
|
430
|
+
fail ArgumentError, "Missing the required parameter 'company_id' when calling CompaniesApi.public_api_get_account_attachments"
|
431
|
+
end
|
432
|
+
# verify the required parameter 'api_key' is set
|
433
|
+
if @api_client.config.client_side_validation && api_key.nil?
|
434
|
+
fail ArgumentError, "Missing the required parameter 'api_key' when calling CompaniesApi.public_api_get_account_attachments"
|
435
|
+
end
|
436
|
+
# resource path
|
437
|
+
local_var_path = "/api/pub/v1/companies/{companyId}/attachments".sub('{' + 'companyId' + '}', company_id.to_s)
|
438
|
+
|
439
|
+
# query parameters
|
440
|
+
query_params = {}
|
441
|
+
query_params[:'api_key'] = api_key
|
442
|
+
|
443
|
+
# header parameters
|
444
|
+
header_params = {}
|
445
|
+
# HTTP header 'Accept' (if needed)
|
446
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json', 'text/json'])
|
447
|
+
|
448
|
+
# form parameters
|
449
|
+
form_params = {}
|
450
|
+
|
451
|
+
# http body (model)
|
452
|
+
post_body = nil
|
453
|
+
auth_names = []
|
454
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path,
|
455
|
+
:header_params => header_params,
|
456
|
+
:query_params => query_params,
|
457
|
+
:form_params => form_params,
|
458
|
+
:body => post_body,
|
459
|
+
:auth_names => auth_names,
|
460
|
+
:return_type => 'PublicApiAttachmentResponseList')
|
461
|
+
if @api_client.config.debugging
|
462
|
+
@api_client.config.logger.debug "API called: CompaniesApi#public_api_get_account_attachments\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
463
|
+
end
|
464
|
+
return data, status_code, headers
|
465
|
+
end
|
466
|
+
|
467
|
+
# retrieve a note for a company
|
468
|
+
#
|
469
|
+
# @param company_id identifier
|
470
|
+
# @param note_id
|
471
|
+
# @param api_key crelate api key
|
472
|
+
# @param [Hash] opts the optional parameters
|
473
|
+
# @return [PublicApiGetNoteResponse]
|
474
|
+
def public_api_get_account_note(company_id, note_id, api_key, opts = {})
|
475
|
+
data, _status_code, _headers = public_api_get_account_note_with_http_info(company_id, note_id, api_key, opts)
|
476
|
+
return data
|
477
|
+
end
|
478
|
+
|
479
|
+
# retrieve a note for a company
|
480
|
+
#
|
481
|
+
# @param company_id identifier
|
482
|
+
# @param note_id
|
483
|
+
# @param api_key crelate api key
|
484
|
+
# @param [Hash] opts the optional parameters
|
485
|
+
# @return [Array<(PublicApiGetNoteResponse, Fixnum, Hash)>] PublicApiGetNoteResponse data, response status code and response headers
|
486
|
+
def public_api_get_account_note_with_http_info(company_id, note_id, api_key, opts = {})
|
487
|
+
if @api_client.config.debugging
|
488
|
+
@api_client.config.logger.debug "Calling API: CompaniesApi.public_api_get_account_note ..."
|
489
|
+
end
|
490
|
+
# verify the required parameter 'company_id' is set
|
491
|
+
if @api_client.config.client_side_validation && company_id.nil?
|
492
|
+
fail ArgumentError, "Missing the required parameter 'company_id' when calling CompaniesApi.public_api_get_account_note"
|
493
|
+
end
|
494
|
+
# verify the required parameter 'note_id' is set
|
495
|
+
if @api_client.config.client_side_validation && note_id.nil?
|
496
|
+
fail ArgumentError, "Missing the required parameter 'note_id' when calling CompaniesApi.public_api_get_account_note"
|
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 CompaniesApi.public_api_get_account_note"
|
501
|
+
end
|
502
|
+
# resource path
|
503
|
+
local_var_path = "/api/pub/v1/companies/{companyId}/notes/{noteId}".sub('{' + 'companyId' + '}', company_id.to_s).sub('{' + 'noteId' + '}', note_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 => 'PublicApiGetNoteResponse')
|
527
|
+
if @api_client.config.debugging
|
528
|
+
@api_client.config.logger.debug "API called: CompaniesApi#public_api_get_account_note\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
529
|
+
end
|
530
|
+
return data, status_code, headers
|
531
|
+
end
|
532
|
+
|
533
|
+
# get a task for a company
|
534
|
+
#
|
535
|
+
# @param company_id identifier
|
536
|
+
# @param task_id
|
537
|
+
# @param api_key crelate api key
|
538
|
+
# @param [Hash] opts the optional parameters
|
539
|
+
# @return [PublicApiGetTaskResponse]
|
540
|
+
def public_api_get_account_task(company_id, task_id, api_key, opts = {})
|
541
|
+
data, _status_code, _headers = public_api_get_account_task_with_http_info(company_id, task_id, api_key, opts)
|
542
|
+
return data
|
543
|
+
end
|
544
|
+
|
545
|
+
# get a task for a company
|
546
|
+
#
|
547
|
+
# @param company_id identifier
|
548
|
+
# @param task_id
|
549
|
+
# @param api_key crelate api key
|
550
|
+
# @param [Hash] opts the optional parameters
|
551
|
+
# @return [Array<(PublicApiGetTaskResponse, Fixnum, Hash)>] PublicApiGetTaskResponse data, response status code and response headers
|
552
|
+
def public_api_get_account_task_with_http_info(company_id, task_id, api_key, opts = {})
|
553
|
+
if @api_client.config.debugging
|
554
|
+
@api_client.config.logger.debug "Calling API: CompaniesApi.public_api_get_account_task ..."
|
555
|
+
end
|
556
|
+
# verify the required parameter 'company_id' is set
|
557
|
+
if @api_client.config.client_side_validation && company_id.nil?
|
558
|
+
fail ArgumentError, "Missing the required parameter 'company_id' when calling CompaniesApi.public_api_get_account_task"
|
559
|
+
end
|
560
|
+
# verify the required parameter 'task_id' is set
|
561
|
+
if @api_client.config.client_side_validation && task_id.nil?
|
562
|
+
fail ArgumentError, "Missing the required parameter 'task_id' when calling CompaniesApi.public_api_get_account_task"
|
563
|
+
end
|
564
|
+
# verify the required parameter 'api_key' is set
|
565
|
+
if @api_client.config.client_side_validation && api_key.nil?
|
566
|
+
fail ArgumentError, "Missing the required parameter 'api_key' when calling CompaniesApi.public_api_get_account_task"
|
567
|
+
end
|
568
|
+
# resource path
|
569
|
+
local_var_path = "/api/pub/v1/companies/{companyId}/tasks/{taskId}".sub('{' + 'companyId' + '}', company_id.to_s).sub('{' + 'taskId' + '}', task_id.to_s)
|
570
|
+
|
571
|
+
# query parameters
|
572
|
+
query_params = {}
|
573
|
+
query_params[:'api_key'] = api_key
|
574
|
+
|
575
|
+
# header parameters
|
576
|
+
header_params = {}
|
577
|
+
# HTTP header 'Accept' (if needed)
|
578
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json', 'text/json'])
|
579
|
+
|
580
|
+
# form parameters
|
581
|
+
form_params = {}
|
582
|
+
|
583
|
+
# http body (model)
|
584
|
+
post_body = nil
|
585
|
+
auth_names = []
|
586
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path,
|
587
|
+
:header_params => header_params,
|
588
|
+
:query_params => query_params,
|
589
|
+
:form_params => form_params,
|
590
|
+
:body => post_body,
|
591
|
+
:auth_names => auth_names,
|
592
|
+
:return_type => 'PublicApiGetTaskResponse')
|
593
|
+
if @api_client.config.debugging
|
594
|
+
@api_client.config.logger.debug "API called: CompaniesApi#public_api_get_account_task\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
595
|
+
end
|
596
|
+
return data, status_code, headers
|
597
|
+
end
|
598
|
+
|
599
|
+
# retrieve a list of companies updated within a certain time frame
|
600
|
+
#
|
601
|
+
# @param modified modified within x number of minutes
|
602
|
+
# @param api_key crelate api key
|
603
|
+
# @param [Hash] opts the optional parameters
|
604
|
+
# @option opts [Integer] :skip skip number of records, default 0
|
605
|
+
# @option opts [Integer] :take retrieve x amount of records, limit 500, default 50
|
606
|
+
# @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 = Customer, 2 = Potential Customer, Combined: 3 = Customer and Potential Customer e.g. type 7 will select only contacts who are all three types
|
607
|
+
# @return [PublicApiGetAccountResponseList]
|
608
|
+
def public_api_get_accounts(modified, api_key, opts = {})
|
609
|
+
data, _status_code, _headers = public_api_get_accounts_with_http_info(modified, api_key, opts)
|
610
|
+
return data
|
611
|
+
end
|
612
|
+
|
613
|
+
# retrieve a list of companies updated within a certain time frame
|
614
|
+
#
|
615
|
+
# @param modified modified within x number of minutes
|
616
|
+
# @param api_key crelate api key
|
617
|
+
# @param [Hash] opts the optional parameters
|
618
|
+
# @option opts [Integer] :skip skip number of records, default 0
|
619
|
+
# @option opts [Integer] :take retrieve x amount of records, limit 500, default 50
|
620
|
+
# @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 = Customer, 2 = Potential Customer, Combined: 3 = Customer and Potential Customer e.g. type 7 will select only contacts who are all three types
|
621
|
+
# @return [Array<(PublicApiGetAccountResponseList, Fixnum, Hash)>] PublicApiGetAccountResponseList data, response status code and response headers
|
622
|
+
def public_api_get_accounts_with_http_info(modified, api_key, opts = {})
|
623
|
+
if @api_client.config.debugging
|
624
|
+
@api_client.config.logger.debug "Calling API: CompaniesApi.public_api_get_accounts ..."
|
625
|
+
end
|
626
|
+
# verify the required parameter 'modified' is set
|
627
|
+
if @api_client.config.client_side_validation && modified.nil?
|
628
|
+
fail ArgumentError, "Missing the required parameter 'modified' when calling CompaniesApi.public_api_get_accounts"
|
629
|
+
end
|
630
|
+
# verify the required parameter 'api_key' is set
|
631
|
+
if @api_client.config.client_side_validation && api_key.nil?
|
632
|
+
fail ArgumentError, "Missing the required parameter 'api_key' when calling CompaniesApi.public_api_get_accounts"
|
633
|
+
end
|
634
|
+
# resource path
|
635
|
+
local_var_path = "/api/pub/v1/companies/recent"
|
636
|
+
|
637
|
+
# query parameters
|
638
|
+
query_params = {}
|
639
|
+
query_params[:'modified'] = modified
|
640
|
+
query_params[:'api_key'] = api_key
|
641
|
+
query_params[:'skip'] = opts[:'skip'] if !opts[:'skip'].nil?
|
642
|
+
query_params[:'take'] = opts[:'take'] if !opts[:'take'].nil?
|
643
|
+
query_params[:'type'] = opts[:'type'] if !opts[:'type'].nil?
|
644
|
+
|
645
|
+
# header parameters
|
646
|
+
header_params = {}
|
647
|
+
# HTTP header 'Accept' (if needed)
|
648
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json', 'text/json'])
|
649
|
+
|
650
|
+
# form parameters
|
651
|
+
form_params = {}
|
652
|
+
|
653
|
+
# http body (model)
|
654
|
+
post_body = nil
|
655
|
+
auth_names = []
|
656
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path,
|
657
|
+
:header_params => header_params,
|
658
|
+
:query_params => query_params,
|
659
|
+
:form_params => form_params,
|
660
|
+
:body => post_body,
|
661
|
+
:auth_names => auth_names,
|
662
|
+
:return_type => 'PublicApiGetAccountResponseList')
|
663
|
+
if @api_client.config.debugging
|
664
|
+
@api_client.config.logger.debug "API called: CompaniesApi#public_api_get_accounts\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
665
|
+
end
|
666
|
+
return data, status_code, headers
|
667
|
+
end
|
668
|
+
|
669
|
+
# create a company
|
670
|
+
#
|
671
|
+
# @param api_key crelate api key
|
672
|
+
# @param request
|
673
|
+
# @param [Hash] opts the optional parameters
|
674
|
+
# @return [PublicApiIdResponse]
|
675
|
+
def public_api_post_account(api_key, request, opts = {})
|
676
|
+
data, _status_code, _headers = public_api_post_account_with_http_info(api_key, request, opts)
|
677
|
+
return data
|
678
|
+
end
|
679
|
+
|
680
|
+
# create a company
|
681
|
+
#
|
682
|
+
# @param api_key crelate api key
|
683
|
+
# @param request
|
684
|
+
# @param [Hash] opts the optional parameters
|
685
|
+
# @return [Array<(PublicApiIdResponse, Fixnum, Hash)>] PublicApiIdResponse data, response status code and response headers
|
686
|
+
def public_api_post_account_with_http_info(api_key, request, opts = {})
|
687
|
+
if @api_client.config.debugging
|
688
|
+
@api_client.config.logger.debug "Calling API: CompaniesApi.public_api_post_account ..."
|
689
|
+
end
|
690
|
+
# verify the required parameter 'api_key' is set
|
691
|
+
if @api_client.config.client_side_validation && api_key.nil?
|
692
|
+
fail ArgumentError, "Missing the required parameter 'api_key' when calling CompaniesApi.public_api_post_account"
|
693
|
+
end
|
694
|
+
# verify the required parameter 'request' is set
|
695
|
+
if @api_client.config.client_side_validation && request.nil?
|
696
|
+
fail ArgumentError, "Missing the required parameter 'request' when calling CompaniesApi.public_api_post_account"
|
697
|
+
end
|
698
|
+
# resource path
|
699
|
+
local_var_path = "/api/pub/v1/companies"
|
700
|
+
|
701
|
+
# query parameters
|
702
|
+
query_params = {}
|
703
|
+
query_params[:'api_key'] = api_key
|
704
|
+
|
705
|
+
# header parameters
|
706
|
+
header_params = {}
|
707
|
+
# HTTP header 'Accept' (if needed)
|
708
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json', 'text/json'])
|
709
|
+
# HTTP header 'Content-Type'
|
710
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json', 'text/json', 'application/x-www-form-urlencoded'])
|
711
|
+
|
712
|
+
# form parameters
|
713
|
+
form_params = {}
|
714
|
+
|
715
|
+
# http body (model)
|
716
|
+
post_body = @api_client.object_to_http_body(request)
|
717
|
+
auth_names = []
|
718
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path,
|
719
|
+
:header_params => header_params,
|
720
|
+
:query_params => query_params,
|
721
|
+
:form_params => form_params,
|
722
|
+
:body => post_body,
|
723
|
+
:auth_names => auth_names,
|
724
|
+
:return_type => 'PublicApiIdResponse')
|
725
|
+
if @api_client.config.debugging
|
726
|
+
@api_client.config.logger.debug "API called: CompaniesApi#public_api_post_account\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
727
|
+
end
|
728
|
+
return data, status_code, headers
|
729
|
+
end
|
730
|
+
|
731
|
+
# add an attachment to a company
|
732
|
+
#
|
733
|
+
# @param company_id identifier
|
734
|
+
# @param api_key crelate api key
|
735
|
+
# @param request
|
736
|
+
# @param [Hash] opts the optional parameters
|
737
|
+
# @return [PublicApiIdResponse]
|
738
|
+
def public_api_post_account_attachment(company_id, api_key, request, opts = {})
|
739
|
+
data, _status_code, _headers = public_api_post_account_attachment_with_http_info(company_id, api_key, request, opts)
|
740
|
+
return data
|
741
|
+
end
|
742
|
+
|
743
|
+
# add an attachment to a company
|
744
|
+
#
|
745
|
+
# @param company_id identifier
|
746
|
+
# @param api_key crelate api key
|
747
|
+
# @param request
|
748
|
+
# @param [Hash] opts the optional parameters
|
749
|
+
# @return [Array<(PublicApiIdResponse, Fixnum, Hash)>] PublicApiIdResponse data, response status code and response headers
|
750
|
+
def public_api_post_account_attachment_with_http_info(company_id, api_key, request, opts = {})
|
751
|
+
if @api_client.config.debugging
|
752
|
+
@api_client.config.logger.debug "Calling API: CompaniesApi.public_api_post_account_attachment ..."
|
753
|
+
end
|
754
|
+
# verify the required parameter 'company_id' is set
|
755
|
+
if @api_client.config.client_side_validation && company_id.nil?
|
756
|
+
fail ArgumentError, "Missing the required parameter 'company_id' when calling CompaniesApi.public_api_post_account_attachment"
|
757
|
+
end
|
758
|
+
# verify the required parameter 'api_key' is set
|
759
|
+
if @api_client.config.client_side_validation && api_key.nil?
|
760
|
+
fail ArgumentError, "Missing the required parameter 'api_key' when calling CompaniesApi.public_api_post_account_attachment"
|
761
|
+
end
|
762
|
+
# verify the required parameter 'request' is set
|
763
|
+
if @api_client.config.client_side_validation && request.nil?
|
764
|
+
fail ArgumentError, "Missing the required parameter 'request' when calling CompaniesApi.public_api_post_account_attachment"
|
765
|
+
end
|
766
|
+
# resource path
|
767
|
+
local_var_path = "/api/pub/v1/companies/{companyId}/attachments".sub('{' + 'companyId' + '}', company_id.to_s)
|
768
|
+
|
769
|
+
# query parameters
|
770
|
+
query_params = {}
|
771
|
+
query_params[:'api_key'] = api_key
|
772
|
+
|
773
|
+
# header parameters
|
774
|
+
header_params = {}
|
775
|
+
# HTTP header 'Accept' (if needed)
|
776
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json', 'text/json'])
|
777
|
+
# HTTP header 'Content-Type'
|
778
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json', 'text/json', 'application/x-www-form-urlencoded'])
|
779
|
+
|
780
|
+
# form parameters
|
781
|
+
form_params = {}
|
782
|
+
|
783
|
+
# http body (model)
|
784
|
+
post_body = @api_client.object_to_http_body(request)
|
785
|
+
auth_names = []
|
786
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path,
|
787
|
+
:header_params => header_params,
|
788
|
+
:query_params => query_params,
|
789
|
+
:form_params => form_params,
|
790
|
+
:body => post_body,
|
791
|
+
:auth_names => auth_names,
|
792
|
+
:return_type => 'PublicApiIdResponse')
|
793
|
+
if @api_client.config.debugging
|
794
|
+
@api_client.config.logger.debug "API called: CompaniesApi#public_api_post_account_attachment\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
795
|
+
end
|
796
|
+
return data, status_code, headers
|
797
|
+
end
|
798
|
+
|
799
|
+
# create a note for a company
|
800
|
+
#
|
801
|
+
# @param company_id identifier
|
802
|
+
# @param api_key crelate api key
|
803
|
+
# @param request
|
804
|
+
# @param [Hash] opts the optional parameters
|
805
|
+
# @return [PublicApiIdResponse]
|
806
|
+
def public_api_post_account_note(company_id, api_key, request, opts = {})
|
807
|
+
data, _status_code, _headers = public_api_post_account_note_with_http_info(company_id, api_key, request, opts)
|
808
|
+
return data
|
809
|
+
end
|
810
|
+
|
811
|
+
# create a note for a company
|
812
|
+
#
|
813
|
+
# @param company_id identifier
|
814
|
+
# @param api_key crelate api key
|
815
|
+
# @param request
|
816
|
+
# @param [Hash] opts the optional parameters
|
817
|
+
# @return [Array<(PublicApiIdResponse, Fixnum, Hash)>] PublicApiIdResponse data, response status code and response headers
|
818
|
+
def public_api_post_account_note_with_http_info(company_id, api_key, request, opts = {})
|
819
|
+
if @api_client.config.debugging
|
820
|
+
@api_client.config.logger.debug "Calling API: CompaniesApi.public_api_post_account_note ..."
|
821
|
+
end
|
822
|
+
# verify the required parameter 'company_id' is set
|
823
|
+
if @api_client.config.client_side_validation && company_id.nil?
|
824
|
+
fail ArgumentError, "Missing the required parameter 'company_id' when calling CompaniesApi.public_api_post_account_note"
|
825
|
+
end
|
826
|
+
# verify the required parameter 'api_key' is set
|
827
|
+
if @api_client.config.client_side_validation && api_key.nil?
|
828
|
+
fail ArgumentError, "Missing the required parameter 'api_key' when calling CompaniesApi.public_api_post_account_note"
|
829
|
+
end
|
830
|
+
# verify the required parameter 'request' is set
|
831
|
+
if @api_client.config.client_side_validation && request.nil?
|
832
|
+
fail ArgumentError, "Missing the required parameter 'request' when calling CompaniesApi.public_api_post_account_note"
|
833
|
+
end
|
834
|
+
# resource path
|
835
|
+
local_var_path = "/api/pub/v1/companies/{companyId}/notes".sub('{' + 'companyId' + '}', company_id.to_s)
|
836
|
+
|
837
|
+
# query parameters
|
838
|
+
query_params = {}
|
839
|
+
query_params[:'api_key'] = api_key
|
840
|
+
|
841
|
+
# header parameters
|
842
|
+
header_params = {}
|
843
|
+
# HTTP header 'Accept' (if needed)
|
844
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json', 'text/json'])
|
845
|
+
# HTTP header 'Content-Type'
|
846
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json', 'text/json', 'application/x-www-form-urlencoded'])
|
847
|
+
|
848
|
+
# form parameters
|
849
|
+
form_params = {}
|
850
|
+
|
851
|
+
# http body (model)
|
852
|
+
post_body = @api_client.object_to_http_body(request)
|
853
|
+
auth_names = []
|
854
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path,
|
855
|
+
:header_params => header_params,
|
856
|
+
:query_params => query_params,
|
857
|
+
:form_params => form_params,
|
858
|
+
:body => post_body,
|
859
|
+
:auth_names => auth_names,
|
860
|
+
:return_type => 'PublicApiIdResponse')
|
861
|
+
if @api_client.config.debugging
|
862
|
+
@api_client.config.logger.debug "API called: CompaniesApi#public_api_post_account_note\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
863
|
+
end
|
864
|
+
return data, status_code, headers
|
865
|
+
end
|
866
|
+
|
867
|
+
# create a task for a company
|
868
|
+
#
|
869
|
+
# @param company_id identifier
|
870
|
+
# @param api_key crelate api key
|
871
|
+
# @param request
|
872
|
+
# @param [Hash] opts the optional parameters
|
873
|
+
# @return [PublicApiIdResponse]
|
874
|
+
def public_api_post_account_task(company_id, api_key, request, opts = {})
|
875
|
+
data, _status_code, _headers = public_api_post_account_task_with_http_info(company_id, api_key, request, opts)
|
876
|
+
return data
|
877
|
+
end
|
878
|
+
|
879
|
+
# create a task for a company
|
880
|
+
#
|
881
|
+
# @param company_id identifier
|
882
|
+
# @param api_key crelate api key
|
883
|
+
# @param request
|
884
|
+
# @param [Hash] opts the optional parameters
|
885
|
+
# @return [Array<(PublicApiIdResponse, Fixnum, Hash)>] PublicApiIdResponse data, response status code and response headers
|
886
|
+
def public_api_post_account_task_with_http_info(company_id, api_key, request, opts = {})
|
887
|
+
if @api_client.config.debugging
|
888
|
+
@api_client.config.logger.debug "Calling API: CompaniesApi.public_api_post_account_task ..."
|
889
|
+
end
|
890
|
+
# verify the required parameter 'company_id' is set
|
891
|
+
if @api_client.config.client_side_validation && company_id.nil?
|
892
|
+
fail ArgumentError, "Missing the required parameter 'company_id' when calling CompaniesApi.public_api_post_account_task"
|
893
|
+
end
|
894
|
+
# verify the required parameter 'api_key' is set
|
895
|
+
if @api_client.config.client_side_validation && api_key.nil?
|
896
|
+
fail ArgumentError, "Missing the required parameter 'api_key' when calling CompaniesApi.public_api_post_account_task"
|
897
|
+
end
|
898
|
+
# verify the required parameter 'request' is set
|
899
|
+
if @api_client.config.client_side_validation && request.nil?
|
900
|
+
fail ArgumentError, "Missing the required parameter 'request' when calling CompaniesApi.public_api_post_account_task"
|
901
|
+
end
|
902
|
+
# resource path
|
903
|
+
local_var_path = "/api/pub/v1/companies/{companyId}/tasks".sub('{' + 'companyId' + '}', company_id.to_s)
|
904
|
+
|
905
|
+
# query parameters
|
906
|
+
query_params = {}
|
907
|
+
query_params[:'api_key'] = api_key
|
908
|
+
|
909
|
+
# header parameters
|
910
|
+
header_params = {}
|
911
|
+
# HTTP header 'Accept' (if needed)
|
912
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json', 'text/json'])
|
913
|
+
# HTTP header 'Content-Type'
|
914
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json', 'text/json', 'application/x-www-form-urlencoded'])
|
915
|
+
|
916
|
+
# form parameters
|
917
|
+
form_params = {}
|
918
|
+
|
919
|
+
# http body (model)
|
920
|
+
post_body = @api_client.object_to_http_body(request)
|
921
|
+
auth_names = []
|
922
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path,
|
923
|
+
:header_params => header_params,
|
924
|
+
:query_params => query_params,
|
925
|
+
:form_params => form_params,
|
926
|
+
:body => post_body,
|
927
|
+
:auth_names => auth_names,
|
928
|
+
:return_type => 'PublicApiIdResponse')
|
929
|
+
if @api_client.config.debugging
|
930
|
+
@api_client.config.logger.debug "API called: CompaniesApi#public_api_post_account_task\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
931
|
+
end
|
932
|
+
return data, status_code, headers
|
933
|
+
end
|
934
|
+
|
935
|
+
# update a company
|
936
|
+
# Replaces all fields. To partially update a company, first retrieve it using the GET method, apply changes and submit to the PUT method.
|
937
|
+
# @param company_id identifier
|
938
|
+
# @param api_key crelate api key
|
939
|
+
# @param request
|
940
|
+
# @param [Hash] opts the optional parameters
|
941
|
+
# @return [Object]
|
942
|
+
def public_api_put_account(company_id, api_key, request, opts = {})
|
943
|
+
data, _status_code, _headers = public_api_put_account_with_http_info(company_id, api_key, request, opts)
|
944
|
+
return data
|
945
|
+
end
|
946
|
+
|
947
|
+
# update a company
|
948
|
+
# Replaces all fields. To partially update a company, first retrieve it using the GET method, apply changes and submit to the PUT method.
|
949
|
+
# @param company_id identifier
|
950
|
+
# @param api_key crelate api key
|
951
|
+
# @param request
|
952
|
+
# @param [Hash] opts the optional parameters
|
953
|
+
# @return [Array<(Object, Fixnum, Hash)>] Object data, response status code and response headers
|
954
|
+
def public_api_put_account_with_http_info(company_id, api_key, request, opts = {})
|
955
|
+
if @api_client.config.debugging
|
956
|
+
@api_client.config.logger.debug "Calling API: CompaniesApi.public_api_put_account ..."
|
957
|
+
end
|
958
|
+
# verify the required parameter 'company_id' is set
|
959
|
+
if @api_client.config.client_side_validation && company_id.nil?
|
960
|
+
fail ArgumentError, "Missing the required parameter 'company_id' when calling CompaniesApi.public_api_put_account"
|
961
|
+
end
|
962
|
+
# verify the required parameter 'api_key' is set
|
963
|
+
if @api_client.config.client_side_validation && api_key.nil?
|
964
|
+
fail ArgumentError, "Missing the required parameter 'api_key' when calling CompaniesApi.public_api_put_account"
|
965
|
+
end
|
966
|
+
# verify the required parameter 'request' is set
|
967
|
+
if @api_client.config.client_side_validation && request.nil?
|
968
|
+
fail ArgumentError, "Missing the required parameter 'request' when calling CompaniesApi.public_api_put_account"
|
969
|
+
end
|
970
|
+
# resource path
|
971
|
+
local_var_path = "/api/pub/v1/companies/{companyId}".sub('{' + 'companyId' + '}', company_id.to_s)
|
972
|
+
|
973
|
+
# query parameters
|
974
|
+
query_params = {}
|
975
|
+
query_params[:'api_key'] = api_key
|
976
|
+
|
977
|
+
# header parameters
|
978
|
+
header_params = {}
|
979
|
+
# HTTP header 'Accept' (if needed)
|
980
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json', 'text/json'])
|
981
|
+
# HTTP header 'Content-Type'
|
982
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json', 'text/json', 'application/x-www-form-urlencoded'])
|
983
|
+
|
984
|
+
# form parameters
|
985
|
+
form_params = {}
|
986
|
+
|
987
|
+
# http body (model)
|
988
|
+
post_body = @api_client.object_to_http_body(request)
|
989
|
+
auth_names = []
|
990
|
+
data, status_code, headers = @api_client.call_api(:PUT, local_var_path,
|
991
|
+
:header_params => header_params,
|
992
|
+
:query_params => query_params,
|
993
|
+
:form_params => form_params,
|
994
|
+
:body => post_body,
|
995
|
+
:auth_names => auth_names,
|
996
|
+
:return_type => 'Object')
|
997
|
+
if @api_client.config.debugging
|
998
|
+
@api_client.config.logger.debug "API called: CompaniesApi#public_api_put_account\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
999
|
+
end
|
1000
|
+
return data, status_code, headers
|
1001
|
+
end
|
1002
|
+
|
1003
|
+
# update a note for a company
|
1004
|
+
#
|
1005
|
+
# @param company_id identifier
|
1006
|
+
# @param note_id
|
1007
|
+
# @param api_key crelate api key
|
1008
|
+
# @param request
|
1009
|
+
# @param [Hash] opts the optional parameters
|
1010
|
+
# @return [Object]
|
1011
|
+
def public_api_put_account_note(company_id, note_id, api_key, request, opts = {})
|
1012
|
+
data, _status_code, _headers = public_api_put_account_note_with_http_info(company_id, note_id, api_key, request, opts)
|
1013
|
+
return data
|
1014
|
+
end
|
1015
|
+
|
1016
|
+
# update a note for a company
|
1017
|
+
#
|
1018
|
+
# @param company_id identifier
|
1019
|
+
# @param note_id
|
1020
|
+
# @param api_key crelate api key
|
1021
|
+
# @param request
|
1022
|
+
# @param [Hash] opts the optional parameters
|
1023
|
+
# @return [Array<(Object, Fixnum, Hash)>] Object data, response status code and response headers
|
1024
|
+
def public_api_put_account_note_with_http_info(company_id, note_id, api_key, request, opts = {})
|
1025
|
+
if @api_client.config.debugging
|
1026
|
+
@api_client.config.logger.debug "Calling API: CompaniesApi.public_api_put_account_note ..."
|
1027
|
+
end
|
1028
|
+
# verify the required parameter 'company_id' is set
|
1029
|
+
if @api_client.config.client_side_validation && company_id.nil?
|
1030
|
+
fail ArgumentError, "Missing the required parameter 'company_id' when calling CompaniesApi.public_api_put_account_note"
|
1031
|
+
end
|
1032
|
+
# verify the required parameter 'note_id' is set
|
1033
|
+
if @api_client.config.client_side_validation && note_id.nil?
|
1034
|
+
fail ArgumentError, "Missing the required parameter 'note_id' when calling CompaniesApi.public_api_put_account_note"
|
1035
|
+
end
|
1036
|
+
# verify the required parameter 'api_key' is set
|
1037
|
+
if @api_client.config.client_side_validation && api_key.nil?
|
1038
|
+
fail ArgumentError, "Missing the required parameter 'api_key' when calling CompaniesApi.public_api_put_account_note"
|
1039
|
+
end
|
1040
|
+
# verify the required parameter 'request' is set
|
1041
|
+
if @api_client.config.client_side_validation && request.nil?
|
1042
|
+
fail ArgumentError, "Missing the required parameter 'request' when calling CompaniesApi.public_api_put_account_note"
|
1043
|
+
end
|
1044
|
+
# resource path
|
1045
|
+
local_var_path = "/api/pub/v1/companies/{companyId}/notes/{noteId}".sub('{' + 'companyId' + '}', company_id.to_s).sub('{' + 'noteId' + '}', note_id.to_s)
|
1046
|
+
|
1047
|
+
# query parameters
|
1048
|
+
query_params = {}
|
1049
|
+
query_params[:'api_key'] = api_key
|
1050
|
+
|
1051
|
+
# header parameters
|
1052
|
+
header_params = {}
|
1053
|
+
# HTTP header 'Accept' (if needed)
|
1054
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json', 'text/json'])
|
1055
|
+
# HTTP header 'Content-Type'
|
1056
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json', 'text/json', 'application/x-www-form-urlencoded'])
|
1057
|
+
|
1058
|
+
# form parameters
|
1059
|
+
form_params = {}
|
1060
|
+
|
1061
|
+
# http body (model)
|
1062
|
+
post_body = @api_client.object_to_http_body(request)
|
1063
|
+
auth_names = []
|
1064
|
+
data, status_code, headers = @api_client.call_api(:PUT, local_var_path,
|
1065
|
+
:header_params => header_params,
|
1066
|
+
:query_params => query_params,
|
1067
|
+
:form_params => form_params,
|
1068
|
+
:body => post_body,
|
1069
|
+
:auth_names => auth_names,
|
1070
|
+
:return_type => 'Object')
|
1071
|
+
if @api_client.config.debugging
|
1072
|
+
@api_client.config.logger.debug "API called: CompaniesApi#public_api_put_account_note\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
1073
|
+
end
|
1074
|
+
return data, status_code, headers
|
1075
|
+
end
|
1076
|
+
|
1077
|
+
# update a task for a company
|
1078
|
+
#
|
1079
|
+
# @param company_id identifier
|
1080
|
+
# @param task_id
|
1081
|
+
# @param api_key crelate api key
|
1082
|
+
# @param request
|
1083
|
+
# @param [Hash] opts the optional parameters
|
1084
|
+
# @return [Object]
|
1085
|
+
def public_api_put_account_task(company_id, task_id, api_key, request, opts = {})
|
1086
|
+
data, _status_code, _headers = public_api_put_account_task_with_http_info(company_id, task_id, api_key, request, opts)
|
1087
|
+
return data
|
1088
|
+
end
|
1089
|
+
|
1090
|
+
# update a task for a company
|
1091
|
+
#
|
1092
|
+
# @param company_id identifier
|
1093
|
+
# @param task_id
|
1094
|
+
# @param api_key crelate api key
|
1095
|
+
# @param request
|
1096
|
+
# @param [Hash] opts the optional parameters
|
1097
|
+
# @return [Array<(Object, Fixnum, Hash)>] Object data, response status code and response headers
|
1098
|
+
def public_api_put_account_task_with_http_info(company_id, task_id, api_key, request, opts = {})
|
1099
|
+
if @api_client.config.debugging
|
1100
|
+
@api_client.config.logger.debug "Calling API: CompaniesApi.public_api_put_account_task ..."
|
1101
|
+
end
|
1102
|
+
# verify the required parameter 'company_id' is set
|
1103
|
+
if @api_client.config.client_side_validation && company_id.nil?
|
1104
|
+
fail ArgumentError, "Missing the required parameter 'company_id' when calling CompaniesApi.public_api_put_account_task"
|
1105
|
+
end
|
1106
|
+
# verify the required parameter 'task_id' is set
|
1107
|
+
if @api_client.config.client_side_validation && task_id.nil?
|
1108
|
+
fail ArgumentError, "Missing the required parameter 'task_id' when calling CompaniesApi.public_api_put_account_task"
|
1109
|
+
end
|
1110
|
+
# verify the required parameter 'api_key' is set
|
1111
|
+
if @api_client.config.client_side_validation && api_key.nil?
|
1112
|
+
fail ArgumentError, "Missing the required parameter 'api_key' when calling CompaniesApi.public_api_put_account_task"
|
1113
|
+
end
|
1114
|
+
# verify the required parameter 'request' is set
|
1115
|
+
if @api_client.config.client_side_validation && request.nil?
|
1116
|
+
fail ArgumentError, "Missing the required parameter 'request' when calling CompaniesApi.public_api_put_account_task"
|
1117
|
+
end
|
1118
|
+
# resource path
|
1119
|
+
local_var_path = "/api/pub/v1/companies/{companyId}/tasks/{taskId}".sub('{' + 'companyId' + '}', company_id.to_s).sub('{' + 'taskId' + '}', task_id.to_s)
|
1120
|
+
|
1121
|
+
# query parameters
|
1122
|
+
query_params = {}
|
1123
|
+
query_params[:'api_key'] = api_key
|
1124
|
+
|
1125
|
+
# header parameters
|
1126
|
+
header_params = {}
|
1127
|
+
# HTTP header 'Accept' (if needed)
|
1128
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json', 'text/json'])
|
1129
|
+
# HTTP header 'Content-Type'
|
1130
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json', 'text/json', 'application/x-www-form-urlencoded'])
|
1131
|
+
|
1132
|
+
# form parameters
|
1133
|
+
form_params = {}
|
1134
|
+
|
1135
|
+
# http body (model)
|
1136
|
+
post_body = @api_client.object_to_http_body(request)
|
1137
|
+
auth_names = []
|
1138
|
+
data, status_code, headers = @api_client.call_api(:PUT, local_var_path,
|
1139
|
+
:header_params => header_params,
|
1140
|
+
:query_params => query_params,
|
1141
|
+
:form_params => form_params,
|
1142
|
+
:body => post_body,
|
1143
|
+
:auth_names => auth_names,
|
1144
|
+
:return_type => 'Object')
|
1145
|
+
if @api_client.config.debugging
|
1146
|
+
@api_client.config.logger.debug "API called: CompaniesApi#public_api_put_account_task\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
1147
|
+
end
|
1148
|
+
return data, status_code, headers
|
1149
|
+
end
|
1150
|
+
end
|
1151
|
+
end
|