ElasticEmail 4.0.23 → 4.0.25
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 +4 -4
- data/ElasticEmail.gemspec +2 -1
- data/README.md +28 -4
- data/VERSION +1 -1
- data/docs/CampaignOptions.md +4 -0
- data/docs/CampaignTemplate.md +2 -2
- data/docs/CampaignsApi.md +71 -0
- data/docs/CertificateValidationStatus.md +15 -0
- data/docs/DomainData.md +54 -0
- data/docs/DomainDetail.md +52 -0
- data/docs/{TemplateScopeType.md → DomainOwner.md} +2 -2
- data/docs/DomainPayload.md +20 -0
- data/docs/DomainUpdatePayload.md +24 -0
- data/docs/DomainsApi.md +583 -0
- data/docs/EmailContent.md +2 -2
- data/docs/EmailJobFailedStatus.md +24 -0
- data/docs/EmailJobStatus.md +56 -0
- data/docs/EmailMessageData.md +1 -1
- data/docs/EmailStatus.md +3 -1
- data/docs/EmailTransactionalMessageData.md +1 -1
- data/docs/EmailValidationResult.md +2 -2
- data/docs/EmailsApi.md +98 -4
- data/docs/EmailsPayload.md +1 -1
- data/docs/ListPayload.md +1 -1
- data/docs/ListsApi.md +78 -0
- data/docs/MergeEmailPayload.md +1 -1
- data/docs/{ContactHistEventType.md → MessageCategoryEnum.md} +2 -2
- data/docs/TrackingType.md +15 -0
- data/docs/TrackingValidationStatus.md +15 -0
- data/lib/ElasticEmail/api/campaigns_api.rb +62 -1
- data/lib/ElasticEmail/api/contacts_api.rb +1 -1
- data/lib/ElasticEmail/api/domains_api.rb +545 -0
- data/lib/ElasticEmail/api/emails_api.rb +96 -3
- data/lib/ElasticEmail/api/events_api.rb +1 -1
- data/lib/ElasticEmail/api/files_api.rb +1 -1
- data/lib/ElasticEmail/api/inbound_route_api.rb +1 -1
- data/lib/ElasticEmail/api/lists_api.rb +70 -1
- data/lib/ElasticEmail/api/security_api.rb +1 -1
- data/lib/ElasticEmail/api/segments_api.rb +1 -1
- data/lib/ElasticEmail/api/statistics_api.rb +1 -1
- data/lib/ElasticEmail/api/sub_accounts_api.rb +1 -1
- data/lib/ElasticEmail/api/suppressions_api.rb +1 -1
- data/lib/ElasticEmail/api/templates_api.rb +1 -1
- data/lib/ElasticEmail/api/verifications_api.rb +1 -1
- data/lib/ElasticEmail/api_client.rb +23 -21
- data/lib/ElasticEmail/api_error.rb +1 -1
- data/lib/ElasticEmail/configuration.rb +18 -10
- data/lib/ElasticEmail/models/access_level.rb +4 -3
- data/lib/ElasticEmail/models/account_status_enum.rb +1 -1
- data/lib/ElasticEmail/models/api_key.rb +14 -19
- data/lib/ElasticEmail/models/api_key_payload.rb +18 -19
- data/lib/ElasticEmail/models/body_content_type.rb +1 -1
- data/lib/ElasticEmail/models/body_part.rb +14 -19
- data/lib/ElasticEmail/models/campaign.rb +18 -19
- data/lib/ElasticEmail/models/campaign_options.rb +35 -20
- data/lib/ElasticEmail/models/campaign_recipient.rb +14 -19
- data/lib/ElasticEmail/models/campaign_status.rb +1 -1
- data/lib/ElasticEmail/models/campaign_template.rb +21 -19
- data/lib/ElasticEmail/models/certificate_validation_status.rb +42 -0
- data/lib/ElasticEmail/models/channel_log_status_summary.rb +14 -19
- data/lib/ElasticEmail/models/compression_format.rb +1 -1
- data/lib/ElasticEmail/models/consent_data.rb +14 -19
- data/lib/ElasticEmail/models/consent_tracking.rb +1 -1
- data/lib/ElasticEmail/models/contact.rb +14 -19
- data/lib/ElasticEmail/models/contact_activity.rb +14 -19
- data/lib/ElasticEmail/models/contact_payload.rb +16 -19
- data/lib/ElasticEmail/models/contact_source.rb +1 -1
- data/lib/ElasticEmail/models/contact_status.rb +1 -1
- data/lib/ElasticEmail/models/contact_update_payload.rb +14 -19
- data/lib/ElasticEmail/models/contacts_list.rb +14 -19
- data/lib/ElasticEmail/models/delivery_optimization_type.rb +1 -1
- data/lib/ElasticEmail/models/domain_data.rb +417 -0
- data/lib/ElasticEmail/models/domain_detail.rb +407 -0
- data/lib/ElasticEmail/models/domain_owner.rb +40 -0
- data/lib/ElasticEmail/models/domain_payload.rb +224 -0
- data/lib/ElasticEmail/models/{contact_history.rb → domain_update_payload.rb} +63 -79
- data/lib/ElasticEmail/models/email_content.rb +21 -19
- data/lib/ElasticEmail/models/email_data.rb +14 -19
- data/lib/ElasticEmail/models/email_job_failed_status.rb +242 -0
- data/lib/ElasticEmail/models/email_job_status.rb +415 -0
- data/lib/ElasticEmail/models/email_message_data.rb +23 -19
- data/lib/ElasticEmail/models/email_predicted_validation_status.rb +1 -1
- data/lib/ElasticEmail/models/email_recipient.rb +16 -19
- data/lib/ElasticEmail/models/email_send.rb +14 -19
- data/lib/ElasticEmail/models/email_status.rb +29 -23
- data/lib/ElasticEmail/models/email_transactional_message_data.rb +23 -19
- data/lib/ElasticEmail/models/email_validation_result.rb +16 -20
- data/lib/ElasticEmail/models/email_validation_status.rb +1 -1
- data/lib/ElasticEmail/models/email_view.rb +14 -19
- data/lib/ElasticEmail/models/emails_payload.rb +14 -19
- data/lib/ElasticEmail/models/encoding_type.rb +1 -1
- data/lib/ElasticEmail/models/event_type.rb +1 -1
- data/lib/ElasticEmail/models/events_order_by.rb +1 -1
- data/lib/ElasticEmail/models/export_file_formats.rb +1 -1
- data/lib/ElasticEmail/models/export_link.rb +14 -19
- data/lib/ElasticEmail/models/export_status.rb +1 -1
- data/lib/ElasticEmail/models/file_info.rb +14 -19
- data/lib/ElasticEmail/models/file_payload.rb +16 -19
- data/lib/ElasticEmail/models/file_upload_result.rb +14 -19
- data/lib/ElasticEmail/models/inbound_payload.rb +18 -19
- data/lib/ElasticEmail/models/inbound_route.rb +14 -19
- data/lib/ElasticEmail/models/inbound_route_action_type.rb +1 -1
- data/lib/ElasticEmail/models/inbound_route_filter_type.rb +1 -1
- data/lib/ElasticEmail/models/list_payload.rb +16 -19
- data/lib/ElasticEmail/models/list_update_payload.rb +14 -19
- data/lib/ElasticEmail/models/log_job_status.rb +1 -1
- data/lib/ElasticEmail/models/log_status_summary.rb +14 -19
- data/lib/ElasticEmail/models/merge_email_payload.rb +23 -19
- data/lib/ElasticEmail/models/message_attachment.rb +18 -19
- data/lib/ElasticEmail/models/message_category.rb +1 -1
- data/lib/ElasticEmail/models/message_category_enum.rb +55 -0
- data/lib/ElasticEmail/models/new_api_key.rb +14 -19
- data/lib/ElasticEmail/models/new_smtp_credentials.rb +14 -19
- data/lib/ElasticEmail/models/options.rb +16 -19
- data/lib/ElasticEmail/models/recipient_event.rb +14 -19
- data/lib/ElasticEmail/models/segment.rb +14 -19
- data/lib/ElasticEmail/models/segment_payload.rb +18 -19
- data/lib/ElasticEmail/models/smtp_credentials.rb +14 -19
- data/lib/ElasticEmail/models/smtp_credentials_payload.rb +16 -19
- data/lib/ElasticEmail/models/sort_order_item.rb +18 -19
- data/lib/ElasticEmail/models/split_optimization_type.rb +1 -1
- data/lib/ElasticEmail/models/split_options.rb +14 -19
- data/lib/ElasticEmail/models/sub_account_info.rb +14 -19
- data/lib/ElasticEmail/models/subaccount_email_credits_payload.rb +16 -19
- data/lib/ElasticEmail/models/subaccount_email_settings.rb +14 -19
- data/lib/ElasticEmail/models/subaccount_email_settings_payload.rb +14 -19
- data/lib/ElasticEmail/models/subaccount_payload.rb +18 -19
- data/lib/ElasticEmail/models/subaccount_settings_info.rb +14 -19
- data/lib/ElasticEmail/models/subaccount_settings_info_payload.rb +14 -19
- data/lib/ElasticEmail/models/suppression.rb +14 -19
- data/lib/ElasticEmail/models/template.rb +14 -19
- data/lib/ElasticEmail/models/template_payload.rb +16 -19
- data/lib/ElasticEmail/models/template_scope.rb +1 -1
- data/lib/ElasticEmail/models/template_type.rb +4 -2
- data/lib/ElasticEmail/models/tracking_type.rb +44 -0
- data/lib/ElasticEmail/models/tracking_validation_status.rb +42 -0
- data/lib/ElasticEmail/models/transactional_recipient.rb +16 -19
- data/lib/ElasticEmail/models/utm.rb +14 -19
- data/lib/ElasticEmail/models/verification_file_result.rb +14 -19
- data/lib/ElasticEmail/models/verification_file_result_details.rb +14 -19
- data/lib/ElasticEmail/models/verification_status.rb +1 -1
- data/lib/ElasticEmail/version.rb +2 -2
- data/lib/ElasticEmail.rb +13 -1
- data/spec/api/campaigns_api_spec.rb +19 -7
- data/spec/api/contacts_api_spec.rb +12 -25
- data/spec/api/domains_api_spec.rb +132 -0
- data/spec/api/emails_api_spec.rb +29 -7
- data/spec/api/events_api_spec.rb +9 -9
- data/spec/api/files_api_spec.rb +7 -7
- data/spec/api/inbound_route_api_spec.rb +8 -8
- data/spec/api/lists_api_spec.rb +23 -9
- data/spec/api/security_api_spec.rb +12 -12
- data/spec/api/segments_api_spec.rb +7 -7
- data/spec/api/statistics_api_spec.rb +7 -7
- data/spec/api/sub_accounts_api_spec.rb +8 -8
- data/spec/api/suppressions_api_spec.rb +26 -26
- data/spec/api/templates_api_spec.rb +7 -7
- data/spec/api/verifications_api_spec.rb +30 -18
- data/spec/models/access_level_spec.rb +5 -3
- data/spec/models/account_status_enum_spec.rb +5 -3
- data/spec/models/api_key_payload_spec.rb +10 -8
- data/spec/models/api_key_spec.rb +11 -9
- data/spec/models/body_content_type_spec.rb +5 -3
- data/spec/models/body_part_spec.rb +8 -6
- data/spec/models/campaign_options_spec.rb +22 -8
- data/spec/models/campaign_recipient_spec.rb +7 -5
- data/spec/models/campaign_spec.rb +10 -8
- data/spec/models/campaign_status_spec.rb +5 -3
- data/spec/models/campaign_template_spec.rb +12 -10
- data/spec/{configuration_spec.rb → models/certificate_validation_status_spec.rb} +15 -27
- data/spec/models/channel_log_status_summary_spec.rb +19 -17
- data/spec/models/compression_format_spec.rb +5 -3
- data/spec/models/consent_data_spec.rb +8 -6
- data/spec/models/consent_tracking_spec.rb +5 -3
- data/spec/models/contact_activity_spec.rb +16 -14
- data/spec/models/contact_payload_spec.rb +11 -9
- data/spec/models/contact_source_spec.rb +5 -3
- data/spec/models/contact_spec.rb +16 -14
- data/spec/models/contact_status_spec.rb +5 -3
- data/spec/models/contact_update_payload_spec.rb +8 -6
- data/spec/models/contacts_list_spec.rb +9 -7
- data/spec/models/delivery_optimization_type_spec.rb +5 -3
- data/spec/models/domain_data_spec.rb +144 -0
- data/spec/models/domain_detail_spec.rb +138 -0
- data/spec/models/domain_owner_spec.rb +30 -0
- data/spec/models/domain_payload_spec.rb +42 -0
- data/spec/models/domain_update_payload_spec.rb +54 -0
- data/spec/models/email_content_spec.rb +22 -14
- data/spec/models/email_data_spec.rb +8 -6
- data/spec/models/email_job_failed_status_spec.rb +54 -0
- data/spec/models/email_job_status_spec.rb +150 -0
- data/spec/models/email_message_data_spec.rb +8 -6
- data/spec/models/email_predicted_validation_status_spec.rb +4 -2
- data/spec/models/email_recipient_spec.rb +7 -5
- data/spec/models/email_send_spec.rb +7 -5
- data/spec/models/email_status_spec.rb +23 -15
- data/spec/models/email_transactional_message_data_spec.rb +8 -6
- data/spec/models/email_validation_result_spec.rb +26 -12
- data/spec/models/email_validation_status_spec.rb +5 -3
- data/spec/models/email_view_spec.rb +8 -6
- data/spec/models/emails_payload_spec.rb +7 -5
- data/spec/models/encoding_type_spec.rb +5 -3
- data/spec/models/event_type_spec.rb +5 -3
- data/spec/models/events_order_by_spec.rb +5 -3
- data/spec/models/export_file_formats_spec.rb +5 -3
- data/spec/models/export_link_spec.rb +7 -5
- data/spec/models/export_status_spec.rb +5 -3
- data/spec/models/file_info_spec.rb +10 -8
- data/spec/models/file_payload_spec.rb +8 -6
- data/spec/models/file_upload_result_spec.rb +7 -5
- data/spec/models/inbound_payload_spec.rb +11 -9
- data/spec/models/inbound_route_action_type_spec.rb +5 -3
- data/spec/models/inbound_route_filter_type_spec.rb +5 -3
- data/spec/models/inbound_route_spec.rb +12 -10
- data/spec/models/list_payload_spec.rb +8 -6
- data/spec/models/list_update_payload_spec.rb +7 -5
- data/spec/models/log_job_status_spec.rb +5 -3
- data/spec/models/log_status_summary_spec.rb +18 -16
- data/spec/models/merge_email_payload_spec.rb +8 -6
- data/spec/models/message_attachment_spec.rb +14 -6
- data/spec/models/message_category_enum_spec.rb +30 -0
- data/spec/models/message_category_spec.rb +5 -3
- data/spec/models/new_api_key_spec.rb +12 -10
- data/spec/models/new_smtp_credentials_spec.rb +12 -10
- data/spec/models/options_spec.rb +11 -9
- data/spec/models/recipient_event_spec.rb +18 -16
- data/spec/models/segment_payload_spec.rb +7 -5
- data/spec/models/segment_spec.rb +7 -5
- data/spec/models/smtp_credentials_payload_spec.rb +9 -7
- data/spec/models/smtp_credentials_spec.rb +11 -9
- data/spec/models/sort_order_item_spec.rb +7 -5
- data/spec/models/split_optimization_type_spec.rb +5 -3
- data/spec/models/split_options_spec.rb +7 -5
- data/spec/models/sub_account_info_spec.rb +14 -12
- data/spec/models/subaccount_email_credits_payload_spec.rb +7 -5
- data/spec/models/subaccount_email_settings_payload_spec.rb +17 -9
- data/spec/models/subaccount_email_settings_spec.rb +18 -10
- data/spec/models/subaccount_payload_spec.rb +9 -7
- data/spec/models/subaccount_settings_info_payload_spec.rb +6 -4
- data/spec/models/subaccount_settings_info_spec.rb +6 -4
- data/spec/models/suppression_spec.rb +9 -7
- data/spec/models/template_payload_spec.rb +9 -7
- data/spec/models/template_scope_spec.rb +5 -3
- data/spec/models/template_spec.rb +11 -9
- data/spec/models/template_type_spec.rb +5 -3
- data/spec/models/tracking_type_spec.rb +30 -0
- data/spec/models/tracking_validation_status_spec.rb +30 -0
- data/spec/models/transactional_recipient_spec.rb +8 -6
- data/spec/models/utm_spec.rb +9 -7
- data/spec/models/verification_file_result_details_spec.rb +12 -10
- data/spec/models/verification_file_result_spec.rb +11 -9
- data/spec/models/verification_status_spec.rb +5 -3
- data/spec/spec_helper.rb +1 -1
- metadata +126 -94
- data/docs/ContactHistory.md +0 -30
- data/lib/ElasticEmail/models/contact_hist_event_type.rb +0 -49
- data/lib/ElasticEmail/models/template_scope_type.rb +0 -38
- data/spec/api_client_spec.rb +0 -226
- data/spec/models/contact_hist_event_type_spec.rb +0 -28
- data/spec/models/contact_history_spec.rb +0 -70
- data/spec/models/template_scope_type_spec.rb +0 -28
@@ -5,7 +5,7 @@
|
|
5
5
|
| Name | Type | Description | Notes |
|
6
6
|
| ---- | ---- | ----------- | ----- |
|
7
7
|
| **recipients** | [**TransactionalRecipient**](TransactionalRecipient.md) | | |
|
8
|
-
| **content** | [**EmailContent**](EmailContent.md) | |
|
8
|
+
| **content** | [**EmailContent**](EmailContent.md) | | |
|
9
9
|
| **options** | [**Options**](Options.md) | | [optional] |
|
10
10
|
|
11
11
|
## Example
|
@@ -11,9 +11,9 @@
|
|
11
11
|
| **disposable** | **Boolean** | Does the email have a temporary domain | [optional] |
|
12
12
|
| **role** | **Boolean** | Is an email a role email (e.g. info@, noreply@ etc.) | [optional] |
|
13
13
|
| **reason** | **String** | All detected issues | [optional] |
|
14
|
-
| **date_added** | **Time** |
|
14
|
+
| **date_added** | **Time** | Added date | [optional] |
|
15
15
|
| **result** | [**EmailValidationStatus**](EmailValidationStatus.md) | | [optional][default to 'None'] |
|
16
|
-
| **predicted_score** | **Float** |
|
16
|
+
| **predicted_score** | **Float** | Predicted score | [optional] |
|
17
17
|
| **predicted_status** | [**EmailPredictedValidationStatus**](EmailPredictedValidationStatus.md) | | [optional][default to 'None'] |
|
18
18
|
|
19
19
|
## Example
|
data/docs/EmailsApi.md
CHANGED
@@ -5,6 +5,7 @@ All URIs are relative to *https://api.elasticemail.com/v4*
|
|
5
5
|
| Method | HTTP request | Description |
|
6
6
|
| ------ | ------------ | ----------- |
|
7
7
|
| [**emails_by_msgid_view_get**](EmailsApi.md#emails_by_msgid_view_get) | **GET** /emails/{msgid}/view | View Email |
|
8
|
+
| [**emails_by_transactionid_status_get**](EmailsApi.md#emails_by_transactionid_status_get) | **GET** /emails/{transactionid}/status | Get Status |
|
8
9
|
| [**emails_mergefile_post**](EmailsApi.md#emails_mergefile_post) | **POST** /emails/mergefile | Send Bulk Emails CSV |
|
9
10
|
| [**emails_post**](EmailsApi.md#emails_post) | **POST** /emails | Send Bulk Emails |
|
10
11
|
| [**emails_transactional_post**](EmailsApi.md#emails_transactional_post) | **POST** /emails/transactional | Send Transactional Email |
|
@@ -81,13 +82,106 @@ end
|
|
81
82
|
- **Accept**: application/json
|
82
83
|
|
83
84
|
|
85
|
+
## emails_by_transactionid_status_get
|
86
|
+
|
87
|
+
> <EmailJobStatus> emails_by_transactionid_status_get(transactionid, opts)
|
88
|
+
|
89
|
+
Get Status
|
90
|
+
|
91
|
+
Get status details of an email transaction. Required Access Level: ViewReports
|
92
|
+
|
93
|
+
### Examples
|
94
|
+
|
95
|
+
```ruby
|
96
|
+
require 'time'
|
97
|
+
require 'ElasticEmail'
|
98
|
+
# setup authorization
|
99
|
+
ElasticEmail.configure do |config|
|
100
|
+
# Configure API key authorization: apikey
|
101
|
+
config.api_key['apikey'] = 'YOUR API KEY'
|
102
|
+
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
|
103
|
+
# config.api_key_prefix['apikey'] = 'Bearer'
|
104
|
+
end
|
105
|
+
|
106
|
+
api_instance = ElasticEmail::EmailsApi.new
|
107
|
+
transactionid = 'transactionid_example' # String | Transaction identifier
|
108
|
+
opts = {
|
109
|
+
show_failed: true, # Boolean | Include Bounced email addresses.
|
110
|
+
show_sent: true, # Boolean | Include Sent email addresses.
|
111
|
+
show_delivered: true, # Boolean | Include all delivered email addresses.
|
112
|
+
show_pending: true, # Boolean | Include Ready to send email addresses.
|
113
|
+
show_opened: true, # Boolean | Include Opened email addresses.
|
114
|
+
show_clicked: true, # Boolean | Include Clicked email addresses.
|
115
|
+
show_abuse: true, # Boolean | Include Reported as abuse email addresses.
|
116
|
+
show_unsubscribed: true, # Boolean | Include Unsubscribed email addresses.
|
117
|
+
show_errors: true, # Boolean | Include error messages for bounced emails.
|
118
|
+
show_message_ids: true # Boolean | Include all MessageIDs for this transaction
|
119
|
+
}
|
120
|
+
|
121
|
+
begin
|
122
|
+
# Get Status
|
123
|
+
result = api_instance.emails_by_transactionid_status_get(transactionid, opts)
|
124
|
+
p result
|
125
|
+
rescue ElasticEmail::ApiError => e
|
126
|
+
puts "Error when calling EmailsApi->emails_by_transactionid_status_get: #{e}"
|
127
|
+
end
|
128
|
+
```
|
129
|
+
|
130
|
+
#### Using the emails_by_transactionid_status_get_with_http_info variant
|
131
|
+
|
132
|
+
This returns an Array which contains the response data, status code and headers.
|
133
|
+
|
134
|
+
> <Array(<EmailJobStatus>, Integer, Hash)> emails_by_transactionid_status_get_with_http_info(transactionid, opts)
|
135
|
+
|
136
|
+
```ruby
|
137
|
+
begin
|
138
|
+
# Get Status
|
139
|
+
data, status_code, headers = api_instance.emails_by_transactionid_status_get_with_http_info(transactionid, opts)
|
140
|
+
p status_code # => 2xx
|
141
|
+
p headers # => { ... }
|
142
|
+
p data # => <EmailJobStatus>
|
143
|
+
rescue ElasticEmail::ApiError => e
|
144
|
+
puts "Error when calling EmailsApi->emails_by_transactionid_status_get_with_http_info: #{e}"
|
145
|
+
end
|
146
|
+
```
|
147
|
+
|
148
|
+
### Parameters
|
149
|
+
|
150
|
+
| Name | Type | Description | Notes |
|
151
|
+
| ---- | ---- | ----------- | ----- |
|
152
|
+
| **transactionid** | **String** | Transaction identifier | |
|
153
|
+
| **show_failed** | **Boolean** | Include Bounced email addresses. | [optional][default to false] |
|
154
|
+
| **show_sent** | **Boolean** | Include Sent email addresses. | [optional][default to false] |
|
155
|
+
| **show_delivered** | **Boolean** | Include all delivered email addresses. | [optional][default to false] |
|
156
|
+
| **show_pending** | **Boolean** | Include Ready to send email addresses. | [optional][default to false] |
|
157
|
+
| **show_opened** | **Boolean** | Include Opened email addresses. | [optional][default to false] |
|
158
|
+
| **show_clicked** | **Boolean** | Include Clicked email addresses. | [optional][default to false] |
|
159
|
+
| **show_abuse** | **Boolean** | Include Reported as abuse email addresses. | [optional][default to false] |
|
160
|
+
| **show_unsubscribed** | **Boolean** | Include Unsubscribed email addresses. | [optional][default to false] |
|
161
|
+
| **show_errors** | **Boolean** | Include error messages for bounced emails. | [optional][default to false] |
|
162
|
+
| **show_message_ids** | **Boolean** | Include all MessageIDs for this transaction | [optional][default to false] |
|
163
|
+
|
164
|
+
### Return type
|
165
|
+
|
166
|
+
[**EmailJobStatus**](EmailJobStatus.md)
|
167
|
+
|
168
|
+
### Authorization
|
169
|
+
|
170
|
+
[apikey](../README.md#apikey)
|
171
|
+
|
172
|
+
### HTTP request headers
|
173
|
+
|
174
|
+
- **Content-Type**: Not defined
|
175
|
+
- **Accept**: application/json
|
176
|
+
|
177
|
+
|
84
178
|
## emails_mergefile_post
|
85
179
|
|
86
180
|
> <EmailSend> emails_mergefile_post(merge_email_payload)
|
87
181
|
|
88
182
|
Send Bulk Emails CSV
|
89
183
|
|
90
|
-
Send
|
184
|
+
Send to a list of contacts submitted in a CSV data file. The first column in the CSV must be the email address and the CSV must contain a header row. Additional fields can be included with a named header row and can be merged with the template using {merge} tags in the content. Example CSV: email, firstname, lastname test1@gmail.com, michael, smith test2@gmail.com, janet, smith Merge file must not be empty. Required Access Level: SendHttp
|
91
185
|
|
92
186
|
### Examples
|
93
187
|
|
@@ -103,7 +197,7 @@ ElasticEmail.configure do |config|
|
|
103
197
|
end
|
104
198
|
|
105
199
|
api_instance = ElasticEmail::EmailsApi.new
|
106
|
-
merge_email_payload = ElasticEmail::MergeEmailPayload.new({merge_file: ElasticEmail::MessageAttachment.new({binary_content: 'binary_content_example', name: 'name_example'})}) # MergeEmailPayload | Email data
|
200
|
+
merge_email_payload = ElasticEmail::MergeEmailPayload.new({merge_file: ElasticEmail::MessageAttachment.new({binary_content: 'binary_content_example', name: 'name_example'}), content: ElasticEmail::EmailContent.new({from: 'John Doe <email@domain.com>'})}) # MergeEmailPayload | Email data
|
107
201
|
|
108
202
|
begin
|
109
203
|
# Send Bulk Emails CSV
|
@@ -174,7 +268,7 @@ ElasticEmail.configure do |config|
|
|
174
268
|
end
|
175
269
|
|
176
270
|
api_instance = ElasticEmail::EmailsApi.new
|
177
|
-
email_message_data = ElasticEmail::EmailMessageData.new({recipients: [ElasticEmail::EmailRecipient.new({email: 'mail@example.com'})]}) # EmailMessageData | Email data
|
271
|
+
email_message_data = ElasticEmail::EmailMessageData.new({recipients: [ElasticEmail::EmailRecipient.new({email: 'mail@example.com'})], content: ElasticEmail::EmailContent.new({from: 'John Doe <email@domain.com>'})}) # EmailMessageData | Email data
|
178
272
|
|
179
273
|
begin
|
180
274
|
# Send Bulk Emails
|
@@ -245,7 +339,7 @@ ElasticEmail.configure do |config|
|
|
245
339
|
end
|
246
340
|
|
247
341
|
api_instance = ElasticEmail::EmailsApi.new
|
248
|
-
email_transactional_message_data = ElasticEmail::EmailTransactionalMessageData.new({recipients: ElasticEmail::TransactionalRecipient.new({to: ['to_example']})}) # EmailTransactionalMessageData | Email data
|
342
|
+
email_transactional_message_data = ElasticEmail::EmailTransactionalMessageData.new({recipients: ElasticEmail::TransactionalRecipient.new({to: ['to_example']}), content: ElasticEmail::EmailContent.new({from: 'John Doe <email@domain.com>'})}) # EmailTransactionalMessageData | Email data
|
249
343
|
|
250
344
|
begin
|
251
345
|
# Send Transactional Email
|
data/docs/EmailsPayload.md
CHANGED
data/docs/ListPayload.md
CHANGED
data/docs/ListsApi.md
CHANGED
@@ -4,6 +4,7 @@ All URIs are relative to *https://api.elasticemail.com/v4*
|
|
4
4
|
|
5
5
|
| Method | HTTP request | Description |
|
6
6
|
| ------ | ------------ | ----------- |
|
7
|
+
| [**lists_by_listname_contacts_get**](ListsApi.md#lists_by_listname_contacts_get) | **GET** /lists/{listname}/contacts | Load Contacts in List |
|
7
8
|
| [**lists_by_name_contacts_post**](ListsApi.md#lists_by_name_contacts_post) | **POST** /lists/{name}/contacts | Add Contacts to List |
|
8
9
|
| [**lists_by_name_contacts_remove_post**](ListsApi.md#lists_by_name_contacts_remove_post) | **POST** /lists/{name}/contacts/remove | Remove Contacts from List |
|
9
10
|
| [**lists_by_name_delete**](ListsApi.md#lists_by_name_delete) | **DELETE** /lists/{name} | Delete List |
|
@@ -13,6 +14,83 @@ All URIs are relative to *https://api.elasticemail.com/v4*
|
|
13
14
|
| [**lists_post**](ListsApi.md#lists_post) | **POST** /lists | Add List |
|
14
15
|
|
15
16
|
|
17
|
+
## lists_by_listname_contacts_get
|
18
|
+
|
19
|
+
> <Array<Contact>> lists_by_listname_contacts_get(listname, opts)
|
20
|
+
|
21
|
+
Load Contacts in List
|
22
|
+
|
23
|
+
Returns a list of contacts. Required Access Level: ViewContacts
|
24
|
+
|
25
|
+
### Examples
|
26
|
+
|
27
|
+
```ruby
|
28
|
+
require 'time'
|
29
|
+
require 'ElasticEmail'
|
30
|
+
# setup authorization
|
31
|
+
ElasticEmail.configure do |config|
|
32
|
+
# Configure API key authorization: apikey
|
33
|
+
config.api_key['apikey'] = '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['apikey'] = 'Bearer'
|
36
|
+
end
|
37
|
+
|
38
|
+
api_instance = ElasticEmail::ListsApi.new
|
39
|
+
listname = 'My List 1' # String | Name of your list.
|
40
|
+
opts = {
|
41
|
+
limit: 100, # Integer | Maximum number of returned items.
|
42
|
+
offset: 20 # Integer | How many items should be returned ahead.
|
43
|
+
}
|
44
|
+
|
45
|
+
begin
|
46
|
+
# Load Contacts in List
|
47
|
+
result = api_instance.lists_by_listname_contacts_get(listname, opts)
|
48
|
+
p result
|
49
|
+
rescue ElasticEmail::ApiError => e
|
50
|
+
puts "Error when calling ListsApi->lists_by_listname_contacts_get: #{e}"
|
51
|
+
end
|
52
|
+
```
|
53
|
+
|
54
|
+
#### Using the lists_by_listname_contacts_get_with_http_info variant
|
55
|
+
|
56
|
+
This returns an Array which contains the response data, status code and headers.
|
57
|
+
|
58
|
+
> <Array(<Array<Contact>>, Integer, Hash)> lists_by_listname_contacts_get_with_http_info(listname, opts)
|
59
|
+
|
60
|
+
```ruby
|
61
|
+
begin
|
62
|
+
# Load Contacts in List
|
63
|
+
data, status_code, headers = api_instance.lists_by_listname_contacts_get_with_http_info(listname, opts)
|
64
|
+
p status_code # => 2xx
|
65
|
+
p headers # => { ... }
|
66
|
+
p data # => <Array<Contact>>
|
67
|
+
rescue ElasticEmail::ApiError => e
|
68
|
+
puts "Error when calling ListsApi->lists_by_listname_contacts_get_with_http_info: #{e}"
|
69
|
+
end
|
70
|
+
```
|
71
|
+
|
72
|
+
### Parameters
|
73
|
+
|
74
|
+
| Name | Type | Description | Notes |
|
75
|
+
| ---- | ---- | ----------- | ----- |
|
76
|
+
| **listname** | **String** | Name of your list. | |
|
77
|
+
| **limit** | **Integer** | Maximum number of returned items. | [optional] |
|
78
|
+
| **offset** | **Integer** | How many items should be returned ahead. | [optional] |
|
79
|
+
|
80
|
+
### Return type
|
81
|
+
|
82
|
+
[**Array<Contact>**](Contact.md)
|
83
|
+
|
84
|
+
### Authorization
|
85
|
+
|
86
|
+
[apikey](../README.md#apikey)
|
87
|
+
|
88
|
+
### HTTP request headers
|
89
|
+
|
90
|
+
- **Content-Type**: Not defined
|
91
|
+
- **Accept**: application/json
|
92
|
+
|
93
|
+
|
16
94
|
## lists_by_name_contacts_post
|
17
95
|
|
18
96
|
> <ContactsList> lists_by_name_contacts_post(name, emails_payload)
|
data/docs/MergeEmailPayload.md
CHANGED
@@ -5,7 +5,7 @@
|
|
5
5
|
| Name | Type | Description | Notes |
|
6
6
|
| ---- | ---- | ----------- | ----- |
|
7
7
|
| **merge_file** | [**MessageAttachment**](MessageAttachment.md) | | |
|
8
|
-
| **content** | [**EmailContent**](EmailContent.md) | |
|
8
|
+
| **content** | [**EmailContent**](EmailContent.md) | | |
|
9
9
|
| **options** | [**Options**](Options.md) | | [optional] |
|
10
10
|
|
11
11
|
## Example
|
@@ -1,4 +1,4 @@
|
|
1
|
-
# ElasticEmail::
|
1
|
+
# ElasticEmail::MessageCategoryEnum
|
2
2
|
|
3
3
|
## Properties
|
4
4
|
|
@@ -10,6 +10,6 @@
|
|
10
10
|
```ruby
|
11
11
|
require 'ElasticEmail'
|
12
12
|
|
13
|
-
instance = ElasticEmail::
|
13
|
+
instance = ElasticEmail::MessageCategoryEnum.new()
|
14
14
|
```
|
15
15
|
|
@@ -0,0 +1,15 @@
|
|
1
|
+
# ElasticEmail::TrackingValidationStatus
|
2
|
+
|
3
|
+
## Properties
|
4
|
+
|
5
|
+
| Name | Type | Description | Notes |
|
6
|
+
| ---- | ---- | ----------- | ----- |
|
7
|
+
|
8
|
+
## Example
|
9
|
+
|
10
|
+
```ruby
|
11
|
+
require 'ElasticEmail'
|
12
|
+
|
13
|
+
instance = ElasticEmail::TrackingValidationStatus.new()
|
14
|
+
```
|
15
|
+
|
@@ -6,7 +6,7 @@
|
|
6
6
|
The version of the OpenAPI document: 4.0.0
|
7
7
|
Contact: support@elasticemail.com
|
8
8
|
Generated by: https://openapi-generator.tech
|
9
|
-
|
9
|
+
Generator version: 7.5.0
|
10
10
|
|
11
11
|
=end
|
12
12
|
|
@@ -143,6 +143,67 @@ module ElasticEmail
|
|
143
143
|
return data, status_code, headers
|
144
144
|
end
|
145
145
|
|
146
|
+
# Pause Campaign
|
147
|
+
# Pauses the specific campaign, cancelling emails that are waiting to be sent. Required Access Level: ModifyCampaigns
|
148
|
+
# @param name [String] Name of Campaign to pause
|
149
|
+
# @param [Hash] opts the optional parameters
|
150
|
+
# @return [nil]
|
151
|
+
def campaigns_by_name_pause_put(name, opts = {})
|
152
|
+
campaigns_by_name_pause_put_with_http_info(name, opts)
|
153
|
+
nil
|
154
|
+
end
|
155
|
+
|
156
|
+
# Pause Campaign
|
157
|
+
# Pauses the specific campaign, cancelling emails that are waiting to be sent. Required Access Level: ModifyCampaigns
|
158
|
+
# @param name [String] Name of Campaign to pause
|
159
|
+
# @param [Hash] opts the optional parameters
|
160
|
+
# @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers
|
161
|
+
def campaigns_by_name_pause_put_with_http_info(name, opts = {})
|
162
|
+
if @api_client.config.debugging
|
163
|
+
@api_client.config.logger.debug 'Calling API: CampaignsApi.campaigns_by_name_pause_put ...'
|
164
|
+
end
|
165
|
+
# verify the required parameter 'name' is set
|
166
|
+
if @api_client.config.client_side_validation && name.nil?
|
167
|
+
fail ArgumentError, "Missing the required parameter 'name' when calling CampaignsApi.campaigns_by_name_pause_put"
|
168
|
+
end
|
169
|
+
# resource path
|
170
|
+
local_var_path = '/campaigns/{name}/pause'.sub('{' + 'name' + '}', CGI.escape(name.to_s))
|
171
|
+
|
172
|
+
# query parameters
|
173
|
+
query_params = opts[:query_params] || {}
|
174
|
+
|
175
|
+
# header parameters
|
176
|
+
header_params = opts[:header_params] || {}
|
177
|
+
|
178
|
+
# form parameters
|
179
|
+
form_params = opts[:form_params] || {}
|
180
|
+
|
181
|
+
# http body (model)
|
182
|
+
post_body = opts[:debug_body]
|
183
|
+
|
184
|
+
# return_type
|
185
|
+
return_type = opts[:debug_return_type]
|
186
|
+
|
187
|
+
# auth_names
|
188
|
+
auth_names = opts[:debug_auth_names] || ['apikey']
|
189
|
+
|
190
|
+
new_options = opts.merge(
|
191
|
+
:operation => :"CampaignsApi.campaigns_by_name_pause_put",
|
192
|
+
:header_params => header_params,
|
193
|
+
:query_params => query_params,
|
194
|
+
:form_params => form_params,
|
195
|
+
:body => post_body,
|
196
|
+
:auth_names => auth_names,
|
197
|
+
:return_type => return_type
|
198
|
+
)
|
199
|
+
|
200
|
+
data, status_code, headers = @api_client.call_api(:PUT, local_var_path, new_options)
|
201
|
+
if @api_client.config.debugging
|
202
|
+
@api_client.config.logger.debug "API called: CampaignsApi#campaigns_by_name_pause_put\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
203
|
+
end
|
204
|
+
return data, status_code, headers
|
205
|
+
end
|
206
|
+
|
146
207
|
# Update Campaign
|
147
208
|
# Updates a previously added campaign. Only Active and Paused campaigns can be updated. Required Access Level: ModifyCampaigns
|
148
209
|
# @param name [String] Name of Campaign to update
|