Research
Security News
Quasar RAT Disguised as an npm Package for Detecting Vulnerabilities in Ethereum Smart Contracts
Socket researchers uncover a malicious npm package posing as a tool for detecting vulnerabilities in Etherium smart contracts.
Notifuse connects all your notification channels (SenGrid, Mailgun, Twilio SMS, Slack, push...) to a powerful API/platform that handles templating, contacts segmentation and smart campaigns.
We recommend you to read the API Reference to understand the behavior and results of every methods.
npm install notifuse --save
var Notifuse = require('notifuse'),
client = new Notifuse.Client(API_KEY, options);
Key | Expected value. |
---|---|
timeout | Request timeout in ms. Default 5000. |
maxAttempts | Max retry attempts. Default 5. |
retryDelay | Delay between retry attempts in ms. Default 250. |
agent | Https agent for the requests. |
// upsert an array of contacts
var myContact = {
id: '123',
profile: {
$set: {
firstName: 'John',
lastName: 'Doe'
}
}
};
client.contacts.upsert([myContact], function(error, result){
if (error) {
// handle error
}
// result example:
// {
// statusCode: 200,
// success: true,
// inserted: [],
// updated: ['123'],
// failed: []
// }
});
// same with a promise
client.contacts.upsert([myContact]).then(function(result){
})
.catch(function(error){
});
var Notifuse = require('notifuse'),
client = new Notifuse.Client(API_KEY);
var myMessage = {
notification: 'welcome',
channel: 'sendgrid-acme',
template: 'v1',
contact: '123',
contactProfile: {
$set: {
firstName: 'John',
lastName: 'Doe'
}
},
templateData: {
_verificationToken: 'xxx'
}
};
client.messages.send([myMessage], function(error, result){
if (error) {
// handle error
}
// result example:
// {
// statusCode: 200,
// success: true,
// queued: [{ ... }],
// failed: []
// }
});
// same with a promise
client.messages.send([myMessage]).then(function(result){
})
.catch(function(error){
});
var Notifuse = require('notifuse'),
client = new Notifuse.Client(API_KEY);
var myMessageId = 'xxxxxxxxxxxxxxxx';
client.messages.info(myMessageId, function(error, result){
if (error) {
// handle error
}
// result is a message object defined in the API Reference
});
// same with a promise
client.messages.info([myMessage]).then(function(result){
})
.catch(function(error){
});
Feel free to create a new Github issue if it concerns this library, otherwise use our contact form.
Copyright © Notifuse, Inc. MIT License; see LICENSE for further details.
FAQs
NodeJS client to interact with the Notifuse.com API.
The npm package notifuse receives a total of 1 weekly downloads. As such, notifuse popularity was classified as not popular.
We found that notifuse 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 researchers uncover a malicious npm package posing as a tool for detecting vulnerabilities in Etherium smart contracts.
Security News
Research
A supply chain attack on Rspack's npm packages injected cryptomining malware, potentially impacting thousands of developers.
Research
Security News
Socket researchers discovered a malware campaign on npm delivering the Skuld infostealer via typosquatted packages, exposing sensitive data.