ElasticEmail 4.0.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/DIFF +0 -0
- data/ElasticEmail.gemspec +38 -0
- data/Gemfile +9 -0
- data/README.md +286 -0
- data/Rakefile +10 -0
- data/VERSION +1 -0
- data/docs/AccessLevel.md +15 -0
- data/docs/AccountStatusEnum.md +15 -0
- data/docs/ApiKey.md +28 -0
- data/docs/ApiKeyPayload.md +26 -0
- data/docs/BodyContentType.md +15 -0
- data/docs/BodyPart.md +22 -0
- data/docs/Campaign.md +26 -0
- data/docs/CampaignOptions.md +26 -0
- data/docs/CampaignRecipient.md +20 -0
- data/docs/CampaignStatus.md +15 -0
- data/docs/CampaignTemplate.md +30 -0
- data/docs/CampaignsApi.md +374 -0
- data/docs/ChannelLogStatusSummary.md +44 -0
- data/docs/CompressionFormat.md +15 -0
- data/docs/ConsentData.md +22 -0
- data/docs/ConsentTracking.md +15 -0
- data/docs/Contact.md +38 -0
- data/docs/ContactActivity.md +38 -0
- data/docs/ContactHistEventType.md +15 -0
- data/docs/ContactHistory.md +30 -0
- data/docs/ContactPayload.md +28 -0
- data/docs/ContactSource.md +15 -0
- data/docs/ContactStatus.md +15 -0
- data/docs/ContactUpdatePayload.md +22 -0
- data/docs/ContactsApi.md +756 -0
- data/docs/ContactsList.md +24 -0
- data/docs/DeliveryOptimizationType.md +15 -0
- data/docs/EmailContent.md +38 -0
- data/docs/EmailData.md +22 -0
- data/docs/EmailMessageData.md +22 -0
- data/docs/EmailRecipient.md +20 -0
- data/docs/EmailSend.md +20 -0
- data/docs/EmailStatus.md +40 -0
- data/docs/EmailTransactionalMessageData.md +22 -0
- data/docs/EmailValidationResult.md +34 -0
- data/docs/EmailValidationStatus.md +15 -0
- data/docs/EmailView.md +22 -0
- data/docs/EmailsApi.md +295 -0
- data/docs/EmailsPayload.md +20 -0
- data/docs/EncodingType.md +15 -0
- data/docs/EventType.md +15 -0
- data/docs/EventsApi.md +575 -0
- data/docs/EventsOrderBy.md +15 -0
- data/docs/ExportFileFormats.md +15 -0
- data/docs/ExportLink.md +20 -0
- data/docs/ExportStatus.md +15 -0
- data/docs/FileInfo.md +26 -0
- data/docs/FilePayload.md +22 -0
- data/docs/FileUploadResult.md +20 -0
- data/docs/FilesApi.md +374 -0
- data/docs/InboundPayload.md +28 -0
- data/docs/InboundRoute.md +30 -0
- data/docs/InboundRouteActionType.md +15 -0
- data/docs/InboundRouteApi.md +437 -0
- data/docs/InboundRouteFilterType.md +15 -0
- data/docs/ListPayload.md +22 -0
- data/docs/ListUpdatePayload.md +20 -0
- data/docs/ListsApi.md +519 -0
- data/docs/LogJobStatus.md +15 -0
- data/docs/LogStatusSummary.md +42 -0
- data/docs/MergeEmailPayload.md +22 -0
- data/docs/MessageAttachment.md +22 -0
- data/docs/MessageCategory.md +15 -0
- data/docs/NewApiKey.md +30 -0
- data/docs/NewSmtpCredentials.md +30 -0
- data/docs/Options.md +28 -0
- data/docs/RecipientEvent.md +42 -0
- data/docs/SecurityApi.md +749 -0
- data/docs/Segment.md +20 -0
- data/docs/SegmentPayload.md +20 -0
- data/docs/SegmentsApi.md +372 -0
- data/docs/SmtpCredentials.md +28 -0
- data/docs/SmtpCredentialsPayload.md +24 -0
- data/docs/SortOrderItem.md +20 -0
- data/docs/SplitOptimizationType.md +15 -0
- data/docs/SplitOptions.md +20 -0
- data/docs/StatisticsApi.md +379 -0
- data/docs/SubAccountInfo.md +34 -0
- data/docs/SubAccountsApi.md +445 -0
- data/docs/SubaccountEmailCreditsPayload.md +20 -0
- data/docs/SubaccountEmailSettings.md +30 -0
- data/docs/SubaccountEmailSettingsPayload.md +28 -0
- data/docs/SubaccountPayload.md +24 -0
- data/docs/SubaccountSettingsInfo.md +18 -0
- data/docs/SubaccountSettingsInfoPayload.md +18 -0
- data/docs/Suppression.md +24 -0
- data/docs/SuppressionsApi.md +895 -0
- data/docs/Template.md +28 -0
- data/docs/TemplatePayload.md +24 -0
- data/docs/TemplateScopeType.md +15 -0
- data/docs/TemplateType.md +15 -0
- data/docs/TemplatesApi.md +376 -0
- data/docs/TransactionalRecipient.md +22 -0
- data/docs/Utm.md +24 -0
- data/docs/VerificationFileResult.md +28 -0
- data/docs/VerificationFileResultDetails.md +30 -0
- data/docs/VerificationStatus.md +15 -0
- data/docs/VerificationsApi.md +662 -0
- data/lib/ElasticEmail.rb +137 -0
- data/lib/ElasticEmail/api/campaigns_api.rb +348 -0
- data/lib/ElasticEmail/api/contacts_api.rb +681 -0
- data/lib/ElasticEmail/api/emails_api.rb +280 -0
- data/lib/ElasticEmail/api/events_api.rb +538 -0
- data/lib/ElasticEmail/api/files_api.rb +340 -0
- data/lib/ElasticEmail/api/inbound_route_api.rb +404 -0
- data/lib/ElasticEmail/api/lists_api.rb +485 -0
- data/lib/ElasticEmail/api/security_api.rb +674 -0
- data/lib/ElasticEmail/api/segments_api.rb +345 -0
- data/lib/ElasticEmail/api/statistics_api.rb +341 -0
- data/lib/ElasticEmail/api/sub_accounts_api.rb +414 -0
- data/lib/ElasticEmail/api/suppressions_api.rb +782 -0
- data/lib/ElasticEmail/api/templates_api.rb +355 -0
- data/lib/ElasticEmail/api/verifications_api.rb +584 -0
- data/lib/ElasticEmail/api_client.rb +390 -0
- data/lib/ElasticEmail/api_error.rb +57 -0
- data/lib/ElasticEmail/configuration.rb +277 -0
- data/lib/ElasticEmail/models/access_level.rb +79 -0
- data/lib/ElasticEmail/models/account_status_enum.rb +40 -0
- data/lib/ElasticEmail/models/api_key.rb +276 -0
- data/lib/ElasticEmail/models/api_key_payload.rb +265 -0
- data/lib/ElasticEmail/models/body_content_type.rb +39 -0
- data/lib/ElasticEmail/models/body_part.rb +240 -0
- data/lib/ElasticEmail/models/campaign.rb +261 -0
- data/lib/ElasticEmail/models/campaign_options.rb +263 -0
- data/lib/ElasticEmail/models/campaign_recipient.rb +234 -0
- data/lib/ElasticEmail/models/campaign_status.rb +43 -0
- data/lib/ElasticEmail/models/campaign_template.rb +282 -0
- data/lib/ElasticEmail/models/channel_log_status_summary.rb +350 -0
- data/lib/ElasticEmail/models/compression_format.rb +37 -0
- data/lib/ElasticEmail/models/consent_data.rb +240 -0
- data/lib/ElasticEmail/models/consent_tracking.rb +38 -0
- data/lib/ElasticEmail/models/contact.rb +323 -0
- data/lib/ElasticEmail/models/contact_activity.rb +324 -0
- data/lib/ElasticEmail/models/contact_hist_event_type.rb +49 -0
- data/lib/ElasticEmail/models/contact_history.rb +279 -0
- data/lib/ElasticEmail/models/contact_payload.rb +270 -0
- data/lib/ElasticEmail/models/contact_source.rb +42 -0
- data/lib/ElasticEmail/models/contact_status.rb +44 -0
- data/lib/ElasticEmail/models/contact_update_payload.rb +241 -0
- data/lib/ElasticEmail/models/contacts_list.rb +251 -0
- data/lib/ElasticEmail/models/delivery_optimization_type.rb +38 -0
- data/lib/ElasticEmail/models/email_content.rb +330 -0
- data/lib/ElasticEmail/models/email_data.rb +241 -0
- data/lib/ElasticEmail/models/email_message_data.rb +242 -0
- data/lib/ElasticEmail/models/email_recipient.rb +232 -0
- data/lib/ElasticEmail/models/email_send.rb +229 -0
- data/lib/ElasticEmail/models/email_status.rb +332 -0
- data/lib/ElasticEmail/models/email_transactional_message_data.rb +240 -0
- data/lib/ElasticEmail/models/email_validation_result.rb +300 -0
- data/lib/ElasticEmail/models/email_validation_status.rb +40 -0
- data/lib/ElasticEmail/models/email_view.rb +240 -0
- data/lib/ElasticEmail/models/emails_payload.rb +232 -0
- data/lib/ElasticEmail/models/encoding_type.rb +42 -0
- data/lib/ElasticEmail/models/event_type.rb +43 -0
- data/lib/ElasticEmail/models/events_order_by.rb +37 -0
- data/lib/ElasticEmail/models/export_file_formats.rb +38 -0
- data/lib/ElasticEmail/models/export_link.rb +229 -0
- data/lib/ElasticEmail/models/export_status.rb +39 -0
- data/lib/ElasticEmail/models/file_info.rb +262 -0
- data/lib/ElasticEmail/models/file_payload.rb +239 -0
- data/lib/ElasticEmail/models/file_upload_result.rb +229 -0
- data/lib/ElasticEmail/models/inbound_payload.rb +269 -0
- data/lib/ElasticEmail/models/inbound_route.rb +278 -0
- data/lib/ElasticEmail/models/inbound_route_action_type.rb +38 -0
- data/lib/ElasticEmail/models/inbound_route_filter_type.rb +37 -0
- data/lib/ElasticEmail/models/list_payload.rb +241 -0
- data/lib/ElasticEmail/models/list_update_payload.rb +229 -0
- data/lib/ElasticEmail/models/log_job_status.rb +45 -0
- data/lib/ElasticEmail/models/log_status_summary.rb +340 -0
- data/lib/ElasticEmail/models/merge_email_payload.rb +239 -0
- data/lib/ElasticEmail/models/message_attachment.rb +237 -0
- data/lib/ElasticEmail/models/message_category.rb +52 -0
- data/lib/ElasticEmail/models/new_api_key.rb +286 -0
- data/lib/ElasticEmail/models/new_smtp_credentials.rb +284 -0
- data/lib/ElasticEmail/models/options.rb +271 -0
- data/lib/ElasticEmail/models/recipient_event.rb +341 -0
- data/lib/ElasticEmail/models/segment.rb +230 -0
- data/lib/ElasticEmail/models/segment_payload.rb +229 -0
- data/lib/ElasticEmail/models/smtp_credentials.rb +274 -0
- data/lib/ElasticEmail/models/smtp_credentials_payload.rb +253 -0
- data/lib/ElasticEmail/models/sort_order_item.rb +229 -0
- data/lib/ElasticEmail/models/split_optimization_type.rb +37 -0
- data/lib/ElasticEmail/models/split_options.rb +230 -0
- data/lib/ElasticEmail/models/sub_account_info.rb +300 -0
- data/lib/ElasticEmail/models/subaccount_email_credits_payload.rb +230 -0
- data/lib/ElasticEmail/models/subaccount_email_settings.rb +280 -0
- data/lib/ElasticEmail/models/subaccount_email_settings_payload.rb +270 -0
- data/lib/ElasticEmail/models/subaccount_payload.rb +250 -0
- data/lib/ElasticEmail/models/subaccount_settings_info.rb +220 -0
- data/lib/ElasticEmail/models/subaccount_settings_info_payload.rb +220 -0
- data/lib/ElasticEmail/models/suppression.rb +252 -0
- data/lib/ElasticEmail/models/template.rb +272 -0
- data/lib/ElasticEmail/models/template_payload.rb +252 -0
- data/lib/ElasticEmail/models/template_scope_type.rb +38 -0
- data/lib/ElasticEmail/models/template_type.rb +38 -0
- data/lib/ElasticEmail/models/transactional_recipient.rb +246 -0
- data/lib/ElasticEmail/models/utm.rb +250 -0
- data/lib/ElasticEmail/models/verification_file_result.rb +270 -0
- data/lib/ElasticEmail/models/verification_file_result_details.rb +282 -0
- data/lib/ElasticEmail/models/verification_status.rb +40 -0
- data/lib/ElasticEmail/version.rb +15 -0
- data/spec/api/campaigns_api_spec.rb +98 -0
- data/spec/api/contacts_api_spec.rb +166 -0
- data/spec/api/emails_api_spec.rb +83 -0
- data/spec/api/events_api_spec.rb +146 -0
- data/spec/api/files_api_spec.rb +97 -0
- data/spec/api/inbound_route_api_spec.rb +107 -0
- data/spec/api/lists_api_spec.rb +123 -0
- data/spec/api/security_api_spec.rb +161 -0
- data/spec/api/segments_api_spec.rb +97 -0
- data/spec/api/statistics_api_spec.rb +98 -0
- data/spec/api/sub_accounts_api_spec.rb +110 -0
- data/spec/api/suppressions_api_spec.rb +186 -0
- data/spec/api/templates_api_spec.rb +99 -0
- data/spec/api/verifications_api_spec.rb +145 -0
- data/spec/api_client_spec.rb +226 -0
- data/spec/configuration_spec.rb +42 -0
- data/spec/models/access_level_spec.rb +28 -0
- data/spec/models/account_status_enum_spec.rb +28 -0
- data/spec/models/api_key_payload_spec.rb +58 -0
- data/spec/models/api_key_spec.rb +64 -0
- data/spec/models/body_content_type_spec.rb +28 -0
- data/spec/models/body_part_spec.rb +46 -0
- data/spec/models/campaign_options_spec.rb +58 -0
- data/spec/models/campaign_recipient_spec.rb +40 -0
- data/spec/models/campaign_spec.rb +58 -0
- data/spec/models/campaign_status_spec.rb +28 -0
- data/spec/models/campaign_template_spec.rb +70 -0
- data/spec/models/channel_log_status_summary_spec.rb +112 -0
- data/spec/models/compression_format_spec.rb +28 -0
- data/spec/models/consent_data_spec.rb +46 -0
- data/spec/models/consent_tracking_spec.rb +28 -0
- data/spec/models/contact_activity_spec.rb +94 -0
- data/spec/models/contact_hist_event_type_spec.rb +28 -0
- data/spec/models/contact_history_spec.rb +70 -0
- data/spec/models/contact_payload_spec.rb +64 -0
- data/spec/models/contact_source_spec.rb +28 -0
- data/spec/models/contact_spec.rb +94 -0
- data/spec/models/contact_status_spec.rb +28 -0
- data/spec/models/contact_update_payload_spec.rb +46 -0
- data/spec/models/contacts_list_spec.rb +52 -0
- data/spec/models/delivery_optimization_type_spec.rb +28 -0
- data/spec/models/email_content_spec.rb +94 -0
- data/spec/models/email_data_spec.rb +46 -0
- data/spec/models/email_message_data_spec.rb +46 -0
- data/spec/models/email_recipient_spec.rb +40 -0
- data/spec/models/email_send_spec.rb +40 -0
- data/spec/models/email_status_spec.rb +100 -0
- data/spec/models/email_transactional_message_data_spec.rb +46 -0
- data/spec/models/email_validation_result_spec.rb +82 -0
- data/spec/models/email_validation_status_spec.rb +28 -0
- data/spec/models/email_view_spec.rb +46 -0
- data/spec/models/emails_payload_spec.rb +40 -0
- data/spec/models/encoding_type_spec.rb +28 -0
- data/spec/models/event_type_spec.rb +28 -0
- data/spec/models/events_order_by_spec.rb +28 -0
- data/spec/models/export_file_formats_spec.rb +28 -0
- data/spec/models/export_link_spec.rb +40 -0
- data/spec/models/export_status_spec.rb +28 -0
- data/spec/models/file_info_spec.rb +58 -0
- data/spec/models/file_payload_spec.rb +46 -0
- data/spec/models/file_upload_result_spec.rb +40 -0
- data/spec/models/inbound_payload_spec.rb +64 -0
- data/spec/models/inbound_route_action_type_spec.rb +28 -0
- data/spec/models/inbound_route_filter_type_spec.rb +28 -0
- data/spec/models/inbound_route_spec.rb +70 -0
- data/spec/models/list_payload_spec.rb +46 -0
- data/spec/models/list_update_payload_spec.rb +40 -0
- data/spec/models/log_job_status_spec.rb +28 -0
- data/spec/models/log_status_summary_spec.rb +106 -0
- data/spec/models/merge_email_payload_spec.rb +46 -0
- data/spec/models/message_attachment_spec.rb +46 -0
- data/spec/models/message_category_spec.rb +28 -0
- data/spec/models/new_api_key_spec.rb +70 -0
- data/spec/models/new_smtp_credentials_spec.rb +70 -0
- data/spec/models/options_spec.rb +64 -0
- data/spec/models/recipient_event_spec.rb +106 -0
- data/spec/models/segment_payload_spec.rb +40 -0
- data/spec/models/segment_spec.rb +40 -0
- data/spec/models/smtp_credentials_payload_spec.rb +52 -0
- data/spec/models/smtp_credentials_spec.rb +64 -0
- data/spec/models/sort_order_item_spec.rb +40 -0
- data/spec/models/split_optimization_type_spec.rb +28 -0
- data/spec/models/split_options_spec.rb +40 -0
- data/spec/models/sub_account_info_spec.rb +82 -0
- data/spec/models/subaccount_email_credits_payload_spec.rb +40 -0
- data/spec/models/subaccount_email_settings_payload_spec.rb +64 -0
- data/spec/models/subaccount_email_settings_spec.rb +70 -0
- data/spec/models/subaccount_payload_spec.rb +52 -0
- data/spec/models/subaccount_settings_info_payload_spec.rb +34 -0
- data/spec/models/subaccount_settings_info_spec.rb +34 -0
- data/spec/models/suppression_spec.rb +52 -0
- data/spec/models/template_payload_spec.rb +52 -0
- data/spec/models/template_scope_type_spec.rb +28 -0
- data/spec/models/template_spec.rb +64 -0
- data/spec/models/template_type_spec.rb +28 -0
- data/spec/models/transactional_recipient_spec.rb +46 -0
- data/spec/models/utm_spec.rb +52 -0
- data/spec/models/verification_file_result_details_spec.rb +70 -0
- data/spec/models/verification_file_result_spec.rb +64 -0
- data/spec/models/verification_status_spec.rb +28 -0
- data/spec/spec_helper.rb +111 -0
- metadata +498 -0
@@ -0,0 +1,28 @@
|
|
1
|
+
# ElasticEmail::InboundPayload
|
2
|
+
|
3
|
+
## Properties
|
4
|
+
|
5
|
+
| Name | Type | Description | Notes |
|
6
|
+
| ---- | ---- | ----------- | ----- |
|
7
|
+
| **filter** | **String** | Filter of the inbound data | [optional] |
|
8
|
+
| **name** | **String** | Name of this route | [optional] |
|
9
|
+
| **filter_type** | [**InboundRouteFilterType**](InboundRouteFilterType.md) | Type of the filter | [optional] |
|
10
|
+
| **action_type** | [**InboundRouteActionType**](InboundRouteActionType.md) | Type of action to take | [optional] |
|
11
|
+
| **email_address** | **String** | Email to forward the inbound to | [optional] |
|
12
|
+
| **http_address** | **String** | Address to notify about the inbound | [optional] |
|
13
|
+
|
14
|
+
## Example
|
15
|
+
|
16
|
+
```ruby
|
17
|
+
require 'ElasticEmail'
|
18
|
+
|
19
|
+
instance = ElasticEmail::InboundPayload.new(
|
20
|
+
filter: null,
|
21
|
+
name: null,
|
22
|
+
filter_type: null,
|
23
|
+
action_type: null,
|
24
|
+
email_address: null,
|
25
|
+
http_address: null
|
26
|
+
)
|
27
|
+
```
|
28
|
+
|
@@ -0,0 +1,30 @@
|
|
1
|
+
# ElasticEmail::InboundRoute
|
2
|
+
|
3
|
+
## Properties
|
4
|
+
|
5
|
+
| Name | Type | Description | Notes |
|
6
|
+
| ---- | ---- | ----------- | ----- |
|
7
|
+
| **public_id** | **String** | | [optional] |
|
8
|
+
| **name** | **String** | Name of this route | [optional] |
|
9
|
+
| **filter_type** | [**InboundRouteFilterType**](InboundRouteFilterType.md) | Type of the filter | [optional] |
|
10
|
+
| **filter** | **String** | Filter of the inbound data | [optional] |
|
11
|
+
| **action_type** | [**InboundRouteActionType**](InboundRouteActionType.md) | Type of action to take | [optional] |
|
12
|
+
| **action_parameter** | **String** | URL address or Email to notify about the inbound | [optional] |
|
13
|
+
| **sort_order** | **Integer** | Place of this route in your routes queue's order | [optional] |
|
14
|
+
|
15
|
+
## Example
|
16
|
+
|
17
|
+
```ruby
|
18
|
+
require 'ElasticEmail'
|
19
|
+
|
20
|
+
instance = ElasticEmail::InboundRoute.new(
|
21
|
+
public_id: null,
|
22
|
+
name: null,
|
23
|
+
filter_type: null,
|
24
|
+
filter: null,
|
25
|
+
action_type: null,
|
26
|
+
action_parameter: null,
|
27
|
+
sort_order: null
|
28
|
+
)
|
29
|
+
```
|
30
|
+
|
@@ -0,0 +1,15 @@
|
|
1
|
+
# ElasticEmail::InboundRouteActionType
|
2
|
+
|
3
|
+
## Properties
|
4
|
+
|
5
|
+
| Name | Type | Description | Notes |
|
6
|
+
| ---- | ---- | ----------- | ----- |
|
7
|
+
|
8
|
+
## Example
|
9
|
+
|
10
|
+
```ruby
|
11
|
+
require 'ElasticEmail'
|
12
|
+
|
13
|
+
instance = ElasticEmail::InboundRouteActionType.new()
|
14
|
+
```
|
15
|
+
|
@@ -0,0 +1,437 @@
|
|
1
|
+
# ElasticEmail::InboundRouteApi
|
2
|
+
|
3
|
+
All URIs are relative to *https://api.elasticemail.com/v4*
|
4
|
+
|
5
|
+
| Method | HTTP request | Description |
|
6
|
+
| ------ | ------------ | ----------- |
|
7
|
+
| [**inboundroute_by_id_delete**](InboundRouteApi.md#inboundroute_by_id_delete) | **DELETE** /inboundroute/{id} | Delete Route |
|
8
|
+
| [**inboundroute_by_id_get**](InboundRouteApi.md#inboundroute_by_id_get) | **GET** /inboundroute/{id} | Get Route |
|
9
|
+
| [**inboundroute_by_id_put**](InboundRouteApi.md#inboundroute_by_id_put) | **PUT** /inboundroute/{id} | Update Route |
|
10
|
+
| [**inboundroute_get**](InboundRouteApi.md#inboundroute_get) | **GET** /inboundroute | Get Routes |
|
11
|
+
| [**inboundroute_order_put**](InboundRouteApi.md#inboundroute_order_put) | **PUT** /inboundroute/order | Update Sorting |
|
12
|
+
| [**inboundroute_post**](InboundRouteApi.md#inboundroute_post) | **POST** /inboundroute | Create Route |
|
13
|
+
|
14
|
+
|
15
|
+
## inboundroute_by_id_delete
|
16
|
+
|
17
|
+
> inboundroute_by_id_delete(id)
|
18
|
+
|
19
|
+
Delete Route
|
20
|
+
|
21
|
+
Deletes the Inbound Route. Required Access Level: ModifySettings
|
22
|
+
|
23
|
+
### Examples
|
24
|
+
|
25
|
+
```ruby
|
26
|
+
require 'time'
|
27
|
+
require 'ElasticEmail'
|
28
|
+
# setup authorization
|
29
|
+
ElasticEmail.configure do |config|
|
30
|
+
# Configure API key authorization: apikey
|
31
|
+
config.api_key['apikey'] = 'YOUR API KEY'
|
32
|
+
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
|
33
|
+
# config.api_key_prefix['apikey'] = 'Bearer'
|
34
|
+
end
|
35
|
+
|
36
|
+
api_instance = ElasticEmail::InboundRouteApi.new
|
37
|
+
id = 'id_example' # String |
|
38
|
+
|
39
|
+
begin
|
40
|
+
# Delete Route
|
41
|
+
api_instance.inboundroute_by_id_delete(id)
|
42
|
+
rescue ElasticEmail::ApiError => e
|
43
|
+
puts "Error when calling InboundRouteApi->inboundroute_by_id_delete: #{e}"
|
44
|
+
end
|
45
|
+
```
|
46
|
+
|
47
|
+
#### Using the inboundroute_by_id_delete_with_http_info variant
|
48
|
+
|
49
|
+
This returns an Array which contains the response data (`nil` in this case), status code and headers.
|
50
|
+
|
51
|
+
> <Array(nil, Integer, Hash)> inboundroute_by_id_delete_with_http_info(id)
|
52
|
+
|
53
|
+
```ruby
|
54
|
+
begin
|
55
|
+
# Delete Route
|
56
|
+
data, status_code, headers = api_instance.inboundroute_by_id_delete_with_http_info(id)
|
57
|
+
p status_code # => 2xx
|
58
|
+
p headers # => { ... }
|
59
|
+
p data # => nil
|
60
|
+
rescue ElasticEmail::ApiError => e
|
61
|
+
puts "Error when calling InboundRouteApi->inboundroute_by_id_delete_with_http_info: #{e}"
|
62
|
+
end
|
63
|
+
```
|
64
|
+
|
65
|
+
### Parameters
|
66
|
+
|
67
|
+
| Name | Type | Description | Notes |
|
68
|
+
| ---- | ---- | ----------- | ----- |
|
69
|
+
| **id** | **String** | | |
|
70
|
+
|
71
|
+
### Return type
|
72
|
+
|
73
|
+
nil (empty response body)
|
74
|
+
|
75
|
+
### Authorization
|
76
|
+
|
77
|
+
[apikey](../README.md#apikey)
|
78
|
+
|
79
|
+
### HTTP request headers
|
80
|
+
|
81
|
+
- **Content-Type**: Not defined
|
82
|
+
- **Accept**: Not defined
|
83
|
+
|
84
|
+
|
85
|
+
## inboundroute_by_id_get
|
86
|
+
|
87
|
+
> <InboundRoute> inboundroute_by_id_get(id)
|
88
|
+
|
89
|
+
Get Route
|
90
|
+
|
91
|
+
Load an Inbound Route. Required Access Level: ViewSettings
|
92
|
+
|
93
|
+
### Examples
|
94
|
+
|
95
|
+
```ruby
|
96
|
+
require 'time'
|
97
|
+
require 'ElasticEmail'
|
98
|
+
# setup authorization
|
99
|
+
ElasticEmail.configure do |config|
|
100
|
+
# Configure API key authorization: apikey
|
101
|
+
config.api_key['apikey'] = 'YOUR API KEY'
|
102
|
+
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
|
103
|
+
# config.api_key_prefix['apikey'] = 'Bearer'
|
104
|
+
end
|
105
|
+
|
106
|
+
api_instance = ElasticEmail::InboundRouteApi.new
|
107
|
+
id = '123456' # String | ID number of your attachment
|
108
|
+
|
109
|
+
begin
|
110
|
+
# Get Route
|
111
|
+
result = api_instance.inboundroute_by_id_get(id)
|
112
|
+
p result
|
113
|
+
rescue ElasticEmail::ApiError => e
|
114
|
+
puts "Error when calling InboundRouteApi->inboundroute_by_id_get: #{e}"
|
115
|
+
end
|
116
|
+
```
|
117
|
+
|
118
|
+
#### Using the inboundroute_by_id_get_with_http_info variant
|
119
|
+
|
120
|
+
This returns an Array which contains the response data, status code and headers.
|
121
|
+
|
122
|
+
> <Array(<InboundRoute>, Integer, Hash)> inboundroute_by_id_get_with_http_info(id)
|
123
|
+
|
124
|
+
```ruby
|
125
|
+
begin
|
126
|
+
# Get Route
|
127
|
+
data, status_code, headers = api_instance.inboundroute_by_id_get_with_http_info(id)
|
128
|
+
p status_code # => 2xx
|
129
|
+
p headers # => { ... }
|
130
|
+
p data # => <InboundRoute>
|
131
|
+
rescue ElasticEmail::ApiError => e
|
132
|
+
puts "Error when calling InboundRouteApi->inboundroute_by_id_get_with_http_info: #{e}"
|
133
|
+
end
|
134
|
+
```
|
135
|
+
|
136
|
+
### Parameters
|
137
|
+
|
138
|
+
| Name | Type | Description | Notes |
|
139
|
+
| ---- | ---- | ----------- | ----- |
|
140
|
+
| **id** | **String** | ID number of your attachment | |
|
141
|
+
|
142
|
+
### Return type
|
143
|
+
|
144
|
+
[**InboundRoute**](InboundRoute.md)
|
145
|
+
|
146
|
+
### Authorization
|
147
|
+
|
148
|
+
[apikey](../README.md#apikey)
|
149
|
+
|
150
|
+
### HTTP request headers
|
151
|
+
|
152
|
+
- **Content-Type**: Not defined
|
153
|
+
- **Accept**: application/json
|
154
|
+
|
155
|
+
|
156
|
+
## inboundroute_by_id_put
|
157
|
+
|
158
|
+
> <InboundRoute> inboundroute_by_id_put(id, inbound_payload)
|
159
|
+
|
160
|
+
Update Route
|
161
|
+
|
162
|
+
Update the Inbound Route. Required Access Level: ModifySettings
|
163
|
+
|
164
|
+
### Examples
|
165
|
+
|
166
|
+
```ruby
|
167
|
+
require 'time'
|
168
|
+
require 'ElasticEmail'
|
169
|
+
# setup authorization
|
170
|
+
ElasticEmail.configure do |config|
|
171
|
+
# Configure API key authorization: apikey
|
172
|
+
config.api_key['apikey'] = 'YOUR API KEY'
|
173
|
+
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
|
174
|
+
# config.api_key_prefix['apikey'] = 'Bearer'
|
175
|
+
end
|
176
|
+
|
177
|
+
api_instance = ElasticEmail::InboundRouteApi.new
|
178
|
+
id = 'id_example' # String |
|
179
|
+
inbound_payload = ElasticEmail::InboundPayload.new # InboundPayload |
|
180
|
+
|
181
|
+
begin
|
182
|
+
# Update Route
|
183
|
+
result = api_instance.inboundroute_by_id_put(id, inbound_payload)
|
184
|
+
p result
|
185
|
+
rescue ElasticEmail::ApiError => e
|
186
|
+
puts "Error when calling InboundRouteApi->inboundroute_by_id_put: #{e}"
|
187
|
+
end
|
188
|
+
```
|
189
|
+
|
190
|
+
#### Using the inboundroute_by_id_put_with_http_info variant
|
191
|
+
|
192
|
+
This returns an Array which contains the response data, status code and headers.
|
193
|
+
|
194
|
+
> <Array(<InboundRoute>, Integer, Hash)> inboundroute_by_id_put_with_http_info(id, inbound_payload)
|
195
|
+
|
196
|
+
```ruby
|
197
|
+
begin
|
198
|
+
# Update Route
|
199
|
+
data, status_code, headers = api_instance.inboundroute_by_id_put_with_http_info(id, inbound_payload)
|
200
|
+
p status_code # => 2xx
|
201
|
+
p headers # => { ... }
|
202
|
+
p data # => <InboundRoute>
|
203
|
+
rescue ElasticEmail::ApiError => e
|
204
|
+
puts "Error when calling InboundRouteApi->inboundroute_by_id_put_with_http_info: #{e}"
|
205
|
+
end
|
206
|
+
```
|
207
|
+
|
208
|
+
### Parameters
|
209
|
+
|
210
|
+
| Name | Type | Description | Notes |
|
211
|
+
| ---- | ---- | ----------- | ----- |
|
212
|
+
| **id** | **String** | | |
|
213
|
+
| **inbound_payload** | [**InboundPayload**](InboundPayload.md) | | |
|
214
|
+
|
215
|
+
### Return type
|
216
|
+
|
217
|
+
[**InboundRoute**](InboundRoute.md)
|
218
|
+
|
219
|
+
### Authorization
|
220
|
+
|
221
|
+
[apikey](../README.md#apikey)
|
222
|
+
|
223
|
+
### HTTP request headers
|
224
|
+
|
225
|
+
- **Content-Type**: application/json
|
226
|
+
- **Accept**: application/json
|
227
|
+
|
228
|
+
|
229
|
+
## inboundroute_get
|
230
|
+
|
231
|
+
> <Array<InboundRoute>> inboundroute_get
|
232
|
+
|
233
|
+
Get Routes
|
234
|
+
|
235
|
+
Get all your Inbound Routes. Required Access Level: ViewSettings
|
236
|
+
|
237
|
+
### Examples
|
238
|
+
|
239
|
+
```ruby
|
240
|
+
require 'time'
|
241
|
+
require 'ElasticEmail'
|
242
|
+
# setup authorization
|
243
|
+
ElasticEmail.configure do |config|
|
244
|
+
# Configure API key authorization: apikey
|
245
|
+
config.api_key['apikey'] = 'YOUR API KEY'
|
246
|
+
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
|
247
|
+
# config.api_key_prefix['apikey'] = 'Bearer'
|
248
|
+
end
|
249
|
+
|
250
|
+
api_instance = ElasticEmail::InboundRouteApi.new
|
251
|
+
|
252
|
+
begin
|
253
|
+
# Get Routes
|
254
|
+
result = api_instance.inboundroute_get
|
255
|
+
p result
|
256
|
+
rescue ElasticEmail::ApiError => e
|
257
|
+
puts "Error when calling InboundRouteApi->inboundroute_get: #{e}"
|
258
|
+
end
|
259
|
+
```
|
260
|
+
|
261
|
+
#### Using the inboundroute_get_with_http_info variant
|
262
|
+
|
263
|
+
This returns an Array which contains the response data, status code and headers.
|
264
|
+
|
265
|
+
> <Array(<Array<InboundRoute>>, Integer, Hash)> inboundroute_get_with_http_info
|
266
|
+
|
267
|
+
```ruby
|
268
|
+
begin
|
269
|
+
# Get Routes
|
270
|
+
data, status_code, headers = api_instance.inboundroute_get_with_http_info
|
271
|
+
p status_code # => 2xx
|
272
|
+
p headers # => { ... }
|
273
|
+
p data # => <Array<InboundRoute>>
|
274
|
+
rescue ElasticEmail::ApiError => e
|
275
|
+
puts "Error when calling InboundRouteApi->inboundroute_get_with_http_info: #{e}"
|
276
|
+
end
|
277
|
+
```
|
278
|
+
|
279
|
+
### Parameters
|
280
|
+
|
281
|
+
This endpoint does not need any parameter.
|
282
|
+
|
283
|
+
### Return type
|
284
|
+
|
285
|
+
[**Array<InboundRoute>**](InboundRoute.md)
|
286
|
+
|
287
|
+
### Authorization
|
288
|
+
|
289
|
+
[apikey](../README.md#apikey)
|
290
|
+
|
291
|
+
### HTTP request headers
|
292
|
+
|
293
|
+
- **Content-Type**: Not defined
|
294
|
+
- **Accept**: application/json
|
295
|
+
|
296
|
+
|
297
|
+
## inboundroute_order_put
|
298
|
+
|
299
|
+
> <Array<InboundRoute>> inboundroute_order_put(sort_order_item)
|
300
|
+
|
301
|
+
Update Sorting
|
302
|
+
|
303
|
+
Required Access Level: ViewSettings
|
304
|
+
|
305
|
+
### Examples
|
306
|
+
|
307
|
+
```ruby
|
308
|
+
require 'time'
|
309
|
+
require 'ElasticEmail'
|
310
|
+
# setup authorization
|
311
|
+
ElasticEmail.configure do |config|
|
312
|
+
# Configure API key authorization: apikey
|
313
|
+
config.api_key['apikey'] = 'YOUR API KEY'
|
314
|
+
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
|
315
|
+
# config.api_key_prefix['apikey'] = 'Bearer'
|
316
|
+
end
|
317
|
+
|
318
|
+
api_instance = ElasticEmail::InboundRouteApi.new
|
319
|
+
sort_order_item = [ElasticEmail::SortOrderItem.new] # Array<SortOrderItem> | Change the ordering of inbound routes for when matching the inbound
|
320
|
+
|
321
|
+
begin
|
322
|
+
# Update Sorting
|
323
|
+
result = api_instance.inboundroute_order_put(sort_order_item)
|
324
|
+
p result
|
325
|
+
rescue ElasticEmail::ApiError => e
|
326
|
+
puts "Error when calling InboundRouteApi->inboundroute_order_put: #{e}"
|
327
|
+
end
|
328
|
+
```
|
329
|
+
|
330
|
+
#### Using the inboundroute_order_put_with_http_info variant
|
331
|
+
|
332
|
+
This returns an Array which contains the response data, status code and headers.
|
333
|
+
|
334
|
+
> <Array(<Array<InboundRoute>>, Integer, Hash)> inboundroute_order_put_with_http_info(sort_order_item)
|
335
|
+
|
336
|
+
```ruby
|
337
|
+
begin
|
338
|
+
# Update Sorting
|
339
|
+
data, status_code, headers = api_instance.inboundroute_order_put_with_http_info(sort_order_item)
|
340
|
+
p status_code # => 2xx
|
341
|
+
p headers # => { ... }
|
342
|
+
p data # => <Array<InboundRoute>>
|
343
|
+
rescue ElasticEmail::ApiError => e
|
344
|
+
puts "Error when calling InboundRouteApi->inboundroute_order_put_with_http_info: #{e}"
|
345
|
+
end
|
346
|
+
```
|
347
|
+
|
348
|
+
### Parameters
|
349
|
+
|
350
|
+
| Name | Type | Description | Notes |
|
351
|
+
| ---- | ---- | ----------- | ----- |
|
352
|
+
| **sort_order_item** | [**Array<SortOrderItem>**](SortOrderItem.md) | Change the ordering of inbound routes for when matching the inbound | |
|
353
|
+
|
354
|
+
### Return type
|
355
|
+
|
356
|
+
[**Array<InboundRoute>**](InboundRoute.md)
|
357
|
+
|
358
|
+
### Authorization
|
359
|
+
|
360
|
+
[apikey](../README.md#apikey)
|
361
|
+
|
362
|
+
### HTTP request headers
|
363
|
+
|
364
|
+
- **Content-Type**: application/json
|
365
|
+
- **Accept**: application/json
|
366
|
+
|
367
|
+
|
368
|
+
## inboundroute_post
|
369
|
+
|
370
|
+
> <InboundRoute> inboundroute_post(inbound_payload)
|
371
|
+
|
372
|
+
Create Route
|
373
|
+
|
374
|
+
Create new Inbound Route. Required Access Level: ModifySettings
|
375
|
+
|
376
|
+
### Examples
|
377
|
+
|
378
|
+
```ruby
|
379
|
+
require 'time'
|
380
|
+
require 'ElasticEmail'
|
381
|
+
# setup authorization
|
382
|
+
ElasticEmail.configure do |config|
|
383
|
+
# Configure API key authorization: apikey
|
384
|
+
config.api_key['apikey'] = 'YOUR API KEY'
|
385
|
+
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
|
386
|
+
# config.api_key_prefix['apikey'] = 'Bearer'
|
387
|
+
end
|
388
|
+
|
389
|
+
api_instance = ElasticEmail::InboundRouteApi.new
|
390
|
+
inbound_payload = ElasticEmail::InboundPayload.new # InboundPayload |
|
391
|
+
|
392
|
+
begin
|
393
|
+
# Create Route
|
394
|
+
result = api_instance.inboundroute_post(inbound_payload)
|
395
|
+
p result
|
396
|
+
rescue ElasticEmail::ApiError => e
|
397
|
+
puts "Error when calling InboundRouteApi->inboundroute_post: #{e}"
|
398
|
+
end
|
399
|
+
```
|
400
|
+
|
401
|
+
#### Using the inboundroute_post_with_http_info variant
|
402
|
+
|
403
|
+
This returns an Array which contains the response data, status code and headers.
|
404
|
+
|
405
|
+
> <Array(<InboundRoute>, Integer, Hash)> inboundroute_post_with_http_info(inbound_payload)
|
406
|
+
|
407
|
+
```ruby
|
408
|
+
begin
|
409
|
+
# Create Route
|
410
|
+
data, status_code, headers = api_instance.inboundroute_post_with_http_info(inbound_payload)
|
411
|
+
p status_code # => 2xx
|
412
|
+
p headers # => { ... }
|
413
|
+
p data # => <InboundRoute>
|
414
|
+
rescue ElasticEmail::ApiError => e
|
415
|
+
puts "Error when calling InboundRouteApi->inboundroute_post_with_http_info: #{e}"
|
416
|
+
end
|
417
|
+
```
|
418
|
+
|
419
|
+
### Parameters
|
420
|
+
|
421
|
+
| Name | Type | Description | Notes |
|
422
|
+
| ---- | ---- | ----------- | ----- |
|
423
|
+
| **inbound_payload** | [**InboundPayload**](InboundPayload.md) | | |
|
424
|
+
|
425
|
+
### Return type
|
426
|
+
|
427
|
+
[**InboundRoute**](InboundRoute.md)
|
428
|
+
|
429
|
+
### Authorization
|
430
|
+
|
431
|
+
[apikey](../README.md#apikey)
|
432
|
+
|
433
|
+
### HTTP request headers
|
434
|
+
|
435
|
+
- **Content-Type**: application/json
|
436
|
+
- **Accept**: application/json
|
437
|
+
|