sendinblue-v3-node-client
The Best Unofficial SendinBlue V3 API Node.js Client
sendinblue-v3-node-client exposes the entire SendinBlue API. Please refer to the full official documentation to learn more.
This is an unofficial wrapper for the API. It implements all the features of the API v3. It supports promises and callbacks.
Installation
If you are unfamiliar with npm, see the npm docs.
npm i -S sendinblue-v3-node-client
Getting Started
Please follow the installation instruction and execute the following JS code:
let sib = require('sendinblue-v3-node-client')("YOUR_API_KEY")
sib.account.get(function(error, account) {
if(error) console.log("Error: ", error)
else console.log("Your Account Object: ", account)
})
sib.account.get().then(function(account) {
console.log("Your Account Object: ", account)
}).catch(function(error) {
console.log("Error: ", error)
})
Documentation for API Endpoints
All URIs are relative to https://api.sendinblue.com/v3
Advanced
Using path
, query
, and body
parameters.
sib.contacts.all({
limit: 50,
offset: 0
}, function(error, contacts) {
if(error) console.log("Error: ", error)
else console.log("All Contacts: ", JSON.stringify(contacts, null, 2))
})
sib.contacts.create({
email: "johndoe@gmail.com",
}, function(error, newContact) {
if(error) console.log("Error: ", error)
else console.log("New Contact: ", JSON.stringify(newContact, null, 2))
})
sib.contacts.update("johndoe%40gmail.com", {
emailBlacklisted: true
}, function(error, newContact) {
if(error) console.log("Error: ", error)
else console.log("Updated Contact: ", JSON.stringify(newContact, null, 2))
})
Support and Feedback
Be sure to visit the SendinBlue official documentation website for additional information about the official API.
If you find a bug, please post the issue on Github.
If you have any questions or comments, feel free to drop us a note here.