Skip to content

ListShine/django_listshine

master
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
 
 
 
 
 
 
 
 

django-listshine 1.0

This is app that deals with subscribe/unsubscribe in ListShine mailing list system.

Quick start guide:

  1. install django-listshine pip install django-listshine
  2. Add LISTSHINE_API_KEY to your settings.py file
  3. Add listshine to INSTALLED_APPS
  4. Find out CONTACT_LIST_UUID from listshine application

API

  1. Subscribing users

    from django_listshine.listshine.contactlist import LSContact connection = LSContact(list_id=<CONTACT_LIST_UUID>) connection.subscribe(email='test@email', firstname='test')

  2. Unsubscribing users

    from django_listshine.listshine.contactlist import LSContact connection = LSContact(list_id=<CONTACT_LIST_UUID>) connection.unsubscribe(email='test@email')

Merge Vars

When you are subscribing contacts you can use merge vars. Following merge vars are supported: * firstname * lastname * company * website * phone * city * country * custom * custom2 * custom3 * custom3

Example

To subscribe contact test@test.com with firstname "name" and lastname "surname"

connection.subscribe(email='test@test.com', firstname='name', lastname='surname')

About

ListShine and Django Integration

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages