ElasticEmail 4.0.13 → 4.0.20
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 +3 -3
- data/README.md +6 -8
- data/VERSION +1 -1
- data/docs/BodyPart.md +1 -1
- data/docs/Campaign.md +3 -3
- data/docs/CampaignOptions.md +2 -2
- data/docs/CampaignTemplate.md +1 -1
- data/docs/ConsentData.md +1 -1
- data/docs/Contact.md +3 -3
- data/docs/ContactHistory.md +1 -1
- data/docs/ContactPayload.md +1 -1
- data/docs/ContactsApi.md +2 -2
- data/docs/EmailContent.md +1 -1
- data/docs/EmailData.md +2 -2
- data/docs/EmailMessageData.md +3 -3
- data/docs/EmailStatus.md +1 -1
- data/docs/EmailTransactionalMessageData.md +3 -3
- data/docs/EventsApi.md +7 -7
- data/docs/InboundPayload.md +2 -2
- data/docs/InboundRoute.md +2 -2
- data/docs/MergeEmailPayload.md +3 -3
- data/docs/NewSmtpCredentials.md +1 -1
- data/docs/Options.md +1 -1
- data/docs/RecipientEvent.md +2 -2
- data/docs/SmtpCredentials.md +1 -1
- data/docs/SplitOptions.md +1 -1
- data/docs/SubAccountInfo.md +2 -2
- data/docs/SubaccountEmailSettings.md +3 -1
- data/docs/SubaccountEmailSettingsPayload.md +3 -1
- data/docs/SubaccountPayload.md +1 -1
- data/docs/SubaccountSettingsInfo.md +1 -1
- data/docs/SubaccountSettingsInfoPayload.md +1 -1
- data/docs/SuppressionsApi.md +12 -12
- data/docs/Template.md +2 -2
- data/docs/TemplatePayload.md +1 -1
- data/docs/VerificationFileResult.md +2 -2
- data/docs/VerificationFileResultDetails.md +2 -2
- data/lib/ElasticEmail/api/campaigns_api.rb +10 -4
- data/lib/ElasticEmail/api/contacts_api.rb +22 -10
- data/lib/ElasticEmail/api/emails_api.rb +14 -5
- data/lib/ElasticEmail/api/events_api.rb +16 -16
- data/lib/ElasticEmail/api/files_api.rb +6 -3
- data/lib/ElasticEmail/api/inbound_route_api.rb +14 -5
- data/lib/ElasticEmail/api/lists_api.rb +18 -6
- data/lib/ElasticEmail/api/security_api.rb +18 -6
- data/lib/ElasticEmail/api/segments_api.rb +10 -4
- data/lib/ElasticEmail/api/statistics_api.rb +2 -2
- data/lib/ElasticEmail/api/sub_accounts_api.rb +14 -5
- data/lib/ElasticEmail/api/suppressions_api.rb +50 -32
- data/lib/ElasticEmail/api/templates_api.rb +10 -4
- data/lib/ElasticEmail/api/verifications_api.rb +6 -3
- data/lib/ElasticEmail/api_client.rb +8 -6
- data/lib/ElasticEmail/api_error.rb +2 -2
- data/lib/ElasticEmail/configuration.rb +6 -4
- data/lib/ElasticEmail/models/access_level.rb +6 -2
- data/lib/ElasticEmail/models/account_status_enum.rb +2 -2
- data/lib/ElasticEmail/models/api_key.rb +3 -2
- data/lib/ElasticEmail/models/api_key_payload.rb +3 -2
- data/lib/ElasticEmail/models/body_content_type.rb +2 -2
- data/lib/ElasticEmail/models/body_part.rb +5 -3
- data/lib/ElasticEmail/models/campaign.rb +5 -5
- data/lib/ElasticEmail/models/campaign_options.rb +5 -4
- data/lib/ElasticEmail/models/campaign_recipient.rb +3 -2
- data/lib/ElasticEmail/models/campaign_status.rb +2 -2
- data/lib/ElasticEmail/models/campaign_template.rb +3 -3
- data/lib/ElasticEmail/models/channel_log_status_summary.rb +3 -2
- data/lib/ElasticEmail/models/compression_format.rb +2 -2
- data/lib/ElasticEmail/models/consent_data.rb +5 -3
- data/lib/ElasticEmail/models/consent_tracking.rb +2 -2
- data/lib/ElasticEmail/models/contact.rb +7 -5
- data/lib/ElasticEmail/models/contact_activity.rb +3 -2
- data/lib/ElasticEmail/models/contact_hist_event_type.rb +2 -2
- data/lib/ElasticEmail/models/contact_history.rb +5 -3
- data/lib/ElasticEmail/models/contact_payload.rb +5 -3
- 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 +3 -2
- data/lib/ElasticEmail/models/contacts_list.rb +3 -2
- data/lib/ElasticEmail/models/delivery_optimization_type.rb +2 -2
- data/lib/ElasticEmail/models/email_content.rb +3 -3
- data/lib/ElasticEmail/models/email_data.rb +3 -4
- data/lib/ElasticEmail/models/email_message_data.rb +4 -5
- data/lib/ElasticEmail/models/email_recipient.rb +4 -3
- data/lib/ElasticEmail/models/email_send.rb +3 -2
- data/lib/ElasticEmail/models/email_status.rb +5 -3
- data/lib/ElasticEmail/models/email_transactional_message_data.rb +3 -5
- data/lib/ElasticEmail/models/email_validation_result.rb +3 -2
- data/lib/ElasticEmail/models/email_validation_status.rb +2 -2
- data/lib/ElasticEmail/models/email_view.rb +3 -2
- data/lib/ElasticEmail/models/emails_payload.rb +3 -2
- 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 +3 -2
- data/lib/ElasticEmail/models/export_status.rb +2 -2
- data/lib/ElasticEmail/models/file_info.rb +3 -2
- data/lib/ElasticEmail/models/file_payload.rb +3 -2
- data/lib/ElasticEmail/models/file_upload_result.rb +3 -2
- data/lib/ElasticEmail/models/inbound_payload.rb +7 -4
- data/lib/ElasticEmail/models/inbound_route.rb +7 -4
- 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 +3 -2
- data/lib/ElasticEmail/models/list_update_payload.rb +3 -2
- data/lib/ElasticEmail/models/log_job_status.rb +2 -2
- data/lib/ElasticEmail/models/log_status_summary.rb +3 -2
- data/lib/ElasticEmail/models/merge_email_payload.rb +3 -5
- data/lib/ElasticEmail/models/message_attachment.rb +3 -2
- data/lib/ElasticEmail/models/message_category.rb +2 -2
- data/lib/ElasticEmail/models/new_api_key.rb +3 -2
- data/lib/ElasticEmail/models/new_smtp_credentials.rb +5 -3
- data/lib/ElasticEmail/models/options.rb +5 -3
- data/lib/ElasticEmail/models/recipient_event.rb +7 -4
- data/lib/ElasticEmail/models/segment.rb +3 -2
- data/lib/ElasticEmail/models/segment_payload.rb +3 -2
- data/lib/ElasticEmail/models/smtp_credentials.rb +5 -3
- data/lib/ElasticEmail/models/smtp_credentials_payload.rb +3 -2
- data/lib/ElasticEmail/models/sort_order_item.rb +3 -2
- data/lib/ElasticEmail/models/split_optimization_type.rb +2 -2
- data/lib/ElasticEmail/models/split_options.rb +5 -3
- data/lib/ElasticEmail/models/sub_account_info.rb +5 -4
- data/lib/ElasticEmail/models/subaccount_email_credits_payload.rb +3 -2
- data/lib/ElasticEmail/models/subaccount_email_settings.rb +17 -6
- data/lib/ElasticEmail/models/subaccount_email_settings_payload.rb +17 -6
- data/lib/ElasticEmail/models/subaccount_payload.rb +3 -3
- data/lib/ElasticEmail/models/subaccount_settings_info.rb +3 -3
- data/lib/ElasticEmail/models/subaccount_settings_info_payload.rb +3 -3
- data/lib/ElasticEmail/models/suppression.rb +3 -2
- data/lib/ElasticEmail/models/template.rb +7 -4
- data/lib/ElasticEmail/models/template_payload.rb +5 -3
- 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 +3 -2
- data/lib/ElasticEmail/models/utm.rb +3 -2
- data/lib/ElasticEmail/models/verification_file_result.rb +5 -4
- data/lib/ElasticEmail/models/verification_file_result_details.rb +5 -4
- 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 +4 -4
- data/spec/configuration_spec.rb +2 -2
- data/spec/spec_helper.rb +2 -2
- metadata +7 -13
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
=begin
|
|
2
2
|
#Elastic Email REST API
|
|
3
3
|
|
|
4
|
-
#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.
|
|
4
|
+
#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. 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>
|
|
5
5
|
|
|
6
6
|
The version of the OpenAPI document: 4.0.0
|
|
7
7
|
Contact: support@elasticemail.com
|
|
8
8
|
Generated by: https://openapi-generator.tech
|
|
9
|
-
OpenAPI Generator version:
|
|
9
|
+
OpenAPI Generator version: 6.0.0
|
|
10
10
|
|
|
11
11
|
=end
|
|
12
12
|
|
|
@@ -57,7 +57,10 @@ module ElasticEmail
|
|
|
57
57
|
# header parameters
|
|
58
58
|
header_params = opts[:header_params] || {}
|
|
59
59
|
# HTTP header 'Content-Type'
|
|
60
|
-
|
|
60
|
+
content_type = @api_client.select_header_content_type(['application/json'])
|
|
61
|
+
if !content_type.nil?
|
|
62
|
+
header_params['Content-Type'] = content_type
|
|
63
|
+
end
|
|
61
64
|
|
|
62
65
|
# form parameters
|
|
63
66
|
form_params = opts[:form_params] || {}
|
|
@@ -252,7 +255,10 @@ module ElasticEmail
|
|
|
252
255
|
# HTTP header 'Accept' (if needed)
|
|
253
256
|
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
|
254
257
|
# HTTP header 'Content-Type'
|
|
255
|
-
|
|
258
|
+
content_type = @api_client.select_header_content_type(['application/json'])
|
|
259
|
+
if !content_type.nil?
|
|
260
|
+
header_params['Content-Type'] = content_type
|
|
261
|
+
end
|
|
256
262
|
|
|
257
263
|
# form parameters
|
|
258
264
|
form_params = opts[:form_params] || {}
|
|
@@ -380,7 +386,10 @@ module ElasticEmail
|
|
|
380
386
|
# HTTP header 'Accept' (if needed)
|
|
381
387
|
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
|
382
388
|
# HTTP header 'Content-Type'
|
|
383
|
-
|
|
389
|
+
content_type = @api_client.select_header_content_type(['application/json'])
|
|
390
|
+
if !content_type.nil?
|
|
391
|
+
header_params['Content-Type'] = content_type
|
|
392
|
+
end
|
|
384
393
|
|
|
385
394
|
# form parameters
|
|
386
395
|
form_params = opts[:form_params] || {}
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
=begin
|
|
2
2
|
#Elastic Email REST API
|
|
3
3
|
|
|
4
|
-
#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.
|
|
4
|
+
#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. 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>
|
|
5
5
|
|
|
6
6
|
The version of the OpenAPI document: 4.0.0
|
|
7
7
|
Contact: support@elasticemail.com
|
|
8
8
|
Generated by: https://openapi-generator.tech
|
|
9
|
-
OpenAPI Generator version:
|
|
9
|
+
OpenAPI Generator version: 6.0.0
|
|
10
10
|
|
|
11
11
|
=end
|
|
12
12
|
|
|
@@ -20,7 +20,7 @@ module ElasticEmail
|
|
|
20
20
|
@api_client = api_client
|
|
21
21
|
end
|
|
22
22
|
# Get Bounce List
|
|
23
|
-
# Retrieve your list of bounced emails. Required Access Level: ViewContacts
|
|
23
|
+
# Retrieve your list of bounced emails. Required Access Level: ViewContacts, ViewSuppressions
|
|
24
24
|
# @param [Hash] opts the optional parameters
|
|
25
25
|
# @option opts [String] :search Text fragment used for searching.
|
|
26
26
|
# @option opts [Integer] :limit Maximum number of returned items.
|
|
@@ -32,7 +32,7 @@ module ElasticEmail
|
|
|
32
32
|
end
|
|
33
33
|
|
|
34
34
|
# Get Bounce List
|
|
35
|
-
# Retrieve your list of bounced emails. Required Access Level: ViewContacts
|
|
35
|
+
# Retrieve your list of bounced emails. Required Access Level: ViewContacts, ViewSuppressions
|
|
36
36
|
# @param [Hash] opts the optional parameters
|
|
37
37
|
# @option opts [String] :search Text fragment used for searching.
|
|
38
38
|
# @option opts [Integer] :limit Maximum number of returned items.
|
|
@@ -86,7 +86,7 @@ module ElasticEmail
|
|
|
86
86
|
end
|
|
87
87
|
|
|
88
88
|
# Add Bounces Async
|
|
89
|
-
# Add Bounced. Required Access Level: ModifyContacts
|
|
89
|
+
# Add Bounced. Required Access Level: ModifyContacts, ModifySuppressions
|
|
90
90
|
# @param [Hash] opts the optional parameters
|
|
91
91
|
# @option opts [File] :file
|
|
92
92
|
# @return [nil]
|
|
@@ -96,7 +96,7 @@ module ElasticEmail
|
|
|
96
96
|
end
|
|
97
97
|
|
|
98
98
|
# Add Bounces Async
|
|
99
|
-
# Add Bounced. Required Access Level: ModifyContacts
|
|
99
|
+
# Add Bounced. Required Access Level: ModifyContacts, ModifySuppressions
|
|
100
100
|
# @param [Hash] opts the optional parameters
|
|
101
101
|
# @option opts [File] :file
|
|
102
102
|
# @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers
|
|
@@ -113,7 +113,10 @@ module ElasticEmail
|
|
|
113
113
|
# header parameters
|
|
114
114
|
header_params = opts[:header_params] || {}
|
|
115
115
|
# HTTP header 'Content-Type'
|
|
116
|
-
|
|
116
|
+
content_type = @api_client.select_header_content_type(['multipart/form-data'])
|
|
117
|
+
if !content_type.nil?
|
|
118
|
+
header_params['Content-Type'] = content_type
|
|
119
|
+
end
|
|
117
120
|
|
|
118
121
|
# form parameters
|
|
119
122
|
form_params = opts[:form_params] || {}
|
|
@@ -146,7 +149,7 @@ module ElasticEmail
|
|
|
146
149
|
end
|
|
147
150
|
|
|
148
151
|
# Add Bounces
|
|
149
|
-
# Add Bounced. Required Access Level: ModifyContacts
|
|
152
|
+
# Add Bounced. Required Access Level: ModifyContacts, ModifySuppressions
|
|
150
153
|
# @param request_body [Array<String>] Emails to add as bounces. Limited to 1000 per request
|
|
151
154
|
# @param [Hash] opts the optional parameters
|
|
152
155
|
# @return [Array<Suppression>]
|
|
@@ -156,7 +159,7 @@ module ElasticEmail
|
|
|
156
159
|
end
|
|
157
160
|
|
|
158
161
|
# Add Bounces
|
|
159
|
-
# Add Bounced. Required Access Level: ModifyContacts
|
|
162
|
+
# Add Bounced. Required Access Level: ModifyContacts, ModifySuppressions
|
|
160
163
|
# @param request_body [Array<String>] Emails to add as bounces. Limited to 1000 per request
|
|
161
164
|
# @param [Hash] opts the optional parameters
|
|
162
165
|
# @return [Array<(Array<Suppression>, Integer, Hash)>] Array<Suppression> data, response status code and response headers
|
|
@@ -179,7 +182,10 @@ module ElasticEmail
|
|
|
179
182
|
# HTTP header 'Accept' (if needed)
|
|
180
183
|
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
|
181
184
|
# HTTP header 'Content-Type'
|
|
182
|
-
|
|
185
|
+
content_type = @api_client.select_header_content_type(['application/json'])
|
|
186
|
+
if !content_type.nil?
|
|
187
|
+
header_params['Content-Type'] = content_type
|
|
188
|
+
end
|
|
183
189
|
|
|
184
190
|
# form parameters
|
|
185
191
|
form_params = opts[:form_params] || {}
|
|
@@ -211,7 +217,7 @@ module ElasticEmail
|
|
|
211
217
|
end
|
|
212
218
|
|
|
213
219
|
# Delete Suppression
|
|
214
|
-
# Delete Suppression. Required Access Level: ViewContacts
|
|
220
|
+
# Delete Suppression. Required Access Level: ViewContacts, ViewSuppressions
|
|
215
221
|
# @param email [String] Proper email address.
|
|
216
222
|
# @param [Hash] opts the optional parameters
|
|
217
223
|
# @return [nil]
|
|
@@ -221,7 +227,7 @@ module ElasticEmail
|
|
|
221
227
|
end
|
|
222
228
|
|
|
223
229
|
# Delete Suppression
|
|
224
|
-
# Delete Suppression. Required Access Level: ViewContacts
|
|
230
|
+
# Delete Suppression. Required Access Level: ViewContacts, ViewSuppressions
|
|
225
231
|
# @param email [String] Proper email address.
|
|
226
232
|
# @param [Hash] opts the optional parameters
|
|
227
233
|
# @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers
|
|
@@ -272,7 +278,7 @@ module ElasticEmail
|
|
|
272
278
|
end
|
|
273
279
|
|
|
274
280
|
# Get Suppression
|
|
275
|
-
# Retrieve your suppression. Required Access Level: ViewContacts
|
|
281
|
+
# Retrieve your suppression. Required Access Level: ViewContacts, ViewSuppressions
|
|
276
282
|
# @param email [String] Proper email address.
|
|
277
283
|
# @param [Hash] opts the optional parameters
|
|
278
284
|
# @return [Suppression]
|
|
@@ -282,7 +288,7 @@ module ElasticEmail
|
|
|
282
288
|
end
|
|
283
289
|
|
|
284
290
|
# Get Suppression
|
|
285
|
-
# Retrieve your suppression. Required Access Level: ViewContacts
|
|
291
|
+
# Retrieve your suppression. Required Access Level: ViewContacts, ViewSuppressions
|
|
286
292
|
# @param email [String] Proper email address.
|
|
287
293
|
# @param [Hash] opts the optional parameters
|
|
288
294
|
# @return [Array<(Suppression, Integer, Hash)>] Suppression data, response status code and response headers
|
|
@@ -335,7 +341,7 @@ module ElasticEmail
|
|
|
335
341
|
end
|
|
336
342
|
|
|
337
343
|
# Get Complaints List
|
|
338
|
-
# Retrieve your list of complaints. Required Access Level: ViewContacts
|
|
344
|
+
# Retrieve your list of complaints. Required Access Level: ViewContacts, ViewSuppressions
|
|
339
345
|
# @param [Hash] opts the optional parameters
|
|
340
346
|
# @option opts [String] :search Text fragment used for searching.
|
|
341
347
|
# @option opts [Integer] :limit Maximum number of returned items.
|
|
@@ -347,7 +353,7 @@ module ElasticEmail
|
|
|
347
353
|
end
|
|
348
354
|
|
|
349
355
|
# Get Complaints List
|
|
350
|
-
# Retrieve your list of complaints. Required Access Level: ViewContacts
|
|
356
|
+
# Retrieve your list of complaints. Required Access Level: ViewContacts, ViewSuppressions
|
|
351
357
|
# @param [Hash] opts the optional parameters
|
|
352
358
|
# @option opts [String] :search Text fragment used for searching.
|
|
353
359
|
# @option opts [Integer] :limit Maximum number of returned items.
|
|
@@ -401,7 +407,7 @@ module ElasticEmail
|
|
|
401
407
|
end
|
|
402
408
|
|
|
403
409
|
# Add Complaints Async
|
|
404
|
-
# Add Complaints. Required Access Level: ModifyContacts
|
|
410
|
+
# Add Complaints. Required Access Level: ModifyContacts, ModifySuppressions
|
|
405
411
|
# @param [Hash] opts the optional parameters
|
|
406
412
|
# @option opts [File] :file
|
|
407
413
|
# @return [nil]
|
|
@@ -411,7 +417,7 @@ module ElasticEmail
|
|
|
411
417
|
end
|
|
412
418
|
|
|
413
419
|
# Add Complaints Async
|
|
414
|
-
# Add Complaints. Required Access Level: ModifyContacts
|
|
420
|
+
# Add Complaints. Required Access Level: ModifyContacts, ModifySuppressions
|
|
415
421
|
# @param [Hash] opts the optional parameters
|
|
416
422
|
# @option opts [File] :file
|
|
417
423
|
# @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers
|
|
@@ -428,7 +434,10 @@ module ElasticEmail
|
|
|
428
434
|
# header parameters
|
|
429
435
|
header_params = opts[:header_params] || {}
|
|
430
436
|
# HTTP header 'Content-Type'
|
|
431
|
-
|
|
437
|
+
content_type = @api_client.select_header_content_type(['multipart/form-data'])
|
|
438
|
+
if !content_type.nil?
|
|
439
|
+
header_params['Content-Type'] = content_type
|
|
440
|
+
end
|
|
432
441
|
|
|
433
442
|
# form parameters
|
|
434
443
|
form_params = opts[:form_params] || {}
|
|
@@ -461,7 +470,7 @@ module ElasticEmail
|
|
|
461
470
|
end
|
|
462
471
|
|
|
463
472
|
# Add Complaints
|
|
464
|
-
# Add Complaints. Required Access Level: ModifyContacts
|
|
473
|
+
# Add Complaints. Required Access Level: ModifyContacts, ModifySuppressions
|
|
465
474
|
# @param request_body [Array<String>] Emails to add as complaints. Limited to 1000 per request
|
|
466
475
|
# @param [Hash] opts the optional parameters
|
|
467
476
|
# @return [Array<Suppression>]
|
|
@@ -471,7 +480,7 @@ module ElasticEmail
|
|
|
471
480
|
end
|
|
472
481
|
|
|
473
482
|
# Add Complaints
|
|
474
|
-
# Add Complaints. Required Access Level: ModifyContacts
|
|
483
|
+
# Add Complaints. Required Access Level: ModifyContacts, ModifySuppressions
|
|
475
484
|
# @param request_body [Array<String>] Emails to add as complaints. Limited to 1000 per request
|
|
476
485
|
# @param [Hash] opts the optional parameters
|
|
477
486
|
# @return [Array<(Array<Suppression>, Integer, Hash)>] Array<Suppression> data, response status code and response headers
|
|
@@ -494,7 +503,10 @@ module ElasticEmail
|
|
|
494
503
|
# HTTP header 'Accept' (if needed)
|
|
495
504
|
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
|
496
505
|
# HTTP header 'Content-Type'
|
|
497
|
-
|
|
506
|
+
content_type = @api_client.select_header_content_type(['application/json'])
|
|
507
|
+
if !content_type.nil?
|
|
508
|
+
header_params['Content-Type'] = content_type
|
|
509
|
+
end
|
|
498
510
|
|
|
499
511
|
# form parameters
|
|
500
512
|
form_params = opts[:form_params] || {}
|
|
@@ -526,7 +538,7 @@ module ElasticEmail
|
|
|
526
538
|
end
|
|
527
539
|
|
|
528
540
|
# Get Suppressions
|
|
529
|
-
# Retrieve your suppressions. Required Access Level: ViewContacts
|
|
541
|
+
# Retrieve your suppressions. Required Access Level: ViewContacts, ViewSuppressions
|
|
530
542
|
# @param [Hash] opts the optional parameters
|
|
531
543
|
# @option opts [Integer] :limit Maximum number of returned items.
|
|
532
544
|
# @option opts [Integer] :offset How many items should be returned ahead.
|
|
@@ -537,7 +549,7 @@ module ElasticEmail
|
|
|
537
549
|
end
|
|
538
550
|
|
|
539
551
|
# Get Suppressions
|
|
540
|
-
# Retrieve your suppressions. Required Access Level: ViewContacts
|
|
552
|
+
# Retrieve your suppressions. Required Access Level: ViewContacts, ViewSuppressions
|
|
541
553
|
# @param [Hash] opts the optional parameters
|
|
542
554
|
# @option opts [Integer] :limit Maximum number of returned items.
|
|
543
555
|
# @option opts [Integer] :offset How many items should be returned ahead.
|
|
@@ -589,7 +601,7 @@ module ElasticEmail
|
|
|
589
601
|
end
|
|
590
602
|
|
|
591
603
|
# Get Unsubscribes List
|
|
592
|
-
# Retrieve your list of unsubscribes. Required Access Level: ViewContacts
|
|
604
|
+
# Retrieve your list of unsubscribes. Required Access Level: ViewContacts, ViewSuppressions
|
|
593
605
|
# @param [Hash] opts the optional parameters
|
|
594
606
|
# @option opts [String] :search Text fragment used for searching.
|
|
595
607
|
# @option opts [Integer] :limit Maximum number of returned items.
|
|
@@ -601,7 +613,7 @@ module ElasticEmail
|
|
|
601
613
|
end
|
|
602
614
|
|
|
603
615
|
# Get Unsubscribes List
|
|
604
|
-
# Retrieve your list of unsubscribes. Required Access Level: ViewContacts
|
|
616
|
+
# Retrieve your list of unsubscribes. Required Access Level: ViewContacts, ViewSuppressions
|
|
605
617
|
# @param [Hash] opts the optional parameters
|
|
606
618
|
# @option opts [String] :search Text fragment used for searching.
|
|
607
619
|
# @option opts [Integer] :limit Maximum number of returned items.
|
|
@@ -655,7 +667,7 @@ module ElasticEmail
|
|
|
655
667
|
end
|
|
656
668
|
|
|
657
669
|
# Add Unsubscribes Async
|
|
658
|
-
# Add Unsubscribes. Required Access Level: ModifyContacts
|
|
670
|
+
# Add Unsubscribes. Required Access Level: ModifyContacts, ModifySuppressions
|
|
659
671
|
# @param [Hash] opts the optional parameters
|
|
660
672
|
# @option opts [File] :file
|
|
661
673
|
# @return [nil]
|
|
@@ -665,7 +677,7 @@ module ElasticEmail
|
|
|
665
677
|
end
|
|
666
678
|
|
|
667
679
|
# Add Unsubscribes Async
|
|
668
|
-
# Add Unsubscribes. Required Access Level: ModifyContacts
|
|
680
|
+
# Add Unsubscribes. Required Access Level: ModifyContacts, ModifySuppressions
|
|
669
681
|
# @param [Hash] opts the optional parameters
|
|
670
682
|
# @option opts [File] :file
|
|
671
683
|
# @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers
|
|
@@ -682,7 +694,10 @@ module ElasticEmail
|
|
|
682
694
|
# header parameters
|
|
683
695
|
header_params = opts[:header_params] || {}
|
|
684
696
|
# HTTP header 'Content-Type'
|
|
685
|
-
|
|
697
|
+
content_type = @api_client.select_header_content_type(['multipart/form-data'])
|
|
698
|
+
if !content_type.nil?
|
|
699
|
+
header_params['Content-Type'] = content_type
|
|
700
|
+
end
|
|
686
701
|
|
|
687
702
|
# form parameters
|
|
688
703
|
form_params = opts[:form_params] || {}
|
|
@@ -715,7 +730,7 @@ module ElasticEmail
|
|
|
715
730
|
end
|
|
716
731
|
|
|
717
732
|
# Add Unsubscribes
|
|
718
|
-
# Add Unsubscribes. Required Access Level: ModifyContacts
|
|
733
|
+
# Add Unsubscribes. Required Access Level: ModifyContacts, ModifySuppressions
|
|
719
734
|
# @param request_body [Array<String>] Emails to add as unsubscribes. Limited to 1000 per request
|
|
720
735
|
# @param [Hash] opts the optional parameters
|
|
721
736
|
# @return [Array<Suppression>]
|
|
@@ -725,7 +740,7 @@ module ElasticEmail
|
|
|
725
740
|
end
|
|
726
741
|
|
|
727
742
|
# Add Unsubscribes
|
|
728
|
-
# Add Unsubscribes. Required Access Level: ModifyContacts
|
|
743
|
+
# Add Unsubscribes. Required Access Level: ModifyContacts, ModifySuppressions
|
|
729
744
|
# @param request_body [Array<String>] Emails to add as unsubscribes. Limited to 1000 per request
|
|
730
745
|
# @param [Hash] opts the optional parameters
|
|
731
746
|
# @return [Array<(Array<Suppression>, Integer, Hash)>] Array<Suppression> data, response status code and response headers
|
|
@@ -748,7 +763,10 @@ module ElasticEmail
|
|
|
748
763
|
# HTTP header 'Accept' (if needed)
|
|
749
764
|
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
|
750
765
|
# HTTP header 'Content-Type'
|
|
751
|
-
|
|
766
|
+
content_type = @api_client.select_header_content_type(['application/json'])
|
|
767
|
+
if !content_type.nil?
|
|
768
|
+
header_params['Content-Type'] = content_type
|
|
769
|
+
end
|
|
752
770
|
|
|
753
771
|
# form parameters
|
|
754
772
|
form_params = opts[:form_params] || {}
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
=begin
|
|
2
2
|
#Elastic Email REST API
|
|
3
3
|
|
|
4
|
-
#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.
|
|
4
|
+
#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. 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>
|
|
5
5
|
|
|
6
6
|
The version of the OpenAPI document: 4.0.0
|
|
7
7
|
Contact: support@elasticemail.com
|
|
8
8
|
Generated by: https://openapi-generator.tech
|
|
9
|
-
OpenAPI Generator version:
|
|
9
|
+
OpenAPI Generator version: 6.0.0
|
|
10
10
|
|
|
11
11
|
=end
|
|
12
12
|
|
|
@@ -183,7 +183,10 @@ module ElasticEmail
|
|
|
183
183
|
# HTTP header 'Accept' (if needed)
|
|
184
184
|
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
|
185
185
|
# HTTP header 'Content-Type'
|
|
186
|
-
|
|
186
|
+
content_type = @api_client.select_header_content_type(['application/json'])
|
|
187
|
+
if !content_type.nil?
|
|
188
|
+
header_params['Content-Type'] = content_type
|
|
189
|
+
end
|
|
187
190
|
|
|
188
191
|
# form parameters
|
|
189
192
|
form_params = opts[:form_params] || {}
|
|
@@ -321,7 +324,10 @@ module ElasticEmail
|
|
|
321
324
|
# HTTP header 'Accept' (if needed)
|
|
322
325
|
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
|
323
326
|
# HTTP header 'Content-Type'
|
|
324
|
-
|
|
327
|
+
content_type = @api_client.select_header_content_type(['application/json'])
|
|
328
|
+
if !content_type.nil?
|
|
329
|
+
header_params['Content-Type'] = content_type
|
|
330
|
+
end
|
|
325
331
|
|
|
326
332
|
# form parameters
|
|
327
333
|
form_params = opts[:form_params] || {}
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
=begin
|
|
2
2
|
#Elastic Email REST API
|
|
3
3
|
|
|
4
|
-
#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.
|
|
4
|
+
#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. 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>
|
|
5
5
|
|
|
6
6
|
The version of the OpenAPI document: 4.0.0
|
|
7
7
|
Contact: support@elasticemail.com
|
|
8
8
|
Generated by: https://openapi-generator.tech
|
|
9
|
-
OpenAPI Generator version:
|
|
9
|
+
OpenAPI Generator version: 6.0.0
|
|
10
10
|
|
|
11
11
|
=end
|
|
12
12
|
|
|
@@ -490,7 +490,10 @@ module ElasticEmail
|
|
|
490
490
|
# HTTP header 'Accept' (if needed)
|
|
491
491
|
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
|
492
492
|
# HTTP header 'Content-Type'
|
|
493
|
-
|
|
493
|
+
content_type = @api_client.select_header_content_type(['multipart/form-data'])
|
|
494
|
+
if !content_type.nil?
|
|
495
|
+
header_params['Content-Type'] = content_type
|
|
496
|
+
end
|
|
494
497
|
|
|
495
498
|
# form parameters
|
|
496
499
|
form_params = opts[:form_params] || {}
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
=begin
|
|
2
2
|
#Elastic Email REST API
|
|
3
3
|
|
|
4
|
-
#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.
|
|
4
|
+
#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. 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>
|
|
5
5
|
|
|
6
6
|
The version of the OpenAPI document: 4.0.0
|
|
7
7
|
Contact: support@elasticemail.com
|
|
8
8
|
Generated by: https://openapi-generator.tech
|
|
9
|
-
OpenAPI Generator version:
|
|
9
|
+
OpenAPI Generator version: 6.0.0
|
|
10
10
|
|
|
11
11
|
=end
|
|
12
12
|
|
|
@@ -93,6 +93,7 @@ module ElasticEmail
|
|
|
93
93
|
header_params = @default_headers.merge(opts[:header_params] || {})
|
|
94
94
|
query_params = opts[:query_params] || {}
|
|
95
95
|
form_params = opts[:form_params] || {}
|
|
96
|
+
follow_location = opts[:follow_location] || true
|
|
96
97
|
|
|
97
98
|
update_params_for_auth! header_params, query_params, opts[:auth_names]
|
|
98
99
|
|
|
@@ -109,7 +110,8 @@ module ElasticEmail
|
|
|
109
110
|
:ssl_verifyhost => _verify_ssl_host,
|
|
110
111
|
:sslcert => @config.cert_file,
|
|
111
112
|
:sslkey => @config.key_file,
|
|
112
|
-
:verbose => @config.debugging
|
|
113
|
+
:verbose => @config.debugging,
|
|
114
|
+
:followlocation => follow_location
|
|
113
115
|
}
|
|
114
116
|
|
|
115
117
|
# set custom cert, if provided
|
|
@@ -296,7 +298,7 @@ module ElasticEmail
|
|
|
296
298
|
@config.base_url(opts[:operation]) + path
|
|
297
299
|
end
|
|
298
300
|
|
|
299
|
-
# Update
|
|
301
|
+
# Update header and query params based on authentication settings.
|
|
300
302
|
#
|
|
301
303
|
# @param [Hash] header_params Header parameters
|
|
302
304
|
# @param [Hash] query_params Query parameters
|
|
@@ -335,8 +337,8 @@ module ElasticEmail
|
|
|
335
337
|
# @param [Array] content_types array for Content-Type
|
|
336
338
|
# @return [String] the Content-Type header (e.g. application/json)
|
|
337
339
|
def select_header_content_type(content_types)
|
|
338
|
-
#
|
|
339
|
-
return
|
|
340
|
+
# return nil by default
|
|
341
|
+
return if content_types.nil? || content_types.empty?
|
|
340
342
|
# use JSON when present, otherwise use the first one
|
|
341
343
|
json_content_type = content_types.find { |s| json_mime?(s) }
|
|
342
344
|
json_content_type || content_types.first
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
=begin
|
|
2
2
|
#Elastic Email REST API
|
|
3
3
|
|
|
4
|
-
#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.
|
|
4
|
+
#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. 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>
|
|
5
5
|
|
|
6
6
|
The version of the OpenAPI document: 4.0.0
|
|
7
7
|
Contact: support@elasticemail.com
|
|
8
8
|
Generated by: https://openapi-generator.tech
|
|
9
|
-
OpenAPI Generator version:
|
|
9
|
+
OpenAPI Generator version: 6.0.0
|
|
10
10
|
|
|
11
11
|
=end
|
|
12
12
|
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
=begin
|
|
2
2
|
#Elastic Email REST API
|
|
3
3
|
|
|
4
|
-
#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.
|
|
4
|
+
#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. 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>
|
|
5
5
|
|
|
6
6
|
The version of the OpenAPI document: 4.0.0
|
|
7
7
|
Contact: support@elasticemail.com
|
|
8
8
|
Generated by: https://openapi-generator.tech
|
|
9
|
-
OpenAPI Generator version:
|
|
9
|
+
OpenAPI Generator version: 6.0.0
|
|
10
10
|
|
|
11
11
|
=end
|
|
12
12
|
|
|
@@ -133,6 +133,7 @@ module ElasticEmail
|
|
|
133
133
|
# https://github.com/typhoeus/ethon/blob/master/lib/ethon/easy/queryable.rb#L96
|
|
134
134
|
attr_accessor :params_encoding
|
|
135
135
|
|
|
136
|
+
|
|
136
137
|
attr_accessor :inject_format
|
|
137
138
|
|
|
138
139
|
attr_accessor :force_ending_format
|
|
@@ -147,13 +148,13 @@ module ElasticEmail
|
|
|
147
148
|
@server_operation_variables = {}
|
|
148
149
|
@api_key = {}
|
|
149
150
|
@api_key_prefix = {}
|
|
150
|
-
@timeout = 0
|
|
151
151
|
@client_side_validation = true
|
|
152
152
|
@verify_ssl = true
|
|
153
153
|
@verify_ssl_host = true
|
|
154
|
-
@params_encoding = nil
|
|
155
154
|
@cert_file = nil
|
|
156
155
|
@key_file = nil
|
|
156
|
+
@timeout = 0
|
|
157
|
+
@params_encoding = nil
|
|
157
158
|
@debugging = false
|
|
158
159
|
@inject_format = false
|
|
159
160
|
@force_ending_format = false
|
|
@@ -273,5 +274,6 @@ module ElasticEmail
|
|
|
273
274
|
|
|
274
275
|
url
|
|
275
276
|
end
|
|
277
|
+
|
|
276
278
|
end
|
|
277
279
|
end
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
=begin
|
|
2
2
|
#Elastic Email REST API
|
|
3
3
|
|
|
4
|
-
#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.
|
|
4
|
+
#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. 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>
|
|
5
5
|
|
|
6
6
|
The version of the OpenAPI document: 4.0.0
|
|
7
7
|
Contact: support@elasticemail.com
|
|
8
8
|
Generated by: https://openapi-generator.tech
|
|
9
|
-
OpenAPI Generator version:
|
|
9
|
+
OpenAPI Generator version: 6.0.0
|
|
10
10
|
|
|
11
11
|
=end
|
|
12
12
|
|
|
@@ -62,6 +62,10 @@ module ElasticEmail
|
|
|
62
62
|
VIEW_MARKETING = "ViewMarketing".freeze
|
|
63
63
|
VIEW_EMAIL_API = "ViewEmailApi".freeze
|
|
64
64
|
VIEW_INBOUND = "ViewInbound".freeze
|
|
65
|
+
MODIFY_LANDING_PAGES = "ModifyLandingPages".freeze
|
|
66
|
+
VIEW_LANDING_PAGES = "ViewLandingPages".freeze
|
|
67
|
+
MODIFY_SUPPRESSIONS = "ModifySuppressions".freeze
|
|
68
|
+
VIEW_SUPPRESSIONS = "ViewSuppressions".freeze
|
|
65
69
|
|
|
66
70
|
# Builds the enum from string
|
|
67
71
|
# @param [String] The enum value in the form of the string
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
=begin
|
|
2
2
|
#Elastic Email REST API
|
|
3
3
|
|
|
4
|
-
#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.
|
|
4
|
+
#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. 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>
|
|
5
5
|
|
|
6
6
|
The version of the OpenAPI document: 4.0.0
|
|
7
7
|
Contact: support@elasticemail.com
|
|
8
8
|
Generated by: https://openapi-generator.tech
|
|
9
|
-
OpenAPI Generator version:
|
|
9
|
+
OpenAPI Generator version: 6.0.0
|
|
10
10
|
|
|
11
11
|
=end
|
|
12
12
|
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
=begin
|
|
2
2
|
#Elastic Email REST API
|
|
3
3
|
|
|
4
|
-
#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.
|
|
4
|
+
#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. 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>
|
|
5
5
|
|
|
6
6
|
The version of the OpenAPI document: 4.0.0
|
|
7
7
|
Contact: support@elasticemail.com
|
|
8
8
|
Generated by: https://openapi-generator.tech
|
|
9
|
-
OpenAPI Generator version:
|
|
9
|
+
OpenAPI Generator version: 6.0.0
|
|
10
10
|
|
|
11
11
|
=end
|
|
12
12
|
|
|
@@ -165,6 +165,7 @@ module ElasticEmail
|
|
|
165
165
|
# @return [Object] Returns the model itself
|
|
166
166
|
def build_from_hash(attributes)
|
|
167
167
|
return nil unless attributes.is_a?(Hash)
|
|
168
|
+
attributes = attributes.transform_keys(&:to_sym)
|
|
168
169
|
self.class.openapi_types.each_pair do |key, type|
|
|
169
170
|
if attributes[self.class.attribute_map[key]].nil? && self.class.openapi_nullable.include?(key)
|
|
170
171
|
self.send("#{key}=", nil)
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
=begin
|
|
2
2
|
#Elastic Email REST API
|
|
3
3
|
|
|
4
|
-
#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.
|
|
4
|
+
#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. 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>
|
|
5
5
|
|
|
6
6
|
The version of the OpenAPI document: 4.0.0
|
|
7
7
|
Contact: support@elasticemail.com
|
|
8
8
|
Generated by: https://openapi-generator.tech
|
|
9
|
-
OpenAPI Generator version:
|
|
9
|
+
OpenAPI Generator version: 6.0.0
|
|
10
10
|
|
|
11
11
|
=end
|
|
12
12
|
|
|
@@ -164,6 +164,7 @@ module ElasticEmail
|
|
|
164
164
|
# @return [Object] Returns the model itself
|
|
165
165
|
def build_from_hash(attributes)
|
|
166
166
|
return nil unless attributes.is_a?(Hash)
|
|
167
|
+
attributes = attributes.transform_keys(&:to_sym)
|
|
167
168
|
self.class.openapi_types.each_pair do |key, type|
|
|
168
169
|
if attributes[self.class.attribute_map[key]].nil? && self.class.openapi_nullable.include?(key)
|
|
169
170
|
self.send("#{key}=", nil)
|