Research
Security News
Malicious npm Packages Inject SSH Backdoors via Typosquatted Libraries
Socketβs threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.
unisender-node
Advanced tools
π₯ Work in progress!
yarn add unisender-node
or
npm i unisender-node
import Unisender from 'unisender-node'
const sdk = new Unisender({ apiKey: 'my-secret-key', lang: 'en' })
// Getting lists
const lists = sdk.getLists()
All responses are typed and mirroring Unisender API responses
SDK will check for these ENV variables:
UNISENDER_API_KEY
UNISENDER_LANG
If you provide these variables, you don't need to provide in constructor.
import Unisender from 'unisender-node'
const sdk = new Unisender()
// Two ways to pass data
// 1. Unisender way - CSV-style array of arrays with field_names
const result = await sdk.importContacts({
field_names: ['email', 'Name'],
data: [
['test1@example.com', 'Test name'],
['test2@example.com', 'Test name2']
]
})
// 2. Simple object
const result = await sdk.importContacts({
data: [
{ email: 'test1@example.com', Name: 'Test name' },
{ email: 'test2@example.com', Name: 'Test2 name' },
]
})
Method | Status |
---|---|
getLists | β |
createList | β |
updateList | β |
deleteList | β |
subscribe | β |
unsubscribe | β |
exclude | β |
importContacts | β |
importContactsBatch * | β |
exportContacts | β |
getTaskResult | β |
getContact | β |
getContactCount | β |
getTotalContactsCount | β |
isContactInLists | β |
importContactsBatch
- simple helper will divide importContacts in chunks with 500 items. Will return array of results of importContactsMethod | Status |
---|---|
createEmailMessage | β |
updateEmailMessage | β |
deleteMessage | β |
getActualMessageVersion | β |
sendTestEmail | β |
sendEmail | β |
checkEmail | β |
createSmsMessage | β |
sendSms | β |
checkSms | β |
createCampaign | β |
cancelCampaign | β |
getWebVersion | β |
updateOptInEmail | β |
getSenderDomainList | β |
Method | Status |
---|---|
getCampaignCommonStats | β |
getCampaignDeliveryStats | β |
getCampaignStatus | β |
getMessages | β |
getVisitedLinks | β |
listMessages | π§ |
getCampaigns | π§ |
getMessage | π§ |
Method | Status |
---|---|
createEmailTemplate | π§ |
deleteTemplate | π§ |
getTemplate | π§ |
getTemplates | π§ |
listTemplates | π§ |
updateEmailTemplate | π§ |
Method | Status |
---|---|
createField | β |
deleteField | β |
deleteTag | β |
getFields | β |
getTags | β |
updateField | β |
getContactFieldValues | β |
FAQs
Unisender SDK (TypeScript)
We found that unisender-node demonstrated a not healthy version release cadence and project activity because the last version was released a year ago.Β It has 1 open source maintainer collaborating on the project.
Did you know?
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.
Research
Security News
Socketβs threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.
Security News
MITRE's 2024 CWE Top 25 highlights critical software vulnerabilities like XSS, SQL Injection, and CSRF, reflecting shifts due to a refined ranking methodology.
Security News
In this segment of the Risky Business podcast, Feross Aboukhadijeh and Patrick Gray discuss the challenges of tracking malware discovered in open source softare.