ElasticEmail 4.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/DIFF +0 -0
- data/ElasticEmail.gemspec +38 -0
- data/Gemfile +9 -0
- data/README.md +286 -0
- data/Rakefile +10 -0
- data/VERSION +1 -0
- data/docs/AccessLevel.md +15 -0
- data/docs/AccountStatusEnum.md +15 -0
- data/docs/ApiKey.md +28 -0
- data/docs/ApiKeyPayload.md +26 -0
- data/docs/BodyContentType.md +15 -0
- data/docs/BodyPart.md +22 -0
- data/docs/Campaign.md +26 -0
- data/docs/CampaignOptions.md +26 -0
- data/docs/CampaignRecipient.md +20 -0
- data/docs/CampaignStatus.md +15 -0
- data/docs/CampaignTemplate.md +30 -0
- data/docs/CampaignsApi.md +374 -0
- data/docs/ChannelLogStatusSummary.md +44 -0
- data/docs/CompressionFormat.md +15 -0
- data/docs/ConsentData.md +22 -0
- data/docs/ConsentTracking.md +15 -0
- data/docs/Contact.md +38 -0
- data/docs/ContactActivity.md +38 -0
- data/docs/ContactHistEventType.md +15 -0
- data/docs/ContactHistory.md +30 -0
- data/docs/ContactPayload.md +28 -0
- data/docs/ContactSource.md +15 -0
- data/docs/ContactStatus.md +15 -0
- data/docs/ContactUpdatePayload.md +22 -0
- data/docs/ContactsApi.md +756 -0
- data/docs/ContactsList.md +24 -0
- data/docs/DeliveryOptimizationType.md +15 -0
- data/docs/EmailContent.md +38 -0
- data/docs/EmailData.md +22 -0
- data/docs/EmailMessageData.md +22 -0
- data/docs/EmailRecipient.md +20 -0
- data/docs/EmailSend.md +20 -0
- data/docs/EmailStatus.md +40 -0
- data/docs/EmailTransactionalMessageData.md +22 -0
- data/docs/EmailValidationResult.md +34 -0
- data/docs/EmailValidationStatus.md +15 -0
- data/docs/EmailView.md +22 -0
- data/docs/EmailsApi.md +295 -0
- data/docs/EmailsPayload.md +20 -0
- data/docs/EncodingType.md +15 -0
- data/docs/EventType.md +15 -0
- data/docs/EventsApi.md +575 -0
- data/docs/EventsOrderBy.md +15 -0
- data/docs/ExportFileFormats.md +15 -0
- data/docs/ExportLink.md +20 -0
- data/docs/ExportStatus.md +15 -0
- data/docs/FileInfo.md +26 -0
- data/docs/FilePayload.md +22 -0
- data/docs/FileUploadResult.md +20 -0
- data/docs/FilesApi.md +374 -0
- data/docs/InboundPayload.md +28 -0
- data/docs/InboundRoute.md +30 -0
- data/docs/InboundRouteActionType.md +15 -0
- data/docs/InboundRouteApi.md +437 -0
- data/docs/InboundRouteFilterType.md +15 -0
- data/docs/ListPayload.md +22 -0
- data/docs/ListUpdatePayload.md +20 -0
- data/docs/ListsApi.md +519 -0
- data/docs/LogJobStatus.md +15 -0
- data/docs/LogStatusSummary.md +42 -0
- data/docs/MergeEmailPayload.md +22 -0
- data/docs/MessageAttachment.md +22 -0
- data/docs/MessageCategory.md +15 -0
- data/docs/NewApiKey.md +30 -0
- data/docs/NewSmtpCredentials.md +30 -0
- data/docs/Options.md +28 -0
- data/docs/RecipientEvent.md +42 -0
- data/docs/SecurityApi.md +749 -0
- data/docs/Segment.md +20 -0
- data/docs/SegmentPayload.md +20 -0
- data/docs/SegmentsApi.md +372 -0
- data/docs/SmtpCredentials.md +28 -0
- data/docs/SmtpCredentialsPayload.md +24 -0
- data/docs/SortOrderItem.md +20 -0
- data/docs/SplitOptimizationType.md +15 -0
- data/docs/SplitOptions.md +20 -0
- data/docs/StatisticsApi.md +379 -0
- data/docs/SubAccountInfo.md +34 -0
- data/docs/SubAccountsApi.md +445 -0
- data/docs/SubaccountEmailCreditsPayload.md +20 -0
- data/docs/SubaccountEmailSettings.md +30 -0
- data/docs/SubaccountEmailSettingsPayload.md +28 -0
- data/docs/SubaccountPayload.md +24 -0
- data/docs/SubaccountSettingsInfo.md +18 -0
- data/docs/SubaccountSettingsInfoPayload.md +18 -0
- data/docs/Suppression.md +24 -0
- data/docs/SuppressionsApi.md +895 -0
- data/docs/Template.md +28 -0
- data/docs/TemplatePayload.md +24 -0
- data/docs/TemplateScopeType.md +15 -0
- data/docs/TemplateType.md +15 -0
- data/docs/TemplatesApi.md +376 -0
- data/docs/TransactionalRecipient.md +22 -0
- data/docs/Utm.md +24 -0
- data/docs/VerificationFileResult.md +28 -0
- data/docs/VerificationFileResultDetails.md +30 -0
- data/docs/VerificationStatus.md +15 -0
- data/docs/VerificationsApi.md +662 -0
- data/lib/ElasticEmail.rb +137 -0
- data/lib/ElasticEmail/api/campaigns_api.rb +348 -0
- data/lib/ElasticEmail/api/contacts_api.rb +681 -0
- data/lib/ElasticEmail/api/emails_api.rb +280 -0
- data/lib/ElasticEmail/api/events_api.rb +538 -0
- data/lib/ElasticEmail/api/files_api.rb +340 -0
- data/lib/ElasticEmail/api/inbound_route_api.rb +404 -0
- data/lib/ElasticEmail/api/lists_api.rb +485 -0
- data/lib/ElasticEmail/api/security_api.rb +674 -0
- data/lib/ElasticEmail/api/segments_api.rb +345 -0
- data/lib/ElasticEmail/api/statistics_api.rb +341 -0
- data/lib/ElasticEmail/api/sub_accounts_api.rb +414 -0
- data/lib/ElasticEmail/api/suppressions_api.rb +782 -0
- data/lib/ElasticEmail/api/templates_api.rb +355 -0
- data/lib/ElasticEmail/api/verifications_api.rb +584 -0
- data/lib/ElasticEmail/api_client.rb +390 -0
- data/lib/ElasticEmail/api_error.rb +57 -0
- data/lib/ElasticEmail/configuration.rb +277 -0
- data/lib/ElasticEmail/models/access_level.rb +79 -0
- data/lib/ElasticEmail/models/account_status_enum.rb +40 -0
- data/lib/ElasticEmail/models/api_key.rb +276 -0
- data/lib/ElasticEmail/models/api_key_payload.rb +265 -0
- data/lib/ElasticEmail/models/body_content_type.rb +39 -0
- data/lib/ElasticEmail/models/body_part.rb +240 -0
- data/lib/ElasticEmail/models/campaign.rb +261 -0
- data/lib/ElasticEmail/models/campaign_options.rb +263 -0
- data/lib/ElasticEmail/models/campaign_recipient.rb +234 -0
- data/lib/ElasticEmail/models/campaign_status.rb +43 -0
- data/lib/ElasticEmail/models/campaign_template.rb +282 -0
- data/lib/ElasticEmail/models/channel_log_status_summary.rb +350 -0
- data/lib/ElasticEmail/models/compression_format.rb +37 -0
- data/lib/ElasticEmail/models/consent_data.rb +240 -0
- data/lib/ElasticEmail/models/consent_tracking.rb +38 -0
- data/lib/ElasticEmail/models/contact.rb +323 -0
- data/lib/ElasticEmail/models/contact_activity.rb +324 -0
- data/lib/ElasticEmail/models/contact_hist_event_type.rb +49 -0
- data/lib/ElasticEmail/models/contact_history.rb +279 -0
- data/lib/ElasticEmail/models/contact_payload.rb +270 -0
- data/lib/ElasticEmail/models/contact_source.rb +42 -0
- data/lib/ElasticEmail/models/contact_status.rb +44 -0
- data/lib/ElasticEmail/models/contact_update_payload.rb +241 -0
- data/lib/ElasticEmail/models/contacts_list.rb +251 -0
- data/lib/ElasticEmail/models/delivery_optimization_type.rb +38 -0
- data/lib/ElasticEmail/models/email_content.rb +330 -0
- data/lib/ElasticEmail/models/email_data.rb +241 -0
- data/lib/ElasticEmail/models/email_message_data.rb +242 -0
- data/lib/ElasticEmail/models/email_recipient.rb +232 -0
- data/lib/ElasticEmail/models/email_send.rb +229 -0
- data/lib/ElasticEmail/models/email_status.rb +332 -0
- data/lib/ElasticEmail/models/email_transactional_message_data.rb +240 -0
- data/lib/ElasticEmail/models/email_validation_result.rb +300 -0
- data/lib/ElasticEmail/models/email_validation_status.rb +40 -0
- data/lib/ElasticEmail/models/email_view.rb +240 -0
- data/lib/ElasticEmail/models/emails_payload.rb +232 -0
- data/lib/ElasticEmail/models/encoding_type.rb +42 -0
- data/lib/ElasticEmail/models/event_type.rb +43 -0
- data/lib/ElasticEmail/models/events_order_by.rb +37 -0
- data/lib/ElasticEmail/models/export_file_formats.rb +38 -0
- data/lib/ElasticEmail/models/export_link.rb +229 -0
- data/lib/ElasticEmail/models/export_status.rb +39 -0
- data/lib/ElasticEmail/models/file_info.rb +262 -0
- data/lib/ElasticEmail/models/file_payload.rb +239 -0
- data/lib/ElasticEmail/models/file_upload_result.rb +229 -0
- data/lib/ElasticEmail/models/inbound_payload.rb +269 -0
- data/lib/ElasticEmail/models/inbound_route.rb +278 -0
- data/lib/ElasticEmail/models/inbound_route_action_type.rb +38 -0
- data/lib/ElasticEmail/models/inbound_route_filter_type.rb +37 -0
- data/lib/ElasticEmail/models/list_payload.rb +241 -0
- data/lib/ElasticEmail/models/list_update_payload.rb +229 -0
- data/lib/ElasticEmail/models/log_job_status.rb +45 -0
- data/lib/ElasticEmail/models/log_status_summary.rb +340 -0
- data/lib/ElasticEmail/models/merge_email_payload.rb +239 -0
- data/lib/ElasticEmail/models/message_attachment.rb +237 -0
- data/lib/ElasticEmail/models/message_category.rb +52 -0
- data/lib/ElasticEmail/models/new_api_key.rb +286 -0
- data/lib/ElasticEmail/models/new_smtp_credentials.rb +284 -0
- data/lib/ElasticEmail/models/options.rb +271 -0
- data/lib/ElasticEmail/models/recipient_event.rb +341 -0
- data/lib/ElasticEmail/models/segment.rb +230 -0
- data/lib/ElasticEmail/models/segment_payload.rb +229 -0
- data/lib/ElasticEmail/models/smtp_credentials.rb +274 -0
- data/lib/ElasticEmail/models/smtp_credentials_payload.rb +253 -0
- data/lib/ElasticEmail/models/sort_order_item.rb +229 -0
- data/lib/ElasticEmail/models/split_optimization_type.rb +37 -0
- data/lib/ElasticEmail/models/split_options.rb +230 -0
- data/lib/ElasticEmail/models/sub_account_info.rb +300 -0
- data/lib/ElasticEmail/models/subaccount_email_credits_payload.rb +230 -0
- data/lib/ElasticEmail/models/subaccount_email_settings.rb +280 -0
- data/lib/ElasticEmail/models/subaccount_email_settings_payload.rb +270 -0
- data/lib/ElasticEmail/models/subaccount_payload.rb +250 -0
- data/lib/ElasticEmail/models/subaccount_settings_info.rb +220 -0
- data/lib/ElasticEmail/models/subaccount_settings_info_payload.rb +220 -0
- data/lib/ElasticEmail/models/suppression.rb +252 -0
- data/lib/ElasticEmail/models/template.rb +272 -0
- data/lib/ElasticEmail/models/template_payload.rb +252 -0
- data/lib/ElasticEmail/models/template_scope_type.rb +38 -0
- data/lib/ElasticEmail/models/template_type.rb +38 -0
- data/lib/ElasticEmail/models/transactional_recipient.rb +246 -0
- data/lib/ElasticEmail/models/utm.rb +250 -0
- data/lib/ElasticEmail/models/verification_file_result.rb +270 -0
- data/lib/ElasticEmail/models/verification_file_result_details.rb +282 -0
- data/lib/ElasticEmail/models/verification_status.rb +40 -0
- data/lib/ElasticEmail/version.rb +15 -0
- data/spec/api/campaigns_api_spec.rb +98 -0
- data/spec/api/contacts_api_spec.rb +166 -0
- data/spec/api/emails_api_spec.rb +83 -0
- data/spec/api/events_api_spec.rb +146 -0
- data/spec/api/files_api_spec.rb +97 -0
- data/spec/api/inbound_route_api_spec.rb +107 -0
- data/spec/api/lists_api_spec.rb +123 -0
- data/spec/api/security_api_spec.rb +161 -0
- data/spec/api/segments_api_spec.rb +97 -0
- data/spec/api/statistics_api_spec.rb +98 -0
- data/spec/api/sub_accounts_api_spec.rb +110 -0
- data/spec/api/suppressions_api_spec.rb +186 -0
- data/spec/api/templates_api_spec.rb +99 -0
- data/spec/api/verifications_api_spec.rb +145 -0
- data/spec/api_client_spec.rb +226 -0
- data/spec/configuration_spec.rb +42 -0
- data/spec/models/access_level_spec.rb +28 -0
- data/spec/models/account_status_enum_spec.rb +28 -0
- data/spec/models/api_key_payload_spec.rb +58 -0
- data/spec/models/api_key_spec.rb +64 -0
- data/spec/models/body_content_type_spec.rb +28 -0
- data/spec/models/body_part_spec.rb +46 -0
- data/spec/models/campaign_options_spec.rb +58 -0
- data/spec/models/campaign_recipient_spec.rb +40 -0
- data/spec/models/campaign_spec.rb +58 -0
- data/spec/models/campaign_status_spec.rb +28 -0
- data/spec/models/campaign_template_spec.rb +70 -0
- data/spec/models/channel_log_status_summary_spec.rb +112 -0
- data/spec/models/compression_format_spec.rb +28 -0
- data/spec/models/consent_data_spec.rb +46 -0
- data/spec/models/consent_tracking_spec.rb +28 -0
- data/spec/models/contact_activity_spec.rb +94 -0
- data/spec/models/contact_hist_event_type_spec.rb +28 -0
- data/spec/models/contact_history_spec.rb +70 -0
- data/spec/models/contact_payload_spec.rb +64 -0
- data/spec/models/contact_source_spec.rb +28 -0
- data/spec/models/contact_spec.rb +94 -0
- data/spec/models/contact_status_spec.rb +28 -0
- data/spec/models/contact_update_payload_spec.rb +46 -0
- data/spec/models/contacts_list_spec.rb +52 -0
- data/spec/models/delivery_optimization_type_spec.rb +28 -0
- data/spec/models/email_content_spec.rb +94 -0
- data/spec/models/email_data_spec.rb +46 -0
- data/spec/models/email_message_data_spec.rb +46 -0
- data/spec/models/email_recipient_spec.rb +40 -0
- data/spec/models/email_send_spec.rb +40 -0
- data/spec/models/email_status_spec.rb +100 -0
- data/spec/models/email_transactional_message_data_spec.rb +46 -0
- data/spec/models/email_validation_result_spec.rb +82 -0
- data/spec/models/email_validation_status_spec.rb +28 -0
- data/spec/models/email_view_spec.rb +46 -0
- data/spec/models/emails_payload_spec.rb +40 -0
- data/spec/models/encoding_type_spec.rb +28 -0
- data/spec/models/event_type_spec.rb +28 -0
- data/spec/models/events_order_by_spec.rb +28 -0
- data/spec/models/export_file_formats_spec.rb +28 -0
- data/spec/models/export_link_spec.rb +40 -0
- data/spec/models/export_status_spec.rb +28 -0
- data/spec/models/file_info_spec.rb +58 -0
- data/spec/models/file_payload_spec.rb +46 -0
- data/spec/models/file_upload_result_spec.rb +40 -0
- data/spec/models/inbound_payload_spec.rb +64 -0
- data/spec/models/inbound_route_action_type_spec.rb +28 -0
- data/spec/models/inbound_route_filter_type_spec.rb +28 -0
- data/spec/models/inbound_route_spec.rb +70 -0
- data/spec/models/list_payload_spec.rb +46 -0
- data/spec/models/list_update_payload_spec.rb +40 -0
- data/spec/models/log_job_status_spec.rb +28 -0
- data/spec/models/log_status_summary_spec.rb +106 -0
- data/spec/models/merge_email_payload_spec.rb +46 -0
- data/spec/models/message_attachment_spec.rb +46 -0
- data/spec/models/message_category_spec.rb +28 -0
- data/spec/models/new_api_key_spec.rb +70 -0
- data/spec/models/new_smtp_credentials_spec.rb +70 -0
- data/spec/models/options_spec.rb +64 -0
- data/spec/models/recipient_event_spec.rb +106 -0
- data/spec/models/segment_payload_spec.rb +40 -0
- data/spec/models/segment_spec.rb +40 -0
- data/spec/models/smtp_credentials_payload_spec.rb +52 -0
- data/spec/models/smtp_credentials_spec.rb +64 -0
- data/spec/models/sort_order_item_spec.rb +40 -0
- data/spec/models/split_optimization_type_spec.rb +28 -0
- data/spec/models/split_options_spec.rb +40 -0
- data/spec/models/sub_account_info_spec.rb +82 -0
- data/spec/models/subaccount_email_credits_payload_spec.rb +40 -0
- data/spec/models/subaccount_email_settings_payload_spec.rb +64 -0
- data/spec/models/subaccount_email_settings_spec.rb +70 -0
- data/spec/models/subaccount_payload_spec.rb +52 -0
- data/spec/models/subaccount_settings_info_payload_spec.rb +34 -0
- data/spec/models/subaccount_settings_info_spec.rb +34 -0
- data/spec/models/suppression_spec.rb +52 -0
- data/spec/models/template_payload_spec.rb +52 -0
- data/spec/models/template_scope_type_spec.rb +28 -0
- data/spec/models/template_spec.rb +64 -0
- data/spec/models/template_type_spec.rb +28 -0
- data/spec/models/transactional_recipient_spec.rb +46 -0
- data/spec/models/utm_spec.rb +52 -0
- data/spec/models/verification_file_result_details_spec.rb +70 -0
- data/spec/models/verification_file_result_spec.rb +64 -0
- data/spec/models/verification_status_spec.rb +28 -0
- data/spec/spec_helper.rb +111 -0
- metadata +498 -0
@@ -0,0 +1,30 @@
|
|
1
|
+
# ElasticEmail::SubaccountEmailSettings
|
2
|
+
|
3
|
+
## Properties
|
4
|
+
|
5
|
+
| Name | Type | Description | Notes |
|
6
|
+
| ---- | ---- | ----------- | ----- |
|
7
|
+
| **monthly_refill_credits** | **Integer** | Amount of credits added to Account automatically | [optional] |
|
8
|
+
| **requires_email_credits** | **Boolean** | True, if Account needs credits to send emails. Otherwise, false | [optional] |
|
9
|
+
| **email_size_limit** | **Integer** | Maximum size of email including attachments in MB's | [optional] |
|
10
|
+
| **daily_send_limit** | **Integer** | Amount of emails Account can send daily | [optional] |
|
11
|
+
| **max_contacts** | **Integer** | Maximum number of contacts the Account can have. 0 means that parent account's limit is used. | [optional] |
|
12
|
+
| **enable_private_ip_purchase** | **Boolean** | Can the SubAccount purchase Private IP for themselves | [optional] |
|
13
|
+
| **pool_name** | **String** | Name of your custom IP Pool to be used in the sending process | [optional] |
|
14
|
+
|
15
|
+
## Example
|
16
|
+
|
17
|
+
```ruby
|
18
|
+
require 'ElasticEmail'
|
19
|
+
|
20
|
+
instance = ElasticEmail::SubaccountEmailSettings.new(
|
21
|
+
monthly_refill_credits: 1000,
|
22
|
+
requires_email_credits: true,
|
23
|
+
email_size_limit: 10,
|
24
|
+
daily_send_limit: 100000,
|
25
|
+
max_contacts: null,
|
26
|
+
enable_private_ip_purchase: null,
|
27
|
+
pool_name: My Custom Pool
|
28
|
+
)
|
29
|
+
```
|
30
|
+
|
@@ -0,0 +1,28 @@
|
|
1
|
+
# ElasticEmail::SubaccountEmailSettingsPayload
|
2
|
+
|
3
|
+
## Properties
|
4
|
+
|
5
|
+
| Name | Type | Description | Notes |
|
6
|
+
| ---- | ---- | ----------- | ----- |
|
7
|
+
| **requires_email_credits** | **Boolean** | True, if Account needs credits to send emails. Otherwise, false | [optional] |
|
8
|
+
| **email_size_limit** | **Integer** | Maximum size of email including attachments in MB's | [optional] |
|
9
|
+
| **daily_send_limit** | **Integer** | Amount of emails Account can send daily | [optional] |
|
10
|
+
| **max_contacts** | **Integer** | Maximum number of contacts the Account can have. 0 means that parent account's limit is used. | [optional] |
|
11
|
+
| **enable_private_ip_purchase** | **Boolean** | Can the SubAccount purchase Private IP for themselves | [optional] |
|
12
|
+
| **pool_name** | **String** | Name of your custom IP Pool to be used in the sending process | [optional] |
|
13
|
+
|
14
|
+
## Example
|
15
|
+
|
16
|
+
```ruby
|
17
|
+
require 'ElasticEmail'
|
18
|
+
|
19
|
+
instance = ElasticEmail::SubaccountEmailSettingsPayload.new(
|
20
|
+
requires_email_credits: true,
|
21
|
+
email_size_limit: 10,
|
22
|
+
daily_send_limit: 100000,
|
23
|
+
max_contacts: null,
|
24
|
+
enable_private_ip_purchase: null,
|
25
|
+
pool_name: My Custom Pool
|
26
|
+
)
|
27
|
+
```
|
28
|
+
|
@@ -0,0 +1,24 @@
|
|
1
|
+
# ElasticEmail::SubaccountPayload
|
2
|
+
|
3
|
+
## Properties
|
4
|
+
|
5
|
+
| Name | Type | Description | Notes |
|
6
|
+
| ---- | ---- | ----------- | ----- |
|
7
|
+
| **email** | **String** | Proper email address. | [optional] |
|
8
|
+
| **password** | **String** | Current password. | [optional] |
|
9
|
+
| **send_activation** | **Boolean** | True, if you want to send activation email to this Account to confirm the creation of a new SubAccount. Otherwise, false (SubAccount will immediately be Active). | [optional] |
|
10
|
+
| **settings** | [**SubaccountSettingsInfoPayload**](SubaccountSettingsInfoPayload.md) | SubAccount settings | [optional] |
|
11
|
+
|
12
|
+
## Example
|
13
|
+
|
14
|
+
```ruby
|
15
|
+
require 'ElasticEmail'
|
16
|
+
|
17
|
+
instance = ElasticEmail::SubaccountPayload.new(
|
18
|
+
email: mail@example.com,
|
19
|
+
password: ********,
|
20
|
+
send_activation: null,
|
21
|
+
settings: null
|
22
|
+
)
|
23
|
+
```
|
24
|
+
|
@@ -0,0 +1,18 @@
|
|
1
|
+
# ElasticEmail::SubaccountSettingsInfo
|
2
|
+
|
3
|
+
## Properties
|
4
|
+
|
5
|
+
| Name | Type | Description | Notes |
|
6
|
+
| ---- | ---- | ----------- | ----- |
|
7
|
+
| **email** | [**SubaccountEmailSettings**](SubaccountEmailSettings.md) | Settings related to sending emails | [optional] |
|
8
|
+
|
9
|
+
## Example
|
10
|
+
|
11
|
+
```ruby
|
12
|
+
require 'ElasticEmail'
|
13
|
+
|
14
|
+
instance = ElasticEmail::SubaccountSettingsInfo.new(
|
15
|
+
email: null
|
16
|
+
)
|
17
|
+
```
|
18
|
+
|
@@ -0,0 +1,18 @@
|
|
1
|
+
# ElasticEmail::SubaccountSettingsInfoPayload
|
2
|
+
|
3
|
+
## Properties
|
4
|
+
|
5
|
+
| Name | Type | Description | Notes |
|
6
|
+
| ---- | ---- | ----------- | ----- |
|
7
|
+
| **email** | [**SubaccountEmailSettingsPayload**](SubaccountEmailSettingsPayload.md) | Settings related to sending emails | [optional] |
|
8
|
+
|
9
|
+
## Example
|
10
|
+
|
11
|
+
```ruby
|
12
|
+
require 'ElasticEmail'
|
13
|
+
|
14
|
+
instance = ElasticEmail::SubaccountSettingsInfoPayload.new(
|
15
|
+
email: null
|
16
|
+
)
|
17
|
+
```
|
18
|
+
|
data/docs/Suppression.md
ADDED
@@ -0,0 +1,24 @@
|
|
1
|
+
# ElasticEmail::Suppression
|
2
|
+
|
3
|
+
## Properties
|
4
|
+
|
5
|
+
| Name | Type | Description | Notes |
|
6
|
+
| ---- | ---- | ----------- | ----- |
|
7
|
+
| **email** | **String** | Proper email address. | [optional] |
|
8
|
+
| **friendly_error_message** | **String** | RFC error message | [optional] |
|
9
|
+
| **error_code** | **Integer** | SMTP Error code | [optional] |
|
10
|
+
| **date_updated** | **Time** | Last change date | [optional] |
|
11
|
+
|
12
|
+
## Example
|
13
|
+
|
14
|
+
```ruby
|
15
|
+
require 'ElasticEmail'
|
16
|
+
|
17
|
+
instance = ElasticEmail::Suppression.new(
|
18
|
+
email: mail@example.com,
|
19
|
+
friendly_error_message: Mailbox not found,
|
20
|
+
error_code: null,
|
21
|
+
date_updated: null
|
22
|
+
)
|
23
|
+
```
|
24
|
+
|
@@ -0,0 +1,895 @@
|
|
1
|
+
# ElasticEmail::SuppressionsApi
|
2
|
+
|
3
|
+
All URIs are relative to *https://api.elasticemail.com/v4*
|
4
|
+
|
5
|
+
| Method | HTTP request | Description |
|
6
|
+
| ------ | ------------ | ----------- |
|
7
|
+
| [**suppressions_bounces_get**](SuppressionsApi.md#suppressions_bounces_get) | **GET** /suppressions/bounces | Get Bounce List |
|
8
|
+
| [**suppressions_bounces_import_post**](SuppressionsApi.md#suppressions_bounces_import_post) | **POST** /suppressions/bounces/import | Add Bounces Async |
|
9
|
+
| [**suppressions_bounces_post**](SuppressionsApi.md#suppressions_bounces_post) | **POST** /suppressions/bounces | Add Bounces |
|
10
|
+
| [**suppressions_by_email_delete**](SuppressionsApi.md#suppressions_by_email_delete) | **DELETE** /suppressions/{email} | Delete Suppression |
|
11
|
+
| [**suppressions_by_email_get**](SuppressionsApi.md#suppressions_by_email_get) | **GET** /suppressions/{email} | Get Suppression |
|
12
|
+
| [**suppressions_complaints_get**](SuppressionsApi.md#suppressions_complaints_get) | **GET** /suppressions/complaints | Get Complaints List |
|
13
|
+
| [**suppressions_complaints_import_post**](SuppressionsApi.md#suppressions_complaints_import_post) | **POST** /suppressions/complaints/import | Add Complaints Async |
|
14
|
+
| [**suppressions_complaints_post**](SuppressionsApi.md#suppressions_complaints_post) | **POST** /suppressions/complaints | Add Complaints |
|
15
|
+
| [**suppressions_get**](SuppressionsApi.md#suppressions_get) | **GET** /suppressions | Get Suppressions |
|
16
|
+
| [**suppressions_unsubscribes_get**](SuppressionsApi.md#suppressions_unsubscribes_get) | **GET** /suppressions/unsubscribes | Get Unsubscribes List |
|
17
|
+
| [**suppressions_unsubscribes_import_post**](SuppressionsApi.md#suppressions_unsubscribes_import_post) | **POST** /suppressions/unsubscribes/import | Add Unsubscribes Async |
|
18
|
+
| [**suppressions_unsubscribes_post**](SuppressionsApi.md#suppressions_unsubscribes_post) | **POST** /suppressions/unsubscribes | Add Unsubscribes |
|
19
|
+
|
20
|
+
|
21
|
+
## suppressions_bounces_get
|
22
|
+
|
23
|
+
> <Array<Suppression>> suppressions_bounces_get(opts)
|
24
|
+
|
25
|
+
Get Bounce List
|
26
|
+
|
27
|
+
Retrieve your list of bounced emails. Required Access Level: ViewContacts
|
28
|
+
|
29
|
+
### Examples
|
30
|
+
|
31
|
+
```ruby
|
32
|
+
require 'time'
|
33
|
+
require 'ElasticEmail'
|
34
|
+
# setup authorization
|
35
|
+
ElasticEmail.configure do |config|
|
36
|
+
# Configure API key authorization: apikey
|
37
|
+
config.api_key['apikey'] = 'YOUR API KEY'
|
38
|
+
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
|
39
|
+
# config.api_key_prefix['apikey'] = 'Bearer'
|
40
|
+
end
|
41
|
+
|
42
|
+
api_instance = ElasticEmail::SuppressionsApi.new
|
43
|
+
opts = {
|
44
|
+
search: 'text', # String | Text fragment used for searching.
|
45
|
+
limit: 100, # Integer | Maximum number of returned items.
|
46
|
+
offset: 20 # Integer | How many items should be returned ahead.
|
47
|
+
}
|
48
|
+
|
49
|
+
begin
|
50
|
+
# Get Bounce List
|
51
|
+
result = api_instance.suppressions_bounces_get(opts)
|
52
|
+
p result
|
53
|
+
rescue ElasticEmail::ApiError => e
|
54
|
+
puts "Error when calling SuppressionsApi->suppressions_bounces_get: #{e}"
|
55
|
+
end
|
56
|
+
```
|
57
|
+
|
58
|
+
#### Using the suppressions_bounces_get_with_http_info variant
|
59
|
+
|
60
|
+
This returns an Array which contains the response data, status code and headers.
|
61
|
+
|
62
|
+
> <Array(<Array<Suppression>>, Integer, Hash)> suppressions_bounces_get_with_http_info(opts)
|
63
|
+
|
64
|
+
```ruby
|
65
|
+
begin
|
66
|
+
# Get Bounce List
|
67
|
+
data, status_code, headers = api_instance.suppressions_bounces_get_with_http_info(opts)
|
68
|
+
p status_code # => 2xx
|
69
|
+
p headers # => { ... }
|
70
|
+
p data # => <Array<Suppression>>
|
71
|
+
rescue ElasticEmail::ApiError => e
|
72
|
+
puts "Error when calling SuppressionsApi->suppressions_bounces_get_with_http_info: #{e}"
|
73
|
+
end
|
74
|
+
```
|
75
|
+
|
76
|
+
### Parameters
|
77
|
+
|
78
|
+
| Name | Type | Description | Notes |
|
79
|
+
| ---- | ---- | ----------- | ----- |
|
80
|
+
| **search** | **String** | Text fragment used for searching. | [optional] |
|
81
|
+
| **limit** | **Integer** | Maximum number of returned items. | [optional] |
|
82
|
+
| **offset** | **Integer** | How many items should be returned ahead. | [optional] |
|
83
|
+
|
84
|
+
### Return type
|
85
|
+
|
86
|
+
[**Array<Suppression>**](Suppression.md)
|
87
|
+
|
88
|
+
### Authorization
|
89
|
+
|
90
|
+
[apikey](../README.md#apikey)
|
91
|
+
|
92
|
+
### HTTP request headers
|
93
|
+
|
94
|
+
- **Content-Type**: Not defined
|
95
|
+
- **Accept**: application/json
|
96
|
+
|
97
|
+
|
98
|
+
## suppressions_bounces_import_post
|
99
|
+
|
100
|
+
> suppressions_bounces_import_post(opts)
|
101
|
+
|
102
|
+
Add Bounces Async
|
103
|
+
|
104
|
+
Add Bounced. Required Access Level: ModifyContacts
|
105
|
+
|
106
|
+
### Examples
|
107
|
+
|
108
|
+
```ruby
|
109
|
+
require 'time'
|
110
|
+
require 'ElasticEmail'
|
111
|
+
# setup authorization
|
112
|
+
ElasticEmail.configure do |config|
|
113
|
+
# Configure API key authorization: apikey
|
114
|
+
config.api_key['apikey'] = 'YOUR API KEY'
|
115
|
+
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
|
116
|
+
# config.api_key_prefix['apikey'] = 'Bearer'
|
117
|
+
end
|
118
|
+
|
119
|
+
api_instance = ElasticEmail::SuppressionsApi.new
|
120
|
+
opts = {
|
121
|
+
file: File.new('/path/to/some/file') # File |
|
122
|
+
}
|
123
|
+
|
124
|
+
begin
|
125
|
+
# Add Bounces Async
|
126
|
+
api_instance.suppressions_bounces_import_post(opts)
|
127
|
+
rescue ElasticEmail::ApiError => e
|
128
|
+
puts "Error when calling SuppressionsApi->suppressions_bounces_import_post: #{e}"
|
129
|
+
end
|
130
|
+
```
|
131
|
+
|
132
|
+
#### Using the suppressions_bounces_import_post_with_http_info variant
|
133
|
+
|
134
|
+
This returns an Array which contains the response data (`nil` in this case), status code and headers.
|
135
|
+
|
136
|
+
> <Array(nil, Integer, Hash)> suppressions_bounces_import_post_with_http_info(opts)
|
137
|
+
|
138
|
+
```ruby
|
139
|
+
begin
|
140
|
+
# Add Bounces Async
|
141
|
+
data, status_code, headers = api_instance.suppressions_bounces_import_post_with_http_info(opts)
|
142
|
+
p status_code # => 2xx
|
143
|
+
p headers # => { ... }
|
144
|
+
p data # => nil
|
145
|
+
rescue ElasticEmail::ApiError => e
|
146
|
+
puts "Error when calling SuppressionsApi->suppressions_bounces_import_post_with_http_info: #{e}"
|
147
|
+
end
|
148
|
+
```
|
149
|
+
|
150
|
+
### Parameters
|
151
|
+
|
152
|
+
| Name | Type | Description | Notes |
|
153
|
+
| ---- | ---- | ----------- | ----- |
|
154
|
+
| **file** | **File** | | [optional] |
|
155
|
+
|
156
|
+
### Return type
|
157
|
+
|
158
|
+
nil (empty response body)
|
159
|
+
|
160
|
+
### Authorization
|
161
|
+
|
162
|
+
[apikey](../README.md#apikey)
|
163
|
+
|
164
|
+
### HTTP request headers
|
165
|
+
|
166
|
+
- **Content-Type**: multipart/form-data
|
167
|
+
- **Accept**: Not defined
|
168
|
+
|
169
|
+
|
170
|
+
## suppressions_bounces_post
|
171
|
+
|
172
|
+
> <Array<Suppression>> suppressions_bounces_post(request_body)
|
173
|
+
|
174
|
+
Add Bounces
|
175
|
+
|
176
|
+
Add Bounced. Required Access Level: ModifyContacts
|
177
|
+
|
178
|
+
### Examples
|
179
|
+
|
180
|
+
```ruby
|
181
|
+
require 'time'
|
182
|
+
require 'ElasticEmail'
|
183
|
+
# setup authorization
|
184
|
+
ElasticEmail.configure do |config|
|
185
|
+
# Configure API key authorization: apikey
|
186
|
+
config.api_key['apikey'] = 'YOUR API KEY'
|
187
|
+
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
|
188
|
+
# config.api_key_prefix['apikey'] = 'Bearer'
|
189
|
+
end
|
190
|
+
|
191
|
+
api_instance = ElasticEmail::SuppressionsApi.new
|
192
|
+
request_body = ['property_example'] # Array<String> | Emails to add as bounces. Limited to 1000 per request
|
193
|
+
|
194
|
+
begin
|
195
|
+
# Add Bounces
|
196
|
+
result = api_instance.suppressions_bounces_post(request_body)
|
197
|
+
p result
|
198
|
+
rescue ElasticEmail::ApiError => e
|
199
|
+
puts "Error when calling SuppressionsApi->suppressions_bounces_post: #{e}"
|
200
|
+
end
|
201
|
+
```
|
202
|
+
|
203
|
+
#### Using the suppressions_bounces_post_with_http_info variant
|
204
|
+
|
205
|
+
This returns an Array which contains the response data, status code and headers.
|
206
|
+
|
207
|
+
> <Array(<Array<Suppression>>, Integer, Hash)> suppressions_bounces_post_with_http_info(request_body)
|
208
|
+
|
209
|
+
```ruby
|
210
|
+
begin
|
211
|
+
# Add Bounces
|
212
|
+
data, status_code, headers = api_instance.suppressions_bounces_post_with_http_info(request_body)
|
213
|
+
p status_code # => 2xx
|
214
|
+
p headers # => { ... }
|
215
|
+
p data # => <Array<Suppression>>
|
216
|
+
rescue ElasticEmail::ApiError => e
|
217
|
+
puts "Error when calling SuppressionsApi->suppressions_bounces_post_with_http_info: #{e}"
|
218
|
+
end
|
219
|
+
```
|
220
|
+
|
221
|
+
### Parameters
|
222
|
+
|
223
|
+
| Name | Type | Description | Notes |
|
224
|
+
| ---- | ---- | ----------- | ----- |
|
225
|
+
| **request_body** | [**Array<String>**](String.md) | Emails to add as bounces. Limited to 1000 per request | |
|
226
|
+
|
227
|
+
### Return type
|
228
|
+
|
229
|
+
[**Array<Suppression>**](Suppression.md)
|
230
|
+
|
231
|
+
### Authorization
|
232
|
+
|
233
|
+
[apikey](../README.md#apikey)
|
234
|
+
|
235
|
+
### HTTP request headers
|
236
|
+
|
237
|
+
- **Content-Type**: application/json
|
238
|
+
- **Accept**: application/json
|
239
|
+
|
240
|
+
|
241
|
+
## suppressions_by_email_delete
|
242
|
+
|
243
|
+
> suppressions_by_email_delete(email)
|
244
|
+
|
245
|
+
Delete Suppression
|
246
|
+
|
247
|
+
Delete Suppression. Required Access Level: ViewContacts
|
248
|
+
|
249
|
+
### Examples
|
250
|
+
|
251
|
+
```ruby
|
252
|
+
require 'time'
|
253
|
+
require 'ElasticEmail'
|
254
|
+
# setup authorization
|
255
|
+
ElasticEmail.configure do |config|
|
256
|
+
# Configure API key authorization: apikey
|
257
|
+
config.api_key['apikey'] = 'YOUR API KEY'
|
258
|
+
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
|
259
|
+
# config.api_key_prefix['apikey'] = 'Bearer'
|
260
|
+
end
|
261
|
+
|
262
|
+
api_instance = ElasticEmail::SuppressionsApi.new
|
263
|
+
email = 'mail@example.com' # String | Proper email address.
|
264
|
+
|
265
|
+
begin
|
266
|
+
# Delete Suppression
|
267
|
+
api_instance.suppressions_by_email_delete(email)
|
268
|
+
rescue ElasticEmail::ApiError => e
|
269
|
+
puts "Error when calling SuppressionsApi->suppressions_by_email_delete: #{e}"
|
270
|
+
end
|
271
|
+
```
|
272
|
+
|
273
|
+
#### Using the suppressions_by_email_delete_with_http_info variant
|
274
|
+
|
275
|
+
This returns an Array which contains the response data (`nil` in this case), status code and headers.
|
276
|
+
|
277
|
+
> <Array(nil, Integer, Hash)> suppressions_by_email_delete_with_http_info(email)
|
278
|
+
|
279
|
+
```ruby
|
280
|
+
begin
|
281
|
+
# Delete Suppression
|
282
|
+
data, status_code, headers = api_instance.suppressions_by_email_delete_with_http_info(email)
|
283
|
+
p status_code # => 2xx
|
284
|
+
p headers # => { ... }
|
285
|
+
p data # => nil
|
286
|
+
rescue ElasticEmail::ApiError => e
|
287
|
+
puts "Error when calling SuppressionsApi->suppressions_by_email_delete_with_http_info: #{e}"
|
288
|
+
end
|
289
|
+
```
|
290
|
+
|
291
|
+
### Parameters
|
292
|
+
|
293
|
+
| Name | Type | Description | Notes |
|
294
|
+
| ---- | ---- | ----------- | ----- |
|
295
|
+
| **email** | **String** | Proper email address. | |
|
296
|
+
|
297
|
+
### Return type
|
298
|
+
|
299
|
+
nil (empty response body)
|
300
|
+
|
301
|
+
### Authorization
|
302
|
+
|
303
|
+
[apikey](../README.md#apikey)
|
304
|
+
|
305
|
+
### HTTP request headers
|
306
|
+
|
307
|
+
- **Content-Type**: Not defined
|
308
|
+
- **Accept**: Not defined
|
309
|
+
|
310
|
+
|
311
|
+
## suppressions_by_email_get
|
312
|
+
|
313
|
+
> <Suppression> suppressions_by_email_get(email)
|
314
|
+
|
315
|
+
Get Suppression
|
316
|
+
|
317
|
+
Retrieve your suppression. Required Access Level: ViewContacts
|
318
|
+
|
319
|
+
### Examples
|
320
|
+
|
321
|
+
```ruby
|
322
|
+
require 'time'
|
323
|
+
require 'ElasticEmail'
|
324
|
+
# setup authorization
|
325
|
+
ElasticEmail.configure do |config|
|
326
|
+
# Configure API key authorization: apikey
|
327
|
+
config.api_key['apikey'] = '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['apikey'] = 'Bearer'
|
330
|
+
end
|
331
|
+
|
332
|
+
api_instance = ElasticEmail::SuppressionsApi.new
|
333
|
+
email = 'mail@example.com' # String | Proper email address.
|
334
|
+
|
335
|
+
begin
|
336
|
+
# Get Suppression
|
337
|
+
result = api_instance.suppressions_by_email_get(email)
|
338
|
+
p result
|
339
|
+
rescue ElasticEmail::ApiError => e
|
340
|
+
puts "Error when calling SuppressionsApi->suppressions_by_email_get: #{e}"
|
341
|
+
end
|
342
|
+
```
|
343
|
+
|
344
|
+
#### Using the suppressions_by_email_get_with_http_info variant
|
345
|
+
|
346
|
+
This returns an Array which contains the response data, status code and headers.
|
347
|
+
|
348
|
+
> <Array(<Suppression>, Integer, Hash)> suppressions_by_email_get_with_http_info(email)
|
349
|
+
|
350
|
+
```ruby
|
351
|
+
begin
|
352
|
+
# Get Suppression
|
353
|
+
data, status_code, headers = api_instance.suppressions_by_email_get_with_http_info(email)
|
354
|
+
p status_code # => 2xx
|
355
|
+
p headers # => { ... }
|
356
|
+
p data # => <Suppression>
|
357
|
+
rescue ElasticEmail::ApiError => e
|
358
|
+
puts "Error when calling SuppressionsApi->suppressions_by_email_get_with_http_info: #{e}"
|
359
|
+
end
|
360
|
+
```
|
361
|
+
|
362
|
+
### Parameters
|
363
|
+
|
364
|
+
| Name | Type | Description | Notes |
|
365
|
+
| ---- | ---- | ----------- | ----- |
|
366
|
+
| **email** | **String** | Proper email address. | |
|
367
|
+
|
368
|
+
### Return type
|
369
|
+
|
370
|
+
[**Suppression**](Suppression.md)
|
371
|
+
|
372
|
+
### Authorization
|
373
|
+
|
374
|
+
[apikey](../README.md#apikey)
|
375
|
+
|
376
|
+
### HTTP request headers
|
377
|
+
|
378
|
+
- **Content-Type**: Not defined
|
379
|
+
- **Accept**: application/json
|
380
|
+
|
381
|
+
|
382
|
+
## suppressions_complaints_get
|
383
|
+
|
384
|
+
> <Array<Suppression>> suppressions_complaints_get(opts)
|
385
|
+
|
386
|
+
Get Complaints List
|
387
|
+
|
388
|
+
Retrieve your list of complaints. Required Access Level: ViewContacts
|
389
|
+
|
390
|
+
### Examples
|
391
|
+
|
392
|
+
```ruby
|
393
|
+
require 'time'
|
394
|
+
require 'ElasticEmail'
|
395
|
+
# setup authorization
|
396
|
+
ElasticEmail.configure do |config|
|
397
|
+
# Configure API key authorization: apikey
|
398
|
+
config.api_key['apikey'] = 'YOUR API KEY'
|
399
|
+
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
|
400
|
+
# config.api_key_prefix['apikey'] = 'Bearer'
|
401
|
+
end
|
402
|
+
|
403
|
+
api_instance = ElasticEmail::SuppressionsApi.new
|
404
|
+
opts = {
|
405
|
+
search: 'text', # String | Text fragment used for searching.
|
406
|
+
limit: 100, # Integer | Maximum number of returned items.
|
407
|
+
offset: 20 # Integer | How many items should be returned ahead.
|
408
|
+
}
|
409
|
+
|
410
|
+
begin
|
411
|
+
# Get Complaints List
|
412
|
+
result = api_instance.suppressions_complaints_get(opts)
|
413
|
+
p result
|
414
|
+
rescue ElasticEmail::ApiError => e
|
415
|
+
puts "Error when calling SuppressionsApi->suppressions_complaints_get: #{e}"
|
416
|
+
end
|
417
|
+
```
|
418
|
+
|
419
|
+
#### Using the suppressions_complaints_get_with_http_info variant
|
420
|
+
|
421
|
+
This returns an Array which contains the response data, status code and headers.
|
422
|
+
|
423
|
+
> <Array(<Array<Suppression>>, Integer, Hash)> suppressions_complaints_get_with_http_info(opts)
|
424
|
+
|
425
|
+
```ruby
|
426
|
+
begin
|
427
|
+
# Get Complaints List
|
428
|
+
data, status_code, headers = api_instance.suppressions_complaints_get_with_http_info(opts)
|
429
|
+
p status_code # => 2xx
|
430
|
+
p headers # => { ... }
|
431
|
+
p data # => <Array<Suppression>>
|
432
|
+
rescue ElasticEmail::ApiError => e
|
433
|
+
puts "Error when calling SuppressionsApi->suppressions_complaints_get_with_http_info: #{e}"
|
434
|
+
end
|
435
|
+
```
|
436
|
+
|
437
|
+
### Parameters
|
438
|
+
|
439
|
+
| Name | Type | Description | Notes |
|
440
|
+
| ---- | ---- | ----------- | ----- |
|
441
|
+
| **search** | **String** | Text fragment used for searching. | [optional] |
|
442
|
+
| **limit** | **Integer** | Maximum number of returned items. | [optional] |
|
443
|
+
| **offset** | **Integer** | How many items should be returned ahead. | [optional] |
|
444
|
+
|
445
|
+
### Return type
|
446
|
+
|
447
|
+
[**Array<Suppression>**](Suppression.md)
|
448
|
+
|
449
|
+
### Authorization
|
450
|
+
|
451
|
+
[apikey](../README.md#apikey)
|
452
|
+
|
453
|
+
### HTTP request headers
|
454
|
+
|
455
|
+
- **Content-Type**: Not defined
|
456
|
+
- **Accept**: application/json
|
457
|
+
|
458
|
+
|
459
|
+
## suppressions_complaints_import_post
|
460
|
+
|
461
|
+
> suppressions_complaints_import_post(opts)
|
462
|
+
|
463
|
+
Add Complaints Async
|
464
|
+
|
465
|
+
Add Complaints. Required Access Level: ModifyContacts
|
466
|
+
|
467
|
+
### Examples
|
468
|
+
|
469
|
+
```ruby
|
470
|
+
require 'time'
|
471
|
+
require 'ElasticEmail'
|
472
|
+
# setup authorization
|
473
|
+
ElasticEmail.configure do |config|
|
474
|
+
# Configure API key authorization: apikey
|
475
|
+
config.api_key['apikey'] = 'YOUR API KEY'
|
476
|
+
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
|
477
|
+
# config.api_key_prefix['apikey'] = 'Bearer'
|
478
|
+
end
|
479
|
+
|
480
|
+
api_instance = ElasticEmail::SuppressionsApi.new
|
481
|
+
opts = {
|
482
|
+
file: File.new('/path/to/some/file') # File |
|
483
|
+
}
|
484
|
+
|
485
|
+
begin
|
486
|
+
# Add Complaints Async
|
487
|
+
api_instance.suppressions_complaints_import_post(opts)
|
488
|
+
rescue ElasticEmail::ApiError => e
|
489
|
+
puts "Error when calling SuppressionsApi->suppressions_complaints_import_post: #{e}"
|
490
|
+
end
|
491
|
+
```
|
492
|
+
|
493
|
+
#### Using the suppressions_complaints_import_post_with_http_info variant
|
494
|
+
|
495
|
+
This returns an Array which contains the response data (`nil` in this case), status code and headers.
|
496
|
+
|
497
|
+
> <Array(nil, Integer, Hash)> suppressions_complaints_import_post_with_http_info(opts)
|
498
|
+
|
499
|
+
```ruby
|
500
|
+
begin
|
501
|
+
# Add Complaints Async
|
502
|
+
data, status_code, headers = api_instance.suppressions_complaints_import_post_with_http_info(opts)
|
503
|
+
p status_code # => 2xx
|
504
|
+
p headers # => { ... }
|
505
|
+
p data # => nil
|
506
|
+
rescue ElasticEmail::ApiError => e
|
507
|
+
puts "Error when calling SuppressionsApi->suppressions_complaints_import_post_with_http_info: #{e}"
|
508
|
+
end
|
509
|
+
```
|
510
|
+
|
511
|
+
### Parameters
|
512
|
+
|
513
|
+
| Name | Type | Description | Notes |
|
514
|
+
| ---- | ---- | ----------- | ----- |
|
515
|
+
| **file** | **File** | | [optional] |
|
516
|
+
|
517
|
+
### Return type
|
518
|
+
|
519
|
+
nil (empty response body)
|
520
|
+
|
521
|
+
### Authorization
|
522
|
+
|
523
|
+
[apikey](../README.md#apikey)
|
524
|
+
|
525
|
+
### HTTP request headers
|
526
|
+
|
527
|
+
- **Content-Type**: multipart/form-data
|
528
|
+
- **Accept**: Not defined
|
529
|
+
|
530
|
+
|
531
|
+
## suppressions_complaints_post
|
532
|
+
|
533
|
+
> <Array<Suppression>> suppressions_complaints_post(request_body)
|
534
|
+
|
535
|
+
Add Complaints
|
536
|
+
|
537
|
+
Add Complaints. Required Access Level: ModifyContacts
|
538
|
+
|
539
|
+
### Examples
|
540
|
+
|
541
|
+
```ruby
|
542
|
+
require 'time'
|
543
|
+
require 'ElasticEmail'
|
544
|
+
# setup authorization
|
545
|
+
ElasticEmail.configure do |config|
|
546
|
+
# Configure API key authorization: apikey
|
547
|
+
config.api_key['apikey'] = 'YOUR API KEY'
|
548
|
+
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
|
549
|
+
# config.api_key_prefix['apikey'] = 'Bearer'
|
550
|
+
end
|
551
|
+
|
552
|
+
api_instance = ElasticEmail::SuppressionsApi.new
|
553
|
+
request_body = ['property_example'] # Array<String> | Emails to add as complaints. Limited to 1000 per request
|
554
|
+
|
555
|
+
begin
|
556
|
+
# Add Complaints
|
557
|
+
result = api_instance.suppressions_complaints_post(request_body)
|
558
|
+
p result
|
559
|
+
rescue ElasticEmail::ApiError => e
|
560
|
+
puts "Error when calling SuppressionsApi->suppressions_complaints_post: #{e}"
|
561
|
+
end
|
562
|
+
```
|
563
|
+
|
564
|
+
#### Using the suppressions_complaints_post_with_http_info variant
|
565
|
+
|
566
|
+
This returns an Array which contains the response data, status code and headers.
|
567
|
+
|
568
|
+
> <Array(<Array<Suppression>>, Integer, Hash)> suppressions_complaints_post_with_http_info(request_body)
|
569
|
+
|
570
|
+
```ruby
|
571
|
+
begin
|
572
|
+
# Add Complaints
|
573
|
+
data, status_code, headers = api_instance.suppressions_complaints_post_with_http_info(request_body)
|
574
|
+
p status_code # => 2xx
|
575
|
+
p headers # => { ... }
|
576
|
+
p data # => <Array<Suppression>>
|
577
|
+
rescue ElasticEmail::ApiError => e
|
578
|
+
puts "Error when calling SuppressionsApi->suppressions_complaints_post_with_http_info: #{e}"
|
579
|
+
end
|
580
|
+
```
|
581
|
+
|
582
|
+
### Parameters
|
583
|
+
|
584
|
+
| Name | Type | Description | Notes |
|
585
|
+
| ---- | ---- | ----------- | ----- |
|
586
|
+
| **request_body** | [**Array<String>**](String.md) | Emails to add as complaints. Limited to 1000 per request | |
|
587
|
+
|
588
|
+
### Return type
|
589
|
+
|
590
|
+
[**Array<Suppression>**](Suppression.md)
|
591
|
+
|
592
|
+
### Authorization
|
593
|
+
|
594
|
+
[apikey](../README.md#apikey)
|
595
|
+
|
596
|
+
### HTTP request headers
|
597
|
+
|
598
|
+
- **Content-Type**: application/json
|
599
|
+
- **Accept**: application/json
|
600
|
+
|
601
|
+
|
602
|
+
## suppressions_get
|
603
|
+
|
604
|
+
> <Array<Suppression>> suppressions_get(opts)
|
605
|
+
|
606
|
+
Get Suppressions
|
607
|
+
|
608
|
+
Retrieve your suppressions. Required Access Level: ViewContacts
|
609
|
+
|
610
|
+
### Examples
|
611
|
+
|
612
|
+
```ruby
|
613
|
+
require 'time'
|
614
|
+
require 'ElasticEmail'
|
615
|
+
# setup authorization
|
616
|
+
ElasticEmail.configure do |config|
|
617
|
+
# Configure API key authorization: apikey
|
618
|
+
config.api_key['apikey'] = 'YOUR API KEY'
|
619
|
+
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
|
620
|
+
# config.api_key_prefix['apikey'] = 'Bearer'
|
621
|
+
end
|
622
|
+
|
623
|
+
api_instance = ElasticEmail::SuppressionsApi.new
|
624
|
+
opts = {
|
625
|
+
limit: 100, # Integer | Maximum number of returned items.
|
626
|
+
offset: 20 # Integer | How many items should be returned ahead.
|
627
|
+
}
|
628
|
+
|
629
|
+
begin
|
630
|
+
# Get Suppressions
|
631
|
+
result = api_instance.suppressions_get(opts)
|
632
|
+
p result
|
633
|
+
rescue ElasticEmail::ApiError => e
|
634
|
+
puts "Error when calling SuppressionsApi->suppressions_get: #{e}"
|
635
|
+
end
|
636
|
+
```
|
637
|
+
|
638
|
+
#### Using the suppressions_get_with_http_info variant
|
639
|
+
|
640
|
+
This returns an Array which contains the response data, status code and headers.
|
641
|
+
|
642
|
+
> <Array(<Array<Suppression>>, Integer, Hash)> suppressions_get_with_http_info(opts)
|
643
|
+
|
644
|
+
```ruby
|
645
|
+
begin
|
646
|
+
# Get Suppressions
|
647
|
+
data, status_code, headers = api_instance.suppressions_get_with_http_info(opts)
|
648
|
+
p status_code # => 2xx
|
649
|
+
p headers # => { ... }
|
650
|
+
p data # => <Array<Suppression>>
|
651
|
+
rescue ElasticEmail::ApiError => e
|
652
|
+
puts "Error when calling SuppressionsApi->suppressions_get_with_http_info: #{e}"
|
653
|
+
end
|
654
|
+
```
|
655
|
+
|
656
|
+
### Parameters
|
657
|
+
|
658
|
+
| Name | Type | Description | Notes |
|
659
|
+
| ---- | ---- | ----------- | ----- |
|
660
|
+
| **limit** | **Integer** | Maximum number of returned items. | [optional] |
|
661
|
+
| **offset** | **Integer** | How many items should be returned ahead. | [optional] |
|
662
|
+
|
663
|
+
### Return type
|
664
|
+
|
665
|
+
[**Array<Suppression>**](Suppression.md)
|
666
|
+
|
667
|
+
### Authorization
|
668
|
+
|
669
|
+
[apikey](../README.md#apikey)
|
670
|
+
|
671
|
+
### HTTP request headers
|
672
|
+
|
673
|
+
- **Content-Type**: Not defined
|
674
|
+
- **Accept**: application/json
|
675
|
+
|
676
|
+
|
677
|
+
## suppressions_unsubscribes_get
|
678
|
+
|
679
|
+
> <Array<Suppression>> suppressions_unsubscribes_get(opts)
|
680
|
+
|
681
|
+
Get Unsubscribes List
|
682
|
+
|
683
|
+
Retrieve your list of unsubscribes. Required Access Level: ViewContacts
|
684
|
+
|
685
|
+
### Examples
|
686
|
+
|
687
|
+
```ruby
|
688
|
+
require 'time'
|
689
|
+
require 'ElasticEmail'
|
690
|
+
# setup authorization
|
691
|
+
ElasticEmail.configure do |config|
|
692
|
+
# Configure API key authorization: apikey
|
693
|
+
config.api_key['apikey'] = 'YOUR API KEY'
|
694
|
+
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
|
695
|
+
# config.api_key_prefix['apikey'] = 'Bearer'
|
696
|
+
end
|
697
|
+
|
698
|
+
api_instance = ElasticEmail::SuppressionsApi.new
|
699
|
+
opts = {
|
700
|
+
search: 'text', # String | Text fragment used for searching.
|
701
|
+
limit: 100, # Integer | Maximum number of returned items.
|
702
|
+
offset: 20 # Integer | How many items should be returned ahead.
|
703
|
+
}
|
704
|
+
|
705
|
+
begin
|
706
|
+
# Get Unsubscribes List
|
707
|
+
result = api_instance.suppressions_unsubscribes_get(opts)
|
708
|
+
p result
|
709
|
+
rescue ElasticEmail::ApiError => e
|
710
|
+
puts "Error when calling SuppressionsApi->suppressions_unsubscribes_get: #{e}"
|
711
|
+
end
|
712
|
+
```
|
713
|
+
|
714
|
+
#### Using the suppressions_unsubscribes_get_with_http_info variant
|
715
|
+
|
716
|
+
This returns an Array which contains the response data, status code and headers.
|
717
|
+
|
718
|
+
> <Array(<Array<Suppression>>, Integer, Hash)> suppressions_unsubscribes_get_with_http_info(opts)
|
719
|
+
|
720
|
+
```ruby
|
721
|
+
begin
|
722
|
+
# Get Unsubscribes List
|
723
|
+
data, status_code, headers = api_instance.suppressions_unsubscribes_get_with_http_info(opts)
|
724
|
+
p status_code # => 2xx
|
725
|
+
p headers # => { ... }
|
726
|
+
p data # => <Array<Suppression>>
|
727
|
+
rescue ElasticEmail::ApiError => e
|
728
|
+
puts "Error when calling SuppressionsApi->suppressions_unsubscribes_get_with_http_info: #{e}"
|
729
|
+
end
|
730
|
+
```
|
731
|
+
|
732
|
+
### Parameters
|
733
|
+
|
734
|
+
| Name | Type | Description | Notes |
|
735
|
+
| ---- | ---- | ----------- | ----- |
|
736
|
+
| **search** | **String** | Text fragment used for searching. | [optional] |
|
737
|
+
| **limit** | **Integer** | Maximum number of returned items. | [optional] |
|
738
|
+
| **offset** | **Integer** | How many items should be returned ahead. | [optional] |
|
739
|
+
|
740
|
+
### Return type
|
741
|
+
|
742
|
+
[**Array<Suppression>**](Suppression.md)
|
743
|
+
|
744
|
+
### Authorization
|
745
|
+
|
746
|
+
[apikey](../README.md#apikey)
|
747
|
+
|
748
|
+
### HTTP request headers
|
749
|
+
|
750
|
+
- **Content-Type**: Not defined
|
751
|
+
- **Accept**: application/json
|
752
|
+
|
753
|
+
|
754
|
+
## suppressions_unsubscribes_import_post
|
755
|
+
|
756
|
+
> suppressions_unsubscribes_import_post(opts)
|
757
|
+
|
758
|
+
Add Unsubscribes Async
|
759
|
+
|
760
|
+
Add Unsubscribes. Required Access Level: ModifyContacts
|
761
|
+
|
762
|
+
### Examples
|
763
|
+
|
764
|
+
```ruby
|
765
|
+
require 'time'
|
766
|
+
require 'ElasticEmail'
|
767
|
+
# setup authorization
|
768
|
+
ElasticEmail.configure do |config|
|
769
|
+
# Configure API key authorization: apikey
|
770
|
+
config.api_key['apikey'] = 'YOUR API KEY'
|
771
|
+
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
|
772
|
+
# config.api_key_prefix['apikey'] = 'Bearer'
|
773
|
+
end
|
774
|
+
|
775
|
+
api_instance = ElasticEmail::SuppressionsApi.new
|
776
|
+
opts = {
|
777
|
+
file: File.new('/path/to/some/file') # File |
|
778
|
+
}
|
779
|
+
|
780
|
+
begin
|
781
|
+
# Add Unsubscribes Async
|
782
|
+
api_instance.suppressions_unsubscribes_import_post(opts)
|
783
|
+
rescue ElasticEmail::ApiError => e
|
784
|
+
puts "Error when calling SuppressionsApi->suppressions_unsubscribes_import_post: #{e}"
|
785
|
+
end
|
786
|
+
```
|
787
|
+
|
788
|
+
#### Using the suppressions_unsubscribes_import_post_with_http_info variant
|
789
|
+
|
790
|
+
This returns an Array which contains the response data (`nil` in this case), status code and headers.
|
791
|
+
|
792
|
+
> <Array(nil, Integer, Hash)> suppressions_unsubscribes_import_post_with_http_info(opts)
|
793
|
+
|
794
|
+
```ruby
|
795
|
+
begin
|
796
|
+
# Add Unsubscribes Async
|
797
|
+
data, status_code, headers = api_instance.suppressions_unsubscribes_import_post_with_http_info(opts)
|
798
|
+
p status_code # => 2xx
|
799
|
+
p headers # => { ... }
|
800
|
+
p data # => nil
|
801
|
+
rescue ElasticEmail::ApiError => e
|
802
|
+
puts "Error when calling SuppressionsApi->suppressions_unsubscribes_import_post_with_http_info: #{e}"
|
803
|
+
end
|
804
|
+
```
|
805
|
+
|
806
|
+
### Parameters
|
807
|
+
|
808
|
+
| Name | Type | Description | Notes |
|
809
|
+
| ---- | ---- | ----------- | ----- |
|
810
|
+
| **file** | **File** | | [optional] |
|
811
|
+
|
812
|
+
### Return type
|
813
|
+
|
814
|
+
nil (empty response body)
|
815
|
+
|
816
|
+
### Authorization
|
817
|
+
|
818
|
+
[apikey](../README.md#apikey)
|
819
|
+
|
820
|
+
### HTTP request headers
|
821
|
+
|
822
|
+
- **Content-Type**: multipart/form-data
|
823
|
+
- **Accept**: Not defined
|
824
|
+
|
825
|
+
|
826
|
+
## suppressions_unsubscribes_post
|
827
|
+
|
828
|
+
> <Array<Suppression>> suppressions_unsubscribes_post(request_body)
|
829
|
+
|
830
|
+
Add Unsubscribes
|
831
|
+
|
832
|
+
Add Unsubscribes. Required Access Level: ModifyContacts
|
833
|
+
|
834
|
+
### Examples
|
835
|
+
|
836
|
+
```ruby
|
837
|
+
require 'time'
|
838
|
+
require 'ElasticEmail'
|
839
|
+
# setup authorization
|
840
|
+
ElasticEmail.configure do |config|
|
841
|
+
# Configure API key authorization: apikey
|
842
|
+
config.api_key['apikey'] = 'YOUR API KEY'
|
843
|
+
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
|
844
|
+
# config.api_key_prefix['apikey'] = 'Bearer'
|
845
|
+
end
|
846
|
+
|
847
|
+
api_instance = ElasticEmail::SuppressionsApi.new
|
848
|
+
request_body = ['property_example'] # Array<String> | Emails to add as unsubscribes. Limited to 1000 per request
|
849
|
+
|
850
|
+
begin
|
851
|
+
# Add Unsubscribes
|
852
|
+
result = api_instance.suppressions_unsubscribes_post(request_body)
|
853
|
+
p result
|
854
|
+
rescue ElasticEmail::ApiError => e
|
855
|
+
puts "Error when calling SuppressionsApi->suppressions_unsubscribes_post: #{e}"
|
856
|
+
end
|
857
|
+
```
|
858
|
+
|
859
|
+
#### Using the suppressions_unsubscribes_post_with_http_info variant
|
860
|
+
|
861
|
+
This returns an Array which contains the response data, status code and headers.
|
862
|
+
|
863
|
+
> <Array(<Array<Suppression>>, Integer, Hash)> suppressions_unsubscribes_post_with_http_info(request_body)
|
864
|
+
|
865
|
+
```ruby
|
866
|
+
begin
|
867
|
+
# Add Unsubscribes
|
868
|
+
data, status_code, headers = api_instance.suppressions_unsubscribes_post_with_http_info(request_body)
|
869
|
+
p status_code # => 2xx
|
870
|
+
p headers # => { ... }
|
871
|
+
p data # => <Array<Suppression>>
|
872
|
+
rescue ElasticEmail::ApiError => e
|
873
|
+
puts "Error when calling SuppressionsApi->suppressions_unsubscribes_post_with_http_info: #{e}"
|
874
|
+
end
|
875
|
+
```
|
876
|
+
|
877
|
+
### Parameters
|
878
|
+
|
879
|
+
| Name | Type | Description | Notes |
|
880
|
+
| ---- | ---- | ----------- | ----- |
|
881
|
+
| **request_body** | [**Array<String>**](String.md) | Emails to add as unsubscribes. Limited to 1000 per request | |
|
882
|
+
|
883
|
+
### Return type
|
884
|
+
|
885
|
+
[**Array<Suppression>**](Suppression.md)
|
886
|
+
|
887
|
+
### Authorization
|
888
|
+
|
889
|
+
[apikey](../README.md#apikey)
|
890
|
+
|
891
|
+
### HTTP request headers
|
892
|
+
|
893
|
+
- **Content-Type**: application/json
|
894
|
+
- **Accept**: application/json
|
895
|
+
|