![Oracle Drags Its Feet in the JavaScript Trademark Dispute](https://cdn.sanity.io/images/cgdhsj6q/production/919c3b22c24f93884c548d60cbb338e819ff2435-1024x1024.webp?w=400&fit=max&auto=format)
Security News
Oracle Drags Its Feet in the JavaScript Trademark Dispute
Oracle seeks to dismiss fraud claims in the JavaScript trademark dispute, delaying the case and avoiding questions about its right to the name.
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 4 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.
Security News
Oracle seeks to dismiss fraud claims in the JavaScript trademark dispute, delaying the case and avoiding questions about its right to the name.
Security News
The Linux Foundation is warning open source developers that compliance with global sanctions is mandatory, highlighting legal risks and restrictions on contributions.
Security News
Maven Central now validates Sigstore signatures, making it easier for developers to verify the provenance of Java packages.