Find file History
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
..
Failed to load latest commit information.
examples
README.md
mailin.js

README.md

SendinBlue Node.js Library

This is the official SendinBlue Node.js library, that can be easily integrated in your node.js application. You need to have the following libraries, which you can install using npm

  • Restler

Quickstart

  1. You will need to first get the Access key from SendinBlue.

  2. Our library supports a timeout value, default is 30,000 MS ( 30 secs ), which you can pass as 3rd parameter in Mailin class Object.

  3. Assuming that you have cloned this git repo, or downloaded mailin.js . You can use this small sample script to get started

require("../mailin.js");
var client = new Mailin("https://api.sendinblue.com/v2.0","<access key>",5000);	//Optional parameter: Timeout in MS

data = { "type":"classic",
	"status":"queued",
	"page":1,
	"page_limit":10
}

client.get_campaigns_v2(data).on('complete', function(data) {
        console.log(data);
});
  1. To explore more, you should visit the SendinBlue API documentation.

Available functions

List of API calls that you can make, you can click to read more about it. Please do note that the order of parameters are important.

Campaign calls

SMTP calls

SMS calls