ElasticEmail 4.0.12 → 4.0.13
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/ElasticEmail.gemspec +3 -3
- data/README.md +9 -7
- data/VERSION +1 -1
- data/docs/ApiKeyPayload.md +2 -2
- data/docs/BodyPart.md +1 -1
- data/docs/Campaign.md +2 -2
- data/docs/CampaignTemplate.md +1 -1
- data/docs/CampaignsApi.md +2 -2
- data/docs/ContactPayload.md +1 -1
- data/docs/ContactsApi.md +1 -1
- data/docs/EmailContent.md +1 -1
- data/docs/EmailMessageData.md +1 -1
- data/docs/EmailRecipient.md +1 -1
- data/docs/EmailTransactionalMessageData.md +1 -1
- data/docs/EmailsApi.md +3 -3
- data/docs/EmailsPayload.md +2 -2
- data/docs/FilePayload.md +1 -1
- data/docs/FilesApi.md +1 -1
- data/docs/InboundPayload.md +4 -4
- data/docs/InboundRouteApi.md +3 -3
- data/docs/ListPayload.md +2 -2
- data/docs/ListsApi.md +1 -1
- data/docs/MergeEmailPayload.md +1 -1
- data/docs/MessageAttachment.md +1 -1
- data/docs/SecurityApi.md +4 -4
- data/docs/SegmentPayload.md +2 -2
- data/docs/SegmentsApi.md +2 -2
- data/docs/SmtpCredentialsPayload.md +1 -1
- data/docs/SortOrderItem.md +2 -2
- data/docs/SubAccountsApi.md +2 -2
- data/docs/SubaccountEmailCreditsPayload.md +1 -1
- data/docs/SubaccountPayload.md +2 -2
- data/docs/TemplatePayload.md +1 -1
- data/docs/TemplatesApi.md +2 -2
- data/docs/TransactionalRecipient.md +1 -1
- data/lib/ElasticEmail/api/campaigns_api.rb +2 -2
- data/lib/ElasticEmail/api/contacts_api.rb +2 -2
- data/lib/ElasticEmail/api/emails_api.rb +2 -2
- data/lib/ElasticEmail/api/events_api.rb +2 -2
- data/lib/ElasticEmail/api/files_api.rb +2 -2
- data/lib/ElasticEmail/api/inbound_route_api.rb +2 -2
- data/lib/ElasticEmail/api/lists_api.rb +2 -2
- data/lib/ElasticEmail/api/security_api.rb +2 -2
- data/lib/ElasticEmail/api/segments_api.rb +2 -2
- data/lib/ElasticEmail/api/statistics_api.rb +2 -2
- data/lib/ElasticEmail/api/sub_accounts_api.rb +2 -2
- data/lib/ElasticEmail/api/suppressions_api.rb +2 -2
- data/lib/ElasticEmail/api/templates_api.rb +2 -2
- data/lib/ElasticEmail/api/verifications_api.rb +2 -2
- data/lib/ElasticEmail/api_client.rb +2 -2
- data/lib/ElasticEmail/api_error.rb +2 -2
- data/lib/ElasticEmail/configuration.rb +2 -2
- data/lib/ElasticEmail/models/access_level.rb +3 -2
- data/lib/ElasticEmail/models/account_status_enum.rb +2 -2
- data/lib/ElasticEmail/models/api_key.rb +2 -2
- data/lib/ElasticEmail/models/api_key_payload.rb +12 -2
- data/lib/ElasticEmail/models/body_content_type.rb +2 -2
- data/lib/ElasticEmail/models/body_part.rb +7 -2
- data/lib/ElasticEmail/models/campaign.rb +12 -2
- data/lib/ElasticEmail/models/campaign_options.rb +2 -2
- data/lib/ElasticEmail/models/campaign_recipient.rb +2 -2
- data/lib/ElasticEmail/models/campaign_status.rb +2 -2
- data/lib/ElasticEmail/models/campaign_template.rb +2 -2
- data/lib/ElasticEmail/models/channel_log_status_summary.rb +2 -2
- data/lib/ElasticEmail/models/compression_format.rb +2 -2
- data/lib/ElasticEmail/models/consent_data.rb +2 -2
- data/lib/ElasticEmail/models/consent_tracking.rb +2 -2
- data/lib/ElasticEmail/models/contact.rb +2 -2
- data/lib/ElasticEmail/models/contact_activity.rb +2 -2
- data/lib/ElasticEmail/models/contact_hist_event_type.rb +2 -2
- data/lib/ElasticEmail/models/contact_history.rb +2 -2
- data/lib/ElasticEmail/models/contact_payload.rb +7 -2
- data/lib/ElasticEmail/models/contact_source.rb +2 -2
- data/lib/ElasticEmail/models/contact_status.rb +2 -2
- data/lib/ElasticEmail/models/contact_update_payload.rb +2 -2
- data/lib/ElasticEmail/models/contacts_list.rb +2 -2
- data/lib/ElasticEmail/models/delivery_optimization_type.rb +2 -2
- data/lib/ElasticEmail/models/email_content.rb +2 -2
- data/lib/ElasticEmail/models/email_data.rb +2 -2
- data/lib/ElasticEmail/models/email_message_data.rb +7 -2
- data/lib/ElasticEmail/models/email_recipient.rb +7 -2
- data/lib/ElasticEmail/models/email_send.rb +2 -2
- data/lib/ElasticEmail/models/email_status.rb +2 -2
- data/lib/ElasticEmail/models/email_transactional_message_data.rb +7 -2
- data/lib/ElasticEmail/models/email_validation_result.rb +2 -2
- data/lib/ElasticEmail/models/email_validation_status.rb +2 -2
- data/lib/ElasticEmail/models/email_view.rb +2 -2
- data/lib/ElasticEmail/models/emails_payload.rb +3 -3
- data/lib/ElasticEmail/models/encoding_type.rb +2 -2
- data/lib/ElasticEmail/models/event_type.rb +2 -2
- data/lib/ElasticEmail/models/events_order_by.rb +2 -2
- data/lib/ElasticEmail/models/export_file_formats.rb +2 -2
- data/lib/ElasticEmail/models/export_link.rb +2 -2
- data/lib/ElasticEmail/models/export_status.rb +2 -2
- data/lib/ElasticEmail/models/file_info.rb +2 -2
- data/lib/ElasticEmail/models/file_payload.rb +7 -2
- data/lib/ElasticEmail/models/file_upload_result.rb +2 -2
- data/lib/ElasticEmail/models/inbound_payload.rb +22 -2
- data/lib/ElasticEmail/models/inbound_route.rb +2 -2
- data/lib/ElasticEmail/models/inbound_route_action_type.rb +2 -2
- data/lib/ElasticEmail/models/inbound_route_filter_type.rb +2 -2
- data/lib/ElasticEmail/models/list_payload.rb +8 -3
- data/lib/ElasticEmail/models/list_update_payload.rb +2 -2
- data/lib/ElasticEmail/models/log_job_status.rb +2 -2
- data/lib/ElasticEmail/models/log_status_summary.rb +2 -2
- data/lib/ElasticEmail/models/merge_email_payload.rb +7 -2
- data/lib/ElasticEmail/models/message_attachment.rb +7 -2
- data/lib/ElasticEmail/models/message_category.rb +2 -2
- data/lib/ElasticEmail/models/new_api_key.rb +2 -2
- data/lib/ElasticEmail/models/new_smtp_credentials.rb +2 -2
- data/lib/ElasticEmail/models/options.rb +2 -2
- data/lib/ElasticEmail/models/recipient_event.rb +2 -2
- data/lib/ElasticEmail/models/segment.rb +2 -2
- data/lib/ElasticEmail/models/segment_payload.rb +12 -2
- data/lib/ElasticEmail/models/smtp_credentials.rb +2 -2
- data/lib/ElasticEmail/models/smtp_credentials_payload.rb +7 -2
- data/lib/ElasticEmail/models/sort_order_item.rb +13 -2
- data/lib/ElasticEmail/models/split_optimization_type.rb +2 -2
- data/lib/ElasticEmail/models/split_options.rb +2 -2
- data/lib/ElasticEmail/models/sub_account_info.rb +2 -2
- data/lib/ElasticEmail/models/subaccount_email_credits_payload.rb +7 -2
- data/lib/ElasticEmail/models/subaccount_email_settings.rb +2 -2
- data/lib/ElasticEmail/models/subaccount_email_settings_payload.rb +2 -2
- data/lib/ElasticEmail/models/subaccount_payload.rb +12 -2
- data/lib/ElasticEmail/models/subaccount_settings_info.rb +2 -2
- data/lib/ElasticEmail/models/subaccount_settings_info_payload.rb +2 -2
- data/lib/ElasticEmail/models/suppression.rb +2 -2
- data/lib/ElasticEmail/models/template.rb +2 -2
- data/lib/ElasticEmail/models/template_payload.rb +7 -2
- data/lib/ElasticEmail/models/template_scope.rb +2 -2
- data/lib/ElasticEmail/models/template_type.rb +2 -2
- data/lib/ElasticEmail/models/transactional_recipient.rb +7 -2
- data/lib/ElasticEmail/models/utm.rb +2 -2
- data/lib/ElasticEmail/models/verification_file_result.rb +2 -2
- data/lib/ElasticEmail/models/verification_file_result_details.rb +2 -2
- data/lib/ElasticEmail/models/verification_status.rb +2 -2
- data/lib/ElasticEmail/version.rb +3 -3
- data/lib/ElasticEmail.rb +2 -2
- data/spec/api_client_spec.rb +2 -2
- data/spec/configuration_spec.rb +2 -2
- data/spec/spec_helper.rb +2 -2
- metadata +9 -8
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 6f28babff6884dddbab9f1d2c70e05300c34ece068e515da48d87e4415d71a87
|
4
|
+
data.tar.gz: 6e28930bfa6c084dc484ea99e846ccbac1a9844052ec610ba45c1434ba9d7135
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 6b2a09f004eebe46ce0b71285c800f64642325aba3cc01516587749e86c75fe3717526540d3cf0c23bde9f28b2a3dd71f52f488d9f2b1c2644038253acd732c2
|
7
|
+
data.tar.gz: 606bf59ae5d1192163699caf6bb7e6fd230b10f243bf381cc322efa287cf44ba4ac31a9d1946cfb965539dbb7e1012ed71338fb63151143bc261c410c3b41be6
|
data/ElasticEmail.gemspec
CHANGED
@@ -3,12 +3,12 @@
|
|
3
3
|
=begin
|
4
4
|
#Elastic Email REST API
|
5
5
|
|
6
|
-
#This API is based on the REST API architecture, allowing the user to easily manage their data with this resource-based approach. Every API call is established on which specific request type (GET, POST, PUT, DELETE) will be used. To start using this API, you will need your Access Token (available <a target=\"_blank\" href=\"https://elasticemail.com/account#/settings/new/manage-api\">here</a>). Remember to keep it safe. Required access levels are listed in the given request’s description. This is the documentation for REST API. If you’d like to read our legacy documentation regarding Web API v2 click <a target=\"_blank\" href=\"https://api.elasticemail.com/public/help\">here</a>. Downloadable library clients can be found in our Github repository <a target=\"_blank\" href=\"https://github.com/ElasticEmail?tab=repositories&q=%22rest+api%22+in%3Areadme\">here</a>
|
6
|
+
#This API is based on the REST API architecture, allowing the user to easily manage their data with this resource-based approach. Every API call is established on which specific request type (GET, POST, PUT, DELETE) will be used. The API has a limit of 20 concurrent connections and a hard timeout of 600 seconds per request. To start using this API, you will need your Access Token (available <a target=\"_blank\" href=\"https://elasticemail.com/account#/settings/new/manage-api\">here</a>). Remember to keep it safe. Required access levels are listed in the given request’s description. This is the documentation for REST API. If you’d like to read our legacy documentation regarding Web API v2 click <a target=\"_blank\" href=\"https://api.elasticemail.com/public/help\">here</a>. Downloadable library clients can be found in our Github repository <a target=\"_blank\" href=\"https://github.com/ElasticEmail?tab=repositories&q=%22rest+api%22+in%3Areadme\">here</a>
|
7
7
|
|
8
8
|
The version of the OpenAPI document: 4.0.0
|
9
9
|
Contact: support@elasticemail.com
|
10
10
|
Generated by: https://openapi-generator.tech
|
11
|
-
OpenAPI Generator version: 5.
|
11
|
+
OpenAPI Generator version: 5.2.1
|
12
12
|
|
13
13
|
=end
|
14
14
|
|
@@ -23,7 +23,7 @@ Gem::Specification.new do |s|
|
|
23
23
|
s.email = ["contact@elasticemail.com"]
|
24
24
|
s.homepage = "https://elasticemail.com"
|
25
25
|
s.summary = "Elastic Email REST API Ruby Gem"
|
26
|
-
s.description = "This API is based on the REST API architecture, allowing the user to easily manage their data with this resource-based approach. Every API call is established on which specific request type (GET, POST, PUT, DELETE) will be used. To start using this API, you will need your Access Token (available <a target=\"_blank\" href=\"https://elasticemail.com/account#/settings/new/manage-api\">here</a>). Remember to keep it safe. Required access levels are listed in the given request’s description. This is the documentation for REST API. If you’d like to read our legacy documentation regarding Web API v2 click <a target=\"_blank\" href=\"https://api.elasticemail.com/public/help\">here</a>. Downloadable library clients can be found in our Github repository <a target=\"_blank\" href=\"https://github.com/ElasticEmail?tab=repositories&q=%22rest+api%22+in%3Areadme\">here</a>"
|
26
|
+
s.description = "This API is based on the REST API architecture, allowing the user to easily manage their data with this resource-based approach. Every API call is established on which specific request type (GET, POST, PUT, DELETE) will be used. The API has a limit of 20 concurrent connections and a hard timeout of 600 seconds per request. To start using this API, you will need your Access Token (available <a target=\"_blank\" href=\"https://elasticemail.com/account#/settings/new/manage-api\">here</a>). Remember to keep it safe. Required access levels are listed in the given request’s description. This is the documentation for REST API. If you’d like to read our legacy documentation regarding Web API v2 click <a target=\"_blank\" href=\"https://api.elasticemail.com/public/help\">here</a>. Downloadable library clients can be found in our Github repository <a target=\"_blank\" href=\"https://github.com/ElasticEmail?tab=repositories&q=%22rest+api%22+in%3Areadme\">here</a>"
|
27
27
|
s.license = "Unlicense"
|
28
28
|
s.required_ruby_version = ">= 2.4"
|
29
29
|
|
data/README.md
CHANGED
@@ -6,16 +6,18 @@ This API is based on the REST API architecture, allowing the user to easily mana
|
|
6
6
|
|
7
7
|
Every API call is established on which specific request type (GET, POST, PUT, DELETE) will be used.
|
8
8
|
|
9
|
-
|
9
|
+
The API has a limit of 20 concurrent connections and a hard timeout of 600 seconds per request.
|
10
10
|
|
11
|
-
|
11
|
+
To start using this API, you will need your Access Token (available [here](https://elasticemail.com/account#/settings/new/manage-api)). Remember to keep it safe. Required access levels are listed in the given request’s description.
|
12
12
|
|
13
|
-
|
13
|
+
This is the documentation for REST API. If you’d like to read our legacy documentation regarding Web API v2 click [here](https://api.elasticemail.com/public/help).
|
14
|
+
|
15
|
+
Downloadable library clients can be found in our Github repository [here](https://github.com/ElasticEmail?tab=repositories&q=%22rest+api%22+in%3Areadme)
|
14
16
|
|
15
17
|
This SDK is automatically generated by the [OpenAPI Generator](https://openapi-generator.tech) project:
|
16
18
|
|
17
19
|
- API version: 4.0.0
|
18
|
-
- Package version: 4.0.
|
20
|
+
- Package version: 4.0.13
|
19
21
|
- Build package: org.openapitools.codegen.languages.RubyClientCodegen
|
20
22
|
|
21
23
|
## Installation
|
@@ -31,16 +33,16 @@ gem build ElasticEmail.gemspec
|
|
31
33
|
Then either install the gem locally:
|
32
34
|
|
33
35
|
```shell
|
34
|
-
gem install ./ElasticEmail-4.0.
|
36
|
+
gem install ./ElasticEmail-4.0.13.gem
|
35
37
|
```
|
36
38
|
|
37
|
-
(for development, run `gem install --dev ./ElasticEmail-4.0.
|
39
|
+
(for development, run `gem install --dev ./ElasticEmail-4.0.13.gem` to install the development dependencies)
|
38
40
|
|
39
41
|
or publish the gem to a gem hosting service, e.g. [RubyGems](https://rubygems.org/).
|
40
42
|
|
41
43
|
Finally add this to the Gemfile:
|
42
44
|
|
43
|
-
gem 'ElasticEmail', '~> 4.0.
|
45
|
+
gem 'ElasticEmail', '~> 4.0.13'
|
44
46
|
|
45
47
|
### Install from Git
|
46
48
|
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
4.0.
|
1
|
+
4.0.13
|
data/docs/ApiKeyPayload.md
CHANGED
@@ -4,8 +4,8 @@
|
|
4
4
|
|
5
5
|
| Name | Type | Description | Notes |
|
6
6
|
| ---- | ---- | ----------- | ----- |
|
7
|
-
| **name** | **String** | Name of the ApiKey for ease of reference. |
|
8
|
-
| **access_level** | [**Array<AccessLevel>**](AccessLevel.md) | Access level or permission to be assigned to this ApiKey. |
|
7
|
+
| **name** | **String** | Name of the ApiKey for ease of reference. | |
|
8
|
+
| **access_level** | [**Array<AccessLevel>**](AccessLevel.md) | Access level or permission to be assigned to this ApiKey. | |
|
9
9
|
| **expires** | **Time** | Date this ApiKey expires. | [optional] |
|
10
10
|
| **restrict_access_to_ip_range** | **Array<String>** | Which IPs can use this ApiKey | [optional] |
|
11
11
|
| **subaccount** | **String** | Email of the subaccount for which this ApiKey should be created | [optional] |
|
data/docs/BodyPart.md
CHANGED
@@ -4,7 +4,7 @@
|
|
4
4
|
|
5
5
|
| Name | Type | Description | Notes |
|
6
6
|
| ---- | ---- | ----------- | ----- |
|
7
|
-
| **content_type** | [**BodyContentType**](BodyContentType.md) | Type of the body part |
|
7
|
+
| **content_type** | [**BodyContentType**](BodyContentType.md) | Type of the body part | |
|
8
8
|
| **content** | **String** | Actual content of the body part | [optional] |
|
9
9
|
| **charset** | **String** | Text value of charset encoding for example: iso-8859-1, windows-1251, utf-8, us-ascii, windows-1250 and more… | [optional] |
|
10
10
|
|
data/docs/Campaign.md
CHANGED
@@ -5,9 +5,9 @@
|
|
5
5
|
| Name | Type | Description | Notes |
|
6
6
|
| ---- | ---- | ----------- | ----- |
|
7
7
|
| **content** | [**Array<CampaignTemplate>**](CampaignTemplate.md) | Campaign's email content. Provide multiple items to send an A/X Split Campaign | [optional] |
|
8
|
-
| **name** | **String** | Campaign name |
|
8
|
+
| **name** | **String** | Campaign name | |
|
9
9
|
| **status** | [**CampaignStatus**](CampaignStatus.md) | Campaign status | [optional] |
|
10
|
-
| **recipients** | [**CampaignRecipient**](CampaignRecipient.md) | Recipients this campaign should be sent to |
|
10
|
+
| **recipients** | [**CampaignRecipient**](CampaignRecipient.md) | Recipients this campaign should be sent to | |
|
11
11
|
| **options** | [**CampaignOptions**](CampaignOptions.md) | Campaign sending options | [optional] |
|
12
12
|
|
13
13
|
## Example
|
data/docs/CampaignTemplate.md
CHANGED
data/docs/CampaignsApi.md
CHANGED
@@ -175,7 +175,7 @@ end
|
|
175
175
|
|
176
176
|
api_instance = ElasticEmail::CampaignsApi.new
|
177
177
|
name = 'name_example' # String | Name of Campaign to update
|
178
|
-
campaign = ElasticEmail::Campaign.new # Campaign | JSON representation of a campaign
|
178
|
+
campaign = ElasticEmail::Campaign.new({name: 'name_example', recipients: ElasticEmail::CampaignRecipient.new}) # Campaign | JSON representation of a campaign
|
179
179
|
|
180
180
|
begin
|
181
181
|
# Update Campaign
|
@@ -324,7 +324,7 @@ ElasticEmail.configure do |config|
|
|
324
324
|
end
|
325
325
|
|
326
326
|
api_instance = ElasticEmail::CampaignsApi.new
|
327
|
-
campaign = ElasticEmail::Campaign.new # Campaign | JSON representation of a campaign
|
327
|
+
campaign = ElasticEmail::Campaign.new({name: 'name_example', recipients: ElasticEmail::CampaignRecipient.new}) # Campaign | JSON representation of a campaign
|
328
328
|
|
329
329
|
begin
|
330
330
|
# Add Campaign
|
data/docs/ContactPayload.md
CHANGED
@@ -4,7 +4,7 @@
|
|
4
4
|
|
5
5
|
| Name | Type | Description | Notes |
|
6
6
|
| ---- | ---- | ----------- | ----- |
|
7
|
-
| **email** | **String** | Proper email address. |
|
7
|
+
| **email** | **String** | Proper email address. | |
|
8
8
|
| **status** | [**ContactStatus**](ContactStatus.md) | Status of the given resource | [optional] |
|
9
9
|
| **first_name** | **String** | First name. | [optional] |
|
10
10
|
| **last_name** | **String** | Last name. | [optional] |
|
data/docs/ContactsApi.md
CHANGED
@@ -702,7 +702,7 @@ ElasticEmail.configure do |config|
|
|
702
702
|
end
|
703
703
|
|
704
704
|
api_instance = ElasticEmail::ContactsApi.new
|
705
|
-
contact_payload = [ElasticEmail::ContactPayload.new] # Array<ContactPayload> |
|
705
|
+
contact_payload = [ElasticEmail::ContactPayload.new({email: 'mail@example.com'})] # Array<ContactPayload> |
|
706
706
|
opts = {
|
707
707
|
listnames: ['inner_example'] # Array<String> | Names of lists to which the uploaded contacts should be added to
|
708
708
|
}
|
data/docs/EmailContent.md
CHANGED
data/docs/EmailMessageData.md
CHANGED
@@ -4,7 +4,7 @@
|
|
4
4
|
|
5
5
|
| Name | Type | Description | Notes |
|
6
6
|
| ---- | ---- | ----------- | ----- |
|
7
|
-
| **recipients** | [**Array<EmailRecipient>**](EmailRecipient.md) | List of recipients (visible to others) |
|
7
|
+
| **recipients** | [**Array<EmailRecipient>**](EmailRecipient.md) | List of recipients (visible to others) | |
|
8
8
|
| **content** | [**EmailContent**](EmailContent.md) | Proper e-mail content | [optional] |
|
9
9
|
| **options** | [**Options**](Options.md) | E-mail configuration | [optional] |
|
10
10
|
|
data/docs/EmailRecipient.md
CHANGED
@@ -4,7 +4,7 @@
|
|
4
4
|
|
5
5
|
| Name | Type | Description | Notes |
|
6
6
|
| ---- | ---- | ----------- | ----- |
|
7
|
-
| **email** | **String** | Proper email address. |
|
7
|
+
| **email** | **String** | Proper email address. | |
|
8
8
|
| **fields** | **Hash<String, String>** | A key-value collection of merge fields which can be used in e-mail body. | [optional] |
|
9
9
|
|
10
10
|
## Example
|
@@ -4,7 +4,7 @@
|
|
4
4
|
|
5
5
|
| Name | Type | Description | Notes |
|
6
6
|
| ---- | ---- | ----------- | ----- |
|
7
|
-
| **recipients** | [**TransactionalRecipient**](TransactionalRecipient.md) | List of transactional recipients |
|
7
|
+
| **recipients** | [**TransactionalRecipient**](TransactionalRecipient.md) | List of transactional recipients | |
|
8
8
|
| **content** | [**EmailContent**](EmailContent.md) | Proper e-mail content | [optional] |
|
9
9
|
| **options** | [**Options**](Options.md) | E-mail configuration | [optional] |
|
10
10
|
|
data/docs/EmailsApi.md
CHANGED
@@ -103,7 +103,7 @@ ElasticEmail.configure do |config|
|
|
103
103
|
end
|
104
104
|
|
105
105
|
api_instance = ElasticEmail::EmailsApi.new
|
106
|
-
merge_email_payload = ElasticEmail::MergeEmailPayload.new # MergeEmailPayload | Email data
|
106
|
+
merge_email_payload = ElasticEmail::MergeEmailPayload.new({merge_file: ElasticEmail::MessageAttachment.new({binary_content: 'binary_content_example'})}) # MergeEmailPayload | Email data
|
107
107
|
|
108
108
|
begin
|
109
109
|
# Send Bulk Emails CSV
|
@@ -174,7 +174,7 @@ ElasticEmail.configure do |config|
|
|
174
174
|
end
|
175
175
|
|
176
176
|
api_instance = ElasticEmail::EmailsApi.new
|
177
|
-
email_message_data = ElasticEmail::EmailMessageData.new # EmailMessageData | Email data
|
177
|
+
email_message_data = ElasticEmail::EmailMessageData.new({recipients: [ElasticEmail::EmailRecipient.new({email: 'mail@example.com'})]}) # EmailMessageData | Email data
|
178
178
|
|
179
179
|
begin
|
180
180
|
# Send Bulk Emails
|
@@ -245,7 +245,7 @@ ElasticEmail.configure do |config|
|
|
245
245
|
end
|
246
246
|
|
247
247
|
api_instance = ElasticEmail::EmailsApi.new
|
248
|
-
email_transactional_message_data = ElasticEmail::EmailTransactionalMessageData.new # EmailTransactionalMessageData | Email data
|
248
|
+
email_transactional_message_data = ElasticEmail::EmailTransactionalMessageData.new({recipients: ElasticEmail::TransactionalRecipient.new({to: ['to_example']})}) # EmailTransactionalMessageData | Email data
|
249
249
|
|
250
250
|
begin
|
251
251
|
# Send Transactional Email
|
data/docs/EmailsPayload.md
CHANGED
@@ -4,7 +4,7 @@
|
|
4
4
|
|
5
5
|
| Name | Type | Description | Notes |
|
6
6
|
| ---- | ---- | ----------- | ----- |
|
7
|
-
| **rule** | **String** | SQL-like rule. Sending 'All' as a value loads all resources of the given type. | [optional] |
|
7
|
+
| **rule** | **String** | SQL-like rule. Sending 'All' as a value loads all resources of the given type. Help for building a segment rule can be found here: https://help.elasticemail.com/en/articles/5162182-segment-rules | [optional] |
|
8
8
|
| **emails** | **Array<String>** | Comma delimited list of contact emails | [optional] |
|
9
9
|
|
10
10
|
## Example
|
@@ -14,7 +14,7 @@ require 'ElasticEmail'
|
|
14
14
|
|
15
15
|
instance = ElasticEmail::EmailsPayload.new(
|
16
16
|
rule: null,
|
17
|
-
emails:
|
17
|
+
emails: [ "john.doe@sample.com" ]
|
18
18
|
)
|
19
19
|
```
|
20
20
|
|
data/docs/FilePayload.md
CHANGED
@@ -4,7 +4,7 @@
|
|
4
4
|
|
5
5
|
| Name | Type | Description | Notes |
|
6
6
|
| ---- | ---- | ----------- | ----- |
|
7
|
-
| **binary_content** | **String** | Content of the file sent as binary data |
|
7
|
+
| **binary_content** | **String** | Content of the file sent as binary data | |
|
8
8
|
| **name** | **String** | Filename | [optional] |
|
9
9
|
| **content_type** | **String** | Type of file's content (e.g. image/jpeg) | [optional] |
|
10
10
|
|
data/docs/FilesApi.md
CHANGED
@@ -320,7 +320,7 @@ ElasticEmail.configure do |config|
|
|
320
320
|
end
|
321
321
|
|
322
322
|
api_instance = ElasticEmail::FilesApi.new
|
323
|
-
file_payload = ElasticEmail::FilePayload.new # FilePayload |
|
323
|
+
file_payload = ElasticEmail::FilePayload.new({binary_content: 'binary_content_example'}) # FilePayload |
|
324
324
|
opts = {
|
325
325
|
expires_after_days: 56 # Integer | After how many days should the file be deleted.
|
326
326
|
}
|
data/docs/InboundPayload.md
CHANGED
@@ -4,10 +4,10 @@
|
|
4
4
|
|
5
5
|
| Name | Type | Description | Notes |
|
6
6
|
| ---- | ---- | ----------- | ----- |
|
7
|
-
| **filter** | **String** | Filter of the inbound data |
|
8
|
-
| **name** | **String** | Name of this route |
|
9
|
-
| **filter_type** | [**InboundRouteFilterType**](InboundRouteFilterType.md) | Type of the filter |
|
10
|
-
| **action_type** | [**InboundRouteActionType**](InboundRouteActionType.md) | Type of action to take |
|
7
|
+
| **filter** | **String** | Filter of the inbound data | |
|
8
|
+
| **name** | **String** | Name of this route | |
|
9
|
+
| **filter_type** | [**InboundRouteFilterType**](InboundRouteFilterType.md) | Type of the filter | |
|
10
|
+
| **action_type** | [**InboundRouteActionType**](InboundRouteActionType.md) | Type of action to take | |
|
11
11
|
| **email_address** | **String** | Email to forward the inbound to | [optional] |
|
12
12
|
| **http_address** | **String** | Address to notify about the inbound | [optional] |
|
13
13
|
|
data/docs/InboundRouteApi.md
CHANGED
@@ -176,7 +176,7 @@ end
|
|
176
176
|
|
177
177
|
api_instance = ElasticEmail::InboundRouteApi.new
|
178
178
|
id = 'id_example' # String |
|
179
|
-
inbound_payload = ElasticEmail::InboundPayload.new # InboundPayload |
|
179
|
+
inbound_payload = ElasticEmail::InboundPayload.new({filter: 'filter_example', name: 'name_example', filter_type: ElasticEmail::InboundRouteFilterType::EMAIL_ADDRESS, action_type: ElasticEmail::InboundRouteActionType::FORWARD_TO_EMAIL}) # InboundPayload |
|
180
180
|
|
181
181
|
begin
|
182
182
|
# Update Route
|
@@ -316,7 +316,7 @@ ElasticEmail.configure do |config|
|
|
316
316
|
end
|
317
317
|
|
318
318
|
api_instance = ElasticEmail::InboundRouteApi.new
|
319
|
-
sort_order_item = [ElasticEmail::SortOrderItem.new] # Array<SortOrderItem> | Change the ordering of inbound routes for when matching the inbound
|
319
|
+
sort_order_item = [ElasticEmail::SortOrderItem.new({public_inbound_id: 'public_inbound_id_example', sort_order: 37})] # Array<SortOrderItem> | Change the ordering of inbound routes for when matching the inbound
|
320
320
|
|
321
321
|
begin
|
322
322
|
# Update Sorting
|
@@ -387,7 +387,7 @@ ElasticEmail.configure do |config|
|
|
387
387
|
end
|
388
388
|
|
389
389
|
api_instance = ElasticEmail::InboundRouteApi.new
|
390
|
-
inbound_payload = ElasticEmail::InboundPayload.new # InboundPayload |
|
390
|
+
inbound_payload = ElasticEmail::InboundPayload.new({filter: 'filter_example', name: 'name_example', filter_type: ElasticEmail::InboundRouteFilterType::EMAIL_ADDRESS, action_type: ElasticEmail::InboundRouteActionType::FORWARD_TO_EMAIL}) # InboundPayload |
|
391
391
|
|
392
392
|
begin
|
393
393
|
# Create Route
|
data/docs/ListPayload.md
CHANGED
@@ -4,9 +4,9 @@
|
|
4
4
|
|
5
5
|
| Name | Type | Description | Notes |
|
6
6
|
| ---- | ---- | ----------- | ----- |
|
7
|
-
| **list_name** | **String** | Name of your list. |
|
7
|
+
| **list_name** | **String** | Name of your list. | |
|
8
8
|
| **allow_unsubscribe** | **Boolean** | True: Allow unsubscribing from this list. Otherwise, false | [optional] |
|
9
|
-
| **emails** | **Array<String>** | Comma delimited list of existing contact emails that should be added to this list | [optional] |
|
9
|
+
| **emails** | **Array<String>** | Comma delimited list of existing contact emails that should be added to this list. Leave empty for all contacts | [optional] |
|
10
10
|
|
11
11
|
## Example
|
12
12
|
|
data/docs/ListsApi.md
CHANGED
@@ -469,7 +469,7 @@ ElasticEmail.configure do |config|
|
|
469
469
|
end
|
470
470
|
|
471
471
|
api_instance = ElasticEmail::ListsApi.new
|
472
|
-
list_payload = ElasticEmail::ListPayload.new # ListPayload |
|
472
|
+
list_payload = ElasticEmail::ListPayload.new({list_name: 'My List 1'}) # ListPayload |
|
473
473
|
|
474
474
|
begin
|
475
475
|
# Add List
|
data/docs/MergeEmailPayload.md
CHANGED
@@ -4,7 +4,7 @@
|
|
4
4
|
|
5
5
|
| Name | Type | Description | Notes |
|
6
6
|
| ---- | ---- | ----------- | ----- |
|
7
|
-
| **merge_file** | [**MessageAttachment**](MessageAttachment.md) | CSV file containing recipients with optional merge fields |
|
7
|
+
| **merge_file** | [**MessageAttachment**](MessageAttachment.md) | CSV file containing recipients with optional merge fields | |
|
8
8
|
| **content** | [**EmailContent**](EmailContent.md) | Proper e-mail content | [optional] |
|
9
9
|
| **options** | [**Options**](Options.md) | E-mail configuration | [optional] |
|
10
10
|
|
data/docs/MessageAttachment.md
CHANGED
@@ -4,7 +4,7 @@
|
|
4
4
|
|
5
5
|
| Name | Type | Description | Notes |
|
6
6
|
| ---- | ---- | ----------- | ----- |
|
7
|
-
| **binary_content** | **String** | File's content as byte array (or a Base64 string) |
|
7
|
+
| **binary_content** | **String** | File's content as byte array (or a Base64 string) | |
|
8
8
|
| **name** | **String** | Display name of the file | [optional] |
|
9
9
|
| **content_type** | **String** | MIME content type | [optional] |
|
10
10
|
|
data/docs/SecurityApi.md
CHANGED
@@ -188,7 +188,7 @@ end
|
|
188
188
|
|
189
189
|
api_instance = ElasticEmail::SecurityApi.new
|
190
190
|
name = 'name_example' # String | Name of the ApiKey
|
191
|
-
api_key_payload = ElasticEmail::ApiKeyPayload.new # ApiKeyPayload |
|
191
|
+
api_key_payload = ElasticEmail::ApiKeyPayload.new({name: 'name_example', access_level: [ElasticEmail::AccessLevel::NONE]}) # ApiKeyPayload |
|
192
192
|
|
193
193
|
begin
|
194
194
|
# Update ApiKey
|
@@ -333,7 +333,7 @@ ElasticEmail.configure do |config|
|
|
333
333
|
end
|
334
334
|
|
335
335
|
api_instance = ElasticEmail::SecurityApi.new
|
336
|
-
api_key_payload = ElasticEmail::ApiKeyPayload.new # ApiKeyPayload |
|
336
|
+
api_key_payload = ElasticEmail::ApiKeyPayload.new({name: 'name_example', access_level: [ElasticEmail::AccessLevel::NONE]}) # ApiKeyPayload |
|
337
337
|
|
338
338
|
begin
|
339
339
|
# Add ApiKey
|
@@ -554,7 +554,7 @@ end
|
|
554
554
|
|
555
555
|
api_instance = ElasticEmail::SecurityApi.new
|
556
556
|
name = 'name_example' # String | Name of the SMTP Credential
|
557
|
-
smtp_credentials_payload = ElasticEmail::SmtpCredentialsPayload.new # SmtpCredentialsPayload |
|
557
|
+
smtp_credentials_payload = ElasticEmail::SmtpCredentialsPayload.new({name: 'name_example'}) # SmtpCredentialsPayload |
|
558
558
|
|
559
559
|
begin
|
560
560
|
# Update SMTP Credential
|
@@ -699,7 +699,7 @@ ElasticEmail.configure do |config|
|
|
699
699
|
end
|
700
700
|
|
701
701
|
api_instance = ElasticEmail::SecurityApi.new
|
702
|
-
smtp_credentials_payload = ElasticEmail::SmtpCredentialsPayload.new # SmtpCredentialsPayload |
|
702
|
+
smtp_credentials_payload = ElasticEmail::SmtpCredentialsPayload.new({name: 'name_example'}) # SmtpCredentialsPayload |
|
703
703
|
|
704
704
|
begin
|
705
705
|
# Add SMTP Credential
|
data/docs/SegmentPayload.md
CHANGED
@@ -4,8 +4,8 @@
|
|
4
4
|
|
5
5
|
| Name | Type | Description | Notes |
|
6
6
|
| ---- | ---- | ----------- | ----- |
|
7
|
-
| **name** | **String** | Segment name |
|
8
|
-
| **rule** | **String** | SQL-like rule to determine which Contacts belong to this Segment. Help for building a segment rule can be found here: https://help.elasticemail.com/en/articles/5162182-segment-rules |
|
7
|
+
| **name** | **String** | Segment name | |
|
8
|
+
| **rule** | **String** | SQL-like rule to determine which Contacts belong to this Segment. Help for building a segment rule can be found here: https://help.elasticemail.com/en/articles/5162182-segment-rules | |
|
9
9
|
|
10
10
|
## Example
|
11
11
|
|
data/docs/SegmentsApi.md
CHANGED
@@ -175,7 +175,7 @@ end
|
|
175
175
|
|
176
176
|
api_instance = ElasticEmail::SegmentsApi.new
|
177
177
|
name = 'My Segment 1' # String | Name of your segment.
|
178
|
-
segment_payload = ElasticEmail::SegmentPayload.new # SegmentPayload |
|
178
|
+
segment_payload = ElasticEmail::SegmentPayload.new({name: 'name_example', rule: 'rule_example'}) # SegmentPayload |
|
179
179
|
|
180
180
|
begin
|
181
181
|
# Update Segment
|
@@ -322,7 +322,7 @@ ElasticEmail.configure do |config|
|
|
322
322
|
end
|
323
323
|
|
324
324
|
api_instance = ElasticEmail::SegmentsApi.new
|
325
|
-
segment_payload = ElasticEmail::SegmentPayload.new # SegmentPayload |
|
325
|
+
segment_payload = ElasticEmail::SegmentPayload.new({name: 'name_example', rule: 'rule_example'}) # SegmentPayload |
|
326
326
|
|
327
327
|
begin
|
328
328
|
# Add Segment
|
@@ -4,7 +4,7 @@
|
|
4
4
|
|
5
5
|
| Name | Type | Description | Notes |
|
6
6
|
| ---- | ---- | ----------- | ----- |
|
7
|
-
| **name** | **String** | Name of the Credential for ease of reference. It must be a valid email address. |
|
7
|
+
| **name** | **String** | Name of the Credential for ease of reference. It must be a valid email address. | |
|
8
8
|
| **expires** | **Time** | Date this SmtpCredential expires. | [optional] |
|
9
9
|
| **restrict_access_to_ip_range** | **Array<String>** | Which IPs can use this SmtpCredential | [optional] |
|
10
10
|
| **subaccount** | **String** | Email of the subaccount for which this SmtpCredential should be created | [optional] |
|
data/docs/SortOrderItem.md
CHANGED
@@ -4,8 +4,8 @@
|
|
4
4
|
|
5
5
|
| Name | Type | Description | Notes |
|
6
6
|
| ---- | ---- | ----------- | ----- |
|
7
|
-
| **public_inbound_id** | **String** |
|
8
|
-
| **sort_order** | **Integer** | 1 - route will be used first |
|
7
|
+
| **public_inbound_id** | **String** | ID of the route to change the order of | |
|
8
|
+
| **sort_order** | **Integer** | 1 - route will be used first | |
|
9
9
|
|
10
10
|
## Example
|
11
11
|
|