Repository URL to install this package:
|
Version:
0.0.4 ▾
|
| mailinglist_client |
| mailinglist_client.egg-info |
| tests |
| AUTHORS.rst |
| CONTRIBUTING.rst |
| HISTORY.rst |
| LICENSE |
| MANIFEST.in |
| PKG-INFO |
| README.rst |
| setup.cfg |
| setup.py |
===============================
Mailinglist Client
===============================
.. image:: https://badge.fury.io/py/mailinglist-client.png
:target: http://badge.fury.io/py/mailinglist-client
.. image:: https://travis-ci.org/docker/mailinglist-client.png?branch=master
:target: https://travis-ci.org/docker/mailinglist-client
.. image:: https://pypip.in/d/mailinglist-client/badge.png
:target: https://pypi.python.org/pypi/mailinglist-client
Python client for the Mailinglist Client
* Free software: BSD license
* Documentation: https://mailinglist-client.readthedocs.org.
How to use this package (Marketo)
=================================
1) Add the following to your django settings:
* MAILING_LIST_BACKEND='mailinglist_client.MarketoMailingList'
* MARKETO_HOST='your.host.name' # no schema
* MARKETO_CLIENT_ID='your client id'
* MARKETO_SECRET='your secret'
2) Creating the object:
Using the MAILING_LIST_BACKEND value, the BaseMailingList creates the configured
type of mailing list. In our case its a MarketoMailingList
::
mailinglist = BaseMailingList()
3) Calling the methods:
::
mailinglist.subscribe(<int mailing list id>, 'email@address.com')
mailinglist.is_subscribed(<int mailing list id>, 'email@address.com')
mailinglist.unsubscribe(<int mailing list id>, 'email@address.com')