sib-api-v3-sdk 7.5.0 → 9.0.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile +1 -1
- data/README.md +130 -4
- data/docs/Body.md +9 -0
- data/docs/Body1.md +9 -0
- data/docs/Body10.md +11 -0
- data/docs/{SendTemplateEmail.md → Body11.md} +2 -2
- data/docs/Body12.md +11 -0
- data/docs/Body2.md +11 -0
- data/docs/Body3.md +9 -0
- data/docs/Body4.md +9 -0
- data/docs/Body5.md +11 -0
- data/docs/Body6.md +18 -0
- data/docs/Body7.md +17 -0
- data/docs/Body8.md +13 -0
- data/docs/Body9.md +8 -0
- data/docs/CompaniesApi.md +425 -0
- data/docs/CompaniesList.md +8 -0
- data/docs/Company.md +11 -0
- data/docs/CompanyAttributes.md +7 -0
- data/docs/CompanyAttributesInner.md +12 -0
- data/docs/ContactsApi.md +69 -4
- data/docs/ConversationsApi.md +542 -0
- data/docs/ConversationsMessage.md +17 -0
- data/docs/ConversationsMessageFile.md +12 -0
- data/docs/ConversationsMessageFileImageInfo.md +10 -0
- data/docs/CreateContact.md +1 -1
- data/docs/CreateSmsCampaign.md +1 -0
- data/docs/CreateSubAccount.md +11 -0
- data/docs/CreateSubAccountResponse.md +8 -0
- data/docs/CreateWebhook.md +2 -1
- data/docs/Deal.md +11 -0
- data/docs/DealAttributes.md +7 -0
- data/docs/DealAttributesInner.md +12 -0
- data/docs/DealsApi.md +476 -0
- data/docs/DealsList.md +8 -0
- data/docs/EmailCampaignsApi.md +6 -5
- data/docs/FileData.md +14 -0
- data/docs/FileDownloadableLink.md +8 -0
- data/docs/FileList.md +7 -0
- data/docs/FilesApi.md +318 -0
- data/docs/GetCampaignStats.md +3 -0
- data/docs/GetContactCampaignStats.md +1 -0
- data/docs/GetExtendedContactDetailsStatistics.md +1 -0
- data/docs/GetExtendedContactDetailsStatisticsDelivered.md +9 -0
- data/docs/GetInboundEmailEvents.md +8 -0
- data/docs/GetInboundEmailEventsByUuid.md +15 -0
- data/docs/GetInboundEmailEventsByUuidAttachments.md +11 -0
- data/docs/GetInboundEmailEventsByUuidLogs.md +9 -0
- data/docs/GetInboundEmailEventsEvents.md +11 -0
- data/docs/GetScheduledEmailByBatchId.md +9 -0
- data/docs/GetScheduledEmailByBatchIdBatches.md +10 -0
- data/docs/GetScheduledEmailByMessageId.md +10 -0
- data/docs/GetSsoToken.md +1 -1
- data/docs/InboundParsingApi.md +199 -0
- data/docs/InlineResponse200.md +8 -0
- data/docs/InlineResponse201.md +8 -0
- data/docs/InlineResponse2011.md +8 -0
- data/docs/MasterAccountApi.md +424 -0
- data/docs/MasterDetailsResponse.md +14 -0
- data/docs/MasterDetailsResponseBillingInfo.md +11 -0
- data/docs/MasterDetailsResponseBillingInfoAddress.md +12 -0
- data/docs/MasterDetailsResponseBillingInfoName.md +9 -0
- data/docs/MasterDetailsResponsePlanInfo.md +13 -0
- data/docs/MasterDetailsResponsePlanInfoFeatures.md +12 -0
- data/docs/Note.md +14 -0
- data/docs/NoteData.md +10 -0
- data/docs/NoteId.md +8 -0
- data/docs/NoteList.md +7 -0
- data/docs/NotesApi.md +312 -0
- data/docs/Pipeline.md +8 -0
- data/docs/PipelineStage.md +9 -0
- data/docs/RequestContactExport.md +1 -2
- data/docs/RequestContactImport.md +3 -2
- data/docs/ScheduleSmtpEmail.md +10 -0
- data/docs/SendSmtpEmail.md +6 -4
- data/docs/SendTransacSms.md +1 -0
- data/docs/SsoTokenRequest.md +9 -0
- data/docs/SubAccountDetailsResponse.md +11 -0
- data/docs/SubAccountDetailsResponsePlanInfo.md +10 -0
- data/docs/SubAccountDetailsResponsePlanInfoCredits.md +9 -0
- data/docs/SubAccountDetailsResponsePlanInfoCreditsEmails.md +9 -0
- data/docs/SubAccountDetailsResponsePlanInfoFeatures.md +10 -0
- data/docs/SubAccountDetailsResponsePlanInfoFeaturesInbox.md +9 -0
- data/docs/SubAccountDetailsResponsePlanInfoFeaturesLandingPage.md +9 -0
- data/docs/SubAccountDetailsResponsePlanInfoFeaturesUsers.md +9 -0
- data/docs/SubAccountUpdatePlanRequest.md +9 -0
- data/docs/SubAccountUpdatePlanRequestCredits.md +8 -0
- data/docs/SubAccountUpdatePlanRequestFeatures.md +10 -0
- data/docs/SubAccountsResponse.md +9 -0
- data/docs/SubAccountsResponseSubAccounts.md +11 -0
- data/docs/Task.md +13 -0
- data/docs/TaskList.md +8 -0
- data/docs/TaskReminder.md +10 -0
- data/docs/TaskTypes.md +9 -0
- data/docs/TasksApi.md +376 -0
- data/docs/TransactionalEmailsApi.md +203 -63
- data/docs/UpdateBatchContacts.md +8 -0
- data/docs/UpdateBatchContactsContacts.md +16 -0
- data/docs/UpdateBatchContactsModel.md +9 -0
- data/docs/UpdateContact.md +1 -1
- data/docs/UpdateEmailCampaign.md +1 -1
- data/docs/UpdateSmsCampaign.md +1 -0
- data/docs/UpdateSmtpTemplate.md +1 -1
- data/docs/UpdateWebhook.md +2 -1
- data/docs/UploadImageModel.md +8 -0
- data/lib/sib-api-v3-sdk/api/companies_api.rb +409 -0
- data/lib/sib-api-v3-sdk/api/contacts_api.rb +61 -2
- data/lib/sib-api-v3-sdk/api/conversations_api.rb +504 -0
- data/lib/sib-api-v3-sdk/api/deals_api.rb +454 -0
- data/lib/sib-api-v3-sdk/api/email_campaigns_api.rb +9 -8
- data/lib/sib-api-v3-sdk/api/files_api.rb +313 -0
- data/lib/sib-api-v3-sdk/api/inbound_parsing_api.rb +213 -0
- data/lib/sib-api-v3-sdk/api/master_account_api.rb +416 -0
- data/lib/sib-api-v3-sdk/api/notes_api.rb +308 -0
- data/lib/sib-api-v3-sdk/api/tasks_api.rb +375 -0
- data/lib/sib-api-v3-sdk/api/transactional_emails_api.rb +201 -62
- data/lib/sib-api-v3-sdk/api/webhooks_api.rb +2 -2
- data/lib/sib-api-v3-sdk/models/{send_email_attachment.rb → body.rb} +16 -40
- data/lib/sib-api-v3-sdk/models/body_1.rb +195 -0
- data/lib/sib-api-v3-sdk/models/body_10.rb +225 -0
- data/lib/sib-api-v3-sdk/models/{send_template_email.rb → body_11.rb} +12 -12
- data/lib/sib-api-v3-sdk/models/body_12.rb +215 -0
- data/lib/sib-api-v3-sdk/models/body_2.rb +223 -0
- data/lib/sib-api-v3-sdk/models/body_3.rb +200 -0
- data/lib/sib-api-v3-sdk/models/body_4.rb +195 -0
- data/lib/sib-api-v3-sdk/models/body_5.rb +223 -0
- data/lib/sib-api-v3-sdk/models/body_6.rb +320 -0
- data/lib/sib-api-v3-sdk/models/body_7.rb +281 -0
- data/lib/sib-api-v3-sdk/models/body_8.rb +245 -0
- data/lib/sib-api-v3-sdk/models/body_9.rb +190 -0
- data/lib/sib-api-v3-sdk/models/companies_list.rb +188 -0
- data/lib/sib-api-v3-sdk/models/{send_email.rb → company.rb} +30 -90
- data/lib/sib-api-v3-sdk/models/company_attributes.rb +176 -0
- data/lib/sib-api-v3-sdk/models/company_attributes_inner.rb +223 -0
- data/lib/sib-api-v3-sdk/models/conversations_message.rb +324 -0
- data/lib/sib-api-v3-sdk/models/conversations_message_file.rb +239 -0
- data/lib/sib-api-v3-sdk/models/conversations_message_file_image_info.rb +236 -0
- data/lib/sib-api-v3-sdk/models/create_contact.rb +1 -1
- data/lib/sib-api-v3-sdk/models/create_sms_campaign.rb +16 -4
- data/lib/sib-api-v3-sdk/models/create_sub_account.rb +259 -0
- data/lib/sib-api-v3-sdk/models/create_sub_account_response.rb +190 -0
- data/lib/sib-api-v3-sdk/models/create_webhook.rb +17 -7
- data/lib/sib-api-v3-sdk/models/deal.rb +220 -0
- data/lib/sib-api-v3-sdk/models/deal_attributes.rb +176 -0
- data/lib/sib-api-v3-sdk/models/deal_attributes_inner.rb +223 -0
- data/lib/sib-api-v3-sdk/models/deals_list.rb +188 -0
- data/lib/sib-api-v3-sdk/models/file_data.rb +246 -0
- data/lib/sib-api-v3-sdk/models/file_downloadable_link.rb +190 -0
- data/lib/sib-api-v3-sdk/models/file_list.rb +176 -0
- data/lib/sib-api-v3-sdk/models/get_campaign_stats.rb +36 -1
- data/lib/sib-api-v3-sdk/models/get_contact_campaign_stats.rb +15 -4
- data/lib/sib-api-v3-sdk/models/get_email_event_report_events.rb +2 -2
- data/lib/sib-api-v3-sdk/models/get_extended_contact_details_statistics.rb +16 -4
- data/lib/sib-api-v3-sdk/models/get_extended_contact_details_statistics_delivered.rb +205 -0
- data/lib/sib-api-v3-sdk/models/get_inbound_email_events.rb +186 -0
- data/lib/sib-api-v3-sdk/models/get_inbound_email_events_by_uuid.rb +259 -0
- data/lib/sib-api-v3-sdk/models/get_inbound_email_events_by_uuid_attachments.rb +215 -0
- data/lib/sib-api-v3-sdk/models/get_inbound_email_events_by_uuid_logs.rb +229 -0
- data/lib/sib-api-v3-sdk/models/get_inbound_email_events_events.rb +235 -0
- data/lib/sib-api-v3-sdk/models/get_scheduled_email_by_batch_id.rb +196 -0
- data/lib/sib-api-v3-sdk/models/get_scheduled_email_by_batch_id_batches.rb +254 -0
- data/lib/sib-api-v3-sdk/models/get_scheduled_email_by_message_id.rb +254 -0
- data/lib/sib-api-v3-sdk/models/get_sso_token.rb +1 -1
- data/lib/sib-api-v3-sdk/models/inline_response_200.rb +191 -0
- data/lib/sib-api-v3-sdk/models/inline_response_201.rb +191 -0
- data/lib/sib-api-v3-sdk/models/inline_response_201_1.rb +191 -0
- data/lib/sib-api-v3-sdk/models/master_details_response.rb +243 -0
- data/lib/sib-api-v3-sdk/models/master_details_response_billing_info.rb +214 -0
- data/lib/sib-api-v3-sdk/models/master_details_response_billing_info_address.rb +226 -0
- data/lib/sib-api-v3-sdk/models/master_details_response_billing_info_name.rb +196 -0
- data/lib/sib-api-v3-sdk/models/master_details_response_plan_info.rb +272 -0
- data/lib/sib-api-v3-sdk/models/master_details_response_plan_info_features.rb +225 -0
- data/lib/sib-api-v3-sdk/models/note.rb +283 -0
- data/lib/sib-api-v3-sdk/models/note_data.rb +243 -0
- data/lib/sib-api-v3-sdk/models/note_id.rb +186 -0
- data/lib/sib-api-v3-sdk/models/note_list.rb +176 -0
- data/lib/sib-api-v3-sdk/models/pipeline.rb +188 -0
- data/lib/sib-api-v3-sdk/models/pipeline_stage.rb +196 -0
- data/lib/sib-api-v3-sdk/models/request_contact_export.rb +6 -11
- data/lib/sib-api-v3-sdk/models/request_contact_export_custom_contact_filter.rb +1 -1
- data/lib/sib-api-v3-sdk/models/request_contact_import.rb +15 -3
- data/lib/sib-api-v3-sdk/models/schedule_smtp_email.rb +206 -0
- data/lib/sib-api-v3-sdk/models/send_smtp_email.rb +28 -8
- data/lib/sib-api-v3-sdk/models/send_transac_sms.rb +16 -4
- data/lib/sib-api-v3-sdk/models/sso_token_request.rb +200 -0
- data/lib/sib-api-v3-sdk/models/sub_account_details_response.rb +214 -0
- data/lib/sib-api-v3-sdk/models/sub_account_details_response_plan_info.rb +204 -0
- data/lib/sib-api-v3-sdk/models/sub_account_details_response_plan_info_credits.rb +195 -0
- data/lib/sib-api-v3-sdk/models/sub_account_details_response_plan_info_credits_emails.rb +196 -0
- data/lib/sib-api-v3-sdk/models/sub_account_details_response_plan_info_features.rb +203 -0
- data/lib/sib-api-v3-sdk/models/sub_account_details_response_plan_info_features_inbox.rb +196 -0
- data/lib/sib-api-v3-sdk/models/sub_account_details_response_plan_info_features_landing_page.rb +196 -0
- data/lib/sib-api-v3-sdk/models/sub_account_details_response_plan_info_features_users.rb +196 -0
- data/lib/sib-api-v3-sdk/models/sub_account_update_plan_request.rb +194 -0
- data/lib/sib-api-v3-sdk/models/sub_account_update_plan_request_credits.rb +186 -0
- data/lib/sib-api-v3-sdk/models/sub_account_update_plan_request_features.rb +206 -0
- data/lib/sib-api-v3-sdk/models/sub_accounts_response.rb +196 -0
- data/lib/sib-api-v3-sdk/models/sub_accounts_response_sub_accounts.rb +235 -0
- data/lib/sib-api-v3-sdk/models/task.rb +252 -0
- data/lib/sib-api-v3-sdk/models/task_list.rb +188 -0
- data/lib/sib-api-v3-sdk/models/task_reminder.rb +257 -0
- data/lib/sib-api-v3-sdk/models/task_types.rb +196 -0
- data/lib/sib-api-v3-sdk/models/update_batch_contacts.rb +187 -0
- data/lib/sib-api-v3-sdk/models/update_batch_contacts_contacts.rb +273 -0
- data/lib/sib-api-v3-sdk/models/update_batch_contacts_model.rb +197 -0
- data/lib/sib-api-v3-sdk/models/update_contact.rb +1 -1
- data/lib/sib-api-v3-sdk/models/update_email_campaign.rb +1 -1
- data/lib/sib-api-v3-sdk/models/update_sms_campaign.rb +16 -4
- data/lib/sib-api-v3-sdk/models/update_smtp_template.rb +1 -1
- data/lib/sib-api-v3-sdk/models/update_webhook.rb +15 -5
- data/lib/sib-api-v3-sdk/models/upload_image_model.rb +190 -0
- data/lib/sib-api-v3-sdk/version.rb +1 -1
- data/lib/sib-api-v3-sdk.rb +84 -3
- data/sib-api-v3-sdk.gemspec +2 -1
- data/spec/api/companies_api_spec.rb +119 -0
- data/spec/api/contacts_api_spec.rb +15 -1
- data/spec/api/conversations_api_spec.rb +140 -0
- data/spec/api/deals_api_spec.rb +129 -0
- data/spec/api/email_campaigns_api_spec.rb +1 -1
- data/spec/api/files_api_spec.rb +99 -0
- data/spec/api/inbound_parsing_api_spec.rb +76 -0
- data/spec/api/master_account_api_spec.rb +119 -0
- data/spec/api/notes_api_spec.rb +97 -0
- data/spec/api/tasks_api_spec.rb +113 -0
- data/spec/api/transactional_emails_api_spec.rb +46 -13
- data/spec/models/body_10_spec.rb +59 -0
- data/spec/models/{send_template_email_spec.rb → body_11_spec.rb} +7 -7
- data/spec/models/body_12_spec.rb +59 -0
- data/spec/models/{send_email_attachment_spec.rb → body_1_spec.rb} +8 -8
- data/spec/models/body_2_spec.rb +59 -0
- data/spec/models/body_3_spec.rb +47 -0
- data/spec/models/body_4_spec.rb +47 -0
- data/spec/models/body_5_spec.rb +59 -0
- data/spec/models/body_6_spec.rb +101 -0
- data/spec/models/body_7_spec.rb +95 -0
- data/spec/models/body_8_spec.rb +71 -0
- data/spec/models/body_9_spec.rb +41 -0
- data/spec/models/body_spec.rb +47 -0
- data/spec/models/companies_list_spec.rb +41 -0
- data/spec/models/company_attributes_inner_spec.rb +65 -0
- data/spec/models/company_attributes_spec.rb +35 -0
- data/spec/models/company_spec.rb +59 -0
- data/spec/models/conversations_message_file_image_info_spec.rb +53 -0
- data/spec/models/conversations_message_file_spec.rb +65 -0
- data/spec/models/conversations_message_spec.rb +99 -0
- data/spec/models/create_sms_campaign_spec.rb +6 -0
- data/spec/models/create_sub_account_response_spec.rb +41 -0
- data/spec/models/create_sub_account_spec.rb +63 -0
- data/spec/models/create_webhook_spec.rb +8 -2
- data/spec/models/deal_attributes_inner_spec.rb +65 -0
- data/spec/models/deal_attributes_spec.rb +35 -0
- data/spec/models/deal_spec.rb +59 -0
- data/spec/models/deals_list_spec.rb +41 -0
- data/spec/models/file_data_spec.rb +77 -0
- data/spec/models/file_downloadable_link_spec.rb +41 -0
- data/spec/models/file_list_spec.rb +35 -0
- data/spec/models/get_campaign_stats_spec.rb +18 -0
- data/spec/models/get_contact_campaign_stats_spec.rb +6 -0
- data/spec/models/get_email_event_report_events_spec.rb +1 -1
- data/spec/models/get_extended_contact_details_statistics_delivered_spec.rb +47 -0
- data/spec/models/get_extended_contact_details_statistics_spec.rb +6 -0
- data/spec/models/get_inbound_email_events_by_uuid_attachments_spec.rb +59 -0
- data/spec/models/get_inbound_email_events_by_uuid_logs_spec.rb +51 -0
- data/spec/models/get_inbound_email_events_by_uuid_spec.rb +83 -0
- data/spec/models/get_inbound_email_events_events_spec.rb +59 -0
- data/spec/models/get_inbound_email_events_spec.rb +41 -0
- data/spec/models/get_scheduled_email_by_batch_id_batches_spec.rb +57 -0
- data/spec/models/get_scheduled_email_by_batch_id_spec.rb +47 -0
- data/spec/models/get_scheduled_email_by_message_id_spec.rb +57 -0
- data/spec/models/inline_response_200_spec.rb +41 -0
- data/spec/models/inline_response_201_1_spec.rb +41 -0
- data/spec/models/inline_response_201_spec.rb +41 -0
- data/spec/models/master_details_response_billing_info_address_spec.rb +65 -0
- data/spec/models/master_details_response_billing_info_name_spec.rb +47 -0
- data/spec/models/master_details_response_billing_info_spec.rb +59 -0
- data/spec/models/master_details_response_plan_info_features_spec.rb +65 -0
- data/spec/models/master_details_response_plan_info_spec.rb +75 -0
- data/spec/models/master_details_response_spec.rb +77 -0
- data/spec/models/note_data_spec.rb +53 -0
- data/spec/models/note_id_spec.rb +41 -0
- data/spec/models/note_list_spec.rb +35 -0
- data/spec/models/note_spec.rb +77 -0
- data/spec/models/pipeline_spec.rb +41 -0
- data/spec/models/pipeline_stage_spec.rb +47 -0
- data/spec/models/request_contact_export_spec.rb +0 -6
- data/spec/models/request_contact_import_spec.rb +6 -0
- data/spec/models/schedule_smtp_email_spec.rb +53 -0
- data/spec/models/send_smtp_email_spec.rb +12 -0
- data/spec/models/send_transac_sms_spec.rb +6 -0
- data/spec/models/sso_token_request_spec.rb +47 -0
- data/spec/models/sub_account_details_response_plan_info_credits_emails_spec.rb +47 -0
- data/spec/models/sub_account_details_response_plan_info_credits_spec.rb +47 -0
- data/spec/models/sub_account_details_response_plan_info_features_inbox_spec.rb +47 -0
- data/spec/models/sub_account_details_response_plan_info_features_landing_page_spec.rb +47 -0
- data/spec/models/sub_account_details_response_plan_info_features_spec.rb +53 -0
- data/spec/models/sub_account_details_response_plan_info_features_users_spec.rb +47 -0
- data/spec/models/sub_account_details_response_plan_info_spec.rb +53 -0
- data/spec/models/sub_account_details_response_spec.rb +59 -0
- data/spec/models/sub_account_update_plan_request_credits_spec.rb +41 -0
- data/spec/models/sub_account_update_plan_request_features_spec.rb +53 -0
- data/spec/models/sub_account_update_plan_request_spec.rb +47 -0
- data/spec/models/sub_accounts_response_spec.rb +47 -0
- data/spec/models/sub_accounts_response_sub_accounts_spec.rb +59 -0
- data/spec/models/task_list_spec.rb +41 -0
- data/spec/models/task_reminder_spec.rb +57 -0
- data/spec/models/task_spec.rb +71 -0
- data/spec/models/task_types_spec.rb +47 -0
- data/spec/models/{send_email_spec.rb → update_batch_contacts_contacts_spec.rb} +15 -15
- data/spec/models/update_batch_contacts_model_spec.rb +47 -0
- data/spec/models/update_batch_contacts_spec.rb +41 -0
- data/spec/models/update_sms_campaign_spec.rb +6 -0
- data/spec/models/update_webhook_spec.rb +7 -1
- data/spec/models/upload_image_model_spec.rb +41 -0
- metadata +359 -15
- data/docs/SendEmail.md +0 -16
- data/docs/SendEmailAttachment.md +0 -9
@@ -0,0 +1,425 @@
|
|
1
|
+
# SibApiV3Sdk::CompaniesApi
|
2
|
+
|
3
|
+
All URIs are relative to *https://api.sendinblue.com/v3*
|
4
|
+
|
5
|
+
Method | HTTP request | Description
|
6
|
+
------------- | ------------- | -------------
|
7
|
+
[**companies_attributes_get**](CompaniesApi.md#companies_attributes_get) | **GET** /companies/attributes | Get company attributes
|
8
|
+
[**companies_get**](CompaniesApi.md#companies_get) | **GET** /companies | Get all companies
|
9
|
+
[**companies_id_delete**](CompaniesApi.md#companies_id_delete) | **DELETE** /companies/{id} | Delete a company
|
10
|
+
[**companies_id_get**](CompaniesApi.md#companies_id_get) | **GET** /companies/{id} | Get a company
|
11
|
+
[**companies_id_patch**](CompaniesApi.md#companies_id_patch) | **PATCH** /companies/{id} | Update a company
|
12
|
+
[**companies_link_unlink_id_patch**](CompaniesApi.md#companies_link_unlink_id_patch) | **PATCH** /companies/link-unlink/{id} | Link and Unlink company with contacts and deals
|
13
|
+
[**companies_post**](CompaniesApi.md#companies_post) | **POST** /companies | Create a company
|
14
|
+
|
15
|
+
|
16
|
+
# **companies_attributes_get**
|
17
|
+
> CompanyAttributes companies_attributes_get
|
18
|
+
|
19
|
+
Get company attributes
|
20
|
+
|
21
|
+
### Example
|
22
|
+
```ruby
|
23
|
+
# load the gem
|
24
|
+
require 'sib-api-v3-sdk'
|
25
|
+
# setup authorization
|
26
|
+
SibApiV3Sdk.configure do |config|
|
27
|
+
# Configure API key authorization: api-key
|
28
|
+
config.api_key['api-key'] = 'YOUR API KEY'
|
29
|
+
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
|
30
|
+
#config.api_key_prefix['api-key'] = 'Bearer'
|
31
|
+
|
32
|
+
# Configure API key authorization: partner-key
|
33
|
+
config.api_key['partner-key'] = 'YOUR API KEY'
|
34
|
+
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
|
35
|
+
#config.api_key_prefix['partner-key'] = 'Bearer'
|
36
|
+
end
|
37
|
+
|
38
|
+
api_instance = SibApiV3Sdk::CompaniesApi.new
|
39
|
+
|
40
|
+
begin
|
41
|
+
#Get company attributes
|
42
|
+
result = api_instance.companies_attributes_get
|
43
|
+
p result
|
44
|
+
rescue SibApiV3Sdk::ApiError => e
|
45
|
+
puts "Exception when calling CompaniesApi->companies_attributes_get: #{e}"
|
46
|
+
end
|
47
|
+
```
|
48
|
+
|
49
|
+
### Parameters
|
50
|
+
This endpoint does not need any parameter.
|
51
|
+
|
52
|
+
### Return type
|
53
|
+
|
54
|
+
[**CompanyAttributes**](CompanyAttributes.md)
|
55
|
+
|
56
|
+
### Authorization
|
57
|
+
|
58
|
+
[api-key](../README.md#api-key), [partner-key](../README.md#partner-key)
|
59
|
+
|
60
|
+
### HTTP request headers
|
61
|
+
|
62
|
+
- **Content-Type**: application/json
|
63
|
+
- **Accept**: application/json
|
64
|
+
|
65
|
+
|
66
|
+
|
67
|
+
# **companies_get**
|
68
|
+
> CompaniesList companies_get(opts)
|
69
|
+
|
70
|
+
Get all companies
|
71
|
+
|
72
|
+
### Example
|
73
|
+
```ruby
|
74
|
+
# load the gem
|
75
|
+
require 'sib-api-v3-sdk'
|
76
|
+
# setup authorization
|
77
|
+
SibApiV3Sdk.configure do |config|
|
78
|
+
# Configure API key authorization: api-key
|
79
|
+
config.api_key['api-key'] = 'YOUR API KEY'
|
80
|
+
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
|
81
|
+
#config.api_key_prefix['api-key'] = 'Bearer'
|
82
|
+
|
83
|
+
# Configure API key authorization: partner-key
|
84
|
+
config.api_key['partner-key'] = 'YOUR API KEY'
|
85
|
+
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
|
86
|
+
#config.api_key_prefix['partner-key'] = 'Bearer'
|
87
|
+
end
|
88
|
+
|
89
|
+
api_instance = SibApiV3Sdk::CompaniesApi.new
|
90
|
+
|
91
|
+
opts = {
|
92
|
+
filters: 'filters_example', # String | Filter by attrbutes. If you have filter for owner on your side please send it as {\"attributes.owner\":\"5b1a17d914b73d35a76ca0c7\"}
|
93
|
+
linked_contacts_ids: 789, # Integer | Filter by linked contacts ids
|
94
|
+
linked_deals_ids: 'linked_deals_ids_example', # String | Filter by linked deals ids
|
95
|
+
page: 789, # Integer | Index of the first document of the page
|
96
|
+
limit: 50, # Integer | Number of documents per page
|
97
|
+
sort: 'sort_example', # String | Sort the results in the ascending/descending order. Default order is **descending** by creation if `sort` is not passed
|
98
|
+
sort_by: 'sort_by_example' # String | The field used to sort field names.
|
99
|
+
}
|
100
|
+
|
101
|
+
begin
|
102
|
+
#Get all companies
|
103
|
+
result = api_instance.companies_get(opts)
|
104
|
+
p result
|
105
|
+
rescue SibApiV3Sdk::ApiError => e
|
106
|
+
puts "Exception when calling CompaniesApi->companies_get: #{e}"
|
107
|
+
end
|
108
|
+
```
|
109
|
+
|
110
|
+
### Parameters
|
111
|
+
|
112
|
+
Name | Type | Description | Notes
|
113
|
+
------------- | ------------- | ------------- | -------------
|
114
|
+
**filters** | **String**| Filter by attrbutes. If you have filter for owner on your side please send it as {\"attributes.owner\":\"5b1a17d914b73d35a76ca0c7\"} | [optional]
|
115
|
+
**linked_contacts_ids** | **Integer**| Filter by linked contacts ids | [optional]
|
116
|
+
**linked_deals_ids** | **String**| Filter by linked deals ids | [optional]
|
117
|
+
**page** | **Integer**| Index of the first document of the page | [optional]
|
118
|
+
**limit** | **Integer**| Number of documents per page | [optional] [default to 50]
|
119
|
+
**sort** | **String**| Sort the results in the ascending/descending order. Default order is **descending** by creation if `sort` is not passed | [optional]
|
120
|
+
**sort_by** | **String**| The field used to sort field names. | [optional]
|
121
|
+
|
122
|
+
### Return type
|
123
|
+
|
124
|
+
[**CompaniesList**](CompaniesList.md)
|
125
|
+
|
126
|
+
### Authorization
|
127
|
+
|
128
|
+
[api-key](../README.md#api-key), [partner-key](../README.md#partner-key)
|
129
|
+
|
130
|
+
### HTTP request headers
|
131
|
+
|
132
|
+
- **Content-Type**: application/json
|
133
|
+
- **Accept**: application/json
|
134
|
+
|
135
|
+
|
136
|
+
|
137
|
+
# **companies_id_delete**
|
138
|
+
> companies_id_delete(id)
|
139
|
+
|
140
|
+
Delete a company
|
141
|
+
|
142
|
+
### Example
|
143
|
+
```ruby
|
144
|
+
# load the gem
|
145
|
+
require 'sib-api-v3-sdk'
|
146
|
+
# setup authorization
|
147
|
+
SibApiV3Sdk.configure do |config|
|
148
|
+
# Configure API key authorization: api-key
|
149
|
+
config.api_key['api-key'] = 'YOUR API KEY'
|
150
|
+
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
|
151
|
+
#config.api_key_prefix['api-key'] = 'Bearer'
|
152
|
+
|
153
|
+
# Configure API key authorization: partner-key
|
154
|
+
config.api_key['partner-key'] = 'YOUR API KEY'
|
155
|
+
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
|
156
|
+
#config.api_key_prefix['partner-key'] = 'Bearer'
|
157
|
+
end
|
158
|
+
|
159
|
+
api_instance = SibApiV3Sdk::CompaniesApi.new
|
160
|
+
|
161
|
+
id = 'id_example' # String |
|
162
|
+
|
163
|
+
|
164
|
+
begin
|
165
|
+
#Delete a company
|
166
|
+
api_instance.companies_id_delete(id)
|
167
|
+
rescue SibApiV3Sdk::ApiError => e
|
168
|
+
puts "Exception when calling CompaniesApi->companies_id_delete: #{e}"
|
169
|
+
end
|
170
|
+
```
|
171
|
+
|
172
|
+
### Parameters
|
173
|
+
|
174
|
+
Name | Type | Description | Notes
|
175
|
+
------------- | ------------- | ------------- | -------------
|
176
|
+
**id** | **String**| |
|
177
|
+
|
178
|
+
### Return type
|
179
|
+
|
180
|
+
nil (empty response body)
|
181
|
+
|
182
|
+
### Authorization
|
183
|
+
|
184
|
+
[api-key](../README.md#api-key), [partner-key](../README.md#partner-key)
|
185
|
+
|
186
|
+
### HTTP request headers
|
187
|
+
|
188
|
+
- **Content-Type**: application/json
|
189
|
+
- **Accept**: application/json
|
190
|
+
|
191
|
+
|
192
|
+
|
193
|
+
# **companies_id_get**
|
194
|
+
> Company companies_id_get(id)
|
195
|
+
|
196
|
+
Get a company
|
197
|
+
|
198
|
+
### Example
|
199
|
+
```ruby
|
200
|
+
# load the gem
|
201
|
+
require 'sib-api-v3-sdk'
|
202
|
+
# setup authorization
|
203
|
+
SibApiV3Sdk.configure do |config|
|
204
|
+
# Configure API key authorization: api-key
|
205
|
+
config.api_key['api-key'] = 'YOUR API KEY'
|
206
|
+
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
|
207
|
+
#config.api_key_prefix['api-key'] = 'Bearer'
|
208
|
+
|
209
|
+
# Configure API key authorization: partner-key
|
210
|
+
config.api_key['partner-key'] = 'YOUR API KEY'
|
211
|
+
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
|
212
|
+
#config.api_key_prefix['partner-key'] = 'Bearer'
|
213
|
+
end
|
214
|
+
|
215
|
+
api_instance = SibApiV3Sdk::CompaniesApi.new
|
216
|
+
|
217
|
+
id = 'id_example' # String |
|
218
|
+
|
219
|
+
|
220
|
+
begin
|
221
|
+
#Get a company
|
222
|
+
result = api_instance.companies_id_get(id)
|
223
|
+
p result
|
224
|
+
rescue SibApiV3Sdk::ApiError => e
|
225
|
+
puts "Exception when calling CompaniesApi->companies_id_get: #{e}"
|
226
|
+
end
|
227
|
+
```
|
228
|
+
|
229
|
+
### Parameters
|
230
|
+
|
231
|
+
Name | Type | Description | Notes
|
232
|
+
------------- | ------------- | ------------- | -------------
|
233
|
+
**id** | **String**| |
|
234
|
+
|
235
|
+
### Return type
|
236
|
+
|
237
|
+
[**Company**](Company.md)
|
238
|
+
|
239
|
+
### Authorization
|
240
|
+
|
241
|
+
[api-key](../README.md#api-key), [partner-key](../README.md#partner-key)
|
242
|
+
|
243
|
+
### HTTP request headers
|
244
|
+
|
245
|
+
- **Content-Type**: application/json
|
246
|
+
- **Accept**: application/json
|
247
|
+
|
248
|
+
|
249
|
+
|
250
|
+
# **companies_id_patch**
|
251
|
+
> Company companies_id_patch(id, body)
|
252
|
+
|
253
|
+
Update a company
|
254
|
+
|
255
|
+
### Example
|
256
|
+
```ruby
|
257
|
+
# load the gem
|
258
|
+
require 'sib-api-v3-sdk'
|
259
|
+
# setup authorization
|
260
|
+
SibApiV3Sdk.configure do |config|
|
261
|
+
# Configure API key authorization: api-key
|
262
|
+
config.api_key['api-key'] = 'YOUR API KEY'
|
263
|
+
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
|
264
|
+
#config.api_key_prefix['api-key'] = 'Bearer'
|
265
|
+
|
266
|
+
# Configure API key authorization: partner-key
|
267
|
+
config.api_key['partner-key'] = 'YOUR API KEY'
|
268
|
+
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
|
269
|
+
#config.api_key_prefix['partner-key'] = 'Bearer'
|
270
|
+
end
|
271
|
+
|
272
|
+
api_instance = SibApiV3Sdk::CompaniesApi.new
|
273
|
+
|
274
|
+
id = 'id_example' # String |
|
275
|
+
|
276
|
+
body = SibApiV3Sdk::Body1.new # Body1 | Updated company details.
|
277
|
+
|
278
|
+
|
279
|
+
begin
|
280
|
+
#Update a company
|
281
|
+
result = api_instance.companies_id_patch(id, body)
|
282
|
+
p result
|
283
|
+
rescue SibApiV3Sdk::ApiError => e
|
284
|
+
puts "Exception when calling CompaniesApi->companies_id_patch: #{e}"
|
285
|
+
end
|
286
|
+
```
|
287
|
+
|
288
|
+
### Parameters
|
289
|
+
|
290
|
+
Name | Type | Description | Notes
|
291
|
+
------------- | ------------- | ------------- | -------------
|
292
|
+
**id** | **String**| |
|
293
|
+
**body** | [**Body1**](Body1.md)| Updated company details. |
|
294
|
+
|
295
|
+
### Return type
|
296
|
+
|
297
|
+
[**Company**](Company.md)
|
298
|
+
|
299
|
+
### Authorization
|
300
|
+
|
301
|
+
[api-key](../README.md#api-key), [partner-key](../README.md#partner-key)
|
302
|
+
|
303
|
+
### HTTP request headers
|
304
|
+
|
305
|
+
- **Content-Type**: application/json
|
306
|
+
- **Accept**: application/json
|
307
|
+
|
308
|
+
|
309
|
+
|
310
|
+
# **companies_link_unlink_id_patch**
|
311
|
+
> companies_link_unlink_id_patch(id, body)
|
312
|
+
|
313
|
+
Link and Unlink company with contacts and deals
|
314
|
+
|
315
|
+
### Example
|
316
|
+
```ruby
|
317
|
+
# load the gem
|
318
|
+
require 'sib-api-v3-sdk'
|
319
|
+
# setup authorization
|
320
|
+
SibApiV3Sdk.configure do |config|
|
321
|
+
# Configure API key authorization: api-key
|
322
|
+
config.api_key['api-key'] = 'YOUR API KEY'
|
323
|
+
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
|
324
|
+
#config.api_key_prefix['api-key'] = 'Bearer'
|
325
|
+
|
326
|
+
# Configure API key authorization: partner-key
|
327
|
+
config.api_key['partner-key'] = 'YOUR API KEY'
|
328
|
+
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
|
329
|
+
#config.api_key_prefix['partner-key'] = 'Bearer'
|
330
|
+
end
|
331
|
+
|
332
|
+
api_instance = SibApiV3Sdk::CompaniesApi.new
|
333
|
+
|
334
|
+
id = 'id_example' # String |
|
335
|
+
|
336
|
+
body = SibApiV3Sdk::Body2.new # Body2 | Linked / Unlinked contacts and deals ids.
|
337
|
+
|
338
|
+
|
339
|
+
begin
|
340
|
+
#Link and Unlink company with contacts and deals
|
341
|
+
api_instance.companies_link_unlink_id_patch(id, body)
|
342
|
+
rescue SibApiV3Sdk::ApiError => e
|
343
|
+
puts "Exception when calling CompaniesApi->companies_link_unlink_id_patch: #{e}"
|
344
|
+
end
|
345
|
+
```
|
346
|
+
|
347
|
+
### Parameters
|
348
|
+
|
349
|
+
Name | Type | Description | Notes
|
350
|
+
------------- | ------------- | ------------- | -------------
|
351
|
+
**id** | **String**| |
|
352
|
+
**body** | [**Body2**](Body2.md)| Linked / Unlinked contacts and deals ids. |
|
353
|
+
|
354
|
+
### Return type
|
355
|
+
|
356
|
+
nil (empty response body)
|
357
|
+
|
358
|
+
### Authorization
|
359
|
+
|
360
|
+
[api-key](../README.md#api-key), [partner-key](../README.md#partner-key)
|
361
|
+
|
362
|
+
### HTTP request headers
|
363
|
+
|
364
|
+
- **Content-Type**: application/json
|
365
|
+
- **Accept**: application/json
|
366
|
+
|
367
|
+
|
368
|
+
|
369
|
+
# **companies_post**
|
370
|
+
> InlineResponse200 companies_post(body)
|
371
|
+
|
372
|
+
Create a company
|
373
|
+
|
374
|
+
### Example
|
375
|
+
```ruby
|
376
|
+
# load the gem
|
377
|
+
require 'sib-api-v3-sdk'
|
378
|
+
# setup authorization
|
379
|
+
SibApiV3Sdk.configure do |config|
|
380
|
+
# Configure API key authorization: api-key
|
381
|
+
config.api_key['api-key'] = 'YOUR API KEY'
|
382
|
+
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
|
383
|
+
#config.api_key_prefix['api-key'] = 'Bearer'
|
384
|
+
|
385
|
+
# Configure API key authorization: partner-key
|
386
|
+
config.api_key['partner-key'] = 'YOUR API KEY'
|
387
|
+
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
|
388
|
+
#config.api_key_prefix['partner-key'] = 'Bearer'
|
389
|
+
end
|
390
|
+
|
391
|
+
api_instance = SibApiV3Sdk::CompaniesApi.new
|
392
|
+
|
393
|
+
body = SibApiV3Sdk::Body.new # Body | Company create data.
|
394
|
+
|
395
|
+
|
396
|
+
begin
|
397
|
+
#Create a company
|
398
|
+
result = api_instance.companies_post(body)
|
399
|
+
p result
|
400
|
+
rescue SibApiV3Sdk::ApiError => e
|
401
|
+
puts "Exception when calling CompaniesApi->companies_post: #{e}"
|
402
|
+
end
|
403
|
+
```
|
404
|
+
|
405
|
+
### Parameters
|
406
|
+
|
407
|
+
Name | Type | Description | Notes
|
408
|
+
------------- | ------------- | ------------- | -------------
|
409
|
+
**body** | [**Body**](Body.md)| Company create data. |
|
410
|
+
|
411
|
+
### Return type
|
412
|
+
|
413
|
+
[**InlineResponse200**](InlineResponse200.md)
|
414
|
+
|
415
|
+
### Authorization
|
416
|
+
|
417
|
+
[api-key](../README.md#api-key), [partner-key](../README.md#partner-key)
|
418
|
+
|
419
|
+
### HTTP request headers
|
420
|
+
|
421
|
+
- **Content-Type**: application/json
|
422
|
+
- **Accept**: application/json
|
423
|
+
|
424
|
+
|
425
|
+
|
data/docs/Company.md
ADDED
@@ -0,0 +1,11 @@
|
|
1
|
+
# SibApiV3Sdk::Company
|
2
|
+
|
3
|
+
## Properties
|
4
|
+
Name | Type | Description | Notes
|
5
|
+
------------ | ------------- | ------------- | -------------
|
6
|
+
**id** | **String** | Unique company id | [optional]
|
7
|
+
**attributes** | **Object** | Company attributes with values | [optional]
|
8
|
+
**linked_contacts_ids** | **Array<Integer>** | Contact ids for contacts linked to this company | [optional]
|
9
|
+
**linked_deals_ids** | **Array<String>** | Deals ids for companies linked to this company | [optional]
|
10
|
+
|
11
|
+
|
@@ -0,0 +1,12 @@
|
|
1
|
+
# SibApiV3Sdk::CompanyAttributesInner
|
2
|
+
|
3
|
+
## Properties
|
4
|
+
Name | Type | Description | Notes
|
5
|
+
------------ | ------------- | ------------- | -------------
|
6
|
+
**internal_name** | **String** | | [optional]
|
7
|
+
**label** | **String** | | [optional]
|
8
|
+
**attribute_type_name** | **String** | | [optional]
|
9
|
+
**attribute_options** | **Array<Object>** | | [optional]
|
10
|
+
**is_required** | **BOOLEAN** | | [optional]
|
11
|
+
|
12
|
+
|
data/docs/ContactsApi.md
CHANGED
@@ -28,6 +28,7 @@ Method | HTTP request | Description
|
|
28
28
|
[**remove_contact_from_list**](ContactsApi.md#remove_contact_from_list) | **POST** /contacts/lists/{listId}/contacts/remove | Delete a contact from a list
|
29
29
|
[**request_contact_export**](ContactsApi.md#request_contact_export) | **POST** /contacts/export | Export contacts
|
30
30
|
[**update_attribute**](ContactsApi.md#update_attribute) | **PUT** /contacts/attributes/{attributeCategory}/{attributeName} | Update contact attribute
|
31
|
+
[**update_batch_contacts**](ContactsApi.md#update_batch_contacts) | **POST** /contacts/batch | Update multiple contacts
|
31
32
|
[**update_contact**](ContactsApi.md#update_contact) | **PUT** /contacts/{identifier} | Update a contact
|
32
33
|
[**update_folder**](ContactsApi.md#update_folder) | **PUT** /contacts/folders/{folderId} | Update a folder
|
33
34
|
[**update_list**](ContactsApi.md#update_list) | **PUT** /contacts/lists/{listId} | Update a list
|
@@ -661,10 +662,12 @@ This endpoint does not need any parameter.
|
|
661
662
|
|
662
663
|
|
663
664
|
# **get_contact_info**
|
664
|
-
> GetExtendedContactDetails get_contact_info(identifier)
|
665
|
+
> GetExtendedContactDetails get_contact_info(identifier, opts)
|
665
666
|
|
666
667
|
Get a contact's details
|
667
668
|
|
669
|
+
Along with the contact details, this endpoint will show the statistics of contact for the recent 90 days by default. To fetch the earlier statistics, please use Get contact campaign stats (https://developers.sendinblue.com/reference/contacts-7#getcontactstats) endpoint with the appropriate date ranges.
|
670
|
+
|
668
671
|
### Example
|
669
672
|
```ruby
|
670
673
|
# load the gem
|
@@ -686,10 +689,14 @@ api_instance = SibApiV3Sdk::ContactsApi.new
|
|
686
689
|
|
687
690
|
identifier = 'identifier_example' # String | Email (urlencoded) OR ID of the contact OR its SMS attribute value
|
688
691
|
|
692
|
+
opts = {
|
693
|
+
start_date: nil, # Object | **Mandatory if endDate is used.** Starting date (YYYY-MM-DD) of the statistic events specific to campaigns. Must be lower than equal to endDate
|
694
|
+
end_date: nil # Object | **Mandatory if startDate is used.** Ending date (YYYY-MM-DD) of the statistic events specific to campaigns. Must be greater than equal to startDate.
|
695
|
+
}
|
689
696
|
|
690
697
|
begin
|
691
698
|
#Get a contact's details
|
692
|
-
result = api_instance.get_contact_info(identifier)
|
699
|
+
result = api_instance.get_contact_info(identifier, opts)
|
693
700
|
p result
|
694
701
|
rescue SibApiV3Sdk::ApiError => e
|
695
702
|
puts "Exception when calling ContactsApi->get_contact_info: #{e}"
|
@@ -701,6 +708,8 @@ end
|
|
701
708
|
Name | Type | Description | Notes
|
702
709
|
------------- | ------------- | ------------- | -------------
|
703
710
|
**identifier** | **String**| Email (urlencoded) OR ID of the contact OR its SMS attribute value |
|
711
|
+
**start_date** | [**Object**](.md)| **Mandatory if endDate is used.** Starting date (YYYY-MM-DD) of the statistic events specific to campaigns. Must be lower than equal to endDate | [optional]
|
712
|
+
**end_date** | [**Object**](.md)| **Mandatory if startDate is used.** Ending date (YYYY-MM-DD) of the statistic events specific to campaigns. Must be greater than equal to startDate. | [optional]
|
704
713
|
|
705
714
|
### Return type
|
706
715
|
|
@@ -745,7 +754,7 @@ identifier = 'identifier_example' # String | Email (urlencoded) OR ID of the con
|
|
745
754
|
|
746
755
|
opts = {
|
747
756
|
start_date: 'start_date_example', # String | Mandatory if endDate is used. Starting date (YYYY-MM-DD) of the statistic events specific to campaigns. Must be lower than equal to endDate
|
748
|
-
end_date: 'end_date_example' # String | Mandatory if startDate is used. Ending date (YYYY-MM-DD) of the statistic events specific to campaigns. Must be greater than equal to startDate
|
757
|
+
end_date: 'end_date_example' # String | Mandatory if startDate is used. Ending date (YYYY-MM-DD) of the statistic events specific to campaigns. Must be greater than equal to startDate. Maximum difference between startDate and endDate should not be greater than 90 days
|
749
758
|
}
|
750
759
|
|
751
760
|
begin
|
@@ -763,7 +772,7 @@ Name | Type | Description | Notes
|
|
763
772
|
------------- | ------------- | ------------- | -------------
|
764
773
|
**identifier** | **String**| Email (urlencoded) OR ID of the contact |
|
765
774
|
**start_date** | **String**| Mandatory if endDate is used. Starting date (YYYY-MM-DD) of the statistic events specific to campaigns. Must be lower than equal to endDate | [optional]
|
766
|
-
**end_date** | **String**| Mandatory if startDate is used. Ending date (YYYY-MM-DD) of the statistic events specific to campaigns. Must be greater than equal to startDate | [optional]
|
775
|
+
**end_date** | **String**| Mandatory if startDate is used. Ending date (YYYY-MM-DD) of the statistic events specific to campaigns. Must be greater than equal to startDate. Maximum difference between startDate and endDate should not be greater than 90 days | [optional]
|
767
776
|
|
768
777
|
### Return type
|
769
778
|
|
@@ -1456,6 +1465,62 @@ nil (empty response body)
|
|
1456
1465
|
|
1457
1466
|
|
1458
1467
|
|
1468
|
+
# **update_batch_contacts**
|
1469
|
+
> update_batch_contacts(update_batch_contacts)
|
1470
|
+
|
1471
|
+
Update multiple contacts
|
1472
|
+
|
1473
|
+
### Example
|
1474
|
+
```ruby
|
1475
|
+
# load the gem
|
1476
|
+
require 'sib-api-v3-sdk'
|
1477
|
+
# setup authorization
|
1478
|
+
SibApiV3Sdk.configure do |config|
|
1479
|
+
# Configure API key authorization: api-key
|
1480
|
+
config.api_key['api-key'] = 'YOUR API KEY'
|
1481
|
+
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
|
1482
|
+
#config.api_key_prefix['api-key'] = 'Bearer'
|
1483
|
+
|
1484
|
+
# Configure API key authorization: partner-key
|
1485
|
+
config.api_key['partner-key'] = 'YOUR API KEY'
|
1486
|
+
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
|
1487
|
+
#config.api_key_prefix['partner-key'] = 'Bearer'
|
1488
|
+
end
|
1489
|
+
|
1490
|
+
api_instance = SibApiV3Sdk::ContactsApi.new
|
1491
|
+
|
1492
|
+
update_batch_contacts = SibApiV3Sdk::UpdateBatchContacts.new # UpdateBatchContacts | Values to update multiple contacts
|
1493
|
+
|
1494
|
+
|
1495
|
+
begin
|
1496
|
+
#Update multiple contacts
|
1497
|
+
api_instance.update_batch_contacts(update_batch_contacts)
|
1498
|
+
rescue SibApiV3Sdk::ApiError => e
|
1499
|
+
puts "Exception when calling ContactsApi->update_batch_contacts: #{e}"
|
1500
|
+
end
|
1501
|
+
```
|
1502
|
+
|
1503
|
+
### Parameters
|
1504
|
+
|
1505
|
+
Name | Type | Description | Notes
|
1506
|
+
------------- | ------------- | ------------- | -------------
|
1507
|
+
**update_batch_contacts** | [**UpdateBatchContacts**](UpdateBatchContacts.md)| Values to update multiple contacts |
|
1508
|
+
|
1509
|
+
### Return type
|
1510
|
+
|
1511
|
+
nil (empty response body)
|
1512
|
+
|
1513
|
+
### Authorization
|
1514
|
+
|
1515
|
+
[api-key](../README.md#api-key), [partner-key](../README.md#partner-key)
|
1516
|
+
|
1517
|
+
### HTTP request headers
|
1518
|
+
|
1519
|
+
- **Content-Type**: application/json
|
1520
|
+
- **Accept**: application/json
|
1521
|
+
|
1522
|
+
|
1523
|
+
|
1459
1524
|
# **update_contact**
|
1460
1525
|
> update_contact(identifier, update_contact)
|
1461
1526
|
|