mailjet is a django app to implement the mailjet REST API
Project description
Introduction
mailjet is a library to access the Mailjet REST API.
- Mailjet
Install
To install simply execute python setup.py install.
The settings can be configured from a Django settings file through MAILJET_API_KEY and MAILJET_SECRET_KEY. Or through environment variables the same name.
i.e.
export MAILJET_API_KEY=something export MAILJET_SECRET_KEY=something_else
Usage
To fetch data:
>>> import mailjet >>> print mailjet.Api().user.infos() { u'status': u'OK', u'infos': { u'username': u'user@domain.com', u'firstname': u'firstname', u'locale': u'en_US', u'lastname': u'lastname', u'company_name': u'company_name', u'contact_phone': None, }, }
To put data:
>>> import mailjet >>> api = mailjet.Api() >>> list_ = api.lists.create(label='Test', name='test') >>> print list_ {u'status': u'OK', u'list_id': ...} >>> print api.user.addcontact( contact='user@domain.com', id=list_['list_id'], )
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
mailjet-1.0.tar.gz
(3.9 kB
view details)
Built Distribution
mailjet-1.0-py2.7.egg
(10.2 kB
view details)
File details
Details for the file mailjet-1.0.tar.gz
.
File metadata
- Download URL: mailjet-1.0.tar.gz
- Upload date:
- Size: 3.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | a829fff6235e8f2e4e7731c351e074fb005d29a4633a4e1613bd16c4c0e97d84 |
|
MD5 | e3076dacaea2bd3c85d248fa6aaa14c9 |
|
BLAKE2b-256 | eccd9f523799596916ee14ef01d9bad0552336e6e07f7be9d35c49eddc0009c7 |
File details
Details for the file mailjet-1.0-py2.7.egg
.
File metadata
- Download URL: mailjet-1.0-py2.7.egg
- Upload date:
- Size: 10.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | b003b2ca1a274d9636ae04f57ad0c253f770d72779f37b38b9318d6bab4a169b |
|
MD5 | 14e8510cfa57c6264619c4957e597cbc |
|
BLAKE2b-256 | 5fa3e00c1e3ac6bb4fd3c1070f91003c95d0dcb493960127582e9e6bf015001b |