📅 You're Invited: Meet the Socket team at RSAC (April 28 – May 1).RSVP
Socket
Sign inDemoInstall
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

Elastic Email REST API

4.1.3
PyPI
Maintainers
1

ElasticEmail

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 Python package is automatically generated by the OpenAPI Generator project:

  • API version: 4.0.0
  • Package version: 4.1.3
  • Generator version: 7.5.0
  • Build package: org.openapitools.codegen.languages.PythonClientCodegen

Requirements.

Python 3.7+

Installation & Usage

pip install

If the python package is hosted on a repository, you can install directly using:

pip install git+https://github.com/elasticemail/elasticemail-python.git

(you may need to run pip with root permission: sudo pip install git+https://github.com/elasticemail/elasticemail-python.git)

Then import the package:

import ElasticEmail

Setuptools

Install via Setuptools.

python setup.py install --user

(or sudo python setup.py install to install the package for all users)

Then import the package:

import ElasticEmail

Tests

Execute pytest to run the tests.

Getting Started

Please follow the installation procedure and then run the following:


import ElasticEmail
from ElasticEmail.rest import ApiException
from pprint import pprint

# Defining the host is optional and defaults to https://api.elasticemail.com/v4
# See configuration.py for a list of all supported configuration parameters.
configuration = ElasticEmail.Configuration(
    host = "https://api.elasticemail.com/v4"
)

# The client must configure the authentication and authorization parameters
# in accordance with the API server security policy.
# Examples for each auth method are provided below, use the example that
# satisfies your auth use case.

# Configure API key authorization: apikey
configuration.api_key['apikey'] = os.environ["API_KEY"]

# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# configuration.api_key_prefix['apikey'] = 'Bearer'


# Enter a context with an instance of the API client
with ElasticEmail.ApiClient(configuration) as api_client:
    # Create an instance of the API class
    api_instance = ElasticEmail.CampaignsApi(api_client)
    name = 'name_example' # str | Name of Campaign to delete

    try:
        # Delete Campaign
        api_instance.campaigns_by_name_delete(name)
    except ApiException as e:
        print("Exception when calling CampaignsApi->campaigns_by_name_delete: %s\n" % e)

Examples

Function
addCampaignreadme
addContactsreadme
addListreadme
addTemplatereadme
deleteCampaignreadme
deleteContactsreadme
deleteListreadme
deleteTemplatereadme
exportContactsreadme
loadCampaignreadme
loadCampaignsStatsreadme
loadChannelsStatsreadme
loadListreadme
loadStatisticsreadme
loadTemplatereadme
sendBulkEmailsreadme
sendTransactionalEmailsreadme
updateCampaignreadme
uploadContactsreadme

Documentation for API Endpoints

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

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

Author

support@elasticemail.com

Keywords

OpenAPI

FAQs

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