ElasticEmail 4.0.26 → 4.0.28
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/ElasticEmail.gemspec +2 -2
- data/README.md +24 -9
- data/VERSION +1 -1
- data/docs/Campaign.md +2 -0
- data/docs/CampaignOptions.md +3 -1
- data/docs/CampaignTemplate.md +2 -2
- data/docs/CampaignsApi.md +12 -12
- data/docs/Contact.md +2 -0
- data/docs/ContactsApi.md +18 -18
- data/docs/DomainsApi.md +16 -16
- data/docs/EmailContent.md +2 -2
- data/docs/EmailsApi.md +10 -10
- data/docs/EventsApi.md +14 -14
- data/docs/FilesApi.md +10 -10
- data/docs/InboundRouteApi.md +12 -12
- data/docs/ListsApi.md +16 -16
- data/docs/MessageAttachment.md +2 -2
- data/docs/RecipientEvent.md +2 -2
- data/docs/SecurityApi.md +30 -30
- data/docs/SegmentsApi.md +10 -10
- data/docs/StatisticsApi.md +10 -10
- data/docs/SubAccountsApi.md +12 -12
- data/docs/SuppressionsApi.md +24 -24
- data/docs/TemplatesApi.md +10 -10
- data/docs/VerificationsApi.md +25 -25
- data/docs/Webhook.md +42 -0
- data/docs/WebhookApi.md +372 -0
- data/docs/WebhookCreatePayload.md +34 -0
- data/docs/WebhookUpdatePayload.md +36 -0
- data/lib/ElasticEmail/api/campaigns_api.rb +6 -6
- data/lib/ElasticEmail/api/contacts_api.rb +8 -8
- data/lib/ElasticEmail/api/domains_api.rb +9 -9
- data/lib/ElasticEmail/api/emails_api.rb +7 -7
- data/lib/ElasticEmail/api/events_api.rb +9 -9
- data/lib/ElasticEmail/api/files_api.rb +6 -6
- data/lib/ElasticEmail/api/inbound_route_api.rb +7 -7
- data/lib/ElasticEmail/api/lists_api.rb +8 -8
- data/lib/ElasticEmail/api/security_api.rb +30 -30
- data/lib/ElasticEmail/api/segments_api.rb +6 -6
- data/lib/ElasticEmail/api/statistics_api.rb +7 -7
- data/lib/ElasticEmail/api/sub_accounts_api.rb +6 -6
- data/lib/ElasticEmail/api/suppressions_api.rb +10 -10
- data/lib/ElasticEmail/api/templates_api.rb +6 -6
- data/lib/ElasticEmail/api/verifications_api.rb +19 -19
- data/lib/ElasticEmail/api/webhook_api.rb +351 -0
- data/lib/ElasticEmail/api_client.rb +4 -4
- data/lib/ElasticEmail/api_error.rb +2 -2
- data/lib/ElasticEmail/configuration.rb +20 -3
- data/lib/ElasticEmail/models/access_level.rb +12 -3
- 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 +2 -2
- data/lib/ElasticEmail/models/body_content_type.rb +2 -2
- data/lib/ElasticEmail/models/body_part.rb +2 -2
- data/lib/ElasticEmail/models/campaign.rb +12 -3
- data/lib/ElasticEmail/models/campaign_options.rb +17 -6
- 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 +3 -3
- data/lib/ElasticEmail/models/certificate_validation_status.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 +12 -3
- data/lib/ElasticEmail/models/contact_activity.rb +2 -2
- data/lib/ElasticEmail/models/contact_payload.rb +2 -2
- data/lib/ElasticEmail/models/contact_source.rb +5 -3
- 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/domain_data.rb +2 -2
- data/lib/ElasticEmail/models/domain_detail.rb +2 -2
- data/lib/ElasticEmail/models/domain_owner.rb +2 -2
- data/lib/ElasticEmail/models/domain_payload.rb +2 -2
- data/lib/ElasticEmail/models/domain_update_payload.rb +2 -2
- data/lib/ElasticEmail/models/email_content.rb +3 -3
- data/lib/ElasticEmail/models/email_data.rb +2 -2
- data/lib/ElasticEmail/models/email_job_failed_status.rb +2 -2
- data/lib/ElasticEmail/models/email_job_status.rb +2 -2
- data/lib/ElasticEmail/models/email_message_data.rb +2 -2
- data/lib/ElasticEmail/models/email_predicted_validation_status.rb +2 -2
- data/lib/ElasticEmail/models/email_recipient.rb +2 -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 +2 -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 +2 -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 +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 +2 -2
- data/lib/ElasticEmail/models/file_upload_result.rb +2 -2
- data/lib/ElasticEmail/models/inbound_payload.rb +2 -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 +2 -2
- 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 +2 -2
- data/lib/ElasticEmail/models/message_attachment.rb +3 -3
- data/lib/ElasticEmail/models/message_category.rb +2 -2
- data/lib/ElasticEmail/models/message_category_enum.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 +3 -3
- data/lib/ElasticEmail/models/segment.rb +2 -2
- data/lib/ElasticEmail/models/segment_payload.rb +2 -2
- data/lib/ElasticEmail/models/smtp_credentials.rb +2 -2
- data/lib/ElasticEmail/models/smtp_credentials_payload.rb +2 -2
- data/lib/ElasticEmail/models/sort_order_item.rb +2 -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 +2 -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 +2 -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 +2 -2
- data/lib/ElasticEmail/models/template_scope.rb +2 -2
- data/lib/ElasticEmail/models/template_type.rb +10 -3
- data/lib/ElasticEmail/models/tracking_type.rb +2 -2
- data/lib/ElasticEmail/models/tracking_validation_status.rb +2 -2
- data/lib/ElasticEmail/models/transactional_recipient.rb +2 -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/models/webhook.rb +330 -0
- data/lib/ElasticEmail/models/webhook_create_payload.rb +303 -0
- data/lib/ElasticEmail/models/webhook_update_payload.rb +306 -0
- data/lib/ElasticEmail/version.rb +3 -3
- data/lib/ElasticEmail.rb +6 -2
- data/spec/api/campaigns_api_spec.rb +2 -2
- data/spec/api/contacts_api_spec.rb +2 -2
- data/spec/api/domains_api_spec.rb +2 -2
- data/spec/api/emails_api_spec.rb +2 -2
- data/spec/api/events_api_spec.rb +2 -2
- data/spec/api/files_api_spec.rb +2 -2
- data/spec/api/inbound_route_api_spec.rb +2 -2
- data/spec/api/lists_api_spec.rb +2 -2
- data/spec/api/security_api_spec.rb +12 -12
- data/spec/api/segments_api_spec.rb +2 -2
- data/spec/api/statistics_api_spec.rb +2 -2
- data/spec/api/sub_accounts_api_spec.rb +2 -2
- data/spec/api/suppressions_api_spec.rb +2 -2
- data/spec/api/templates_api_spec.rb +2 -2
- data/spec/api/verifications_api_spec.rb +7 -7
- data/spec/api/webhook_api_spec.rb +97 -0
- data/spec/models/access_level_spec.rb +2 -2
- data/spec/models/account_status_enum_spec.rb +2 -2
- data/spec/models/api_key_payload_spec.rb +2 -2
- data/spec/models/api_key_spec.rb +2 -2
- data/spec/models/body_content_type_spec.rb +2 -2
- data/spec/models/body_part_spec.rb +2 -2
- data/spec/models/campaign_options_spec.rb +8 -2
- data/spec/models/campaign_recipient_spec.rb +2 -2
- data/spec/models/campaign_spec.rb +8 -2
- data/spec/models/campaign_status_spec.rb +2 -2
- data/spec/models/campaign_template_spec.rb +2 -2
- data/spec/models/certificate_validation_status_spec.rb +2 -2
- data/spec/models/channel_log_status_summary_spec.rb +2 -2
- data/spec/models/compression_format_spec.rb +2 -2
- data/spec/models/consent_data_spec.rb +2 -2
- data/spec/models/consent_tracking_spec.rb +2 -2
- data/spec/models/contact_activity_spec.rb +2 -2
- data/spec/models/contact_payload_spec.rb +2 -2
- data/spec/models/contact_source_spec.rb +2 -2
- data/spec/models/contact_spec.rb +8 -2
- data/spec/models/contact_status_spec.rb +2 -2
- data/spec/models/contact_update_payload_spec.rb +2 -2
- data/spec/models/contacts_list_spec.rb +2 -2
- data/spec/models/delivery_optimization_type_spec.rb +2 -2
- data/spec/models/domain_data_spec.rb +2 -2
- data/spec/models/domain_detail_spec.rb +2 -2
- data/spec/models/domain_owner_spec.rb +2 -2
- data/spec/models/domain_payload_spec.rb +2 -2
- data/spec/models/domain_update_payload_spec.rb +2 -2
- data/spec/models/email_content_spec.rb +2 -2
- data/spec/models/email_data_spec.rb +2 -2
- data/spec/models/email_job_failed_status_spec.rb +2 -2
- data/spec/models/email_job_status_spec.rb +2 -2
- data/spec/models/email_message_data_spec.rb +2 -2
- data/spec/models/email_predicted_validation_status_spec.rb +2 -2
- data/spec/models/email_recipient_spec.rb +2 -2
- data/spec/models/email_send_spec.rb +2 -2
- data/spec/models/email_status_spec.rb +2 -2
- data/spec/models/email_transactional_message_data_spec.rb +2 -2
- data/spec/models/email_validation_result_spec.rb +2 -2
- data/spec/models/email_validation_status_spec.rb +2 -2
- data/spec/models/email_view_spec.rb +2 -2
- data/spec/models/emails_payload_spec.rb +2 -2
- data/spec/models/encoding_type_spec.rb +2 -2
- data/spec/models/event_type_spec.rb +2 -2
- data/spec/models/events_order_by_spec.rb +2 -2
- data/spec/models/export_file_formats_spec.rb +2 -2
- data/spec/models/export_link_spec.rb +2 -2
- data/spec/models/export_status_spec.rb +2 -2
- data/spec/models/file_info_spec.rb +2 -2
- data/spec/models/file_payload_spec.rb +2 -2
- data/spec/models/file_upload_result_spec.rb +2 -2
- data/spec/models/inbound_payload_spec.rb +2 -2
- data/spec/models/inbound_route_action_type_spec.rb +2 -2
- data/spec/models/inbound_route_filter_type_spec.rb +2 -2
- data/spec/models/inbound_route_spec.rb +2 -2
- data/spec/models/list_payload_spec.rb +2 -2
- data/spec/models/list_update_payload_spec.rb +2 -2
- data/spec/models/log_job_status_spec.rb +2 -2
- data/spec/models/log_status_summary_spec.rb +2 -2
- data/spec/models/merge_email_payload_spec.rb +2 -2
- data/spec/models/message_attachment_spec.rb +2 -2
- data/spec/models/message_category_enum_spec.rb +2 -2
- data/spec/models/message_category_spec.rb +2 -2
- data/spec/models/new_api_key_spec.rb +2 -2
- data/spec/models/new_smtp_credentials_spec.rb +2 -2
- data/spec/models/options_spec.rb +2 -2
- data/spec/models/recipient_event_spec.rb +2 -2
- data/spec/models/segment_payload_spec.rb +2 -2
- data/spec/models/segment_spec.rb +2 -2
- data/spec/models/smtp_credentials_payload_spec.rb +2 -2
- data/spec/models/smtp_credentials_spec.rb +2 -2
- data/spec/models/sort_order_item_spec.rb +2 -2
- data/spec/models/split_optimization_type_spec.rb +2 -2
- data/spec/models/split_options_spec.rb +2 -2
- data/spec/models/sub_account_info_spec.rb +2 -2
- data/spec/models/subaccount_email_credits_payload_spec.rb +2 -2
- data/spec/models/subaccount_email_settings_payload_spec.rb +2 -2
- data/spec/models/subaccount_email_settings_spec.rb +2 -2
- data/spec/models/subaccount_payload_spec.rb +2 -2
- data/spec/models/subaccount_settings_info_payload_spec.rb +2 -2
- data/spec/models/subaccount_settings_info_spec.rb +2 -2
- data/spec/models/suppression_spec.rb +2 -2
- data/spec/models/template_payload_spec.rb +2 -2
- data/spec/models/template_scope_spec.rb +2 -2
- data/spec/models/template_spec.rb +2 -2
- data/spec/models/template_type_spec.rb +2 -2
- data/spec/models/tracking_type_spec.rb +2 -2
- data/spec/models/tracking_validation_status_spec.rb +2 -2
- data/spec/models/transactional_recipient_spec.rb +2 -2
- data/spec/models/utm_spec.rb +2 -2
- data/spec/models/verification_file_result_details_spec.rb +2 -2
- data/spec/models/verification_file_result_spec.rb +2 -2
- data/spec/models/verification_status_spec.rb +2 -2
- data/spec/models/webhook_create_payload_spec.rb +84 -0
- data/spec/models/webhook_spec.rb +108 -0
- data/spec/models/webhook_update_payload_spec.rb +90 -0
- data/spec/spec_helper.rb +2 -2
- metadata +110 -94
|
@@ -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
|
|
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://app.elasticemail.com/marketing/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
|
-
Generator version: 7.
|
|
9
|
+
Generator version: 7.11.0
|
|
10
10
|
|
|
11
11
|
=end
|
|
12
12
|
|
|
@@ -51,7 +51,7 @@ module ElasticEmail
|
|
|
51
51
|
# header parameters
|
|
52
52
|
header_params = opts[:header_params] || {}
|
|
53
53
|
# HTTP header 'Accept' (if needed)
|
|
54
|
-
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
|
54
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
|
55
55
|
|
|
56
56
|
# form parameters
|
|
57
57
|
form_params = opts[:form_params] || {}
|
|
@@ -144,7 +144,7 @@ module ElasticEmail
|
|
|
144
144
|
# header parameters
|
|
145
145
|
header_params = opts[:header_params] || {}
|
|
146
146
|
# HTTP header 'Accept' (if needed)
|
|
147
|
-
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
|
147
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
|
148
148
|
|
|
149
149
|
# form parameters
|
|
150
150
|
form_params = opts[:form_params] || {}
|
|
@@ -207,7 +207,7 @@ module ElasticEmail
|
|
|
207
207
|
# header parameters
|
|
208
208
|
header_params = opts[:header_params] || {}
|
|
209
209
|
# HTTP header 'Accept' (if needed)
|
|
210
|
-
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
|
210
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
|
211
211
|
# HTTP header 'Content-Type'
|
|
212
212
|
content_type = @api_client.select_header_content_type(['application/json'])
|
|
213
213
|
if !content_type.nil?
|
|
@@ -275,7 +275,7 @@ module ElasticEmail
|
|
|
275
275
|
# header parameters
|
|
276
276
|
header_params = opts[:header_params] || {}
|
|
277
277
|
# HTTP header 'Accept' (if needed)
|
|
278
|
-
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
|
278
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
|
279
279
|
# HTTP header 'Content-Type'
|
|
280
280
|
content_type = @api_client.select_header_content_type(['application/json'])
|
|
281
281
|
if !content_type.nil?
|
|
@@ -343,7 +343,7 @@ module ElasticEmail
|
|
|
343
343
|
# header parameters
|
|
344
344
|
header_params = opts[:header_params] || {}
|
|
345
345
|
# HTTP header 'Accept' (if needed)
|
|
346
|
-
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
|
346
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
|
347
347
|
# HTTP header 'Content-Type'
|
|
348
348
|
content_type = @api_client.select_header_content_type(['application/json'])
|
|
349
349
|
if !content_type.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
|
|
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://app.elasticemail.com/marketing/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
|
-
Generator version: 7.
|
|
9
|
+
Generator version: 7.11.0
|
|
10
10
|
|
|
11
11
|
=end
|
|
12
12
|
|
|
@@ -66,7 +66,7 @@ module ElasticEmail
|
|
|
66
66
|
# header parameters
|
|
67
67
|
header_params = opts[:header_params] || {}
|
|
68
68
|
# HTTP header 'Accept' (if needed)
|
|
69
|
-
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
|
69
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
|
70
70
|
|
|
71
71
|
# form parameters
|
|
72
72
|
form_params = opts[:form_params] || {}
|
|
@@ -147,7 +147,7 @@ module ElasticEmail
|
|
|
147
147
|
# header parameters
|
|
148
148
|
header_params = opts[:header_params] || {}
|
|
149
149
|
# HTTP header 'Accept' (if needed)
|
|
150
|
-
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
|
150
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
|
151
151
|
|
|
152
152
|
# form parameters
|
|
153
153
|
form_params = opts[:form_params] || {}
|
|
@@ -228,7 +228,7 @@ module ElasticEmail
|
|
|
228
228
|
# header parameters
|
|
229
229
|
header_params = opts[:header_params] || {}
|
|
230
230
|
# HTTP header 'Accept' (if needed)
|
|
231
|
-
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
|
231
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
|
232
232
|
|
|
233
233
|
# form parameters
|
|
234
234
|
form_params = opts[:form_params] || {}
|
|
@@ -291,7 +291,7 @@ module ElasticEmail
|
|
|
291
291
|
# header parameters
|
|
292
292
|
header_params = opts[:header_params] || {}
|
|
293
293
|
# HTTP header 'Accept' (if needed)
|
|
294
|
-
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
|
294
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
|
295
295
|
|
|
296
296
|
# form parameters
|
|
297
297
|
form_params = opts[:form_params] || {}
|
|
@@ -354,7 +354,7 @@ module ElasticEmail
|
|
|
354
354
|
# header parameters
|
|
355
355
|
header_params = opts[:header_params] || {}
|
|
356
356
|
# HTTP header 'Accept' (if needed)
|
|
357
|
-
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
|
357
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
|
358
358
|
|
|
359
359
|
# form parameters
|
|
360
360
|
form_params = opts[:form_params] || {}
|
|
@@ -429,7 +429,7 @@ module ElasticEmail
|
|
|
429
429
|
# header parameters
|
|
430
430
|
header_params = opts[:header_params] || {}
|
|
431
431
|
# HTTP header 'Accept' (if needed)
|
|
432
|
-
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
|
432
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
|
433
433
|
|
|
434
434
|
# form parameters
|
|
435
435
|
form_params = opts[:form_params] || {}
|
|
@@ -504,7 +504,7 @@ module ElasticEmail
|
|
|
504
504
|
# header parameters
|
|
505
505
|
header_params = opts[:header_params] || {}
|
|
506
506
|
# HTTP header 'Accept' (if needed)
|
|
507
|
-
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
|
507
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
|
508
508
|
|
|
509
509
|
# form parameters
|
|
510
510
|
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
|
|
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://app.elasticemail.com/marketing/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
|
-
Generator version: 7.
|
|
9
|
+
Generator version: 7.11.0
|
|
10
10
|
|
|
11
11
|
=end
|
|
12
12
|
|
|
@@ -112,7 +112,7 @@ module ElasticEmail
|
|
|
112
112
|
# header parameters
|
|
113
113
|
header_params = opts[:header_params] || {}
|
|
114
114
|
# HTTP header 'Accept' (if needed)
|
|
115
|
-
header_params['Accept'] = @api_client.select_header_accept(['application/*'])
|
|
115
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/*']) unless header_params['Accept']
|
|
116
116
|
|
|
117
117
|
# form parameters
|
|
118
118
|
form_params = opts[:form_params] || {}
|
|
@@ -175,7 +175,7 @@ module ElasticEmail
|
|
|
175
175
|
# header parameters
|
|
176
176
|
header_params = opts[:header_params] || {}
|
|
177
177
|
# HTTP header 'Accept' (if needed)
|
|
178
|
-
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
|
178
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
|
179
179
|
|
|
180
180
|
# form parameters
|
|
181
181
|
form_params = opts[:form_params] || {}
|
|
@@ -238,7 +238,7 @@ module ElasticEmail
|
|
|
238
238
|
# header parameters
|
|
239
239
|
header_params = opts[:header_params] || {}
|
|
240
240
|
# HTTP header 'Accept' (if needed)
|
|
241
|
-
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
|
241
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
|
242
242
|
|
|
243
243
|
# form parameters
|
|
244
244
|
form_params = opts[:form_params] || {}
|
|
@@ -304,7 +304,7 @@ module ElasticEmail
|
|
|
304
304
|
# header parameters
|
|
305
305
|
header_params = opts[:header_params] || {}
|
|
306
306
|
# HTTP header 'Accept' (if needed)
|
|
307
|
-
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
|
307
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
|
308
308
|
# HTTP header 'Content-Type'
|
|
309
309
|
content_type = @api_client.select_header_content_type(['application/json'])
|
|
310
310
|
if !content_type.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
|
|
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://app.elasticemail.com/marketing/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
|
-
Generator version: 7.
|
|
9
|
+
Generator version: 7.11.0
|
|
10
10
|
|
|
11
11
|
=end
|
|
12
12
|
|
|
@@ -112,7 +112,7 @@ module ElasticEmail
|
|
|
112
112
|
# header parameters
|
|
113
113
|
header_params = opts[:header_params] || {}
|
|
114
114
|
# HTTP header 'Accept' (if needed)
|
|
115
|
-
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
|
115
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
|
116
116
|
|
|
117
117
|
# form parameters
|
|
118
118
|
form_params = opts[:form_params] || {}
|
|
@@ -181,7 +181,7 @@ module ElasticEmail
|
|
|
181
181
|
# header parameters
|
|
182
182
|
header_params = opts[:header_params] || {}
|
|
183
183
|
# HTTP header 'Accept' (if needed)
|
|
184
|
-
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
|
184
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
|
185
185
|
# HTTP header 'Content-Type'
|
|
186
186
|
content_type = @api_client.select_header_content_type(['application/json'])
|
|
187
187
|
if !content_type.nil?
|
|
@@ -243,7 +243,7 @@ module ElasticEmail
|
|
|
243
243
|
# header parameters
|
|
244
244
|
header_params = opts[:header_params] || {}
|
|
245
245
|
# HTTP header 'Accept' (if needed)
|
|
246
|
-
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
|
246
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
|
247
247
|
|
|
248
248
|
# form parameters
|
|
249
249
|
form_params = opts[:form_params] || {}
|
|
@@ -306,7 +306,7 @@ module ElasticEmail
|
|
|
306
306
|
# header parameters
|
|
307
307
|
header_params = opts[:header_params] || {}
|
|
308
308
|
# HTTP header 'Accept' (if needed)
|
|
309
|
-
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
|
309
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
|
310
310
|
# HTTP header 'Content-Type'
|
|
311
311
|
content_type = @api_client.select_header_content_type(['application/json'])
|
|
312
312
|
if !content_type.nil?
|
|
@@ -374,7 +374,7 @@ module ElasticEmail
|
|
|
374
374
|
# header parameters
|
|
375
375
|
header_params = opts[:header_params] || {}
|
|
376
376
|
# HTTP header 'Accept' (if needed)
|
|
377
|
-
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
|
377
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
|
378
378
|
# HTTP header 'Content-Type'
|
|
379
379
|
content_type = @api_client.select_header_content_type(['application/json'])
|
|
380
380
|
if !content_type.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
|
|
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://app.elasticemail.com/marketing/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
|
-
Generator version: 7.
|
|
9
|
+
Generator version: 7.11.0
|
|
10
10
|
|
|
11
11
|
=end
|
|
12
12
|
|
|
@@ -57,7 +57,7 @@ module ElasticEmail
|
|
|
57
57
|
# header parameters
|
|
58
58
|
header_params = opts[:header_params] || {}
|
|
59
59
|
# HTTP header 'Accept' (if needed)
|
|
60
|
-
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
|
60
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
|
61
61
|
|
|
62
62
|
# form parameters
|
|
63
63
|
form_params = opts[:form_params] || {}
|
|
@@ -126,7 +126,7 @@ module ElasticEmail
|
|
|
126
126
|
# header parameters
|
|
127
127
|
header_params = opts[:header_params] || {}
|
|
128
128
|
# HTTP header 'Accept' (if needed)
|
|
129
|
-
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
|
129
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
|
130
130
|
# HTTP header 'Content-Type'
|
|
131
131
|
content_type = @api_client.select_header_content_type(['application/json'])
|
|
132
132
|
if !content_type.nil?
|
|
@@ -327,7 +327,7 @@ module ElasticEmail
|
|
|
327
327
|
# header parameters
|
|
328
328
|
header_params = opts[:header_params] || {}
|
|
329
329
|
# HTTP header 'Accept' (if needed)
|
|
330
|
-
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
|
330
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
|
331
331
|
|
|
332
332
|
# form parameters
|
|
333
333
|
form_params = opts[:form_params] || {}
|
|
@@ -396,7 +396,7 @@ module ElasticEmail
|
|
|
396
396
|
# header parameters
|
|
397
397
|
header_params = opts[:header_params] || {}
|
|
398
398
|
# HTTP header 'Accept' (if needed)
|
|
399
|
-
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
|
399
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
|
400
400
|
# HTTP header 'Content-Type'
|
|
401
401
|
content_type = @api_client.select_header_content_type(['application/json'])
|
|
402
402
|
if !content_type.nil?
|
|
@@ -464,7 +464,7 @@ module ElasticEmail
|
|
|
464
464
|
# header parameters
|
|
465
465
|
header_params = opts[:header_params] || {}
|
|
466
466
|
# HTTP header 'Accept' (if needed)
|
|
467
|
-
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
|
467
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
|
468
468
|
|
|
469
469
|
# form parameters
|
|
470
470
|
form_params = opts[:form_params] || {}
|
|
@@ -527,7 +527,7 @@ module ElasticEmail
|
|
|
527
527
|
# header parameters
|
|
528
528
|
header_params = opts[:header_params] || {}
|
|
529
529
|
# HTTP header 'Accept' (if needed)
|
|
530
|
-
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
|
530
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
|
531
531
|
# HTTP header 'Content-Type'
|
|
532
532
|
content_type = @api_client.select_header_content_type(['application/json'])
|
|
533
533
|
if !content_type.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
|
|
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://app.elasticemail.com/marketing/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
|
-
Generator version: 7.
|
|
9
|
+
Generator version: 7.11.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
|
# Delete ApiKey
|
|
23
|
-
# Delete your existing ApiKey. Required Access Level:
|
|
23
|
+
# Delete your existing ApiKey. Required Access Level: ModifyAccessTokens
|
|
24
24
|
# @param name [String] Name of the ApiKey
|
|
25
25
|
# @param [Hash] opts the optional parameters
|
|
26
26
|
# @option opts [String] :subaccount Email of the subaccount of which ApiKey should be deleted
|
|
@@ -31,7 +31,7 @@ module ElasticEmail
|
|
|
31
31
|
end
|
|
32
32
|
|
|
33
33
|
# Delete ApiKey
|
|
34
|
-
# Delete your existing ApiKey. Required Access Level:
|
|
34
|
+
# Delete your existing ApiKey. Required Access Level: ModifyAccessTokens
|
|
35
35
|
# @param name [String] Name of the ApiKey
|
|
36
36
|
# @param [Hash] opts the optional parameters
|
|
37
37
|
# @option opts [String] :subaccount Email of the subaccount of which ApiKey should be deleted
|
|
@@ -84,7 +84,7 @@ module ElasticEmail
|
|
|
84
84
|
end
|
|
85
85
|
|
|
86
86
|
# Load ApiKey
|
|
87
|
-
# Load your existing ApiKey info. Required Access Level:
|
|
87
|
+
# Load your existing ApiKey info. Required Access Level: ViewAccessTokens
|
|
88
88
|
# @param name [String] Name of the ApiKey
|
|
89
89
|
# @param [Hash] opts the optional parameters
|
|
90
90
|
# @option opts [String] :subaccount Email of the subaccount of which ApiKey should be loaded
|
|
@@ -95,7 +95,7 @@ module ElasticEmail
|
|
|
95
95
|
end
|
|
96
96
|
|
|
97
97
|
# Load ApiKey
|
|
98
|
-
# Load your existing ApiKey info. Required Access Level:
|
|
98
|
+
# Load your existing ApiKey info. Required Access Level: ViewAccessTokens
|
|
99
99
|
# @param name [String] Name of the ApiKey
|
|
100
100
|
# @param [Hash] opts the optional parameters
|
|
101
101
|
# @option opts [String] :subaccount Email of the subaccount of which ApiKey should be loaded
|
|
@@ -118,7 +118,7 @@ module ElasticEmail
|
|
|
118
118
|
# header parameters
|
|
119
119
|
header_params = opts[:header_params] || {}
|
|
120
120
|
# HTTP header 'Accept' (if needed)
|
|
121
|
-
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
|
121
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
|
122
122
|
|
|
123
123
|
# form parameters
|
|
124
124
|
form_params = opts[:form_params] || {}
|
|
@@ -150,7 +150,7 @@ module ElasticEmail
|
|
|
150
150
|
end
|
|
151
151
|
|
|
152
152
|
# Update ApiKey
|
|
153
|
-
# Update your existing ApiKey. Required Access Level:
|
|
153
|
+
# Update your existing ApiKey. Required Access Level: ModifyAccessTokens
|
|
154
154
|
# @param name [String] Name of the ApiKey
|
|
155
155
|
# @param api_key_payload [ApiKeyPayload]
|
|
156
156
|
# @param [Hash] opts the optional parameters
|
|
@@ -161,7 +161,7 @@ module ElasticEmail
|
|
|
161
161
|
end
|
|
162
162
|
|
|
163
163
|
# Update ApiKey
|
|
164
|
-
# Update your existing ApiKey. Required Access Level:
|
|
164
|
+
# Update your existing ApiKey. Required Access Level: ModifyAccessTokens
|
|
165
165
|
# @param name [String] Name of the ApiKey
|
|
166
166
|
# @param api_key_payload [ApiKeyPayload]
|
|
167
167
|
# @param [Hash] opts the optional parameters
|
|
@@ -187,7 +187,7 @@ module ElasticEmail
|
|
|
187
187
|
# header parameters
|
|
188
188
|
header_params = opts[:header_params] || {}
|
|
189
189
|
# HTTP header 'Accept' (if needed)
|
|
190
|
-
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
|
190
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
|
191
191
|
# HTTP header 'Content-Type'
|
|
192
192
|
content_type = @api_client.select_header_content_type(['application/json'])
|
|
193
193
|
if !content_type.nil?
|
|
@@ -224,7 +224,7 @@ module ElasticEmail
|
|
|
224
224
|
end
|
|
225
225
|
|
|
226
226
|
# List ApiKeys
|
|
227
|
-
# List all your existing ApiKeys. Required Access Level:
|
|
227
|
+
# List all your existing ApiKeys. Required Access Level: ViewAccessTokens
|
|
228
228
|
# @param [Hash] opts the optional parameters
|
|
229
229
|
# @option opts [String] :subaccount Email of the subaccount of which ApiKeys should be loaded
|
|
230
230
|
# @return [Array<ApiKey>]
|
|
@@ -234,7 +234,7 @@ module ElasticEmail
|
|
|
234
234
|
end
|
|
235
235
|
|
|
236
236
|
# List ApiKeys
|
|
237
|
-
# List all your existing ApiKeys. Required Access Level:
|
|
237
|
+
# List all your existing ApiKeys. Required Access Level: ViewAccessTokens
|
|
238
238
|
# @param [Hash] opts the optional parameters
|
|
239
239
|
# @option opts [String] :subaccount Email of the subaccount of which ApiKeys should be loaded
|
|
240
240
|
# @return [Array<(Array<ApiKey>, Integer, Hash)>] Array<ApiKey> data, response status code and response headers
|
|
@@ -252,7 +252,7 @@ module ElasticEmail
|
|
|
252
252
|
# header parameters
|
|
253
253
|
header_params = opts[:header_params] || {}
|
|
254
254
|
# HTTP header 'Accept' (if needed)
|
|
255
|
-
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
|
255
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
|
256
256
|
|
|
257
257
|
# form parameters
|
|
258
258
|
form_params = opts[:form_params] || {}
|
|
@@ -284,7 +284,7 @@ module ElasticEmail
|
|
|
284
284
|
end
|
|
285
285
|
|
|
286
286
|
# Add ApiKey
|
|
287
|
-
# Add a new ApiKey. Required Access Level:
|
|
287
|
+
# Add a new ApiKey. Required Access Level: ModifyAccessTokens
|
|
288
288
|
# @param api_key_payload [ApiKeyPayload]
|
|
289
289
|
# @param [Hash] opts the optional parameters
|
|
290
290
|
# @return [NewApiKey]
|
|
@@ -294,7 +294,7 @@ module ElasticEmail
|
|
|
294
294
|
end
|
|
295
295
|
|
|
296
296
|
# Add ApiKey
|
|
297
|
-
# Add a new ApiKey. Required Access Level:
|
|
297
|
+
# Add a new ApiKey. Required Access Level: ModifyAccessTokens
|
|
298
298
|
# @param api_key_payload [ApiKeyPayload]
|
|
299
299
|
# @param [Hash] opts the optional parameters
|
|
300
300
|
# @return [Array<(NewApiKey, Integer, Hash)>] NewApiKey data, response status code and response headers
|
|
@@ -315,7 +315,7 @@ module ElasticEmail
|
|
|
315
315
|
# header parameters
|
|
316
316
|
header_params = opts[:header_params] || {}
|
|
317
317
|
# HTTP header 'Accept' (if needed)
|
|
318
|
-
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
|
318
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
|
319
319
|
# HTTP header 'Content-Type'
|
|
320
320
|
content_type = @api_client.select_header_content_type(['application/json'])
|
|
321
321
|
if !content_type.nil?
|
|
@@ -352,7 +352,7 @@ module ElasticEmail
|
|
|
352
352
|
end
|
|
353
353
|
|
|
354
354
|
# Delete SMTP Credential
|
|
355
|
-
# Delete your existing SMTP Credentials. Required Access Level:
|
|
355
|
+
# Delete your existing SMTP Credentials. Required Access Level: ModifyAccessTokens
|
|
356
356
|
# @param name [String] Name of the SMTP Credential
|
|
357
357
|
# @param [Hash] opts the optional parameters
|
|
358
358
|
# @option opts [String] :subaccount Email of the subaccount of which credential should be deleted
|
|
@@ -363,7 +363,7 @@ module ElasticEmail
|
|
|
363
363
|
end
|
|
364
364
|
|
|
365
365
|
# Delete SMTP Credential
|
|
366
|
-
# Delete your existing SMTP Credentials. Required Access Level:
|
|
366
|
+
# Delete your existing SMTP Credentials. Required Access Level: ModifyAccessTokens
|
|
367
367
|
# @param name [String] Name of the SMTP Credential
|
|
368
368
|
# @param [Hash] opts the optional parameters
|
|
369
369
|
# @option opts [String] :subaccount Email of the subaccount of which credential should be deleted
|
|
@@ -416,7 +416,7 @@ module ElasticEmail
|
|
|
416
416
|
end
|
|
417
417
|
|
|
418
418
|
# Load SMTP Credential
|
|
419
|
-
# Load your existing SMTP Credential info. Required Access Level:
|
|
419
|
+
# Load your existing SMTP Credential info. Required Access Level: ViewAccessTokens
|
|
420
420
|
# @param name [String] Name of the SMTP Credential
|
|
421
421
|
# @param [Hash] opts the optional parameters
|
|
422
422
|
# @option opts [String] :subaccount Email of the subaccount of which credential should be loaded
|
|
@@ -427,7 +427,7 @@ module ElasticEmail
|
|
|
427
427
|
end
|
|
428
428
|
|
|
429
429
|
# Load SMTP Credential
|
|
430
|
-
# Load your existing SMTP Credential info. Required Access Level:
|
|
430
|
+
# Load your existing SMTP Credential info. Required Access Level: ViewAccessTokens
|
|
431
431
|
# @param name [String] Name of the SMTP Credential
|
|
432
432
|
# @param [Hash] opts the optional parameters
|
|
433
433
|
# @option opts [String] :subaccount Email of the subaccount of which credential should be loaded
|
|
@@ -450,7 +450,7 @@ module ElasticEmail
|
|
|
450
450
|
# header parameters
|
|
451
451
|
header_params = opts[:header_params] || {}
|
|
452
452
|
# HTTP header 'Accept' (if needed)
|
|
453
|
-
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
|
453
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
|
454
454
|
|
|
455
455
|
# form parameters
|
|
456
456
|
form_params = opts[:form_params] || {}
|
|
@@ -482,7 +482,7 @@ module ElasticEmail
|
|
|
482
482
|
end
|
|
483
483
|
|
|
484
484
|
# Update SMTP Credential
|
|
485
|
-
# Update your existing SMTP Credentials. Required Access Level:
|
|
485
|
+
# Update your existing SMTP Credentials. Required Access Level: ModifyAccessTokens
|
|
486
486
|
# @param name [String] Name of the SMTP Credential
|
|
487
487
|
# @param smtp_credentials_payload [SmtpCredentialsPayload]
|
|
488
488
|
# @param [Hash] opts the optional parameters
|
|
@@ -493,7 +493,7 @@ module ElasticEmail
|
|
|
493
493
|
end
|
|
494
494
|
|
|
495
495
|
# Update SMTP Credential
|
|
496
|
-
# Update your existing SMTP Credentials. Required Access Level:
|
|
496
|
+
# Update your existing SMTP Credentials. Required Access Level: ModifyAccessTokens
|
|
497
497
|
# @param name [String] Name of the SMTP Credential
|
|
498
498
|
# @param smtp_credentials_payload [SmtpCredentialsPayload]
|
|
499
499
|
# @param [Hash] opts the optional parameters
|
|
@@ -519,7 +519,7 @@ module ElasticEmail
|
|
|
519
519
|
# header parameters
|
|
520
520
|
header_params = opts[:header_params] || {}
|
|
521
521
|
# HTTP header 'Accept' (if needed)
|
|
522
|
-
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
|
522
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
|
523
523
|
# HTTP header 'Content-Type'
|
|
524
524
|
content_type = @api_client.select_header_content_type(['application/json'])
|
|
525
525
|
if !content_type.nil?
|
|
@@ -556,7 +556,7 @@ module ElasticEmail
|
|
|
556
556
|
end
|
|
557
557
|
|
|
558
558
|
# List SMTP Credentials
|
|
559
|
-
# List all your existing SMTP Credentials. Required Access Level:
|
|
559
|
+
# List all your existing SMTP Credentials. Required Access Level: ViewAccessTokens
|
|
560
560
|
# @param [Hash] opts the optional parameters
|
|
561
561
|
# @option opts [String] :subaccount Email of the subaccount of which credentials should be listed
|
|
562
562
|
# @return [Array<SmtpCredentials>]
|
|
@@ -566,7 +566,7 @@ module ElasticEmail
|
|
|
566
566
|
end
|
|
567
567
|
|
|
568
568
|
# List SMTP Credentials
|
|
569
|
-
# List all your existing SMTP Credentials. Required Access Level:
|
|
569
|
+
# List all your existing SMTP Credentials. Required Access Level: ViewAccessTokens
|
|
570
570
|
# @param [Hash] opts the optional parameters
|
|
571
571
|
# @option opts [String] :subaccount Email of the subaccount of which credentials should be listed
|
|
572
572
|
# @return [Array<(Array<SmtpCredentials>, Integer, Hash)>] Array<SmtpCredentials> data, response status code and response headers
|
|
@@ -584,7 +584,7 @@ module ElasticEmail
|
|
|
584
584
|
# header parameters
|
|
585
585
|
header_params = opts[:header_params] || {}
|
|
586
586
|
# HTTP header 'Accept' (if needed)
|
|
587
|
-
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
|
587
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
|
588
588
|
|
|
589
589
|
# form parameters
|
|
590
590
|
form_params = opts[:form_params] || {}
|
|
@@ -616,7 +616,7 @@ module ElasticEmail
|
|
|
616
616
|
end
|
|
617
617
|
|
|
618
618
|
# Add SMTP Credential
|
|
619
|
-
# Add new SMTP Credential. Required Access Level:
|
|
619
|
+
# Add new SMTP Credential. Required Access Level: ModifyAccessTokens
|
|
620
620
|
# @param smtp_credentials_payload [SmtpCredentialsPayload]
|
|
621
621
|
# @param [Hash] opts the optional parameters
|
|
622
622
|
# @return [NewSmtpCredentials]
|
|
@@ -626,7 +626,7 @@ module ElasticEmail
|
|
|
626
626
|
end
|
|
627
627
|
|
|
628
628
|
# Add SMTP Credential
|
|
629
|
-
# Add new SMTP Credential. Required Access Level:
|
|
629
|
+
# Add new SMTP Credential. Required Access Level: ModifyAccessTokens
|
|
630
630
|
# @param smtp_credentials_payload [SmtpCredentialsPayload]
|
|
631
631
|
# @param [Hash] opts the optional parameters
|
|
632
632
|
# @return [Array<(NewSmtpCredentials, Integer, Hash)>] NewSmtpCredentials data, response status code and response headers
|
|
@@ -647,7 +647,7 @@ module ElasticEmail
|
|
|
647
647
|
# header parameters
|
|
648
648
|
header_params = opts[:header_params] || {}
|
|
649
649
|
# HTTP header 'Accept' (if needed)
|
|
650
|
-
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
|
650
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
|
651
651
|
# HTTP header 'Content-Type'
|
|
652
652
|
content_type = @api_client.select_header_content_type(['application/json'])
|
|
653
653
|
if !content_type.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
|
|
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://app.elasticemail.com/marketing/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
|
-
Generator version: 7.
|
|
9
|
+
Generator version: 7.11.0
|
|
10
10
|
|
|
11
11
|
=end
|
|
12
12
|
|
|
@@ -112,7 +112,7 @@ module ElasticEmail
|
|
|
112
112
|
# header parameters
|
|
113
113
|
header_params = opts[:header_params] || {}
|
|
114
114
|
# HTTP header 'Accept' (if needed)
|
|
115
|
-
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
|
115
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
|
116
116
|
|
|
117
117
|
# form parameters
|
|
118
118
|
form_params = opts[:form_params] || {}
|
|
@@ -181,7 +181,7 @@ module ElasticEmail
|
|
|
181
181
|
# header parameters
|
|
182
182
|
header_params = opts[:header_params] || {}
|
|
183
183
|
# HTTP header 'Accept' (if needed)
|
|
184
|
-
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
|
184
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
|
185
185
|
# HTTP header 'Content-Type'
|
|
186
186
|
content_type = @api_client.select_header_content_type(['application/json'])
|
|
187
187
|
if !content_type.nil?
|
|
@@ -249,7 +249,7 @@ module ElasticEmail
|
|
|
249
249
|
# header parameters
|
|
250
250
|
header_params = opts[:header_params] || {}
|
|
251
251
|
# HTTP header 'Accept' (if needed)
|
|
252
|
-
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
|
252
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
|
253
253
|
|
|
254
254
|
# form parameters
|
|
255
255
|
form_params = opts[:form_params] || {}
|
|
@@ -312,7 +312,7 @@ module ElasticEmail
|
|
|
312
312
|
# header parameters
|
|
313
313
|
header_params = opts[:header_params] || {}
|
|
314
314
|
# HTTP header 'Accept' (if needed)
|
|
315
|
-
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
|
315
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
|
316
316
|
# HTTP header 'Content-Type'
|
|
317
317
|
content_type = @api_client.select_header_content_type(['application/json'])
|
|
318
318
|
if !content_type.nil?
|