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,22 @@
|
|
1
|
+
# ElasticEmail::TransactionalRecipient
|
2
|
+
|
3
|
+
## Properties
|
4
|
+
|
5
|
+
| Name | Type | Description | Notes |
|
6
|
+
| ---- | ---- | ----------- | ----- |
|
7
|
+
| **to** | **Array<String>** | List of recipients (visible to others) | [optional] |
|
8
|
+
| **cc** | **Array<String>** | List of Carbon Copy recipients (visible to others) | [optional] |
|
9
|
+
| **bcc** | **Array<String>** | List of Blind Carbon Copy recipients (hidden from other recipients) | [optional] |
|
10
|
+
|
11
|
+
## Example
|
12
|
+
|
13
|
+
```ruby
|
14
|
+
require 'ElasticEmail'
|
15
|
+
|
16
|
+
instance = ElasticEmail::TransactionalRecipient.new(
|
17
|
+
to: null,
|
18
|
+
cc: null,
|
19
|
+
bcc: null
|
20
|
+
)
|
21
|
+
```
|
22
|
+
|
data/docs/Utm.md
ADDED
@@ -0,0 +1,24 @@
|
|
1
|
+
# ElasticEmail::Utm
|
2
|
+
|
3
|
+
## Properties
|
4
|
+
|
5
|
+
| Name | Type | Description | Notes |
|
6
|
+
| ---- | ---- | ----------- | ----- |
|
7
|
+
| **source** | **String** | utmsource value | [optional] |
|
8
|
+
| **medium** | **String** | utmmedium value | [optional] |
|
9
|
+
| **campaign** | **String** | utmcampaign value | [optional] |
|
10
|
+
| **content** | **String** | utmcontent value | [optional] |
|
11
|
+
|
12
|
+
## Example
|
13
|
+
|
14
|
+
```ruby
|
15
|
+
require 'ElasticEmail'
|
16
|
+
|
17
|
+
instance = ElasticEmail::Utm.new(
|
18
|
+
source: null,
|
19
|
+
medium: null,
|
20
|
+
campaign: null,
|
21
|
+
content: null
|
22
|
+
)
|
23
|
+
```
|
24
|
+
|
@@ -0,0 +1,28 @@
|
|
1
|
+
# ElasticEmail::VerificationFileResult
|
2
|
+
|
3
|
+
## Properties
|
4
|
+
|
5
|
+
| Name | Type | Description | Notes |
|
6
|
+
| ---- | ---- | ----------- | ----- |
|
7
|
+
| **verification_id** | **String** | Identifier of this verification result | [optional] |
|
8
|
+
| **filename** | **String** | Origin file name | [optional] |
|
9
|
+
| **verification_status** | [**VerificationStatus**](VerificationStatus.md) | In what state does this verification result currently is | [optional] |
|
10
|
+
| **file_upload_result** | [**FileUploadResult**](FileUploadResult.md) | How many emails were detected in the file for verification | [optional] |
|
11
|
+
| **date_added** | **Time** | Date of creation in YYYY-MM-DDThh:ii:ss format | [optional] |
|
12
|
+
| **source** | **String** | Origin file extension | [optional] |
|
13
|
+
|
14
|
+
## Example
|
15
|
+
|
16
|
+
```ruby
|
17
|
+
require 'ElasticEmail'
|
18
|
+
|
19
|
+
instance = ElasticEmail::VerificationFileResult.new(
|
20
|
+
verification_id: null,
|
21
|
+
filename: null,
|
22
|
+
verification_status: null,
|
23
|
+
file_upload_result: null,
|
24
|
+
date_added: null,
|
25
|
+
source: null
|
26
|
+
)
|
27
|
+
```
|
28
|
+
|
@@ -0,0 +1,30 @@
|
|
1
|
+
# ElasticEmail::VerificationFileResultDetails
|
2
|
+
|
3
|
+
## Properties
|
4
|
+
|
5
|
+
| Name | Type | Description | Notes |
|
6
|
+
| ---- | ---- | ----------- | ----- |
|
7
|
+
| **verification_result** | [**Array<EmailValidationResult>**](EmailValidationResult.md) | Verification result's details | [optional] |
|
8
|
+
| **verification_id** | **String** | Identifier of this verification result | [optional] |
|
9
|
+
| **filename** | **String** | Origin file name | [optional] |
|
10
|
+
| **verification_status** | [**VerificationStatus**](VerificationStatus.md) | In what state does this verification result currently is | [optional] |
|
11
|
+
| **file_upload_result** | [**FileUploadResult**](FileUploadResult.md) | How many emails were detected in the file for verification | [optional] |
|
12
|
+
| **date_added** | **Time** | Date of creation in YYYY-MM-DDThh:ii:ss format | [optional] |
|
13
|
+
| **source** | **String** | Origin file extension | [optional] |
|
14
|
+
|
15
|
+
## Example
|
16
|
+
|
17
|
+
```ruby
|
18
|
+
require 'ElasticEmail'
|
19
|
+
|
20
|
+
instance = ElasticEmail::VerificationFileResultDetails.new(
|
21
|
+
verification_result: null,
|
22
|
+
verification_id: null,
|
23
|
+
filename: null,
|
24
|
+
verification_status: null,
|
25
|
+
file_upload_result: null,
|
26
|
+
date_added: null,
|
27
|
+
source: null
|
28
|
+
)
|
29
|
+
```
|
30
|
+
|
@@ -0,0 +1,15 @@
|
|
1
|
+
# ElasticEmail::VerificationStatus
|
2
|
+
|
3
|
+
## Properties
|
4
|
+
|
5
|
+
| Name | Type | Description | Notes |
|
6
|
+
| ---- | ---- | ----------- | ----- |
|
7
|
+
|
8
|
+
## Example
|
9
|
+
|
10
|
+
```ruby
|
11
|
+
require 'ElasticEmail'
|
12
|
+
|
13
|
+
instance = ElasticEmail::VerificationStatus.new()
|
14
|
+
```
|
15
|
+
|
@@ -0,0 +1,662 @@
|
|
1
|
+
# ElasticEmail::VerificationsApi
|
2
|
+
|
3
|
+
All URIs are relative to *https://api.elasticemail.com/v4*
|
4
|
+
|
5
|
+
| Method | HTTP request | Description |
|
6
|
+
| ------ | ------------ | ----------- |
|
7
|
+
| [**verifications_by_email_delete**](VerificationsApi.md#verifications_by_email_delete) | **DELETE** /verifications/{email} | Delete Email Verification Result |
|
8
|
+
| [**verifications_by_email_get**](VerificationsApi.md#verifications_by_email_get) | **GET** /verifications/{email} | Get Email Verification Result |
|
9
|
+
| [**verifications_by_email_post**](VerificationsApi.md#verifications_by_email_post) | **POST** /verifications/{email} | Verify Email |
|
10
|
+
| [**verifications_files_by_id_delete**](VerificationsApi.md#verifications_files_by_id_delete) | **DELETE** /verifications/files/{id} | Delete File Verification Result |
|
11
|
+
| [**verifications_files_by_id_result_download_get**](VerificationsApi.md#verifications_files_by_id_result_download_get) | **GET** /verifications/files/{id}/result/download | Download File Verification Result |
|
12
|
+
| [**verifications_files_by_id_result_get**](VerificationsApi.md#verifications_files_by_id_result_get) | **GET** /verifications/files/{id}/result | Get Detailed File Verification Result |
|
13
|
+
| [**verifications_files_post**](VerificationsApi.md#verifications_files_post) | **POST** /verifications/files | Verify From File |
|
14
|
+
| [**verifications_files_result_get**](VerificationsApi.md#verifications_files_result_get) | **GET** /verifications/files/result | Get Simple Files Verification Results |
|
15
|
+
| [**verifications_get**](VerificationsApi.md#verifications_get) | **GET** /verifications | Get Emails Verification Results |
|
16
|
+
|
17
|
+
|
18
|
+
## verifications_by_email_delete
|
19
|
+
|
20
|
+
> verifications_by_email_delete(email)
|
21
|
+
|
22
|
+
Delete Email Verification Result
|
23
|
+
|
24
|
+
Delete a result with given email if exists. Required Access Level: VerifyEmails
|
25
|
+
|
26
|
+
### Examples
|
27
|
+
|
28
|
+
```ruby
|
29
|
+
require 'time'
|
30
|
+
require 'ElasticEmail'
|
31
|
+
# setup authorization
|
32
|
+
ElasticEmail.configure do |config|
|
33
|
+
# Configure API key authorization: apikey
|
34
|
+
config.api_key['apikey'] = 'YOUR API KEY'
|
35
|
+
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
|
36
|
+
# config.api_key_prefix['apikey'] = 'Bearer'
|
37
|
+
end
|
38
|
+
|
39
|
+
api_instance = ElasticEmail::VerificationsApi.new
|
40
|
+
email = 'email_example' # String | Email address to verification
|
41
|
+
|
42
|
+
begin
|
43
|
+
# Delete Email Verification Result
|
44
|
+
api_instance.verifications_by_email_delete(email)
|
45
|
+
rescue ElasticEmail::ApiError => e
|
46
|
+
puts "Error when calling VerificationsApi->verifications_by_email_delete: #{e}"
|
47
|
+
end
|
48
|
+
```
|
49
|
+
|
50
|
+
#### Using the verifications_by_email_delete_with_http_info variant
|
51
|
+
|
52
|
+
This returns an Array which contains the response data (`nil` in this case), status code and headers.
|
53
|
+
|
54
|
+
> <Array(nil, Integer, Hash)> verifications_by_email_delete_with_http_info(email)
|
55
|
+
|
56
|
+
```ruby
|
57
|
+
begin
|
58
|
+
# Delete Email Verification Result
|
59
|
+
data, status_code, headers = api_instance.verifications_by_email_delete_with_http_info(email)
|
60
|
+
p status_code # => 2xx
|
61
|
+
p headers # => { ... }
|
62
|
+
p data # => nil
|
63
|
+
rescue ElasticEmail::ApiError => e
|
64
|
+
puts "Error when calling VerificationsApi->verifications_by_email_delete_with_http_info: #{e}"
|
65
|
+
end
|
66
|
+
```
|
67
|
+
|
68
|
+
### Parameters
|
69
|
+
|
70
|
+
| Name | Type | Description | Notes |
|
71
|
+
| ---- | ---- | ----------- | ----- |
|
72
|
+
| **email** | **String** | Email address to verification | |
|
73
|
+
|
74
|
+
### Return type
|
75
|
+
|
76
|
+
nil (empty response body)
|
77
|
+
|
78
|
+
### Authorization
|
79
|
+
|
80
|
+
[apikey](../README.md#apikey)
|
81
|
+
|
82
|
+
### HTTP request headers
|
83
|
+
|
84
|
+
- **Content-Type**: Not defined
|
85
|
+
- **Accept**: Not defined
|
86
|
+
|
87
|
+
|
88
|
+
## verifications_by_email_get
|
89
|
+
|
90
|
+
> <EmailValidationResult> verifications_by_email_get(email)
|
91
|
+
|
92
|
+
Get Email Verification Result
|
93
|
+
|
94
|
+
Returns a result of verified email. Required Access Level: ViewEmailVerifications
|
95
|
+
|
96
|
+
### Examples
|
97
|
+
|
98
|
+
```ruby
|
99
|
+
require 'time'
|
100
|
+
require 'ElasticEmail'
|
101
|
+
# setup authorization
|
102
|
+
ElasticEmail.configure do |config|
|
103
|
+
# Configure API key authorization: apikey
|
104
|
+
config.api_key['apikey'] = 'YOUR API KEY'
|
105
|
+
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
|
106
|
+
# config.api_key_prefix['apikey'] = 'Bearer'
|
107
|
+
end
|
108
|
+
|
109
|
+
api_instance = ElasticEmail::VerificationsApi.new
|
110
|
+
email = 'email_example' # String | Email address to view verification result of
|
111
|
+
|
112
|
+
begin
|
113
|
+
# Get Email Verification Result
|
114
|
+
result = api_instance.verifications_by_email_get(email)
|
115
|
+
p result
|
116
|
+
rescue ElasticEmail::ApiError => e
|
117
|
+
puts "Error when calling VerificationsApi->verifications_by_email_get: #{e}"
|
118
|
+
end
|
119
|
+
```
|
120
|
+
|
121
|
+
#### Using the verifications_by_email_get_with_http_info variant
|
122
|
+
|
123
|
+
This returns an Array which contains the response data, status code and headers.
|
124
|
+
|
125
|
+
> <Array(<EmailValidationResult>, Integer, Hash)> verifications_by_email_get_with_http_info(email)
|
126
|
+
|
127
|
+
```ruby
|
128
|
+
begin
|
129
|
+
# Get Email Verification Result
|
130
|
+
data, status_code, headers = api_instance.verifications_by_email_get_with_http_info(email)
|
131
|
+
p status_code # => 2xx
|
132
|
+
p headers # => { ... }
|
133
|
+
p data # => <EmailValidationResult>
|
134
|
+
rescue ElasticEmail::ApiError => e
|
135
|
+
puts "Error when calling VerificationsApi->verifications_by_email_get_with_http_info: #{e}"
|
136
|
+
end
|
137
|
+
```
|
138
|
+
|
139
|
+
### Parameters
|
140
|
+
|
141
|
+
| Name | Type | Description | Notes |
|
142
|
+
| ---- | ---- | ----------- | ----- |
|
143
|
+
| **email** | **String** | Email address to view verification result of | |
|
144
|
+
|
145
|
+
### Return type
|
146
|
+
|
147
|
+
[**EmailValidationResult**](EmailValidationResult.md)
|
148
|
+
|
149
|
+
### Authorization
|
150
|
+
|
151
|
+
[apikey](../README.md#apikey)
|
152
|
+
|
153
|
+
### HTTP request headers
|
154
|
+
|
155
|
+
- **Content-Type**: Not defined
|
156
|
+
- **Accept**: application/json
|
157
|
+
|
158
|
+
|
159
|
+
## verifications_by_email_post
|
160
|
+
|
161
|
+
> <EmailValidationResult> verifications_by_email_post(email)
|
162
|
+
|
163
|
+
Verify Email
|
164
|
+
|
165
|
+
Verify single email address and returns result of verification. Required Access Level: VerifyEmails
|
166
|
+
|
167
|
+
### Examples
|
168
|
+
|
169
|
+
```ruby
|
170
|
+
require 'time'
|
171
|
+
require 'ElasticEmail'
|
172
|
+
# setup authorization
|
173
|
+
ElasticEmail.configure do |config|
|
174
|
+
# Configure API key authorization: apikey
|
175
|
+
config.api_key['apikey'] = 'YOUR API KEY'
|
176
|
+
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
|
177
|
+
# config.api_key_prefix['apikey'] = 'Bearer'
|
178
|
+
end
|
179
|
+
|
180
|
+
api_instance = ElasticEmail::VerificationsApi.new
|
181
|
+
email = 'email_example' # String | Email address to verify
|
182
|
+
|
183
|
+
begin
|
184
|
+
# Verify Email
|
185
|
+
result = api_instance.verifications_by_email_post(email)
|
186
|
+
p result
|
187
|
+
rescue ElasticEmail::ApiError => e
|
188
|
+
puts "Error when calling VerificationsApi->verifications_by_email_post: #{e}"
|
189
|
+
end
|
190
|
+
```
|
191
|
+
|
192
|
+
#### Using the verifications_by_email_post_with_http_info variant
|
193
|
+
|
194
|
+
This returns an Array which contains the response data, status code and headers.
|
195
|
+
|
196
|
+
> <Array(<EmailValidationResult>, Integer, Hash)> verifications_by_email_post_with_http_info(email)
|
197
|
+
|
198
|
+
```ruby
|
199
|
+
begin
|
200
|
+
# Verify Email
|
201
|
+
data, status_code, headers = api_instance.verifications_by_email_post_with_http_info(email)
|
202
|
+
p status_code # => 2xx
|
203
|
+
p headers # => { ... }
|
204
|
+
p data # => <EmailValidationResult>
|
205
|
+
rescue ElasticEmail::ApiError => e
|
206
|
+
puts "Error when calling VerificationsApi->verifications_by_email_post_with_http_info: #{e}"
|
207
|
+
end
|
208
|
+
```
|
209
|
+
|
210
|
+
### Parameters
|
211
|
+
|
212
|
+
| Name | Type | Description | Notes |
|
213
|
+
| ---- | ---- | ----------- | ----- |
|
214
|
+
| **email** | **String** | Email address to verify | |
|
215
|
+
|
216
|
+
### Return type
|
217
|
+
|
218
|
+
[**EmailValidationResult**](EmailValidationResult.md)
|
219
|
+
|
220
|
+
### Authorization
|
221
|
+
|
222
|
+
[apikey](../README.md#apikey)
|
223
|
+
|
224
|
+
### HTTP request headers
|
225
|
+
|
226
|
+
- **Content-Type**: Not defined
|
227
|
+
- **Accept**: application/json
|
228
|
+
|
229
|
+
|
230
|
+
## verifications_files_by_id_delete
|
231
|
+
|
232
|
+
> verifications_files_by_id_delete(id)
|
233
|
+
|
234
|
+
Delete File Verification Result
|
235
|
+
|
236
|
+
Delete Verification Results if they exist. Required Access Level: VerifyEmails
|
237
|
+
|
238
|
+
### Examples
|
239
|
+
|
240
|
+
```ruby
|
241
|
+
require 'time'
|
242
|
+
require 'ElasticEmail'
|
243
|
+
# setup authorization
|
244
|
+
ElasticEmail.configure do |config|
|
245
|
+
# Configure API key authorization: apikey
|
246
|
+
config.api_key['apikey'] = 'YOUR API KEY'
|
247
|
+
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
|
248
|
+
# config.api_key_prefix['apikey'] = 'Bearer'
|
249
|
+
end
|
250
|
+
|
251
|
+
api_instance = ElasticEmail::VerificationsApi.new
|
252
|
+
id = 'E33EBA7A-C20D-4D3D-8F2F-5EEF42F58E6F' # String | ID of the exported file
|
253
|
+
|
254
|
+
begin
|
255
|
+
# Delete File Verification Result
|
256
|
+
api_instance.verifications_files_by_id_delete(id)
|
257
|
+
rescue ElasticEmail::ApiError => e
|
258
|
+
puts "Error when calling VerificationsApi->verifications_files_by_id_delete: #{e}"
|
259
|
+
end
|
260
|
+
```
|
261
|
+
|
262
|
+
#### Using the verifications_files_by_id_delete_with_http_info variant
|
263
|
+
|
264
|
+
This returns an Array which contains the response data (`nil` in this case), status code and headers.
|
265
|
+
|
266
|
+
> <Array(nil, Integer, Hash)> verifications_files_by_id_delete_with_http_info(id)
|
267
|
+
|
268
|
+
```ruby
|
269
|
+
begin
|
270
|
+
# Delete File Verification Result
|
271
|
+
data, status_code, headers = api_instance.verifications_files_by_id_delete_with_http_info(id)
|
272
|
+
p status_code # => 2xx
|
273
|
+
p headers # => { ... }
|
274
|
+
p data # => nil
|
275
|
+
rescue ElasticEmail::ApiError => e
|
276
|
+
puts "Error when calling VerificationsApi->verifications_files_by_id_delete_with_http_info: #{e}"
|
277
|
+
end
|
278
|
+
```
|
279
|
+
|
280
|
+
### Parameters
|
281
|
+
|
282
|
+
| Name | Type | Description | Notes |
|
283
|
+
| ---- | ---- | ----------- | ----- |
|
284
|
+
| **id** | **String** | ID of the exported file | |
|
285
|
+
|
286
|
+
### Return type
|
287
|
+
|
288
|
+
nil (empty response body)
|
289
|
+
|
290
|
+
### Authorization
|
291
|
+
|
292
|
+
[apikey](../README.md#apikey)
|
293
|
+
|
294
|
+
### HTTP request headers
|
295
|
+
|
296
|
+
- **Content-Type**: Not defined
|
297
|
+
- **Accept**: Not defined
|
298
|
+
|
299
|
+
|
300
|
+
## verifications_files_by_id_result_download_get
|
301
|
+
|
302
|
+
> File verifications_files_by_id_result_download_get(id)
|
303
|
+
|
304
|
+
Download File Verification Result
|
305
|
+
|
306
|
+
Download verification results as a ZIP file. Required Access Level: VerifyEmails
|
307
|
+
|
308
|
+
### Examples
|
309
|
+
|
310
|
+
```ruby
|
311
|
+
require 'time'
|
312
|
+
require 'ElasticEmail'
|
313
|
+
# setup authorization
|
314
|
+
ElasticEmail.configure do |config|
|
315
|
+
# Configure API key authorization: apikey
|
316
|
+
config.api_key['apikey'] = 'YOUR API KEY'
|
317
|
+
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
|
318
|
+
# config.api_key_prefix['apikey'] = 'Bearer'
|
319
|
+
end
|
320
|
+
|
321
|
+
api_instance = ElasticEmail::VerificationsApi.new
|
322
|
+
id = 'id_example' # String | Verification ID to download
|
323
|
+
|
324
|
+
begin
|
325
|
+
# Download File Verification Result
|
326
|
+
result = api_instance.verifications_files_by_id_result_download_get(id)
|
327
|
+
p result
|
328
|
+
rescue ElasticEmail::ApiError => e
|
329
|
+
puts "Error when calling VerificationsApi->verifications_files_by_id_result_download_get: #{e}"
|
330
|
+
end
|
331
|
+
```
|
332
|
+
|
333
|
+
#### Using the verifications_files_by_id_result_download_get_with_http_info variant
|
334
|
+
|
335
|
+
This returns an Array which contains the response data, status code and headers.
|
336
|
+
|
337
|
+
> <Array(File, Integer, Hash)> verifications_files_by_id_result_download_get_with_http_info(id)
|
338
|
+
|
339
|
+
```ruby
|
340
|
+
begin
|
341
|
+
# Download File Verification Result
|
342
|
+
data, status_code, headers = api_instance.verifications_files_by_id_result_download_get_with_http_info(id)
|
343
|
+
p status_code # => 2xx
|
344
|
+
p headers # => { ... }
|
345
|
+
p data # => File
|
346
|
+
rescue ElasticEmail::ApiError => e
|
347
|
+
puts "Error when calling VerificationsApi->verifications_files_by_id_result_download_get_with_http_info: #{e}"
|
348
|
+
end
|
349
|
+
```
|
350
|
+
|
351
|
+
### Parameters
|
352
|
+
|
353
|
+
| Name | Type | Description | Notes |
|
354
|
+
| ---- | ---- | ----------- | ----- |
|
355
|
+
| **id** | **String** | Verification ID to download | |
|
356
|
+
|
357
|
+
### Return type
|
358
|
+
|
359
|
+
**File**
|
360
|
+
|
361
|
+
### Authorization
|
362
|
+
|
363
|
+
[apikey](../README.md#apikey)
|
364
|
+
|
365
|
+
### HTTP request headers
|
366
|
+
|
367
|
+
- **Content-Type**: Not defined
|
368
|
+
- **Accept**: application/*
|
369
|
+
|
370
|
+
|
371
|
+
## verifications_files_by_id_result_get
|
372
|
+
|
373
|
+
> <VerificationFileResultDetails> verifications_files_by_id_result_get(id, opts)
|
374
|
+
|
375
|
+
Get Detailed File Verification Result
|
376
|
+
|
377
|
+
Returns status and results (if verified) of file with given ID. Required Access Level: ViewEmailVerifications
|
378
|
+
|
379
|
+
### Examples
|
380
|
+
|
381
|
+
```ruby
|
382
|
+
require 'time'
|
383
|
+
require 'ElasticEmail'
|
384
|
+
# setup authorization
|
385
|
+
ElasticEmail.configure do |config|
|
386
|
+
# Configure API key authorization: apikey
|
387
|
+
config.api_key['apikey'] = 'YOUR API KEY'
|
388
|
+
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
|
389
|
+
# config.api_key_prefix['apikey'] = 'Bearer'
|
390
|
+
end
|
391
|
+
|
392
|
+
api_instance = ElasticEmail::VerificationsApi.new
|
393
|
+
id = 'id_example' # String | ID of the Verification to display status of
|
394
|
+
opts = {
|
395
|
+
limit: 56, # Integer | Maximum number of returned email verification results
|
396
|
+
offset: 56 # Integer | How many result items should be returned ahead
|
397
|
+
}
|
398
|
+
|
399
|
+
begin
|
400
|
+
# Get Detailed File Verification Result
|
401
|
+
result = api_instance.verifications_files_by_id_result_get(id, opts)
|
402
|
+
p result
|
403
|
+
rescue ElasticEmail::ApiError => e
|
404
|
+
puts "Error when calling VerificationsApi->verifications_files_by_id_result_get: #{e}"
|
405
|
+
end
|
406
|
+
```
|
407
|
+
|
408
|
+
#### Using the verifications_files_by_id_result_get_with_http_info variant
|
409
|
+
|
410
|
+
This returns an Array which contains the response data, status code and headers.
|
411
|
+
|
412
|
+
> <Array(<VerificationFileResultDetails>, Integer, Hash)> verifications_files_by_id_result_get_with_http_info(id, opts)
|
413
|
+
|
414
|
+
```ruby
|
415
|
+
begin
|
416
|
+
# Get Detailed File Verification Result
|
417
|
+
data, status_code, headers = api_instance.verifications_files_by_id_result_get_with_http_info(id, opts)
|
418
|
+
p status_code # => 2xx
|
419
|
+
p headers # => { ... }
|
420
|
+
p data # => <VerificationFileResultDetails>
|
421
|
+
rescue ElasticEmail::ApiError => e
|
422
|
+
puts "Error when calling VerificationsApi->verifications_files_by_id_result_get_with_http_info: #{e}"
|
423
|
+
end
|
424
|
+
```
|
425
|
+
|
426
|
+
### Parameters
|
427
|
+
|
428
|
+
| Name | Type | Description | Notes |
|
429
|
+
| ---- | ---- | ----------- | ----- |
|
430
|
+
| **id** | **String** | ID of the Verification to display status of | |
|
431
|
+
| **limit** | **Integer** | Maximum number of returned email verification results | [optional] |
|
432
|
+
| **offset** | **Integer** | How many result items should be returned ahead | [optional] |
|
433
|
+
|
434
|
+
### Return type
|
435
|
+
|
436
|
+
[**VerificationFileResultDetails**](VerificationFileResultDetails.md)
|
437
|
+
|
438
|
+
### Authorization
|
439
|
+
|
440
|
+
[apikey](../README.md#apikey)
|
441
|
+
|
442
|
+
### HTTP request headers
|
443
|
+
|
444
|
+
- **Content-Type**: Not defined
|
445
|
+
- **Accept**: application/json
|
446
|
+
|
447
|
+
|
448
|
+
## verifications_files_post
|
449
|
+
|
450
|
+
> <VerificationFileResult> verifications_files_post(opts)
|
451
|
+
|
452
|
+
Verify From File
|
453
|
+
|
454
|
+
Uploads a CSV file with list of emails to verify. An 'email' column is required. Required Access Level: VerifyEmails
|
455
|
+
|
456
|
+
### Examples
|
457
|
+
|
458
|
+
```ruby
|
459
|
+
require 'time'
|
460
|
+
require 'ElasticEmail'
|
461
|
+
# setup authorization
|
462
|
+
ElasticEmail.configure do |config|
|
463
|
+
# Configure API key authorization: apikey
|
464
|
+
config.api_key['apikey'] = 'YOUR API KEY'
|
465
|
+
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
|
466
|
+
# config.api_key_prefix['apikey'] = 'Bearer'
|
467
|
+
end
|
468
|
+
|
469
|
+
api_instance = ElasticEmail::VerificationsApi.new
|
470
|
+
opts = {
|
471
|
+
file: File.new('/path/to/some/file') # File |
|
472
|
+
}
|
473
|
+
|
474
|
+
begin
|
475
|
+
# Verify From File
|
476
|
+
result = api_instance.verifications_files_post(opts)
|
477
|
+
p result
|
478
|
+
rescue ElasticEmail::ApiError => e
|
479
|
+
puts "Error when calling VerificationsApi->verifications_files_post: #{e}"
|
480
|
+
end
|
481
|
+
```
|
482
|
+
|
483
|
+
#### Using the verifications_files_post_with_http_info variant
|
484
|
+
|
485
|
+
This returns an Array which contains the response data, status code and headers.
|
486
|
+
|
487
|
+
> <Array(<VerificationFileResult>, Integer, Hash)> verifications_files_post_with_http_info(opts)
|
488
|
+
|
489
|
+
```ruby
|
490
|
+
begin
|
491
|
+
# Verify From File
|
492
|
+
data, status_code, headers = api_instance.verifications_files_post_with_http_info(opts)
|
493
|
+
p status_code # => 2xx
|
494
|
+
p headers # => { ... }
|
495
|
+
p data # => <VerificationFileResult>
|
496
|
+
rescue ElasticEmail::ApiError => e
|
497
|
+
puts "Error when calling VerificationsApi->verifications_files_post_with_http_info: #{e}"
|
498
|
+
end
|
499
|
+
```
|
500
|
+
|
501
|
+
### Parameters
|
502
|
+
|
503
|
+
| Name | Type | Description | Notes |
|
504
|
+
| ---- | ---- | ----------- | ----- |
|
505
|
+
| **file** | **File** | | [optional] |
|
506
|
+
|
507
|
+
### Return type
|
508
|
+
|
509
|
+
[**VerificationFileResult**](VerificationFileResult.md)
|
510
|
+
|
511
|
+
### Authorization
|
512
|
+
|
513
|
+
[apikey](../README.md#apikey)
|
514
|
+
|
515
|
+
### HTTP request headers
|
516
|
+
|
517
|
+
- **Content-Type**: multipart/form-data
|
518
|
+
- **Accept**: application/json
|
519
|
+
|
520
|
+
|
521
|
+
## verifications_files_result_get
|
522
|
+
|
523
|
+
> <Array<VerificationFileResult>> verifications_files_result_get
|
524
|
+
|
525
|
+
Get Simple Files Verification Results
|
526
|
+
|
527
|
+
Returns a list of uploaded files, their statuses and results. Required Access Level: ViewEmailVerifications
|
528
|
+
|
529
|
+
### Examples
|
530
|
+
|
531
|
+
```ruby
|
532
|
+
require 'time'
|
533
|
+
require 'ElasticEmail'
|
534
|
+
# setup authorization
|
535
|
+
ElasticEmail.configure do |config|
|
536
|
+
# Configure API key authorization: apikey
|
537
|
+
config.api_key['apikey'] = 'YOUR API KEY'
|
538
|
+
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
|
539
|
+
# config.api_key_prefix['apikey'] = 'Bearer'
|
540
|
+
end
|
541
|
+
|
542
|
+
api_instance = ElasticEmail::VerificationsApi.new
|
543
|
+
|
544
|
+
begin
|
545
|
+
# Get Simple Files Verification Results
|
546
|
+
result = api_instance.verifications_files_result_get
|
547
|
+
p result
|
548
|
+
rescue ElasticEmail::ApiError => e
|
549
|
+
puts "Error when calling VerificationsApi->verifications_files_result_get: #{e}"
|
550
|
+
end
|
551
|
+
```
|
552
|
+
|
553
|
+
#### Using the verifications_files_result_get_with_http_info variant
|
554
|
+
|
555
|
+
This returns an Array which contains the response data, status code and headers.
|
556
|
+
|
557
|
+
> <Array(<Array<VerificationFileResult>>, Integer, Hash)> verifications_files_result_get_with_http_info
|
558
|
+
|
559
|
+
```ruby
|
560
|
+
begin
|
561
|
+
# Get Simple Files Verification Results
|
562
|
+
data, status_code, headers = api_instance.verifications_files_result_get_with_http_info
|
563
|
+
p status_code # => 2xx
|
564
|
+
p headers # => { ... }
|
565
|
+
p data # => <Array<VerificationFileResult>>
|
566
|
+
rescue ElasticEmail::ApiError => e
|
567
|
+
puts "Error when calling VerificationsApi->verifications_files_result_get_with_http_info: #{e}"
|
568
|
+
end
|
569
|
+
```
|
570
|
+
|
571
|
+
### Parameters
|
572
|
+
|
573
|
+
This endpoint does not need any parameter.
|
574
|
+
|
575
|
+
### Return type
|
576
|
+
|
577
|
+
[**Array<VerificationFileResult>**](VerificationFileResult.md)
|
578
|
+
|
579
|
+
### Authorization
|
580
|
+
|
581
|
+
[apikey](../README.md#apikey)
|
582
|
+
|
583
|
+
### HTTP request headers
|
584
|
+
|
585
|
+
- **Content-Type**: Not defined
|
586
|
+
- **Accept**: application/json
|
587
|
+
|
588
|
+
|
589
|
+
## verifications_get
|
590
|
+
|
591
|
+
> <Array<EmailValidationResult>> verifications_get(opts)
|
592
|
+
|
593
|
+
Get Emails Verification Results
|
594
|
+
|
595
|
+
Returns a results of all verified single emails. Required Access Level: ViewEmailVerifications
|
596
|
+
|
597
|
+
### Examples
|
598
|
+
|
599
|
+
```ruby
|
600
|
+
require 'time'
|
601
|
+
require 'ElasticEmail'
|
602
|
+
# setup authorization
|
603
|
+
ElasticEmail.configure do |config|
|
604
|
+
# Configure API key authorization: apikey
|
605
|
+
config.api_key['apikey'] = 'YOUR API KEY'
|
606
|
+
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
|
607
|
+
# config.api_key_prefix['apikey'] = 'Bearer'
|
608
|
+
end
|
609
|
+
|
610
|
+
api_instance = ElasticEmail::VerificationsApi.new
|
611
|
+
opts = {
|
612
|
+
limit: 100, # Integer | Maximum number of returned items.
|
613
|
+
offset: 20 # Integer | How many items should be returned ahead.
|
614
|
+
}
|
615
|
+
|
616
|
+
begin
|
617
|
+
# Get Emails Verification Results
|
618
|
+
result = api_instance.verifications_get(opts)
|
619
|
+
p result
|
620
|
+
rescue ElasticEmail::ApiError => e
|
621
|
+
puts "Error when calling VerificationsApi->verifications_get: #{e}"
|
622
|
+
end
|
623
|
+
```
|
624
|
+
|
625
|
+
#### Using the verifications_get_with_http_info variant
|
626
|
+
|
627
|
+
This returns an Array which contains the response data, status code and headers.
|
628
|
+
|
629
|
+
> <Array(<Array<EmailValidationResult>>, Integer, Hash)> verifications_get_with_http_info(opts)
|
630
|
+
|
631
|
+
```ruby
|
632
|
+
begin
|
633
|
+
# Get Emails Verification Results
|
634
|
+
data, status_code, headers = api_instance.verifications_get_with_http_info(opts)
|
635
|
+
p status_code # => 2xx
|
636
|
+
p headers # => { ... }
|
637
|
+
p data # => <Array<EmailValidationResult>>
|
638
|
+
rescue ElasticEmail::ApiError => e
|
639
|
+
puts "Error when calling VerificationsApi->verifications_get_with_http_info: #{e}"
|
640
|
+
end
|
641
|
+
```
|
642
|
+
|
643
|
+
### Parameters
|
644
|
+
|
645
|
+
| Name | Type | Description | Notes |
|
646
|
+
| ---- | ---- | ----------- | ----- |
|
647
|
+
| **limit** | **Integer** | Maximum number of returned items. | [optional] |
|
648
|
+
| **offset** | **Integer** | How many items should be returned ahead. | [optional] |
|
649
|
+
|
650
|
+
### Return type
|
651
|
+
|
652
|
+
[**Array<EmailValidationResult>**](EmailValidationResult.md)
|
653
|
+
|
654
|
+
### Authorization
|
655
|
+
|
656
|
+
[apikey](../README.md#apikey)
|
657
|
+
|
658
|
+
### HTTP request headers
|
659
|
+
|
660
|
+
- **Content-Type**: Not defined
|
661
|
+
- **Accept**: application/json
|
662
|
+
|