2.42.0 • Published 5 years ago

elastic_email_api__beta_test v2.42.0

Weekly downloads
-
License
MIT
Repository
-
Last release
5 years ago

elastic_email_api__beta

ElasticEmailApiBeta - JavaScript client for elastic_email_api__beta Send your e-mails with ElasticEmail API This SDK is automatically generated by the Swagger Codegen project:

  • API version: 2.42.0
  • Package version: 2.42.0
  • Build package: io.swagger.codegen.languages.JavascriptClientCodegen

Installation

For Node.js

npm

To publish the library as a npm, please follow the procedure in "Publishing npm packages".

Then install it via:

npm install elastic_email_api__beta --save
Local development

To use the library locally without publishing to a remote npm registry, first install the dependencies by changing into the directory containing package.json (and this README). Let's call this JAVASCRIPT_CLIENT_DIR. Then run:

npm install

Next, link it globally in npm with the following, also from JAVASCRIPT_CLIENT_DIR:

npm link

Finally, switch to the directory you want to use your elastic_email_api__beta from, and run:

npm link /path/to/<JAVASCRIPT_CLIENT_DIR>

You should now be able to require('elastic_email_api__beta') in javascript files from the directory you ran the last command above from.

git

If the library is hosted at a git repository, e.g. https://github.com/GIT_USER_ID/GIT_REPO_ID then install it via:

    npm install GIT_USER_ID/GIT_REPO_ID --save

For browser

The library also works in the browser environment via npm and browserify. After following the above steps with Node.js and installing browserify with npm install -g browserify, perform the following (assuming main.js is your entry file, that's to say your javascript file where you actually use this library):

browserify main.js > bundle.js

Then include bundle.js in the HTML pages.

Webpack Configuration

Using Webpack you may encounter the following error: "Module not found: Error: Cannot resolve module", most certainly you should disable AMD loader. Add/merge the following section to your webpack config:

module: {
  rules: [
    {
      parser: {
        amd: false
      }
    }
  ]
}

Getting Started

Please follow the installation instruction and execute the following JS code:

var ElasticEmailApiBeta = require('elastic_email_api__beta');

var defaultClient = ElasticEmailApiBeta.ApiClient.instance;

// Configure API key authorization: apikey
var apikey = defaultClient.authentications['apikey'];
apikey.apiKey = "YOUR API KEY"
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//apikey.apiKeyPrefix['X-ElasticEmail-ApiKey'] = "Token"

var api = new ElasticEmailApiBeta.AccountsApi()

var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.accountsGet(callback);

Documentation for API Endpoints

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

ClassMethodHTTP requestDescription
ElasticEmailApiBeta.AccountsApiaccountsGetGET /accountsLoads your account. Returns detailed information about your account.
ElasticEmailApiBeta.AccountsApiaccountsPutPUT /accountsUpdate your Account
ElasticEmailApiBeta.AuthApiauthPostPOST /authLog into your account
ElasticEmailApiBeta.CampaignsApicampaignsAbsplitGetGET /campaigns/absplitList all of your A/X campaigns
ElasticEmailApiBeta.CampaignsApicampaignsAbsplitNameDeleteDELETE /campaigns/absplit/{name}
ElasticEmailApiBeta.CampaignsApicampaignsAbsplitNameGetGET /campaigns/absplit/{name}
ElasticEmailApiBeta.CampaignsApicampaignsAbsplitNamePutPUT /campaigns/absplit/{name}Updates a previously added campaign. Only Active and Paused campaigns can be updated.
ElasticEmailApiBeta.CampaignsApicampaignsAbsplitPostPOST /campaigns/absplit
ElasticEmailApiBeta.CampaignsApicampaignsAllGetGET /campaigns/all
ElasticEmailApiBeta.CampaignsApicampaignsAutomatedGetGET /campaigns/automatedList all of your automated campaigns
ElasticEmailApiBeta.CampaignsApicampaignsAutomatedNameDeleteDELETE /campaigns/automated/{name}
ElasticEmailApiBeta.CampaignsApicampaignsAutomatedNameGetGET /campaigns/automated/{name}
ElasticEmailApiBeta.CampaignsApicampaignsAutomatedNamePutPUT /campaigns/automated/{name}Updates a previously added campaign. Only Active and Paused campaigns can be updated.
ElasticEmailApiBeta.CampaignsApicampaignsAutomatedPostPOST /campaigns/automated
ElasticEmailApiBeta.CampaignsApicampaignsExportGetGET /campaigns/exportExport selected campaigns to chosen file format.
ElasticEmailApiBeta.CampaignsApicampaignsNameCancelPostPOST /campaigns/{name}/cancelCancels emails that are waiting to be sent.
ElasticEmailApiBeta.CampaignsApicampaignsSendnowGetGET /campaigns/sendnowList all of your instant campaigns
ElasticEmailApiBeta.CampaignsApicampaignsSendnowNameDeleteDELETE /campaigns/sendnow/{name}
ElasticEmailApiBeta.CampaignsApicampaignsSendnowNameGetGET /campaigns/sendnow/{name}Retrieves an existing campaign.
ElasticEmailApiBeta.CampaignsApicampaignsSendnowNamePutPUT /campaigns/sendnow/{name}Updates a previously added campaign. Only Active and Paused campaigns can be updated.
ElasticEmailApiBeta.CampaignsApicampaignsSendnowPostPOST /campaigns/sendnow
ElasticEmailApiBeta.ChannelsApichannelsExportGetGET /channels/exportExport selected channels to chosen file format.
ElasticEmailApiBeta.ChannelsApichannelsGetGET /channelsList all of your channels
ElasticEmailApiBeta.ChannelsApichannelsNameCancelPostPOST /channels/{name}/cancelCancel the emails being sent with this channel
ElasticEmailApiBeta.ChannelsApichannelsNameDeleteDELETE /channels/{name}Delete the channel.
ElasticEmailApiBeta.ChannelsApichannelsNameGetGET /channels/{name}Retrieve an existing channel.
ElasticEmailApiBeta.ChannelsApichannelsNamePutPUT /channels/{name}Rename an existing channel.
ElasticEmailApiBeta.ChannelsApichannelsPostPOST /channelsManually add a channel to your account to group email
ElasticEmailApiBeta.ContactsApicontactsDeleteDELETE /contactsPermanantly deletes the contacts provided. You can provide either a qualified rule or a list of emails (comma separated string).
ElasticEmailApiBeta.ContactsApicontactsEmailGetGET /contacts/{email}Load detailed contact information
ElasticEmailApiBeta.ContactsApicontactsEmailHistoryGetGET /contacts/{email}/historyShows detailed history of chosen Contact.
ElasticEmailApiBeta.ContactsApicontactsEmailPutPUT /contacts/{email}Update selected contact. Omitted contact's fields will be reset by default (see the clearRestOfFields parameter)
ElasticEmailApiBeta.ContactsApicontactsExportGetGET /contacts/exportExport selected Contacts to file.
ElasticEmailApiBeta.ContactsApicontactsGetGET /contactsList of all contacts. If you have not specified RULE, all Contacts will be listed.
ElasticEmailApiBeta.ContactsApicontactsImportPostPOST /contacts/importUpload contacts from a file.
ElasticEmailApiBeta.ContactsApicontactsPostPOST /contactsAdd new Contact to one of your Lists.
ElasticEmailApiBeta.ContactsApicontactsStatsGetGET /contacts/statsReturns number of Contacts, RULE specifies contact Status.
ElasticEmailApiBeta.DomainsApidomainsDomainDeleteDELETE /domains/{domain}Deletes configured domain from account
ElasticEmailApiBeta.DomainsApidomainsDomainGetGET /domains/{domain}Retrieve a domain configured for this account.
ElasticEmailApiBeta.DomainsApidomainsDomainPutPUT /domains/{domain}Update the selected Domain
ElasticEmailApiBeta.DomainsApidomainsDomainVerificationPutPUT /domains/{domain}/verificationVerification of domain records
ElasticEmailApiBeta.DomainsApidomainsGetGET /domainsLists all domains configured for this account.
ElasticEmailApiBeta.DomainsApidomainsPostPOST /domainsAdd new domain to account
ElasticEmailApiBeta.EmailsApiemailsMergePostPOST /emails/mergeSend bulk merge email
ElasticEmailApiBeta.EmailsApiemailsMsgidViewGetGET /emails/{msgid}/viewView email
ElasticEmailApiBeta.EmailsApiemailsTransactionalPostPOST /emails/transactionalSend transactional message (recipients will be known to each other)
ElasticEmailApiBeta.EmailsApiemailsTransactionidCancelPostPOST /emails/{transactionid}/cancelCancels emails that are waiting to be sent.
ElasticEmailApiBeta.EmailsApiemailsTransactionidStatusGetGET /emails/{transactionid}/statusGet email batch status
ElasticEmailApiBeta.FilesApifilesFilenameDeleteDELETE /files/{filename}Permanently deletes the file from your account
ElasticEmailApiBeta.FilesApifilesFilenameGetGET /files/{filename}Gets content of the chosen File
ElasticEmailApiBeta.FilesApifilesFilenameInfoGetGET /files/{filename}/infoGets chosen File info
ElasticEmailApiBeta.FilesApifilesGetGET /filesLists all your available files
ElasticEmailApiBeta.FilesApifilesPostPOST /filesUploads selected file to the server using http form upload format (MIME multipart/form-data) or PUT method.
ElasticEmailApiBeta.ListsApilistsFromcampaignPostPOST /lists/fromcampaignCreate a new list from the recipients of the given campaign, using the given statuses of Messages
ElasticEmailApiBeta.ListsApilistsGetGET /listsShows all your existing lists
ElasticEmailApiBeta.ListsApilistsListnameContactsDeleteDELETE /lists/{listname}/contactsRemove selected Contacts from your list
ElasticEmailApiBeta.ListsApilistsListnameContactsMovePutPUT /lists/{listname}/contacts/moveMove selected contacts from one List to another
ElasticEmailApiBeta.ListsApilistsListnameContactsPutPUT /lists/{listname}/contactsAdd existing Contacts to chosen list
ElasticEmailApiBeta.ListsApilistsListnameDeleteDELETE /lists/{listname}Deletes List and removes all the Contacts from it (does not delete Contacts).
ElasticEmailApiBeta.ListsApilistsListnameGetGET /lists/{listname}Returns detailed information about specific list.
ElasticEmailApiBeta.ListsApilistsListnamePutPUT /lists/{listname}Update existing list
ElasticEmailApiBeta.ListsApilistsPostPOST /listsCreate new list, based on filtering rule or list of IDs
ElasticEmailApiBeta.ListsApilistsRandomPostPOST /lists/randomCreate a new list with randomized contacts from an existing list or segment
ElasticEmailApiBeta.ReportsApireportsBouncedGetGET /reports/bouncedReturns bounced logs filtered by specified parameters.
ElasticEmailApiBeta.ReportsApireportsEmailcreditsHistoryGetGET /reports/emailcredits/historyLists email credits history
ElasticEmailApiBeta.ReportsApireportsEventlogGetGET /reports/eventlogReturns log of delivery events filtered by specified parameters.
ElasticEmailApiBeta.ReportsApireportsEventsExportGetGET /reports/events/exportExport delivery events log information to the specified file format.
ElasticEmailApiBeta.ReportsApireportsExportGetGET /reports/exportExport email log information to the specified file format.
ElasticEmailApiBeta.ReportsApireportsGetGET /reportsReturns logs filtered by specified parameters.
ElasticEmailApiBeta.ReportsApireportsLinktrackingsExportGetGET /reports/linktrackings/exportExport detailed link tracking information to the specified file format.
ElasticEmailApiBeta.ReportsApireportsNotificationsGetGET /reports/notificationsReturns notification logs filtered by specified parameters.
ElasticEmailApiBeta.ReportsApireportsPaymentsHistoryGetGET /reports/payments/historyLists all payments
ElasticEmailApiBeta.ReportsApireportsReferralsGetGET /reports/referralsShows information about your referral details
ElasticEmailApiBeta.ReportsApireportsReferralsPayoutHistoryGetGET /reports/referrals/payout/historyLists all referral payout history
ElasticEmailApiBeta.ReportsApireportsReputationHistoryGetGET /reports/reputation/historyShows latest changes in your sending reputation
ElasticEmailApiBeta.ReportsApireportsSpamchecksHistoryGetGET /reports/spamchecks/historyReturns detailed spam check.
ElasticEmailApiBeta.ReportsApireportsSummaryGetGET /reports/summaryLoads summary information about activity in chosen date range.
ElasticEmailApiBeta.SMSApismsPostPOST /smsSend a short SMS Message (maximum of 1600 characters) to any mobile phone.
ElasticEmailApiBeta.SecurityApisecurityAccesstokensGetGET /security/accesstokensGet AccessToken list.
ElasticEmailApiBeta.SecurityApisecurityAccesstokensNameDeleteDELETE /security/accesstokens/{name}Permanently delete AccessToken.
ElasticEmailApiBeta.SecurityApisecurityAccesstokensNameGetGET /security/accesstokens/{name}Get AccessToken.
ElasticEmailApiBeta.SecurityApisecurityAccesstokensNamePutPUT /security/accesstokens/{name}Edit AccessToken.
ElasticEmailApiBeta.SecurityApisecurityAccesstokensPostPOST /security/accesstokensAdd new AccessToken
ElasticEmailApiBeta.SegmentsApisegmentsGetGET /segmentsLists all your available Segments
ElasticEmailApiBeta.SegmentsApisegmentsNameDeleteDELETE /segments/{name}Delete existing segment.
ElasticEmailApiBeta.SegmentsApisegmentsNameGetGET /segments/{name}Lists your available Segment using the provided name
ElasticEmailApiBeta.SegmentsApisegmentsNamePutPUT /segments/{name}Rename or change RULE for your segment
ElasticEmailApiBeta.SegmentsApisegmentsPostPOST /segmentsCreate new segment, based on specified RULE.
ElasticEmailApiBeta.SubaccountsApisubaccountsEmailCreditsDeleteDELETE /subaccounts/{email}/creditsRemove email, template or litmus credits from a sub-account
ElasticEmailApiBeta.SubaccountsApisubaccountsEmailCreditsPostPOST /subaccounts/{email}/creditsAdd email credits to a sub-account
ElasticEmailApiBeta.SubaccountsApisubaccountsEmailDeleteDELETE /subaccounts/{email}Deletes specified Subaccount
ElasticEmailApiBeta.SubaccountsApisubaccountsEmailGetGET /subaccounts/{email}Retrieve info about one of your subaccounts
ElasticEmailApiBeta.SubaccountsApisubaccountsEmailSettingsGetGET /subaccounts/{email}/settingsLoads settings of subaccount
ElasticEmailApiBeta.SubaccountsApisubaccountsEmailSettingsPutPUT /subaccounts/{email}/settingsUpdates settings of specified subaccount
ElasticEmailApiBeta.SubaccountsApisubaccountsGetGET /subaccountsLists all of your subaccounts
ElasticEmailApiBeta.SubaccountsApisubaccountsPostPOST /subaccountsCreate new subaccount and provide most important data about it.
ElasticEmailApiBeta.TasksApitasksGetGET /tasksReturns a list of all background tasks data.
ElasticEmailApiBeta.TasksApitasksIdDeleteDELETE /tasks/{id}Delete the specified background task.
ElasticEmailApiBeta.TasksApitasksIdStatusGetGET /tasks/{id}/statusCheck the current status of the background task.
ElasticEmailApiBeta.TemplatesApitemplatesGetGET /templatesLoad a list of templates of a specified type
ElasticEmailApiBeta.TemplatesApitemplatesNameDeleteDELETE /templates/{name}Delete template with the specified ID
ElasticEmailApiBeta.TemplatesApitemplatesNameGetGET /templates/{name}Load template with content
ElasticEmailApiBeta.TemplatesApitemplatesNamePutPUT /templates/{name}Update existing template, overwriting existing data.
ElasticEmailApiBeta.TemplatesApitemplatesPostPOST /templatesCreate new Template. Needs to be sent using POST method
ElasticEmailApiBeta.WebhooksApiwebhooksGetGET /webhooksLoad notifications webhooks
ElasticEmailApiBeta.WebhooksApiwebhooksPostPOST /webhooksAdd notifications webhook
ElasticEmailApiBeta.WebhooksApiwebhooksPublicidDeleteDELETE /webhooks/{publicid}Delete notifications webhook
ElasticEmailApiBeta.WebhooksApiwebhooksPublicidGetGET /webhooks/{publicid}Load notifications webhook
ElasticEmailApiBeta.WebhooksApiwebhooksPublicidPutPUT /webhooks/{publicid}Update notification webhook

Documentation for Models

Documentation for Authorization

apikey

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