unisender-api
v1.1.1
Published
Package for working with the unisender.com API for sending emails.
Downloads
75
Maintainers
Readme
Unisender API
Package for working with the service Unisender.
API documentation from the Unisender service.
Install package
To deploy this project run
npm i unisender-api
Usage/Examples
Import
import Unisender from 'unisender-api';
const unisender = new Unisender('YOUR_API_KEY');
const subscribe = await unisender.subscribe('541', '[email protected]', 'Andrey', {}, {double_optin: 0, overwrite: 2});
Available methods now
- [x] getLists
- [x] createList
- [x] updateList
- [x] deleteList
- [x] subscribe
- [x] exclude
- [x] unsubscribe
- [x] importContacts
- [x] exportContacts
- [x] getTotalContactsCount
- [x] getContactCount
- [x] getContact
- [x] getFields
- [x] createField
- [x] updateField
- [x] deleteField
- [x] getTags
- [x] deleteTag
- [x] createEmailMessage
- [x] createSmsMessage
- [x] createCampaign
- [x] cancelCampaign
- [x] getActualMessageVersion
- [x] sendSms
- [x] checkSms
- [x] sendEmail
- [x] sendTestEmail
- [x] checkEmail
- [x] updateOptInEmail
- [x] getWebVersion
- [x] deleteMessage
- [x] updateEmailMessage
- [x] createEmailTemplate
- [x] updateEmailTemplate
- [x] deleteTemplate
- [x] getTemplate
- [x] getTemplates
- [x] listTemplates
- [x] getCampaignDeliveryStats
- [x] getCampaignCommonStats
- [x] getVisitedLinks
- [x] getCampaigns
- [x] getCampaignStatus
- [x] getMessages
- [x] getMessage
- [x] listMessages