sib-api-v3-sdk 7.5.0 → 8.0.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +59 -4
- data/docs/Body.md +18 -0
- data/docs/Body1.md +18 -0
- data/docs/CRMApi.md +710 -0
- data/docs/Contact.md +15 -0
- data/docs/ContactsApi.md +61 -2
- data/docs/CreateSmsCampaign.md +1 -0
- data/docs/CreateSubAccount.md +10 -0
- data/docs/CreateWebhook.md +2 -1
- data/docs/FileData.md +17 -0
- data/docs/GetCampaignStats.md +1 -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/InboundParsingApi.md +139 -0
- data/docs/MasterAccountApi.md +367 -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/RequestContactExport.md +1 -2
- data/docs/SendSmtpEmail.md +3 -3
- 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 +24 -0
- data/docs/TaskReminder.md +10 -0
- data/docs/TransactionalEmailsApi.md +4 -63
- data/docs/UpdateBatchContacts.md +8 -0
- data/docs/UpdateBatchContactsContacts.md +16 -0
- data/docs/UpdateBatchContactsModel.md +9 -0
- data/docs/UpdateSmsCampaign.md +1 -0
- data/docs/UpdateWebhook.md +2 -1
- data/lib/sib-api-v3-sdk/api/contacts_api.rb +55 -2
- data/lib/sib-api-v3-sdk/api/crm_api.rb +670 -0
- data/lib/sib-api-v3-sdk/api/inbound_parsing_api.rb +161 -0
- data/lib/sib-api-v3-sdk/api/master_account_api.rb +365 -0
- data/lib/sib-api-v3-sdk/api/transactional_emails_api.rb +4 -60
- data/lib/sib-api-v3-sdk/api/webhooks_api.rb +2 -2
- data/lib/sib-api-v3-sdk/models/body.rb +305 -0
- data/lib/sib-api-v3-sdk/models/body_1.rb +305 -0
- data/lib/sib-api-v3-sdk/models/{send_email.rb → contact.rb} +64 -78
- data/lib/sib-api-v3-sdk/models/create_sms_campaign.rb +16 -4
- data/lib/sib-api-v3-sdk/models/create_sub_account.rb +244 -0
- data/lib/sib-api-v3-sdk/models/create_webhook.rb +17 -7
- data/lib/sib-api-v3-sdk/models/file_data.rb +278 -0
- data/lib/sib-api-v3-sdk/models/get_campaign_stats.rb +16 -1
- data/lib/sib-api-v3-sdk/models/get_contact_campaign_stats.rb +15 -4
- 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/{send_template_email.rb → get_inbound_email_events.rb} +10 -14
- 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/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/{send_email_attachment.rb → master_details_response_plan_info_features.rb} +45 -44
- 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/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/send_smtp_email.rb +3 -3
- 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 +367 -0
- data/lib/sib-api-v3-sdk/models/task_reminder.rb +257 -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_sms_campaign.rb +16 -4
- data/lib/sib-api-v3-sdk/models/update_webhook.rb +15 -5
- data/lib/sib-api-v3-sdk/version.rb +1 -1
- data/lib/sib-api-v3-sdk.rb +41 -3
- data/sib-api-v3-sdk.gemspec +2 -1
- data/spec/api/contacts_api_spec.rb +13 -1
- data/spec/api/crm_api_spec.rb +170 -0
- data/spec/api/inbound_parsing_api_spec.rb +64 -0
- data/spec/api/master_account_api_spec.rb +108 -0
- data/spec/api/transactional_emails_api_spec.rb +2 -13
- data/spec/models/body_1_spec.rb +101 -0
- data/spec/models/body_spec.rb +101 -0
- data/spec/models/contact_spec.rb +83 -0
- data/spec/models/create_sms_campaign_spec.rb +6 -0
- data/spec/models/create_sub_account_spec.rb +57 -0
- data/spec/models/create_webhook_spec.rb +8 -2
- data/spec/models/file_data_spec.rb +95 -0
- data/spec/models/get_campaign_stats_spec.rb +6 -0
- data/spec/models/get_contact_campaign_stats_spec.rb +6 -0
- 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/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_spec.rb +77 -0
- data/spec/models/request_contact_export_spec.rb +0 -6
- data/spec/models/send_transac_sms_spec.rb +6 -0
- data/spec/models/{send_email_attachment_spec.rb → sso_token_request_spec.rb} +8 -8
- 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_reminder_spec.rb +57 -0
- data/spec/models/task_spec.rb +137 -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/{send_template_email_spec.rb → update_batch_contacts_spec.rb} +7 -7
- data/spec/models/update_sms_campaign_spec.rb +6 -0
- data/spec/models/update_webhook_spec.rb +7 -1
- metadata +186 -14
- data/docs/SendEmail.md +0 -16
- data/docs/SendEmailAttachment.md +0 -9
- data/docs/SendTemplateEmail.md +0 -8
@@ -0,0 +1,11 @@
|
|
1
|
+
# SibApiV3Sdk::SubAccountsResponseSubAccounts
|
2
|
+
|
3
|
+
## Properties
|
4
|
+
Name | Type | Description | Notes
|
5
|
+
------------ | ------------- | ------------- | -------------
|
6
|
+
**id** | **Integer** | client id of sub-account organization |
|
7
|
+
**company_name** | **String** | Name of sub-account organization |
|
8
|
+
**active** | **BOOLEAN** | Whether organization is active or not |
|
9
|
+
**created_at** | **Integer** | timestamp when the organization was created |
|
10
|
+
|
11
|
+
|
data/docs/Task.md
ADDED
@@ -0,0 +1,24 @@
|
|
1
|
+
# SibApiV3Sdk::Task
|
2
|
+
|
3
|
+
## Properties
|
4
|
+
Name | Type | Description | Notes
|
5
|
+
------------ | ------------- | ------------- | -------------
|
6
|
+
**first_contact** | [**Contact**](Contact.md) | | [optional]
|
7
|
+
**id** | **String** | Unique task id | [optional]
|
8
|
+
**task_type_id** | **String** | Id for type of task e.g Call / Email / Meeting etc. |
|
9
|
+
**name** | **String** | Name of task |
|
10
|
+
**contacts_ids** | **Array<Integer>** | Contact ids for contacts linked to this task | [optional]
|
11
|
+
**contacts** | [**Array<Contact>**](Contact.md) | Contact details for contacts linked to this task | [optional]
|
12
|
+
**deals_ids** | **Array<String>** | Deal ids for deals a task is linked to | [optional]
|
13
|
+
**companies_ids** | **Array<String>** | Companies ids for companies a task is linked to | [optional]
|
14
|
+
**assign_to_id** | **String** | User id to whom task is assigned | [optional]
|
15
|
+
**date** | **DateTime** | Task date/time |
|
16
|
+
**duration** | **Integer** | Duration of task | [optional]
|
17
|
+
**notes** | **String** | Notes added to a task | [optional]
|
18
|
+
**done** | **BOOLEAN** | Task marked as done | [optional]
|
19
|
+
**reminder** | [**TaskReminder**](TaskReminder.md) | Task reminder date/time for a task | [optional]
|
20
|
+
**created_at** | **DateTime** | Task created date/time | [optional]
|
21
|
+
**updated_at** | **DateTime** | Task update date/time | [optional]
|
22
|
+
**refs** | **Object** | | [optional]
|
23
|
+
|
24
|
+
|
@@ -0,0 +1,10 @@
|
|
1
|
+
# SibApiV3Sdk::TaskReminder
|
2
|
+
|
3
|
+
## Properties
|
4
|
+
Name | Type | Description | Notes
|
5
|
+
------------ | ------------- | ------------- | -------------
|
6
|
+
**value** | **Integer** | Value of time unit before reminder is to be sent |
|
7
|
+
**unit** | **String** | Unit of time before reminder is to be sent |
|
8
|
+
**types** | **Array<String>** | Type of task reminder |
|
9
|
+
|
10
|
+
|
@@ -18,7 +18,6 @@ Method | HTTP request | Description
|
|
18
18
|
[**get_transac_blocked_contacts**](TransactionalEmailsApi.md#get_transac_blocked_contacts) | **GET** /smtp/blockedContacts | Get the list of blocked or unsubscribed transactional contacts
|
19
19
|
[**get_transac_email_content**](TransactionalEmailsApi.md#get_transac_email_content) | **GET** /smtp/emails/{uuid} | Get the personalized content of a sent transactional email
|
20
20
|
[**get_transac_emails_list**](TransactionalEmailsApi.md#get_transac_emails_list) | **GET** /smtp/emails | Get the list of transactional emails on the basis of allowed filters
|
21
|
-
[**send_template**](TransactionalEmailsApi.md#send_template) | **POST** /smtp/templates/{templateId}/send | Send a template
|
22
21
|
[**send_test_template**](TransactionalEmailsApi.md#send_test_template) | **POST** /smtp/templates/{templateId}/sendTest | Send a template to your test list
|
23
22
|
[**send_transac_email**](TransactionalEmailsApi.md#send_transac_email) | **POST** /smtp/email | Send a transactional email
|
24
23
|
[**smtp_blocked_contacts_email_delete**](TransactionalEmailsApi.md#smtp_blocked_contacts_email_delete) | **DELETE** /smtp/blockedContacts/{email} | Unblock or resubscribe a transactional contact
|
@@ -319,6 +318,8 @@ nil (empty response body)
|
|
319
318
|
|
320
319
|
Get your transactional email activity aggregated over a period of time
|
321
320
|
|
321
|
+
This endpoint will show the aggregated stats for past 90 days by default if `startDate` and `endDate` OR `days` is not passed. The date range can not exceed 90 days
|
322
|
+
|
322
323
|
### Example
|
323
324
|
```ruby
|
324
325
|
# load the gem
|
@@ -436,6 +437,8 @@ This endpoint does not need any parameter.
|
|
436
437
|
|
437
438
|
Get all your transactional email activity (unaggregated events)
|
438
439
|
|
440
|
+
This endpoint will show the aggregated stats for past 30 days by default if `startDate` and `endDate` OR `days` is not passed. The date range can not exceed 90 days
|
441
|
+
|
439
442
|
### Example
|
440
443
|
```ruby
|
441
444
|
# load the gem
|
@@ -899,68 +902,6 @@ Name | Type | Description | Notes
|
|
899
902
|
|
900
903
|
|
901
904
|
|
902
|
-
# **send_template**
|
903
|
-
> SendTemplateEmail send_template(template_id, send_email)
|
904
|
-
|
905
|
-
Send a template
|
906
|
-
|
907
|
-
This endpoint is deprecated. Prefer v3/smtp/email instead.
|
908
|
-
|
909
|
-
### Example
|
910
|
-
```ruby
|
911
|
-
# load the gem
|
912
|
-
require 'sib-api-v3-sdk'
|
913
|
-
# setup authorization
|
914
|
-
SibApiV3Sdk.configure do |config|
|
915
|
-
# Configure API key authorization: api-key
|
916
|
-
config.api_key['api-key'] = 'YOUR API KEY'
|
917
|
-
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
|
918
|
-
#config.api_key_prefix['api-key'] = 'Bearer'
|
919
|
-
|
920
|
-
# Configure API key authorization: partner-key
|
921
|
-
config.api_key['partner-key'] = 'YOUR API KEY'
|
922
|
-
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
|
923
|
-
#config.api_key_prefix['partner-key'] = 'Bearer'
|
924
|
-
end
|
925
|
-
|
926
|
-
api_instance = SibApiV3Sdk::TransactionalEmailsApi.new
|
927
|
-
|
928
|
-
template_id = 789 # Integer | Id of the template
|
929
|
-
|
930
|
-
send_email = SibApiV3Sdk::SendEmail.new # SendEmail |
|
931
|
-
|
932
|
-
|
933
|
-
begin
|
934
|
-
#Send a template
|
935
|
-
result = api_instance.send_template(template_id, send_email)
|
936
|
-
p result
|
937
|
-
rescue SibApiV3Sdk::ApiError => e
|
938
|
-
puts "Exception when calling TransactionalEmailsApi->send_template: #{e}"
|
939
|
-
end
|
940
|
-
```
|
941
|
-
|
942
|
-
### Parameters
|
943
|
-
|
944
|
-
Name | Type | Description | Notes
|
945
|
-
------------- | ------------- | ------------- | -------------
|
946
|
-
**template_id** | **Integer**| Id of the template |
|
947
|
-
**send_email** | [**SendEmail**](SendEmail.md)| |
|
948
|
-
|
949
|
-
### Return type
|
950
|
-
|
951
|
-
[**SendTemplateEmail**](SendTemplateEmail.md)
|
952
|
-
|
953
|
-
### Authorization
|
954
|
-
|
955
|
-
[api-key](../README.md#api-key), [partner-key](../README.md#partner-key)
|
956
|
-
|
957
|
-
### HTTP request headers
|
958
|
-
|
959
|
-
- **Content-Type**: application/json
|
960
|
-
- **Accept**: application/json
|
961
|
-
|
962
|
-
|
963
|
-
|
964
905
|
# **send_test_template**
|
965
906
|
> send_test_template(template_id, send_test_email)
|
966
907
|
|
@@ -0,0 +1,8 @@
|
|
1
|
+
# SibApiV3Sdk::UpdateBatchContacts
|
2
|
+
|
3
|
+
## Properties
|
4
|
+
Name | Type | Description | Notes
|
5
|
+
------------ | ------------- | ------------- | -------------
|
6
|
+
**contacts** | [**Array<UpdateBatchContactsContacts>**](UpdateBatchContactsContacts.md) | List of contacts to be updated | [optional]
|
7
|
+
|
8
|
+
|
@@ -0,0 +1,16 @@
|
|
1
|
+
# SibApiV3Sdk::UpdateBatchContactsContacts
|
2
|
+
|
3
|
+
## Properties
|
4
|
+
Name | Type | Description | Notes
|
5
|
+
------------ | ------------- | ------------- | -------------
|
6
|
+
**email** | **String** | Email address of the user to be updated (For each operation only pass one of the supported contact identifiers. Email, id or sms) | [optional]
|
7
|
+
**id** | **Integer** | id of the user to be updated (For each operation only pass one of the supported contact identifiers. Email, id or sms) | [optional]
|
8
|
+
**sms** | **String** | SMS of the user to be updated (For each operation only pass one of the supported contact identifiers. Email, id or sms) | [optional]
|
9
|
+
**attributes** | **Hash<String, Object>** | Pass the set of attributes to be updated. **These attributes must be present in your account**. To update existing email address of a contact with the new one please pass EMAIL in attribtes. For example, **{ \"EMAIL\":\"newemail@domain.com\", \"FNAME\":\"Ellie\", \"LNAME\":\"Roger\"}**. Keep in mind transactional attributes can be updated the same way as normal attributes. Mobile Number in **SMS** field should be passed with proper country code. For example: **{\"SMS\":\"+91xxxxxxxxxx\"} or {\"SMS\":\"0091xxxxxxxxxx\"}** | [optional]
|
10
|
+
**email_blacklisted** | **BOOLEAN** | Set/unset this field to blacklist/allow the contact for emails (emailBlacklisted = true) | [optional]
|
11
|
+
**sms_blacklisted** | **BOOLEAN** | Set/unset this field to blacklist/allow the contact for SMS (smsBlacklisted = true) | [optional]
|
12
|
+
**list_ids** | **Array<Integer>** | Ids of the lists to add the contact to | [optional]
|
13
|
+
**unlink_list_ids** | **Array<Integer>** | Ids of the lists to remove the contact from | [optional]
|
14
|
+
**smtp_blacklist_sender** | **Array<String>** | transactional email forbidden sender for contact. Use only for email Contact | [optional]
|
15
|
+
|
16
|
+
|
@@ -0,0 +1,9 @@
|
|
1
|
+
# SibApiV3Sdk::UpdateBatchContactsModel
|
2
|
+
|
3
|
+
## Properties
|
4
|
+
Name | Type | Description | Notes
|
5
|
+
------------ | ------------- | ------------- | -------------
|
6
|
+
**success_ids** | **Array<Integer>** | | [optional]
|
7
|
+
**failure_ids** | **Array<Integer>** | | [optional]
|
8
|
+
|
9
|
+
|
data/docs/UpdateSmsCampaign.md
CHANGED
@@ -8,5 +8,6 @@ Name | Type | Description | Notes
|
|
8
8
|
**content** | **String** | Content of the message. The maximum characters used per SMS is 160, if used more than that, it will be counted as more than one SMS | [optional]
|
9
9
|
**recipients** | [**CreateSmsCampaignRecipients**](CreateSmsCampaignRecipients.md) | | [optional]
|
10
10
|
**scheduled_at** | **String** | UTC date-time on which the campaign has to run (YYYY-MM-DDTHH:mm:ss.SSSZ). Prefer to pass your timezone in date-time format for accurate result. | [optional]
|
11
|
+
**unicode_enabled** | **BOOLEAN** | Format of the message. It indicates whether the content should be treated as unicode or not. | [optional] [default to false]
|
11
12
|
|
12
13
|
|
data/docs/UpdateWebhook.md
CHANGED
@@ -5,6 +5,7 @@ Name | Type | Description | Notes
|
|
5
5
|
------------ | ------------- | ------------- | -------------
|
6
6
|
**url** | **String** | URL of the webhook | [optional]
|
7
7
|
**description** | **String** | Description of the webhook | [optional]
|
8
|
-
**events** | **Array<String>** | Events triggering the webhook. Possible values for Transactional type webhook
|
8
|
+
**events** | **Array<String>** | - Events triggering the webhook. Possible values for **Transactional** type webhook: #### `sent` OR `request`, `delivered`, `hardBounce`, `softBounce`, `blocked`, `spam`, `invalid`, `deferred`, `click`, `opened`, `uniqueOpened` and `unsubscribed` - Possible values for **Marketing** type webhook: #### `spam`, `opened`, `click`, `hardBounce`, `softBounce`, `unsubscribed`, `listAddition` & `delivered` - Possible values for **Inbound** type webhook: #### `inboundEmailProcessed` | [optional]
|
9
|
+
**domain** | **String** | Inbound domain of webhook, used in case of event type `inbound` | [optional]
|
9
10
|
|
10
11
|
|
@@ -622,6 +622,7 @@ module SibApiV3Sdk
|
|
622
622
|
return data, status_code, headers
|
623
623
|
end
|
624
624
|
# Get a contact's details
|
625
|
+
# 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.
|
625
626
|
# @param identifier Email (urlencoded) OR ID of the contact OR its SMS attribute value
|
626
627
|
# @param [Hash] opts the optional parameters
|
627
628
|
# @return [GetExtendedContactDetails]
|
@@ -631,6 +632,7 @@ module SibApiV3Sdk
|
|
631
632
|
end
|
632
633
|
|
633
634
|
# Get a contact's details
|
635
|
+
# 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.
|
634
636
|
# @param identifier Email (urlencoded) OR ID of the contact OR its SMS attribute value
|
635
637
|
# @param [Hash] opts the optional parameters
|
636
638
|
# @return [Array<(GetExtendedContactDetails, Fixnum, Hash)>] GetExtendedContactDetails data, response status code and response headers
|
@@ -677,7 +679,7 @@ module SibApiV3Sdk
|
|
677
679
|
# @param identifier Email (urlencoded) OR ID of the contact
|
678
680
|
# @param [Hash] opts the optional parameters
|
679
681
|
# @option opts [String] :start_date Mandatory if endDate is used. Starting date (YYYY-MM-DD) of the statistic events specific to campaigns. Must be lower than equal to endDate
|
680
|
-
# @option opts [String] :end_date Mandatory if startDate is used. Ending date (YYYY-MM-DD) of the statistic events specific to campaigns. Must be greater than equal to startDate
|
682
|
+
# @option opts [String] :end_date 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
|
681
683
|
# @return [GetContactCampaignStats]
|
682
684
|
def get_contact_stats(identifier, opts = {})
|
683
685
|
data, _status_code, _headers = get_contact_stats_with_http_info(identifier, opts)
|
@@ -688,7 +690,7 @@ module SibApiV3Sdk
|
|
688
690
|
# @param identifier Email (urlencoded) OR ID of the contact
|
689
691
|
# @param [Hash] opts the optional parameters
|
690
692
|
# @option opts [String] :start_date Mandatory if endDate is used. Starting date (YYYY-MM-DD) of the statistic events specific to campaigns. Must be lower than equal to endDate
|
691
|
-
# @option opts [String] :end_date Mandatory if startDate is used. Ending date (YYYY-MM-DD) of the statistic events specific to campaigns. Must be greater than equal to startDate
|
693
|
+
# @option opts [String] :end_date 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
|
692
694
|
# @return [Array<(GetContactCampaignStats, Fixnum, Hash)>] GetContactCampaignStats data, response status code and response headers
|
693
695
|
def get_contact_stats_with_http_info(identifier, opts = {})
|
694
696
|
if @api_client.config.debugging
|
@@ -1404,6 +1406,57 @@ module SibApiV3Sdk
|
|
1404
1406
|
end
|
1405
1407
|
return data, status_code, headers
|
1406
1408
|
end
|
1409
|
+
# Update multiple contacts
|
1410
|
+
# @param update_batch_contacts Values to update multiple contacts
|
1411
|
+
# @param [Hash] opts the optional parameters
|
1412
|
+
# @return [nil]
|
1413
|
+
def update_batch_contacts(update_batch_contacts, opts = {})
|
1414
|
+
update_batch_contacts_with_http_info(update_batch_contacts, opts)
|
1415
|
+
nil
|
1416
|
+
end
|
1417
|
+
|
1418
|
+
# Update multiple contacts
|
1419
|
+
# @param update_batch_contacts Values to update multiple contacts
|
1420
|
+
# @param [Hash] opts the optional parameters
|
1421
|
+
# @return [Array<(nil, Fixnum, Hash)>] nil, response status code and response headers
|
1422
|
+
def update_batch_contacts_with_http_info(update_batch_contacts, opts = {})
|
1423
|
+
if @api_client.config.debugging
|
1424
|
+
@api_client.config.logger.debug 'Calling API: ContactsApi.update_batch_contacts ...'
|
1425
|
+
end
|
1426
|
+
# verify the required parameter 'update_batch_contacts' is set
|
1427
|
+
if @api_client.config.client_side_validation && update_batch_contacts.nil?
|
1428
|
+
fail ArgumentError, "Missing the required parameter 'update_batch_contacts' when calling ContactsApi.update_batch_contacts"
|
1429
|
+
end
|
1430
|
+
# resource path
|
1431
|
+
local_var_path = '/contacts/batch'
|
1432
|
+
|
1433
|
+
# query parameters
|
1434
|
+
query_params = {}
|
1435
|
+
|
1436
|
+
# header parameters
|
1437
|
+
header_params = {}
|
1438
|
+
# HTTP header 'Accept' (if needed)
|
1439
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
1440
|
+
# HTTP header 'Content-Type'
|
1441
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
|
1442
|
+
|
1443
|
+
# form parameters
|
1444
|
+
form_params = {}
|
1445
|
+
|
1446
|
+
# http body (model)
|
1447
|
+
post_body = @api_client.object_to_http_body(update_batch_contacts)
|
1448
|
+
auth_names = ['api-key', 'partner-key']
|
1449
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path,
|
1450
|
+
:header_params => header_params,
|
1451
|
+
:query_params => query_params,
|
1452
|
+
:form_params => form_params,
|
1453
|
+
:body => post_body,
|
1454
|
+
:auth_names => auth_names)
|
1455
|
+
if @api_client.config.debugging
|
1456
|
+
@api_client.config.logger.debug "API called: ContactsApi#update_batch_contacts\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
1457
|
+
end
|
1458
|
+
return data, status_code, headers
|
1459
|
+
end
|
1407
1460
|
# Update a contact
|
1408
1461
|
# @param identifier Email (urlencoded) OR ID of the contact
|
1409
1462
|
# @param update_contact Values to update a contact
|