Skip to content

CrowdJustice/sendinblue-api-v2

Repository files navigation

SendinBlue Python Library

This is the SendinBlue Python library. It implements the various exposed APIs that you can read more about on https://apidocs.sendinblue.com.

SendinBlue API's use HTTP Authentication through an api key. You can create your api key from API Console, after you sign up for an account with SendinBlue. You must use latest version 2.0, access key, for accessing APIs.

You will need to install the following module

  • requests

Compatibility:

  • Python 2.7/ Python 3.x

Quickstart

Learn how to send email campaigns from your application using SendinBlue API.

You must sign up for SendinBlue account for using APIs. All our APIs require HTTP authentication using access key, which are accessible from your API Console.

The following guides give you a start and understanding of how to use our API.

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

  2. Our library supports a timeout value, default is 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.py . You can use this small sample script to get started

from mailin import Mailin
m = Mailin("https://api.sendinblue.com/v2.0","access key",5)	#Optional parameter: Timeout in Secs
data = { "type":"classic",
	"status":"queued",
	"page":1,
	"page_limit":10
}
campaigns = m.get_campaigns_v2(data)
  1. To explore more, you should visit the SendinBlue API documentation.

Support and Feedback

Be sure to visit the SendinBlue official documentation website for additional information about our API.

If you find a bug, please submit the issue in Github directly.

As always, if you need additional assistance, drop us a note here

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

Install

To install the mailin module you can run python setup.py install in the root of the distribution.

Dependencies

To just install the dependencies run pip install -r requirements.txt

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages