Socket
Book a DemoInstallSign in
Socket

ElasticEmail

Package Overview
Dependencies
Maintainers
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

ElasticEmail

4.0.26
bundlerRubygems
Version published
Maintainers
1
Created
Source

ElasticEmail

ElasticEmail - the Ruby gem for the Elastic Email REST API

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 here). 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 here

This SDK is automatically generated by the OpenAPI Generator project:

  • API version: 4.0.0
  • Package version: 4.0.26
  • Generator version: 7.5.0
  • Build package: org.openapitools.codegen.languages.RubyClientCodegen

Installation

Build a gem

To build the Ruby code into a gem:

gem build ElasticEmail.gemspec

Then either install the gem locally:

gem install ./ElasticEmail-4.0.26.gem

(for development, run gem install --dev ./ElasticEmail-4.0.26.gem to install the development dependencies)

or publish the gem to a gem hosting service, e.g. RubyGems.

Finally add this to the Gemfile:

gem 'ElasticEmail', '~> 4.0.26'

Install from Git

If the Ruby gem is hosted at a git repository: https://github.com/elasticemail/elasticemail-ruby, then add the following in the Gemfile:

gem 'ElasticEmail', :git => 'https://github.com/elasticemail/elasticemail-ruby.git'

Include the Ruby code directly

Include the Ruby code directly using -I as follows:

ruby -Ilib script.rb

Getting Started

Please follow the installation procedure and then run the following code:

# Load the gem
require 'ElasticEmail'

# Setup authorization
ElasticEmail.configure do |config|
  # Configure API key authorization: apikey
  config.api_key['apikey'] = 'YOUR API KEY'
  # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
  # config.api_key_prefix['apikey'] = 'Bearer'
end

api_instance = ElasticEmail::CampaignsApi.new
name = 'name_example' # String | Name of Campaign to delete

begin
  #Delete Campaign
  api_instance.campaigns_by_name_delete(name)
rescue ElasticEmail::ApiError => e
  puts "Exception when calling CampaignsApi->campaigns_by_name_delete: #{e}"
end

All URIs are relative to https://api.elasticemail.com/v4

ClassMethodHTTP requestDescription
ElasticEmail::CampaignsApicampaigns_by_name_deleteDELETE /campaigns/{name}Delete Campaign
ElasticEmail::CampaignsApicampaigns_by_name_getGET /campaigns/{name}Load Campaign
ElasticEmail::CampaignsApicampaigns_by_name_pause_putPUT /campaigns/{name}/pausePause Campaign
ElasticEmail::CampaignsApicampaigns_by_name_putPUT /campaigns/{name}Update Campaign
ElasticEmail::CampaignsApicampaigns_getGET /campaignsLoad Campaigns
ElasticEmail::CampaignsApicampaigns_postPOST /campaignsAdd Campaign
ElasticEmail::ContactsApicontacts_by_email_deleteDELETE /contacts/{email}Delete Contact
ElasticEmail::ContactsApicontacts_by_email_getGET /contacts/{email}Load Contact
ElasticEmail::ContactsApicontacts_by_email_putPUT /contacts/{email}Update Contact
ElasticEmail::ContactsApicontacts_delete_postPOST /contacts/deleteDelete Contacts Bulk
ElasticEmail::ContactsApicontacts_export_by_id_status_getGET /contacts/export/{id}/statusCheck Export Status
ElasticEmail::ContactsApicontacts_export_postPOST /contacts/exportExport Contacts
ElasticEmail::ContactsApicontacts_getGET /contactsLoad Contacts
ElasticEmail::ContactsApicontacts_import_postPOST /contacts/importUpload Contacts
ElasticEmail::ContactsApicontacts_postPOST /contactsAdd Contact
ElasticEmail::DomainsApidomains_by_domain_deleteDELETE /domains/{domain}Delete Domain
ElasticEmail::DomainsApidomains_by_domain_getGET /domains/{domain}Load Domain
ElasticEmail::DomainsApidomains_by_domain_putPUT /domains/{domain}Update Domain
ElasticEmail::DomainsApidomains_by_domain_restricted_getGET /domains/{domain}/restrictedCheck for domain restriction
ElasticEmail::DomainsApidomains_by_domain_verification_putPUT /domains/{domain}/verificationVerify Domain
ElasticEmail::DomainsApidomains_by_email_default_patchPATCH /domains/{email}/defaultSet Default
ElasticEmail::DomainsApidomains_getGET /domainsLoad Domains
ElasticEmail::DomainsApidomains_postPOST /domainsAdd Domain
ElasticEmail::EmailsApiemails_by_msgid_view_getGET /emails/{msgid}/viewView Email
ElasticEmail::EmailsApiemails_by_transactionid_status_getGET /emails/{transactionid}/statusGet Status
ElasticEmail::EmailsApiemails_mergefile_postPOST /emails/mergefileSend Bulk Emails CSV
ElasticEmail::EmailsApiemails_postPOST /emailsSend Bulk Emails
ElasticEmail::EmailsApiemails_transactional_postPOST /emails/transactionalSend Transactional Email
ElasticEmail::EventsApievents_by_transactionid_getGET /events/{transactionid}Load Email Events
ElasticEmail::EventsApievents_channels_by_name_export_postPOST /events/channels/{name}/exportExport Channel Events
ElasticEmail::EventsApievents_channels_by_name_getGET /events/channels/{name}Load Channel Events
ElasticEmail::EventsApievents_channels_export_by_id_status_getGET /events/channels/export/{id}/statusCheck Channel Export Status
ElasticEmail::EventsApievents_export_by_id_status_getGET /events/export/{id}/statusCheck Export Status
ElasticEmail::EventsApievents_export_postPOST /events/exportExport Events
ElasticEmail::EventsApievents_getGET /eventsLoad Events
ElasticEmail::FilesApifiles_by_name_deleteDELETE /files/{name}Delete File
ElasticEmail::FilesApifiles_by_name_getGET /files/{name}Download File
ElasticEmail::FilesApifiles_by_name_info_getGET /files/{name}/infoLoad File Details
ElasticEmail::FilesApifiles_getGET /filesList Files
ElasticEmail::FilesApifiles_postPOST /filesUpload File
ElasticEmail::InboundRouteApiinboundroute_by_id_deleteDELETE /inboundroute/{id}Delete Route
ElasticEmail::InboundRouteApiinboundroute_by_id_getGET /inboundroute/{id}Get Route
ElasticEmail::InboundRouteApiinboundroute_by_id_putPUT /inboundroute/{id}Update Route
ElasticEmail::InboundRouteApiinboundroute_getGET /inboundrouteGet Routes
ElasticEmail::InboundRouteApiinboundroute_order_putPUT /inboundroute/orderUpdate Sorting
ElasticEmail::InboundRouteApiinboundroute_postPOST /inboundrouteCreate Route
ElasticEmail::ListsApilists_by_listname_contacts_getGET /lists/{listname}/contactsLoad Contacts in List
ElasticEmail::ListsApilists_by_name_contacts_postPOST /lists/{name}/contactsAdd Contacts to List
ElasticEmail::ListsApilists_by_name_contacts_remove_postPOST /lists/{name}/contacts/removeRemove Contacts from List
ElasticEmail::ListsApilists_by_name_deleteDELETE /lists/{name}Delete List
ElasticEmail::ListsApilists_by_name_getGET /lists/{name}Load List
ElasticEmail::ListsApilists_by_name_putPUT /lists/{name}Update List
ElasticEmail::ListsApilists_getGET /listsLoad Lists
ElasticEmail::ListsApilists_postPOST /listsAdd List
ElasticEmail::SecurityApisecurity_apikeys_by_name_deleteDELETE /security/apikeys/{name}Delete ApiKey
ElasticEmail::SecurityApisecurity_apikeys_by_name_getGET /security/apikeys/{name}Load ApiKey
ElasticEmail::SecurityApisecurity_apikeys_by_name_putPUT /security/apikeys/{name}Update ApiKey
ElasticEmail::SecurityApisecurity_apikeys_getGET /security/apikeysList ApiKeys
ElasticEmail::SecurityApisecurity_apikeys_postPOST /security/apikeysAdd ApiKey
ElasticEmail::SecurityApisecurity_smtp_by_name_deleteDELETE /security/smtp/{name}Delete SMTP Credential
ElasticEmail::SecurityApisecurity_smtp_by_name_getGET /security/smtp/{name}Load SMTP Credential
ElasticEmail::SecurityApisecurity_smtp_by_name_putPUT /security/smtp/{name}Update SMTP Credential
ElasticEmail::SecurityApisecurity_smtp_getGET /security/smtpList SMTP Credentials
ElasticEmail::SecurityApisecurity_smtp_postPOST /security/smtpAdd SMTP Credential
ElasticEmail::SegmentsApisegments_by_name_deleteDELETE /segments/{name}Delete Segment
ElasticEmail::SegmentsApisegments_by_name_getGET /segments/{name}Load Segment
ElasticEmail::SegmentsApisegments_by_name_putPUT /segments/{name}Update Segment
ElasticEmail::SegmentsApisegments_getGET /segmentsLoad Segments
ElasticEmail::SegmentsApisegments_postPOST /segmentsAdd Segment
ElasticEmail::StatisticsApistatistics_campaigns_by_name_getGET /statistics/campaigns/{name}Load Campaign Stats
ElasticEmail::StatisticsApistatistics_campaigns_getGET /statistics/campaignsLoad Campaigns Stats
ElasticEmail::StatisticsApistatistics_channels_by_name_getGET /statistics/channels/{name}Load Channel Stats
ElasticEmail::StatisticsApistatistics_channels_getGET /statistics/channelsLoad Channels Stats
ElasticEmail::StatisticsApistatistics_getGET /statisticsLoad Statistics
ElasticEmail::SubAccountsApisubaccounts_by_email_credits_patchPATCH /subaccounts/{email}/creditsAdd, Subtract Email Credits
ElasticEmail::SubAccountsApisubaccounts_by_email_deleteDELETE /subaccounts/{email}Delete SubAccount
ElasticEmail::SubAccountsApisubaccounts_by_email_getGET /subaccounts/{email}Load SubAccount
ElasticEmail::SubAccountsApisubaccounts_by_email_settings_email_putPUT /subaccounts/{email}/settings/emailUpdate SubAccount Email Settings
ElasticEmail::SubAccountsApisubaccounts_getGET /subaccountsLoad SubAccounts
ElasticEmail::SubAccountsApisubaccounts_postPOST /subaccountsAdd SubAccount
ElasticEmail::SuppressionsApisuppressions_bounces_getGET /suppressions/bouncesGet Bounce List
ElasticEmail::SuppressionsApisuppressions_bounces_import_postPOST /suppressions/bounces/importAdd Bounces Async
ElasticEmail::SuppressionsApisuppressions_bounces_postPOST /suppressions/bouncesAdd Bounces
ElasticEmail::SuppressionsApisuppressions_by_email_deleteDELETE /suppressions/{email}Delete Suppression
ElasticEmail::SuppressionsApisuppressions_by_email_getGET /suppressions/{email}Get Suppression
ElasticEmail::SuppressionsApisuppressions_complaints_getGET /suppressions/complaintsGet Complaints List
ElasticEmail::SuppressionsApisuppressions_complaints_import_postPOST /suppressions/complaints/importAdd Complaints Async
ElasticEmail::SuppressionsApisuppressions_complaints_postPOST /suppressions/complaintsAdd Complaints
ElasticEmail::SuppressionsApisuppressions_getGET /suppressionsGet Suppressions
ElasticEmail::SuppressionsApisuppressions_unsubscribes_getGET /suppressions/unsubscribesGet Unsubscribes List
ElasticEmail::SuppressionsApisuppressions_unsubscribes_import_postPOST /suppressions/unsubscribes/importAdd Unsubscribes Async
ElasticEmail::SuppressionsApisuppressions_unsubscribes_postPOST /suppressions/unsubscribesAdd Unsubscribes
ElasticEmail::TemplatesApitemplates_by_name_deleteDELETE /templates/{name}Delete Template
ElasticEmail::TemplatesApitemplates_by_name_getGET /templates/{name}Load Template
ElasticEmail::TemplatesApitemplates_by_name_putPUT /templates/{name}Update Template
ElasticEmail::TemplatesApitemplates_getGET /templatesLoad Templates
ElasticEmail::TemplatesApitemplates_postPOST /templatesAdd Template
ElasticEmail::VerificationsApiverifications_by_email_deleteDELETE /verifications/{email}Delete Email Verification Result
ElasticEmail::VerificationsApiverifications_by_email_getGET /verifications/{email}Get Email Verification Result
ElasticEmail::VerificationsApiverifications_by_email_postPOST /verifications/{email}Verify Email
ElasticEmail::VerificationsApiverifications_files_by_id_deleteDELETE /verifications/files/{id}Delete File Verification Result
ElasticEmail::VerificationsApiverifications_files_by_id_result_download_getGET /verifications/files/{id}/result/downloadDownload File Verification Result
ElasticEmail::VerificationsApiverifications_files_by_id_result_getGET /verifications/files/{id}/resultGet Detailed File Verification Result
ElasticEmail::VerificationsApiverifications_files_by_id_verification_postPOST /verifications/files/{id}/verificationStart verification
ElasticEmail::VerificationsApiverifications_files_postPOST /verifications/filesUpload File with Emails
ElasticEmail::VerificationsApiverifications_files_result_getGET /verifications/files/resultGet Files Verification Results
ElasticEmail::VerificationsApiverifications_getGET /verificationsGet Emails Verification Results

Documentation for Models

Documentation for Authorization

Authentication schemes defined for the API:

apikey

  • Type: API key
  • API key parameter name: X-ElasticEmail-ApiKey
  • Location: HTTP header

FAQs

Package last updated on 05 Dec 2024

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

About

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.

  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc

U.S. Patent No. 12,346,443 & 12,314,394. Other pending.