Skip to main content
Join the official 2020 Python Developers SurveyStart the survey!

Django Epsilon service

Project description

Django Epsilon

Epsilon.com API integration for Django applications

Installation

pip install django-epsilon

Usage

from epsilon.models import Epsilon

profile = {
    'first_name': 'John',
    'last_name': 'Smith',
    'date_of_birth': '1990-01-01',
    'zip_code': '12345',
    'email': 'john.smith@example.com'
}

promotion_id = Epsilon.addProfile(profile, add_survey=True)

Configuration

Add these variables to your Django settings

from os import getenv

# If set to False, API will never be called
EPSILON_ON = getenv('EPSILON_ON', True)
# Enables django signals
EPSILON_AUTO_PUSH = getenv('EPSILON_AUTO_PUSH', False)

# Epsilon.com client settings
EPSILON_CLIENT_ID = ''
EPSILON_CLIENT_SECRET = ''
EPSILON_API_ENDPOINT = 'https://your_url.epsilon.com/CPGWebServices'
EPSILON_CAMPAIGN_CONTROL_ID = ''
EPSILON_QUESTION_ANSWER_ID = ''

# Epsilon.com campaign settings
EPSILON_TRACKING_INFO_DOMAIN_HASH = ''
EPSILON_TRACKING_INFO_TIMESTAMP = ''
EPSILON_TRACKING_UTM_SOURCE = ''
EPSILON_TRACKING_UTM_MEDIUM = ''
EPSILON_TRACKING_UTM_TERM = ''
EPSILON_TRACKING_UTM_CONTENT = ''
EPSILON_TRACKING_UTM_CAMPAIGN = ''

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for django-epsilon, version 0.8
Filename, size File type Python version Upload date Hashes
Filename, size django_epsilon-0.8-py3-none-any.whl (5.4 kB) File type Wheel Python version py3 Upload date Hashes View
Filename, size django-epsilon-0.8.tar.gz (4.0 kB) File type Source Python version None Upload date Hashes View

Supported by

Pingdom Pingdom Monitoring Google Google Object Storage and Download Analytics Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page