ElasticEmail 4.0.24 → 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 +1 -1
- data/README.md +23 -5
- data/VERSION +1 -1
- 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/DomainOwner.md +15 -0
- data/docs/DomainPayload.md +20 -0
- data/docs/DomainUpdatePayload.md +24 -0
- data/docs/DomainsApi.md +583 -0
- data/docs/EmailStatus.md +3 -1
- data/docs/EmailsApi.md +1 -1
- data/docs/MessageCategoryEnum.md +15 -0
- 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 +3 -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 +1 -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 +3 -3
- data/lib/ElasticEmail/api_error.rb +1 -1
- data/lib/ElasticEmail/configuration.rb +1 -11
- data/lib/ElasticEmail/models/access_level.rb +3 -2
- data/lib/ElasticEmail/models/account_status_enum.rb +1 -1
- data/lib/ElasticEmail/models/api_key.rb +1 -1
- data/lib/ElasticEmail/models/api_key_payload.rb +1 -1
- data/lib/ElasticEmail/models/body_content_type.rb +1 -1
- data/lib/ElasticEmail/models/body_part.rb +1 -1
- data/lib/ElasticEmail/models/campaign.rb +1 -1
- data/lib/ElasticEmail/models/campaign_options.rb +1 -1
- data/lib/ElasticEmail/models/campaign_recipient.rb +1 -1
- data/lib/ElasticEmail/models/campaign_status.rb +1 -1
- data/lib/ElasticEmail/models/campaign_template.rb +1 -1
- data/lib/ElasticEmail/models/certificate_validation_status.rb +42 -0
- data/lib/ElasticEmail/models/channel_log_status_summary.rb +1 -1
- data/lib/ElasticEmail/models/compression_format.rb +1 -1
- data/lib/ElasticEmail/models/consent_data.rb +1 -1
- data/lib/ElasticEmail/models/consent_tracking.rb +1 -1
- data/lib/ElasticEmail/models/contact.rb +1 -1
- data/lib/ElasticEmail/models/contact_activity.rb +1 -1
- data/lib/ElasticEmail/models/contact_payload.rb +1 -1
- 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 +1 -1
- data/lib/ElasticEmail/models/contacts_list.rb +1 -1
- 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/domain_update_payload.rb +265 -0
- data/lib/ElasticEmail/models/email_content.rb +1 -1
- data/lib/ElasticEmail/models/email_data.rb +1 -1
- data/lib/ElasticEmail/models/email_job_failed_status.rb +1 -1
- data/lib/ElasticEmail/models/email_job_status.rb +1 -1
- data/lib/ElasticEmail/models/email_message_data.rb +1 -1
- data/lib/ElasticEmail/models/email_predicted_validation_status.rb +1 -1
- data/lib/ElasticEmail/models/email_recipient.rb +1 -1
- data/lib/ElasticEmail/models/email_send.rb +1 -1
- data/lib/ElasticEmail/models/email_status.rb +16 -5
- data/lib/ElasticEmail/models/email_transactional_message_data.rb +1 -1
- data/lib/ElasticEmail/models/email_validation_result.rb +1 -1
- data/lib/ElasticEmail/models/email_validation_status.rb +1 -1
- data/lib/ElasticEmail/models/email_view.rb +1 -1
- data/lib/ElasticEmail/models/emails_payload.rb +1 -1
- 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 +1 -1
- data/lib/ElasticEmail/models/export_status.rb +1 -1
- data/lib/ElasticEmail/models/file_info.rb +1 -1
- data/lib/ElasticEmail/models/file_payload.rb +1 -1
- data/lib/ElasticEmail/models/file_upload_result.rb +1 -1
- data/lib/ElasticEmail/models/inbound_payload.rb +1 -1
- data/lib/ElasticEmail/models/inbound_route.rb +1 -1
- 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 +1 -1
- data/lib/ElasticEmail/models/list_update_payload.rb +1 -1
- data/lib/ElasticEmail/models/log_job_status.rb +1 -1
- data/lib/ElasticEmail/models/log_status_summary.rb +1 -1
- data/lib/ElasticEmail/models/merge_email_payload.rb +1 -1
- data/lib/ElasticEmail/models/message_attachment.rb +1 -1
- 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 +1 -1
- data/lib/ElasticEmail/models/new_smtp_credentials.rb +1 -1
- data/lib/ElasticEmail/models/options.rb +1 -1
- data/lib/ElasticEmail/models/recipient_event.rb +1 -1
- data/lib/ElasticEmail/models/segment.rb +1 -1
- data/lib/ElasticEmail/models/segment_payload.rb +1 -1
- data/lib/ElasticEmail/models/smtp_credentials.rb +1 -1
- data/lib/ElasticEmail/models/smtp_credentials_payload.rb +1 -1
- data/lib/ElasticEmail/models/sort_order_item.rb +1 -1
- data/lib/ElasticEmail/models/split_optimization_type.rb +1 -1
- data/lib/ElasticEmail/models/split_options.rb +1 -1
- data/lib/ElasticEmail/models/sub_account_info.rb +1 -1
- data/lib/ElasticEmail/models/subaccount_email_credits_payload.rb +1 -1
- data/lib/ElasticEmail/models/subaccount_email_settings.rb +1 -1
- data/lib/ElasticEmail/models/subaccount_email_settings_payload.rb +1 -1
- data/lib/ElasticEmail/models/subaccount_payload.rb +1 -1
- data/lib/ElasticEmail/models/subaccount_settings_info.rb +1 -1
- data/lib/ElasticEmail/models/subaccount_settings_info_payload.rb +1 -1
- data/lib/ElasticEmail/models/suppression.rb +1 -1
- data/lib/ElasticEmail/models/template.rb +1 -1
- data/lib/ElasticEmail/models/template_payload.rb +1 -1
- data/lib/ElasticEmail/models/template_scope.rb +1 -1
- data/lib/ElasticEmail/models/template_type.rb +3 -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 +1 -1
- data/lib/ElasticEmail/models/utm.rb +1 -1
- data/lib/ElasticEmail/models/verification_file_result.rb +1 -1
- data/lib/ElasticEmail/models/verification_file_result_details.rb +1 -1
- data/lib/ElasticEmail/models/verification_status.rb +1 -1
- data/lib/ElasticEmail/version.rb +2 -2
- data/lib/ElasticEmail.rb +11 -1
- data/spec/api/campaigns_api_spec.rb +13 -1
- data/spec/api/contacts_api_spec.rb +1 -1
- data/spec/api/domains_api_spec.rb +132 -0
- data/spec/api/emails_api_spec.rb +2 -2
- data/spec/api/events_api_spec.rb +1 -1
- data/spec/api/files_api_spec.rb +1 -1
- data/spec/api/inbound_route_api_spec.rb +1 -1
- data/spec/api/lists_api_spec.rb +1 -1
- data/spec/api/security_api_spec.rb +1 -1
- data/spec/api/segments_api_spec.rb +1 -1
- data/spec/api/statistics_api_spec.rb +1 -1
- data/spec/api/sub_accounts_api_spec.rb +1 -1
- data/spec/api/suppressions_api_spec.rb +1 -1
- data/spec/api/templates_api_spec.rb +1 -1
- data/spec/api/verifications_api_spec.rb +1 -1
- data/spec/models/access_level_spec.rb +1 -1
- data/spec/models/account_status_enum_spec.rb +1 -1
- data/spec/models/api_key_payload_spec.rb +1 -1
- data/spec/models/api_key_spec.rb +1 -1
- data/spec/models/body_content_type_spec.rb +1 -1
- data/spec/models/body_part_spec.rb +1 -1
- data/spec/models/campaign_options_spec.rb +1 -1
- data/spec/models/campaign_recipient_spec.rb +1 -1
- data/spec/models/campaign_spec.rb +1 -1
- data/spec/models/campaign_status_spec.rb +1 -1
- data/spec/models/campaign_template_spec.rb +1 -1
- data/spec/models/certificate_validation_status_spec.rb +30 -0
- data/spec/models/channel_log_status_summary_spec.rb +1 -1
- data/spec/models/compression_format_spec.rb +1 -1
- data/spec/models/consent_data_spec.rb +1 -1
- data/spec/models/consent_tracking_spec.rb +1 -1
- data/spec/models/contact_activity_spec.rb +1 -1
- data/spec/models/contact_payload_spec.rb +1 -1
- data/spec/models/contact_source_spec.rb +1 -1
- data/spec/models/contact_spec.rb +1 -1
- data/spec/models/contact_status_spec.rb +1 -1
- data/spec/models/contact_update_payload_spec.rb +1 -1
- data/spec/models/contacts_list_spec.rb +1 -1
- data/spec/models/delivery_optimization_type_spec.rb +1 -1
- 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 +1 -1
- data/spec/models/email_data_spec.rb +1 -1
- data/spec/models/email_job_failed_status_spec.rb +1 -1
- data/spec/models/email_job_status_spec.rb +1 -1
- data/spec/models/email_message_data_spec.rb +1 -1
- data/spec/models/email_predicted_validation_status_spec.rb +1 -1
- data/spec/models/email_recipient_spec.rb +1 -1
- data/spec/models/email_send_spec.rb +1 -1
- data/spec/models/email_status_spec.rb +7 -1
- data/spec/models/email_transactional_message_data_spec.rb +1 -1
- data/spec/models/email_validation_result_spec.rb +1 -1
- data/spec/models/email_validation_status_spec.rb +1 -1
- data/spec/models/email_view_spec.rb +1 -1
- data/spec/models/emails_payload_spec.rb +1 -1
- data/spec/models/encoding_type_spec.rb +1 -1
- data/spec/models/event_type_spec.rb +1 -1
- data/spec/models/events_order_by_spec.rb +1 -1
- data/spec/models/export_file_formats_spec.rb +1 -1
- data/spec/models/export_link_spec.rb +1 -1
- data/spec/models/export_status_spec.rb +1 -1
- data/spec/models/file_info_spec.rb +1 -1
- data/spec/models/file_payload_spec.rb +1 -1
- data/spec/models/file_upload_result_spec.rb +1 -1
- data/spec/models/inbound_payload_spec.rb +1 -1
- data/spec/models/inbound_route_action_type_spec.rb +1 -1
- data/spec/models/inbound_route_filter_type_spec.rb +1 -1
- data/spec/models/inbound_route_spec.rb +1 -1
- data/spec/models/list_payload_spec.rb +1 -1
- data/spec/models/list_update_payload_spec.rb +1 -1
- data/spec/models/log_job_status_spec.rb +1 -1
- data/spec/models/log_status_summary_spec.rb +1 -1
- data/spec/models/merge_email_payload_spec.rb +1 -1
- data/spec/models/message_attachment_spec.rb +1 -1
- data/spec/models/message_category_enum_spec.rb +30 -0
- data/spec/models/message_category_spec.rb +1 -1
- data/spec/models/new_api_key_spec.rb +1 -1
- data/spec/models/new_smtp_credentials_spec.rb +1 -1
- data/spec/models/options_spec.rb +1 -1
- data/spec/models/recipient_event_spec.rb +1 -1
- data/spec/models/segment_payload_spec.rb +1 -1
- data/spec/models/segment_spec.rb +1 -1
- data/spec/models/smtp_credentials_payload_spec.rb +1 -1
- data/spec/models/smtp_credentials_spec.rb +1 -1
- data/spec/models/sort_order_item_spec.rb +1 -1
- data/spec/models/split_optimization_type_spec.rb +1 -1
- data/spec/models/split_options_spec.rb +1 -1
- data/spec/models/sub_account_info_spec.rb +1 -1
- data/spec/models/subaccount_email_credits_payload_spec.rb +1 -1
- data/spec/models/subaccount_email_settings_payload_spec.rb +1 -1
- data/spec/models/subaccount_email_settings_spec.rb +1 -1
- data/spec/models/subaccount_payload_spec.rb +1 -1
- data/spec/models/subaccount_settings_info_payload_spec.rb +1 -1
- data/spec/models/subaccount_settings_info_spec.rb +1 -1
- data/spec/models/suppression_spec.rb +1 -1
- data/spec/models/template_payload_spec.rb +1 -1
- data/spec/models/template_scope_spec.rb +1 -1
- data/spec/models/template_spec.rb +1 -1
- data/spec/models/template_type_spec.rb +1 -1
- 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 +1 -1
- data/spec/models/utm_spec.rb +1 -1
- data/spec/models/verification_file_result_details_spec.rb +1 -1
- data/spec/models/verification_file_result_spec.rb +1 -1
- data/spec/models/verification_status_spec.rb +1 -1
- data/spec/spec_helper.rb +1 -1
- metadata +120 -80
data/docs/DomainsApi.md
ADDED
@@ -0,0 +1,583 @@
|
|
1
|
+
# ElasticEmail::DomainsApi
|
2
|
+
|
3
|
+
All URIs are relative to *https://api.elasticemail.com/v4*
|
4
|
+
|
5
|
+
| Method | HTTP request | Description |
|
6
|
+
| ------ | ------------ | ----------- |
|
7
|
+
| [**domains_by_domain_delete**](DomainsApi.md#domains_by_domain_delete) | **DELETE** /domains/{domain} | Delete Domain |
|
8
|
+
| [**domains_by_domain_get**](DomainsApi.md#domains_by_domain_get) | **GET** /domains/{domain} | Load Domain |
|
9
|
+
| [**domains_by_domain_put**](DomainsApi.md#domains_by_domain_put) | **PUT** /domains/{domain} | Update Domain |
|
10
|
+
| [**domains_by_domain_restricted_get**](DomainsApi.md#domains_by_domain_restricted_get) | **GET** /domains/{domain}/restricted | Check for domain restriction |
|
11
|
+
| [**domains_by_domain_verification_put**](DomainsApi.md#domains_by_domain_verification_put) | **PUT** /domains/{domain}/verification | Verify Domain |
|
12
|
+
| [**domains_by_email_default_patch**](DomainsApi.md#domains_by_email_default_patch) | **PATCH** /domains/{email}/default | Set Default |
|
13
|
+
| [**domains_get**](DomainsApi.md#domains_get) | **GET** /domains | Load Domains |
|
14
|
+
| [**domains_post**](DomainsApi.md#domains_post) | **POST** /domains | Add Domain |
|
15
|
+
|
16
|
+
|
17
|
+
## domains_by_domain_delete
|
18
|
+
|
19
|
+
> domains_by_domain_delete(domain)
|
20
|
+
|
21
|
+
Delete Domain
|
22
|
+
|
23
|
+
Deletes configured domain from Account. Required Access Level: ModifySettings
|
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::DomainsApi.new
|
39
|
+
domain = 'domain_example' # String | Name of the given domain
|
40
|
+
|
41
|
+
begin
|
42
|
+
# Delete Domain
|
43
|
+
api_instance.domains_by_domain_delete(domain)
|
44
|
+
rescue ElasticEmail::ApiError => e
|
45
|
+
puts "Error when calling DomainsApi->domains_by_domain_delete: #{e}"
|
46
|
+
end
|
47
|
+
```
|
48
|
+
|
49
|
+
#### Using the domains_by_domain_delete_with_http_info variant
|
50
|
+
|
51
|
+
This returns an Array which contains the response data (`nil` in this case), status code and headers.
|
52
|
+
|
53
|
+
> <Array(nil, Integer, Hash)> domains_by_domain_delete_with_http_info(domain)
|
54
|
+
|
55
|
+
```ruby
|
56
|
+
begin
|
57
|
+
# Delete Domain
|
58
|
+
data, status_code, headers = api_instance.domains_by_domain_delete_with_http_info(domain)
|
59
|
+
p status_code # => 2xx
|
60
|
+
p headers # => { ... }
|
61
|
+
p data # => nil
|
62
|
+
rescue ElasticEmail::ApiError => e
|
63
|
+
puts "Error when calling DomainsApi->domains_by_domain_delete_with_http_info: #{e}"
|
64
|
+
end
|
65
|
+
```
|
66
|
+
|
67
|
+
### Parameters
|
68
|
+
|
69
|
+
| Name | Type | Description | Notes |
|
70
|
+
| ---- | ---- | ----------- | ----- |
|
71
|
+
| **domain** | **String** | Name of the given domain | |
|
72
|
+
|
73
|
+
### Return type
|
74
|
+
|
75
|
+
nil (empty response body)
|
76
|
+
|
77
|
+
### Authorization
|
78
|
+
|
79
|
+
[apikey](../README.md#apikey)
|
80
|
+
|
81
|
+
### HTTP request headers
|
82
|
+
|
83
|
+
- **Content-Type**: Not defined
|
84
|
+
- **Accept**: Not defined
|
85
|
+
|
86
|
+
|
87
|
+
## domains_by_domain_get
|
88
|
+
|
89
|
+
> <DomainData> domains_by_domain_get(domain)
|
90
|
+
|
91
|
+
Load Domain
|
92
|
+
|
93
|
+
Retrieve a domain configured for this Account. Required Access Level: ViewSettings
|
94
|
+
|
95
|
+
### Examples
|
96
|
+
|
97
|
+
```ruby
|
98
|
+
require 'time'
|
99
|
+
require 'ElasticEmail'
|
100
|
+
# setup authorization
|
101
|
+
ElasticEmail.configure do |config|
|
102
|
+
# Configure API key authorization: apikey
|
103
|
+
config.api_key['apikey'] = 'YOUR API KEY'
|
104
|
+
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
|
105
|
+
# config.api_key_prefix['apikey'] = 'Bearer'
|
106
|
+
end
|
107
|
+
|
108
|
+
api_instance = ElasticEmail::DomainsApi.new
|
109
|
+
domain = 'domain_example' # String | Name of the given domain
|
110
|
+
|
111
|
+
begin
|
112
|
+
# Load Domain
|
113
|
+
result = api_instance.domains_by_domain_get(domain)
|
114
|
+
p result
|
115
|
+
rescue ElasticEmail::ApiError => e
|
116
|
+
puts "Error when calling DomainsApi->domains_by_domain_get: #{e}"
|
117
|
+
end
|
118
|
+
```
|
119
|
+
|
120
|
+
#### Using the domains_by_domain_get_with_http_info variant
|
121
|
+
|
122
|
+
This returns an Array which contains the response data, status code and headers.
|
123
|
+
|
124
|
+
> <Array(<DomainData>, Integer, Hash)> domains_by_domain_get_with_http_info(domain)
|
125
|
+
|
126
|
+
```ruby
|
127
|
+
begin
|
128
|
+
# Load Domain
|
129
|
+
data, status_code, headers = api_instance.domains_by_domain_get_with_http_info(domain)
|
130
|
+
p status_code # => 2xx
|
131
|
+
p headers # => { ... }
|
132
|
+
p data # => <DomainData>
|
133
|
+
rescue ElasticEmail::ApiError => e
|
134
|
+
puts "Error when calling DomainsApi->domains_by_domain_get_with_http_info: #{e}"
|
135
|
+
end
|
136
|
+
```
|
137
|
+
|
138
|
+
### Parameters
|
139
|
+
|
140
|
+
| Name | Type | Description | Notes |
|
141
|
+
| ---- | ---- | ----------- | ----- |
|
142
|
+
| **domain** | **String** | Name of the given domain | |
|
143
|
+
|
144
|
+
### Return type
|
145
|
+
|
146
|
+
[**DomainData**](DomainData.md)
|
147
|
+
|
148
|
+
### Authorization
|
149
|
+
|
150
|
+
[apikey](../README.md#apikey)
|
151
|
+
|
152
|
+
### HTTP request headers
|
153
|
+
|
154
|
+
- **Content-Type**: Not defined
|
155
|
+
- **Accept**: application/json
|
156
|
+
|
157
|
+
|
158
|
+
## domains_by_domain_put
|
159
|
+
|
160
|
+
> <DomainDetail> domains_by_domain_put(domain, domain_update_payload)
|
161
|
+
|
162
|
+
Update Domain
|
163
|
+
|
164
|
+
Updates the specified domain. Required Access Level: ModifySettings
|
165
|
+
|
166
|
+
### Examples
|
167
|
+
|
168
|
+
```ruby
|
169
|
+
require 'time'
|
170
|
+
require 'ElasticEmail'
|
171
|
+
# setup authorization
|
172
|
+
ElasticEmail.configure do |config|
|
173
|
+
# Configure API key authorization: apikey
|
174
|
+
config.api_key['apikey'] = 'YOUR API KEY'
|
175
|
+
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
|
176
|
+
# config.api_key_prefix['apikey'] = 'Bearer'
|
177
|
+
end
|
178
|
+
|
179
|
+
api_instance = ElasticEmail::DomainsApi.new
|
180
|
+
domain = 'domain_example' # String | Name of the given domain
|
181
|
+
domain_update_payload = ElasticEmail::DomainUpdatePayload.new # DomainUpdatePayload | Updated Domain resource
|
182
|
+
|
183
|
+
begin
|
184
|
+
# Update Domain
|
185
|
+
result = api_instance.domains_by_domain_put(domain, domain_update_payload)
|
186
|
+
p result
|
187
|
+
rescue ElasticEmail::ApiError => e
|
188
|
+
puts "Error when calling DomainsApi->domains_by_domain_put: #{e}"
|
189
|
+
end
|
190
|
+
```
|
191
|
+
|
192
|
+
#### Using the domains_by_domain_put_with_http_info variant
|
193
|
+
|
194
|
+
This returns an Array which contains the response data, status code and headers.
|
195
|
+
|
196
|
+
> <Array(<DomainDetail>, Integer, Hash)> domains_by_domain_put_with_http_info(domain, domain_update_payload)
|
197
|
+
|
198
|
+
```ruby
|
199
|
+
begin
|
200
|
+
# Update Domain
|
201
|
+
data, status_code, headers = api_instance.domains_by_domain_put_with_http_info(domain, domain_update_payload)
|
202
|
+
p status_code # => 2xx
|
203
|
+
p headers # => { ... }
|
204
|
+
p data # => <DomainDetail>
|
205
|
+
rescue ElasticEmail::ApiError => e
|
206
|
+
puts "Error when calling DomainsApi->domains_by_domain_put_with_http_info: #{e}"
|
207
|
+
end
|
208
|
+
```
|
209
|
+
|
210
|
+
### Parameters
|
211
|
+
|
212
|
+
| Name | Type | Description | Notes |
|
213
|
+
| ---- | ---- | ----------- | ----- |
|
214
|
+
| **domain** | **String** | Name of the given domain | |
|
215
|
+
| **domain_update_payload** | [**DomainUpdatePayload**](DomainUpdatePayload.md) | Updated Domain resource | |
|
216
|
+
|
217
|
+
### Return type
|
218
|
+
|
219
|
+
[**DomainDetail**](DomainDetail.md)
|
220
|
+
|
221
|
+
### Authorization
|
222
|
+
|
223
|
+
[apikey](../README.md#apikey)
|
224
|
+
|
225
|
+
### HTTP request headers
|
226
|
+
|
227
|
+
- **Content-Type**: application/json
|
228
|
+
- **Accept**: application/json
|
229
|
+
|
230
|
+
|
231
|
+
## domains_by_domain_restricted_get
|
232
|
+
|
233
|
+
> Boolean domains_by_domain_restricted_get(domain)
|
234
|
+
|
235
|
+
Check for domain restriction
|
236
|
+
|
237
|
+
Checking if domain is from free provider, or restricted. Required Access Level: ViewSettings
|
238
|
+
|
239
|
+
### Examples
|
240
|
+
|
241
|
+
```ruby
|
242
|
+
require 'time'
|
243
|
+
require 'ElasticEmail'
|
244
|
+
# setup authorization
|
245
|
+
ElasticEmail.configure do |config|
|
246
|
+
# Configure API key authorization: apikey
|
247
|
+
config.api_key['apikey'] = 'YOUR API KEY'
|
248
|
+
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
|
249
|
+
# config.api_key_prefix['apikey'] = 'Bearer'
|
250
|
+
end
|
251
|
+
|
252
|
+
api_instance = ElasticEmail::DomainsApi.new
|
253
|
+
domain = 'domain_example' # String | Name of the given domain
|
254
|
+
|
255
|
+
begin
|
256
|
+
# Check for domain restriction
|
257
|
+
result = api_instance.domains_by_domain_restricted_get(domain)
|
258
|
+
p result
|
259
|
+
rescue ElasticEmail::ApiError => e
|
260
|
+
puts "Error when calling DomainsApi->domains_by_domain_restricted_get: #{e}"
|
261
|
+
end
|
262
|
+
```
|
263
|
+
|
264
|
+
#### Using the domains_by_domain_restricted_get_with_http_info variant
|
265
|
+
|
266
|
+
This returns an Array which contains the response data, status code and headers.
|
267
|
+
|
268
|
+
> <Array(Boolean, Integer, Hash)> domains_by_domain_restricted_get_with_http_info(domain)
|
269
|
+
|
270
|
+
```ruby
|
271
|
+
begin
|
272
|
+
# Check for domain restriction
|
273
|
+
data, status_code, headers = api_instance.domains_by_domain_restricted_get_with_http_info(domain)
|
274
|
+
p status_code # => 2xx
|
275
|
+
p headers # => { ... }
|
276
|
+
p data # => Boolean
|
277
|
+
rescue ElasticEmail::ApiError => e
|
278
|
+
puts "Error when calling DomainsApi->domains_by_domain_restricted_get_with_http_info: #{e}"
|
279
|
+
end
|
280
|
+
```
|
281
|
+
|
282
|
+
### Parameters
|
283
|
+
|
284
|
+
| Name | Type | Description | Notes |
|
285
|
+
| ---- | ---- | ----------- | ----- |
|
286
|
+
| **domain** | **String** | Name of the given domain | |
|
287
|
+
|
288
|
+
### Return type
|
289
|
+
|
290
|
+
**Boolean**
|
291
|
+
|
292
|
+
### Authorization
|
293
|
+
|
294
|
+
[apikey](../README.md#apikey)
|
295
|
+
|
296
|
+
### HTTP request headers
|
297
|
+
|
298
|
+
- **Content-Type**: Not defined
|
299
|
+
- **Accept**: application/json
|
300
|
+
|
301
|
+
|
302
|
+
## domains_by_domain_verification_put
|
303
|
+
|
304
|
+
> <DomainData> domains_by_domain_verification_put(domain, body)
|
305
|
+
|
306
|
+
Verify Domain
|
307
|
+
|
308
|
+
Verifies that required DNS records exist for specified domain. Required Access Level: ModifySettings
|
309
|
+
|
310
|
+
### Examples
|
311
|
+
|
312
|
+
```ruby
|
313
|
+
require 'time'
|
314
|
+
require 'ElasticEmail'
|
315
|
+
# setup authorization
|
316
|
+
ElasticEmail.configure do |config|
|
317
|
+
# Configure API key authorization: apikey
|
318
|
+
config.api_key['apikey'] = 'YOUR API KEY'
|
319
|
+
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
|
320
|
+
# config.api_key_prefix['apikey'] = 'Bearer'
|
321
|
+
end
|
322
|
+
|
323
|
+
api_instance = ElasticEmail::DomainsApi.new
|
324
|
+
domain = 'domain_example' # String | Name of the given domain
|
325
|
+
body = 'body_example' # String | Tracking type used in the Tracking verification
|
326
|
+
|
327
|
+
begin
|
328
|
+
# Verify Domain
|
329
|
+
result = api_instance.domains_by_domain_verification_put(domain, body)
|
330
|
+
p result
|
331
|
+
rescue ElasticEmail::ApiError => e
|
332
|
+
puts "Error when calling DomainsApi->domains_by_domain_verification_put: #{e}"
|
333
|
+
end
|
334
|
+
```
|
335
|
+
|
336
|
+
#### Using the domains_by_domain_verification_put_with_http_info variant
|
337
|
+
|
338
|
+
This returns an Array which contains the response data, status code and headers.
|
339
|
+
|
340
|
+
> <Array(<DomainData>, Integer, Hash)> domains_by_domain_verification_put_with_http_info(domain, body)
|
341
|
+
|
342
|
+
```ruby
|
343
|
+
begin
|
344
|
+
# Verify Domain
|
345
|
+
data, status_code, headers = api_instance.domains_by_domain_verification_put_with_http_info(domain, body)
|
346
|
+
p status_code # => 2xx
|
347
|
+
p headers # => { ... }
|
348
|
+
p data # => <DomainData>
|
349
|
+
rescue ElasticEmail::ApiError => e
|
350
|
+
puts "Error when calling DomainsApi->domains_by_domain_verification_put_with_http_info: #{e}"
|
351
|
+
end
|
352
|
+
```
|
353
|
+
|
354
|
+
### Parameters
|
355
|
+
|
356
|
+
| Name | Type | Description | Notes |
|
357
|
+
| ---- | ---- | ----------- | ----- |
|
358
|
+
| **domain** | **String** | Name of the given domain | |
|
359
|
+
| **body** | **String** | Tracking type used in the Tracking verification | |
|
360
|
+
|
361
|
+
### Return type
|
362
|
+
|
363
|
+
[**DomainData**](DomainData.md)
|
364
|
+
|
365
|
+
### Authorization
|
366
|
+
|
367
|
+
[apikey](../README.md#apikey)
|
368
|
+
|
369
|
+
### HTTP request headers
|
370
|
+
|
371
|
+
- **Content-Type**: application/json
|
372
|
+
- **Accept**: application/json
|
373
|
+
|
374
|
+
|
375
|
+
## domains_by_email_default_patch
|
376
|
+
|
377
|
+
> <DomainDetail> domains_by_email_default_patch(email)
|
378
|
+
|
379
|
+
Set Default
|
380
|
+
|
381
|
+
Sets a verified email address as default sender. Required Access Level: ModifySettings
|
382
|
+
|
383
|
+
### Examples
|
384
|
+
|
385
|
+
```ruby
|
386
|
+
require 'time'
|
387
|
+
require 'ElasticEmail'
|
388
|
+
# setup authorization
|
389
|
+
ElasticEmail.configure do |config|
|
390
|
+
# Configure API key authorization: apikey
|
391
|
+
config.api_key['apikey'] = 'YOUR API KEY'
|
392
|
+
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
|
393
|
+
# config.api_key_prefix['apikey'] = 'Bearer'
|
394
|
+
end
|
395
|
+
|
396
|
+
api_instance = ElasticEmail::DomainsApi.new
|
397
|
+
email = 'email_example' # String | Default email sender, example: mail@yourdomain.com
|
398
|
+
|
399
|
+
begin
|
400
|
+
# Set Default
|
401
|
+
result = api_instance.domains_by_email_default_patch(email)
|
402
|
+
p result
|
403
|
+
rescue ElasticEmail::ApiError => e
|
404
|
+
puts "Error when calling DomainsApi->domains_by_email_default_patch: #{e}"
|
405
|
+
end
|
406
|
+
```
|
407
|
+
|
408
|
+
#### Using the domains_by_email_default_patch_with_http_info variant
|
409
|
+
|
410
|
+
This returns an Array which contains the response data, status code and headers.
|
411
|
+
|
412
|
+
> <Array(<DomainDetail>, Integer, Hash)> domains_by_email_default_patch_with_http_info(email)
|
413
|
+
|
414
|
+
```ruby
|
415
|
+
begin
|
416
|
+
# Set Default
|
417
|
+
data, status_code, headers = api_instance.domains_by_email_default_patch_with_http_info(email)
|
418
|
+
p status_code # => 2xx
|
419
|
+
p headers # => { ... }
|
420
|
+
p data # => <DomainDetail>
|
421
|
+
rescue ElasticEmail::ApiError => e
|
422
|
+
puts "Error when calling DomainsApi->domains_by_email_default_patch_with_http_info: #{e}"
|
423
|
+
end
|
424
|
+
```
|
425
|
+
|
426
|
+
### Parameters
|
427
|
+
|
428
|
+
| Name | Type | Description | Notes |
|
429
|
+
| ---- | ---- | ----------- | ----- |
|
430
|
+
| **email** | **String** | Default email sender, example: mail@yourdomain.com | |
|
431
|
+
|
432
|
+
### Return type
|
433
|
+
|
434
|
+
[**DomainDetail**](DomainDetail.md)
|
435
|
+
|
436
|
+
### Authorization
|
437
|
+
|
438
|
+
[apikey](../README.md#apikey)
|
439
|
+
|
440
|
+
### HTTP request headers
|
441
|
+
|
442
|
+
- **Content-Type**: Not defined
|
443
|
+
- **Accept**: application/json
|
444
|
+
|
445
|
+
|
446
|
+
## domains_get
|
447
|
+
|
448
|
+
> <Array<DomainDetail>> domains_get
|
449
|
+
|
450
|
+
Load Domains
|
451
|
+
|
452
|
+
Returns a list of all domains configured for this Account. Required Access Level: ViewSettings
|
453
|
+
|
454
|
+
### Examples
|
455
|
+
|
456
|
+
```ruby
|
457
|
+
require 'time'
|
458
|
+
require 'ElasticEmail'
|
459
|
+
# setup authorization
|
460
|
+
ElasticEmail.configure do |config|
|
461
|
+
# Configure API key authorization: apikey
|
462
|
+
config.api_key['apikey'] = 'YOUR API KEY'
|
463
|
+
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
|
464
|
+
# config.api_key_prefix['apikey'] = 'Bearer'
|
465
|
+
end
|
466
|
+
|
467
|
+
api_instance = ElasticEmail::DomainsApi.new
|
468
|
+
|
469
|
+
begin
|
470
|
+
# Load Domains
|
471
|
+
result = api_instance.domains_get
|
472
|
+
p result
|
473
|
+
rescue ElasticEmail::ApiError => e
|
474
|
+
puts "Error when calling DomainsApi->domains_get: #{e}"
|
475
|
+
end
|
476
|
+
```
|
477
|
+
|
478
|
+
#### Using the domains_get_with_http_info variant
|
479
|
+
|
480
|
+
This returns an Array which contains the response data, status code and headers.
|
481
|
+
|
482
|
+
> <Array(<Array<DomainDetail>>, Integer, Hash)> domains_get_with_http_info
|
483
|
+
|
484
|
+
```ruby
|
485
|
+
begin
|
486
|
+
# Load Domains
|
487
|
+
data, status_code, headers = api_instance.domains_get_with_http_info
|
488
|
+
p status_code # => 2xx
|
489
|
+
p headers # => { ... }
|
490
|
+
p data # => <Array<DomainDetail>>
|
491
|
+
rescue ElasticEmail::ApiError => e
|
492
|
+
puts "Error when calling DomainsApi->domains_get_with_http_info: #{e}"
|
493
|
+
end
|
494
|
+
```
|
495
|
+
|
496
|
+
### Parameters
|
497
|
+
|
498
|
+
This endpoint does not need any parameter.
|
499
|
+
|
500
|
+
### Return type
|
501
|
+
|
502
|
+
[**Array<DomainDetail>**](DomainDetail.md)
|
503
|
+
|
504
|
+
### Authorization
|
505
|
+
|
506
|
+
[apikey](../README.md#apikey)
|
507
|
+
|
508
|
+
### HTTP request headers
|
509
|
+
|
510
|
+
- **Content-Type**: Not defined
|
511
|
+
- **Accept**: application/json
|
512
|
+
|
513
|
+
|
514
|
+
## domains_post
|
515
|
+
|
516
|
+
> <DomainDetail> domains_post(domain_payload)
|
517
|
+
|
518
|
+
Add Domain
|
519
|
+
|
520
|
+
Add new domain to Account. Required Access Level: ModifySettings
|
521
|
+
|
522
|
+
### Examples
|
523
|
+
|
524
|
+
```ruby
|
525
|
+
require 'time'
|
526
|
+
require 'ElasticEmail'
|
527
|
+
# setup authorization
|
528
|
+
ElasticEmail.configure do |config|
|
529
|
+
# Configure API key authorization: apikey
|
530
|
+
config.api_key['apikey'] = 'YOUR API KEY'
|
531
|
+
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
|
532
|
+
# config.api_key_prefix['apikey'] = 'Bearer'
|
533
|
+
end
|
534
|
+
|
535
|
+
api_instance = ElasticEmail::DomainsApi.new
|
536
|
+
domain_payload = ElasticEmail::DomainPayload.new # DomainPayload | Domain to add
|
537
|
+
|
538
|
+
begin
|
539
|
+
# Add Domain
|
540
|
+
result = api_instance.domains_post(domain_payload)
|
541
|
+
p result
|
542
|
+
rescue ElasticEmail::ApiError => e
|
543
|
+
puts "Error when calling DomainsApi->domains_post: #{e}"
|
544
|
+
end
|
545
|
+
```
|
546
|
+
|
547
|
+
#### Using the domains_post_with_http_info variant
|
548
|
+
|
549
|
+
This returns an Array which contains the response data, status code and headers.
|
550
|
+
|
551
|
+
> <Array(<DomainDetail>, Integer, Hash)> domains_post_with_http_info(domain_payload)
|
552
|
+
|
553
|
+
```ruby
|
554
|
+
begin
|
555
|
+
# Add Domain
|
556
|
+
data, status_code, headers = api_instance.domains_post_with_http_info(domain_payload)
|
557
|
+
p status_code # => 2xx
|
558
|
+
p headers # => { ... }
|
559
|
+
p data # => <DomainDetail>
|
560
|
+
rescue ElasticEmail::ApiError => e
|
561
|
+
puts "Error when calling DomainsApi->domains_post_with_http_info: #{e}"
|
562
|
+
end
|
563
|
+
```
|
564
|
+
|
565
|
+
### Parameters
|
566
|
+
|
567
|
+
| Name | Type | Description | Notes |
|
568
|
+
| ---- | ---- | ----------- | ----- |
|
569
|
+
| **domain_payload** | [**DomainPayload**](DomainPayload.md) | Domain to add | |
|
570
|
+
|
571
|
+
### Return type
|
572
|
+
|
573
|
+
[**DomainDetail**](DomainDetail.md)
|
574
|
+
|
575
|
+
### Authorization
|
576
|
+
|
577
|
+
[apikey](../README.md#apikey)
|
578
|
+
|
579
|
+
### HTTP request headers
|
580
|
+
|
581
|
+
- **Content-Type**: application/json
|
582
|
+
- **Accept**: application/json
|
583
|
+
|
data/docs/EmailStatus.md
CHANGED
@@ -16,6 +16,7 @@
|
|
16
16
|
| **error_message** | **String** | Detailed error or bounced message. | [optional] |
|
17
17
|
| **transaction_id** | **String** | ID number of transaction | [optional] |
|
18
18
|
| **envelope_from** | **String** | Envelope from address | [optional] |
|
19
|
+
| **error_category** | [**MessageCategoryEnum**](MessageCategoryEnum.md) | | [optional][default to 'Unknown'] |
|
19
20
|
|
20
21
|
## Example
|
21
22
|
|
@@ -34,7 +35,8 @@ instance = ElasticEmail::EmailStatus.new(
|
|
34
35
|
date_clicked: null,
|
35
36
|
error_message: null,
|
36
37
|
transaction_id: TransactionID,
|
37
|
-
envelope_from: null
|
38
|
+
envelope_from: null,
|
39
|
+
error_category: null
|
38
40
|
)
|
39
41
|
```
|
40
42
|
|
data/docs/EmailsApi.md
CHANGED
@@ -181,7 +181,7 @@ end
|
|
181
181
|
|
182
182
|
Send Bulk Emails CSV
|
183
183
|
|
184
|
-
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
|
185
185
|
|
186
186
|
### Examples
|
187
187
|
|
@@ -0,0 +1,15 @@
|
|
1
|
+
# ElasticEmail::MessageCategoryEnum
|
2
|
+
|
3
|
+
## Properties
|
4
|
+
|
5
|
+
| Name | Type | Description | Notes |
|
6
|
+
| ---- | ---- | ----------- | ----- |
|
7
|
+
|
8
|
+
## Example
|
9
|
+
|
10
|
+
```ruby
|
11
|
+
require 'ElasticEmail'
|
12
|
+
|
13
|
+
instance = ElasticEmail::MessageCategoryEnum.new()
|
14
|
+
```
|
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
|
+
|