Research
Security News
Malicious npm Package Targets Solana Developers and Hijacks Funds
A malicious npm package targets Solana developers, rerouting funds in 2% of transactions to a hardcoded address.
Promise-based wrapper for UniSender API. Sends POST request to UniSender.
List of available in module methods is in src/config/methods.js.
npm install unisender
You can send request to unisender API via calling function of unisender object with appropriate name:
unisender.<method name>(options);
for example
var UniSender = require('unisender');
var uniSender = new UniSender({
api_key: 'YOUR_API_KEY',
lang: 'ru' // optional, 'en' by default
});
uniSender.getLists().then(console.log);
uniSender.createEmailMessage({
sender_name: 'Test',
sender_email: 'admin@example.com',
subject: 'hello',
body: '<h1>Hello world!</h1>',
list_id: 1234567
}).then(function (response) {
console.log('Message id: ' + response.result.message_id);
}).catch(function (response) {
console.log('Error:' + response.error);
});
Full list of UniSender methods and options you can find in UniSender API Documentation.
For all methods except importContacts
you have to pass parameters as described in UniSender API Documentation.
To call importContacts
specify properties field_names
and data
in another way:
uniSender.importContacts({
field_names: ['email', 'email_list_ids'],
data: [
{ email: 'test1@example.com', email_list_ids: '1, 2, 3' },
{ email: 'test2@example.com', email_list_ids: '1' },
{ email: 'test3@example.com', email_list_ids: '3' },
]
});
They'll be transformed into
field_names[0]=email&field_names[1]=email_list_ids
&data[0][0]=test1@example.com&data[0][1]=1,2,3
&data[1][0]=test2@example.com&data[1][1]=1
&data[2][0]=test3@0example.com&data[2][1]=3
FAQs
Promise-based wrapper for unisender api
We found that unisender 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
A malicious npm package targets Solana developers, rerouting funds in 2% of transactions to a hardcoded address.
Security News
Research
Socket researchers have discovered malicious npm packages targeting crypto developers, stealing credentials and wallet data using spyware delivered through typosquats of popular cryptographic libraries.
Security News
Socket's package search now displays weekly downloads for npm packages, helping developers quickly assess popularity and make more informed decisions.