ElasticEmail 4.0.1
Sign up to get free protection for your applications and to get access to all the features.
- 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,24 @@
|
|
1
|
+
# ElasticEmail::ContactsList
|
2
|
+
|
3
|
+
## Properties
|
4
|
+
|
5
|
+
| Name | Type | Description | Notes |
|
6
|
+
| ---- | ---- | ----------- | ----- |
|
7
|
+
| **list_name** | **String** | Name of your list. | [optional] |
|
8
|
+
| **public_list_id** | **String** | ID code of list. Please note that this is different from the listid field. | [optional] |
|
9
|
+
| **date_added** | **Time** | Date of creation in YYYY-MM-DDThh:ii:ss format | [optional] |
|
10
|
+
| **allow_unsubscribe** | **Boolean** | True: Allow unsubscribing from this list. Otherwise, false | [optional] |
|
11
|
+
|
12
|
+
## Example
|
13
|
+
|
14
|
+
```ruby
|
15
|
+
require 'ElasticEmail'
|
16
|
+
|
17
|
+
instance = ElasticEmail::ContactsList.new(
|
18
|
+
list_name: My List 1,
|
19
|
+
public_list_id: E33EBA7A-C20D-4D3D-8F2F-5EEF42F58E6F,
|
20
|
+
date_added: null,
|
21
|
+
allow_unsubscribe: false
|
22
|
+
)
|
23
|
+
```
|
24
|
+
|
@@ -0,0 +1,15 @@
|
|
1
|
+
# ElasticEmail::DeliveryOptimizationType
|
2
|
+
|
3
|
+
## Properties
|
4
|
+
|
5
|
+
| Name | Type | Description | Notes |
|
6
|
+
| ---- | ---- | ----------- | ----- |
|
7
|
+
|
8
|
+
## Example
|
9
|
+
|
10
|
+
```ruby
|
11
|
+
require 'ElasticEmail'
|
12
|
+
|
13
|
+
instance = ElasticEmail::DeliveryOptimizationType.new()
|
14
|
+
```
|
15
|
+
|
@@ -0,0 +1,38 @@
|
|
1
|
+
# ElasticEmail::EmailContent
|
2
|
+
|
3
|
+
## Properties
|
4
|
+
|
5
|
+
| Name | Type | Description | Notes |
|
6
|
+
| ---- | ---- | ----------- | ----- |
|
7
|
+
| **body** | [**Array<BodyPart>**](BodyPart.md) | List of e-mail body parts, with user-provided MIME types (text/html, text/plain etc) | [optional] |
|
8
|
+
| **merge** | **Hash<String, String>** | A key-value collection of custom merge fields, shared between recipients. Should be used in e-mail body like so: {firstname}, {lastname} etc. | [optional] |
|
9
|
+
| **attachments** | [**Array<MessageAttachment>**](MessageAttachment.md) | Attachments provided by sending binary data | [optional] |
|
10
|
+
| **headers** | **Hash<String, String>** | A key-value collection of custom e-mail headers. | [optional] |
|
11
|
+
| **postback** | **String** | Postback header. | [optional] |
|
12
|
+
| **from** | **String** | Your e-mail with an optional name (e.g.: John Doe <email@domain.com>) | [optional] |
|
13
|
+
| **reply_to** | **String** | To what address should the recipients reply to (e.g. John Doe <email@domain.com>) | [optional] |
|
14
|
+
| **subject** | **String** | Default subject of email. | [optional] |
|
15
|
+
| **template_name** | **String** | Name of template. | [optional] |
|
16
|
+
| **attach_files** | **Array<String>** | Names of previously uploaded files that should be sent as downloadable attachments | [optional] |
|
17
|
+
| **utm** | [**Utm**](Utm.md) | Utm marketing data to be attached to every link in this e-mail. | [optional] |
|
18
|
+
|
19
|
+
## Example
|
20
|
+
|
21
|
+
```ruby
|
22
|
+
require 'ElasticEmail'
|
23
|
+
|
24
|
+
instance = ElasticEmail::EmailContent.new(
|
25
|
+
body: null,
|
26
|
+
merge: {"city":"New York","age":"34"},
|
27
|
+
attachments: null,
|
28
|
+
headers: {"city":"New York","age":"34"},
|
29
|
+
postback: null,
|
30
|
+
from: John Doe <email@domain.com>,
|
31
|
+
reply_to: John Doe <email@domain.com>,
|
32
|
+
subject: Hello!,
|
33
|
+
template_name: Template01,
|
34
|
+
attach_files: null,
|
35
|
+
utm: null
|
36
|
+
)
|
37
|
+
```
|
38
|
+
|
data/docs/EmailData.md
ADDED
@@ -0,0 +1,22 @@
|
|
1
|
+
# ElasticEmail::EmailData
|
2
|
+
|
3
|
+
## Properties
|
4
|
+
|
5
|
+
| Name | Type | Description | Notes |
|
6
|
+
| ---- | ---- | ----------- | ----- |
|
7
|
+
| **preview** | [**EmailView**](EmailView.md) | Email details | [optional] |
|
8
|
+
| **attachments** | [**Array<FileInfo>**](FileInfo.md) | Attachments sent with the email | [optional] |
|
9
|
+
| **status** | [**EmailStatus**](EmailStatus.md) | Status of the given resource | [optional] |
|
10
|
+
|
11
|
+
## Example
|
12
|
+
|
13
|
+
```ruby
|
14
|
+
require 'ElasticEmail'
|
15
|
+
|
16
|
+
instance = ElasticEmail::EmailData.new(
|
17
|
+
preview: null,
|
18
|
+
attachments: null,
|
19
|
+
status: null
|
20
|
+
)
|
21
|
+
```
|
22
|
+
|
@@ -0,0 +1,22 @@
|
|
1
|
+
# ElasticEmail::EmailMessageData
|
2
|
+
|
3
|
+
## Properties
|
4
|
+
|
5
|
+
| Name | Type | Description | Notes |
|
6
|
+
| ---- | ---- | ----------- | ----- |
|
7
|
+
| **recipients** | [**Array<EmailRecipient>**](EmailRecipient.md) | List of recipients (visible to others) | [optional] |
|
8
|
+
| **content** | [**EmailContent**](EmailContent.md) | Proper e-mail content | [optional] |
|
9
|
+
| **options** | [**Options**](Options.md) | E-mail configuration | [optional] |
|
10
|
+
|
11
|
+
## Example
|
12
|
+
|
13
|
+
```ruby
|
14
|
+
require 'ElasticEmail'
|
15
|
+
|
16
|
+
instance = ElasticEmail::EmailMessageData.new(
|
17
|
+
recipients: null,
|
18
|
+
content: null,
|
19
|
+
options: null
|
20
|
+
)
|
21
|
+
```
|
22
|
+
|
@@ -0,0 +1,20 @@
|
|
1
|
+
# ElasticEmail::EmailRecipient
|
2
|
+
|
3
|
+
## Properties
|
4
|
+
|
5
|
+
| Name | Type | Description | Notes |
|
6
|
+
| ---- | ---- | ----------- | ----- |
|
7
|
+
| **email** | **String** | Proper email address. | [optional] |
|
8
|
+
| **fields** | **Hash<String, String>** | A key-value collection of merge fields which can be used in e-mail body. | [optional] |
|
9
|
+
|
10
|
+
## Example
|
11
|
+
|
12
|
+
```ruby
|
13
|
+
require 'ElasticEmail'
|
14
|
+
|
15
|
+
instance = ElasticEmail::EmailRecipient.new(
|
16
|
+
email: mail@example.com,
|
17
|
+
fields: {"city":"New York","age":"34"}
|
18
|
+
)
|
19
|
+
```
|
20
|
+
|
data/docs/EmailSend.md
ADDED
@@ -0,0 +1,20 @@
|
|
1
|
+
# ElasticEmail::EmailSend
|
2
|
+
|
3
|
+
## Properties
|
4
|
+
|
5
|
+
| Name | Type | Description | Notes |
|
6
|
+
| ---- | ---- | ----------- | ----- |
|
7
|
+
| **transaction_id** | **String** | ID number of transaction | [optional] |
|
8
|
+
| **message_id** | **String** | Unique identifier for this email. | [optional] |
|
9
|
+
|
10
|
+
## Example
|
11
|
+
|
12
|
+
```ruby
|
13
|
+
require 'ElasticEmail'
|
14
|
+
|
15
|
+
instance = ElasticEmail::EmailSend.new(
|
16
|
+
transaction_id: TransactionID,
|
17
|
+
message_id: -HHGPM_9RPhSMiaJq_ab4g3
|
18
|
+
)
|
19
|
+
```
|
20
|
+
|
data/docs/EmailStatus.md
ADDED
@@ -0,0 +1,40 @@
|
|
1
|
+
# ElasticEmail::EmailStatus
|
2
|
+
|
3
|
+
## Properties
|
4
|
+
|
5
|
+
| Name | Type | Description | Notes |
|
6
|
+
| ---- | ---- | ----------- | ----- |
|
7
|
+
| **from** | **String** | Email address this email was sent from. | [optional] |
|
8
|
+
| **to** | **String** | Email address this email was sent to. | [optional] |
|
9
|
+
| **date** | **Time** | Date the email was submitted. | [optional] |
|
10
|
+
| **status** | [**LogJobStatus**](LogJobStatus.md) | Value of email's status | [optional] |
|
11
|
+
| **status_name** | **String** | Name of email's status | [optional] |
|
12
|
+
| **status_change_date** | **Time** | Date of last status change. | [optional] |
|
13
|
+
| **date_sent** | **Time** | Date when the email was sent | [optional] |
|
14
|
+
| **date_opened** | **Time** | Date when the email changed the status to 'opened' | [optional] |
|
15
|
+
| **date_clicked** | **Time** | Date when the email changed the status to 'clicked' | [optional] |
|
16
|
+
| **error_message** | **String** | Detailed error or bounced message. | [optional] |
|
17
|
+
| **transaction_id** | **String** | ID number of transaction | [optional] |
|
18
|
+
| **envelope_from** | **String** | Envelope from address | [optional] |
|
19
|
+
|
20
|
+
## Example
|
21
|
+
|
22
|
+
```ruby
|
23
|
+
require 'ElasticEmail'
|
24
|
+
|
25
|
+
instance = ElasticEmail::EmailStatus.new(
|
26
|
+
from: null,
|
27
|
+
to: null,
|
28
|
+
date: null,
|
29
|
+
status: null,
|
30
|
+
status_name: null,
|
31
|
+
status_change_date: null,
|
32
|
+
date_sent: null,
|
33
|
+
date_opened: null,
|
34
|
+
date_clicked: null,
|
35
|
+
error_message: null,
|
36
|
+
transaction_id: TransactionID,
|
37
|
+
envelope_from: null
|
38
|
+
)
|
39
|
+
```
|
40
|
+
|
@@ -0,0 +1,22 @@
|
|
1
|
+
# ElasticEmail::EmailTransactionalMessageData
|
2
|
+
|
3
|
+
## Properties
|
4
|
+
|
5
|
+
| Name | Type | Description | Notes |
|
6
|
+
| ---- | ---- | ----------- | ----- |
|
7
|
+
| **recipients** | [**TransactionalRecipient**](TransactionalRecipient.md) | List of transactional recipients | [optional] |
|
8
|
+
| **content** | [**EmailContent**](EmailContent.md) | Proper e-mail content | [optional] |
|
9
|
+
| **options** | [**Options**](Options.md) | E-mail configuration | [optional] |
|
10
|
+
|
11
|
+
## Example
|
12
|
+
|
13
|
+
```ruby
|
14
|
+
require 'ElasticEmail'
|
15
|
+
|
16
|
+
instance = ElasticEmail::EmailTransactionalMessageData.new(
|
17
|
+
recipients: null,
|
18
|
+
content: null,
|
19
|
+
options: null
|
20
|
+
)
|
21
|
+
```
|
22
|
+
|
@@ -0,0 +1,34 @@
|
|
1
|
+
# ElasticEmail::EmailValidationResult
|
2
|
+
|
3
|
+
## Properties
|
4
|
+
|
5
|
+
| Name | Type | Description | Notes |
|
6
|
+
| ---- | ---- | ----------- | ----- |
|
7
|
+
| **account** | **String** | Local part of an email | [optional] |
|
8
|
+
| **domain** | **String** | Name of selected domain. | [optional] |
|
9
|
+
| **email** | **String** | Full email address that was verified | [optional] |
|
10
|
+
| **suggested_spelling** | **String** | Suggested spelling if a possible mistake was found | [optional] |
|
11
|
+
| **disposable** | **Boolean** | Does the email have a temporary domain | [optional] |
|
12
|
+
| **role** | **Boolean** | Is an email a role email (e.g. info@, noreply@ etc.) | [optional] |
|
13
|
+
| **reason** | **String** | All detected issues | [optional] |
|
14
|
+
| **date_added** | **Time** | Date of creation in YYYY-MM-DDThh:ii:ss format | [optional] |
|
15
|
+
| **result** | [**EmailValidationStatus**](EmailValidationStatus.md) | | [optional][default to 'None'] |
|
16
|
+
|
17
|
+
## Example
|
18
|
+
|
19
|
+
```ruby
|
20
|
+
require 'ElasticEmail'
|
21
|
+
|
22
|
+
instance = ElasticEmail::EmailValidationResult.new(
|
23
|
+
account: null,
|
24
|
+
domain: example.com,
|
25
|
+
email: null,
|
26
|
+
suggested_spelling: null,
|
27
|
+
disposable: null,
|
28
|
+
role: null,
|
29
|
+
reason: null,
|
30
|
+
date_added: null,
|
31
|
+
result: null
|
32
|
+
)
|
33
|
+
```
|
34
|
+
|
@@ -0,0 +1,15 @@
|
|
1
|
+
# ElasticEmail::EmailValidationStatus
|
2
|
+
|
3
|
+
## Properties
|
4
|
+
|
5
|
+
| Name | Type | Description | Notes |
|
6
|
+
| ---- | ---- | ----------- | ----- |
|
7
|
+
|
8
|
+
## Example
|
9
|
+
|
10
|
+
```ruby
|
11
|
+
require 'ElasticEmail'
|
12
|
+
|
13
|
+
instance = ElasticEmail::EmailValidationStatus.new()
|
14
|
+
```
|
15
|
+
|
data/docs/EmailView.md
ADDED
@@ -0,0 +1,22 @@
|
|
1
|
+
# ElasticEmail::EmailView
|
2
|
+
|
3
|
+
## Properties
|
4
|
+
|
5
|
+
| Name | Type | Description | Notes |
|
6
|
+
| ---- | ---- | ----------- | ----- |
|
7
|
+
| **body** | **String** | Body (HTML, otherwise plain text) of email | [optional] |
|
8
|
+
| **subject** | **String** | Default subject of email. | [optional] |
|
9
|
+
| **from** | **String** | From email address | [optional] |
|
10
|
+
|
11
|
+
## Example
|
12
|
+
|
13
|
+
```ruby
|
14
|
+
require 'ElasticEmail'
|
15
|
+
|
16
|
+
instance = ElasticEmail::EmailView.new(
|
17
|
+
body: null,
|
18
|
+
subject: Hello!,
|
19
|
+
from: null
|
20
|
+
)
|
21
|
+
```
|
22
|
+
|
data/docs/EmailsApi.md
ADDED
@@ -0,0 +1,295 @@
|
|
1
|
+
# ElasticEmail::EmailsApi
|
2
|
+
|
3
|
+
All URIs are relative to *https://api.elasticemail.com/v4*
|
4
|
+
|
5
|
+
| Method | HTTP request | Description |
|
6
|
+
| ------ | ------------ | ----------- |
|
7
|
+
| [**emails_by_msgid_view_get**](EmailsApi.md#emails_by_msgid_view_get) | **GET** /emails/{msgid}/view | View Email |
|
8
|
+
| [**emails_mergefile_post**](EmailsApi.md#emails_mergefile_post) | **POST** /emails/mergefile | Send Bulk Emails CSV |
|
9
|
+
| [**emails_post**](EmailsApi.md#emails_post) | **POST** /emails | Send Bulk Emails |
|
10
|
+
| [**emails_transactional_post**](EmailsApi.md#emails_transactional_post) | **POST** /emails/transactional | Send Transactional Email |
|
11
|
+
|
12
|
+
|
13
|
+
## emails_by_msgid_view_get
|
14
|
+
|
15
|
+
> <EmailData> emails_by_msgid_view_get(msgid)
|
16
|
+
|
17
|
+
View Email
|
18
|
+
|
19
|
+
Returns email details for viewing or rendering. Required Access Level: None
|
20
|
+
|
21
|
+
### Examples
|
22
|
+
|
23
|
+
```ruby
|
24
|
+
require 'time'
|
25
|
+
require 'ElasticEmail'
|
26
|
+
# setup authorization
|
27
|
+
ElasticEmail.configure do |config|
|
28
|
+
# Configure API key authorization: apikey
|
29
|
+
config.api_key['apikey'] = 'YOUR API KEY'
|
30
|
+
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
|
31
|
+
# config.api_key_prefix['apikey'] = 'Bearer'
|
32
|
+
end
|
33
|
+
|
34
|
+
api_instance = ElasticEmail::EmailsApi.new
|
35
|
+
msgid = 'msgid_example' # String | Message identifier
|
36
|
+
|
37
|
+
begin
|
38
|
+
# View Email
|
39
|
+
result = api_instance.emails_by_msgid_view_get(msgid)
|
40
|
+
p result
|
41
|
+
rescue ElasticEmail::ApiError => e
|
42
|
+
puts "Error when calling EmailsApi->emails_by_msgid_view_get: #{e}"
|
43
|
+
end
|
44
|
+
```
|
45
|
+
|
46
|
+
#### Using the emails_by_msgid_view_get_with_http_info variant
|
47
|
+
|
48
|
+
This returns an Array which contains the response data, status code and headers.
|
49
|
+
|
50
|
+
> <Array(<EmailData>, Integer, Hash)> emails_by_msgid_view_get_with_http_info(msgid)
|
51
|
+
|
52
|
+
```ruby
|
53
|
+
begin
|
54
|
+
# View Email
|
55
|
+
data, status_code, headers = api_instance.emails_by_msgid_view_get_with_http_info(msgid)
|
56
|
+
p status_code # => 2xx
|
57
|
+
p headers # => { ... }
|
58
|
+
p data # => <EmailData>
|
59
|
+
rescue ElasticEmail::ApiError => e
|
60
|
+
puts "Error when calling EmailsApi->emails_by_msgid_view_get_with_http_info: #{e}"
|
61
|
+
end
|
62
|
+
```
|
63
|
+
|
64
|
+
### Parameters
|
65
|
+
|
66
|
+
| Name | Type | Description | Notes |
|
67
|
+
| ---- | ---- | ----------- | ----- |
|
68
|
+
| **msgid** | **String** | Message identifier | |
|
69
|
+
|
70
|
+
### Return type
|
71
|
+
|
72
|
+
[**EmailData**](EmailData.md)
|
73
|
+
|
74
|
+
### Authorization
|
75
|
+
|
76
|
+
[apikey](../README.md#apikey)
|
77
|
+
|
78
|
+
### HTTP request headers
|
79
|
+
|
80
|
+
- **Content-Type**: Not defined
|
81
|
+
- **Accept**: application/json
|
82
|
+
|
83
|
+
|
84
|
+
## emails_mergefile_post
|
85
|
+
|
86
|
+
> <EmailSend> emails_mergefile_post(merge_email_payload)
|
87
|
+
|
88
|
+
Send Bulk Emails CSV
|
89
|
+
|
90
|
+
Send bulk merge email. Required Access Level: SendHttp
|
91
|
+
|
92
|
+
### Examples
|
93
|
+
|
94
|
+
```ruby
|
95
|
+
require 'time'
|
96
|
+
require 'ElasticEmail'
|
97
|
+
# setup authorization
|
98
|
+
ElasticEmail.configure do |config|
|
99
|
+
# Configure API key authorization: apikey
|
100
|
+
config.api_key['apikey'] = 'YOUR API KEY'
|
101
|
+
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
|
102
|
+
# config.api_key_prefix['apikey'] = 'Bearer'
|
103
|
+
end
|
104
|
+
|
105
|
+
api_instance = ElasticEmail::EmailsApi.new
|
106
|
+
merge_email_payload = ElasticEmail::MergeEmailPayload.new # MergeEmailPayload | Email data
|
107
|
+
|
108
|
+
begin
|
109
|
+
# Send Bulk Emails CSV
|
110
|
+
result = api_instance.emails_mergefile_post(merge_email_payload)
|
111
|
+
p result
|
112
|
+
rescue ElasticEmail::ApiError => e
|
113
|
+
puts "Error when calling EmailsApi->emails_mergefile_post: #{e}"
|
114
|
+
end
|
115
|
+
```
|
116
|
+
|
117
|
+
#### Using the emails_mergefile_post_with_http_info variant
|
118
|
+
|
119
|
+
This returns an Array which contains the response data, status code and headers.
|
120
|
+
|
121
|
+
> <Array(<EmailSend>, Integer, Hash)> emails_mergefile_post_with_http_info(merge_email_payload)
|
122
|
+
|
123
|
+
```ruby
|
124
|
+
begin
|
125
|
+
# Send Bulk Emails CSV
|
126
|
+
data, status_code, headers = api_instance.emails_mergefile_post_with_http_info(merge_email_payload)
|
127
|
+
p status_code # => 2xx
|
128
|
+
p headers # => { ... }
|
129
|
+
p data # => <EmailSend>
|
130
|
+
rescue ElasticEmail::ApiError => e
|
131
|
+
puts "Error when calling EmailsApi->emails_mergefile_post_with_http_info: #{e}"
|
132
|
+
end
|
133
|
+
```
|
134
|
+
|
135
|
+
### Parameters
|
136
|
+
|
137
|
+
| Name | Type | Description | Notes |
|
138
|
+
| ---- | ---- | ----------- | ----- |
|
139
|
+
| **merge_email_payload** | [**MergeEmailPayload**](MergeEmailPayload.md) | Email data | |
|
140
|
+
|
141
|
+
### Return type
|
142
|
+
|
143
|
+
[**EmailSend**](EmailSend.md)
|
144
|
+
|
145
|
+
### Authorization
|
146
|
+
|
147
|
+
[apikey](../README.md#apikey)
|
148
|
+
|
149
|
+
### HTTP request headers
|
150
|
+
|
151
|
+
- **Content-Type**: application/json
|
152
|
+
- **Accept**: application/json
|
153
|
+
|
154
|
+
|
155
|
+
## emails_post
|
156
|
+
|
157
|
+
> <EmailSend> emails_post(email_message_data)
|
158
|
+
|
159
|
+
Send Bulk Emails
|
160
|
+
|
161
|
+
Send bulk merge email. Required Access Level: SendHttp
|
162
|
+
|
163
|
+
### Examples
|
164
|
+
|
165
|
+
```ruby
|
166
|
+
require 'time'
|
167
|
+
require 'ElasticEmail'
|
168
|
+
# setup authorization
|
169
|
+
ElasticEmail.configure do |config|
|
170
|
+
# Configure API key authorization: apikey
|
171
|
+
config.api_key['apikey'] = 'YOUR API KEY'
|
172
|
+
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
|
173
|
+
# config.api_key_prefix['apikey'] = 'Bearer'
|
174
|
+
end
|
175
|
+
|
176
|
+
api_instance = ElasticEmail::EmailsApi.new
|
177
|
+
email_message_data = ElasticEmail::EmailMessageData.new # EmailMessageData | Email data
|
178
|
+
|
179
|
+
begin
|
180
|
+
# Send Bulk Emails
|
181
|
+
result = api_instance.emails_post(email_message_data)
|
182
|
+
p result
|
183
|
+
rescue ElasticEmail::ApiError => e
|
184
|
+
puts "Error when calling EmailsApi->emails_post: #{e}"
|
185
|
+
end
|
186
|
+
```
|
187
|
+
|
188
|
+
#### Using the emails_post_with_http_info variant
|
189
|
+
|
190
|
+
This returns an Array which contains the response data, status code and headers.
|
191
|
+
|
192
|
+
> <Array(<EmailSend>, Integer, Hash)> emails_post_with_http_info(email_message_data)
|
193
|
+
|
194
|
+
```ruby
|
195
|
+
begin
|
196
|
+
# Send Bulk Emails
|
197
|
+
data, status_code, headers = api_instance.emails_post_with_http_info(email_message_data)
|
198
|
+
p status_code # => 2xx
|
199
|
+
p headers # => { ... }
|
200
|
+
p data # => <EmailSend>
|
201
|
+
rescue ElasticEmail::ApiError => e
|
202
|
+
puts "Error when calling EmailsApi->emails_post_with_http_info: #{e}"
|
203
|
+
end
|
204
|
+
```
|
205
|
+
|
206
|
+
### Parameters
|
207
|
+
|
208
|
+
| Name | Type | Description | Notes |
|
209
|
+
| ---- | ---- | ----------- | ----- |
|
210
|
+
| **email_message_data** | [**EmailMessageData**](EmailMessageData.md) | Email data | |
|
211
|
+
|
212
|
+
### Return type
|
213
|
+
|
214
|
+
[**EmailSend**](EmailSend.md)
|
215
|
+
|
216
|
+
### Authorization
|
217
|
+
|
218
|
+
[apikey](../README.md#apikey)
|
219
|
+
|
220
|
+
### HTTP request headers
|
221
|
+
|
222
|
+
- **Content-Type**: application/json
|
223
|
+
- **Accept**: application/json
|
224
|
+
|
225
|
+
|
226
|
+
## emails_transactional_post
|
227
|
+
|
228
|
+
> <EmailSend> emails_transactional_post(email_transactional_message_data)
|
229
|
+
|
230
|
+
Send Transactional Email
|
231
|
+
|
232
|
+
Send transactional emails (recipients will be known to each other). Required Access Level: SendHttp
|
233
|
+
|
234
|
+
### Examples
|
235
|
+
|
236
|
+
```ruby
|
237
|
+
require 'time'
|
238
|
+
require 'ElasticEmail'
|
239
|
+
# setup authorization
|
240
|
+
ElasticEmail.configure do |config|
|
241
|
+
# Configure API key authorization: apikey
|
242
|
+
config.api_key['apikey'] = 'YOUR API KEY'
|
243
|
+
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
|
244
|
+
# config.api_key_prefix['apikey'] = 'Bearer'
|
245
|
+
end
|
246
|
+
|
247
|
+
api_instance = ElasticEmail::EmailsApi.new
|
248
|
+
email_transactional_message_data = ElasticEmail::EmailTransactionalMessageData.new # EmailTransactionalMessageData | Email data
|
249
|
+
|
250
|
+
begin
|
251
|
+
# Send Transactional Email
|
252
|
+
result = api_instance.emails_transactional_post(email_transactional_message_data)
|
253
|
+
p result
|
254
|
+
rescue ElasticEmail::ApiError => e
|
255
|
+
puts "Error when calling EmailsApi->emails_transactional_post: #{e}"
|
256
|
+
end
|
257
|
+
```
|
258
|
+
|
259
|
+
#### Using the emails_transactional_post_with_http_info variant
|
260
|
+
|
261
|
+
This returns an Array which contains the response data, status code and headers.
|
262
|
+
|
263
|
+
> <Array(<EmailSend>, Integer, Hash)> emails_transactional_post_with_http_info(email_transactional_message_data)
|
264
|
+
|
265
|
+
```ruby
|
266
|
+
begin
|
267
|
+
# Send Transactional Email
|
268
|
+
data, status_code, headers = api_instance.emails_transactional_post_with_http_info(email_transactional_message_data)
|
269
|
+
p status_code # => 2xx
|
270
|
+
p headers # => { ... }
|
271
|
+
p data # => <EmailSend>
|
272
|
+
rescue ElasticEmail::ApiError => e
|
273
|
+
puts "Error when calling EmailsApi->emails_transactional_post_with_http_info: #{e}"
|
274
|
+
end
|
275
|
+
```
|
276
|
+
|
277
|
+
### Parameters
|
278
|
+
|
279
|
+
| Name | Type | Description | Notes |
|
280
|
+
| ---- | ---- | ----------- | ----- |
|
281
|
+
| **email_transactional_message_data** | [**EmailTransactionalMessageData**](EmailTransactionalMessageData.md) | Email data | |
|
282
|
+
|
283
|
+
### Return type
|
284
|
+
|
285
|
+
[**EmailSend**](EmailSend.md)
|
286
|
+
|
287
|
+
### Authorization
|
288
|
+
|
289
|
+
[apikey](../README.md#apikey)
|
290
|
+
|
291
|
+
### HTTP request headers
|
292
|
+
|
293
|
+
- **Content-Type**: application/json
|
294
|
+
- **Accept**: application/json
|
295
|
+
|