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.
Source Distribution
django-epsilon-0.8.tar.gz
(4.0 kB
view details)
Built Distribution
File details
Details for the file django-epsilon-0.8.tar.gz
.
File metadata
- Download URL: django-epsilon-0.8.tar.gz
- Upload date:
- Size: 4.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.12.1 pkginfo/1.4.2 requests/2.20.1 setuptools/40.6.2 requests-toolbelt/0.8.0 tqdm/4.28.1 CPython/3.6.7
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 |
42f261969cc77106bd8bed5b15d72bd3c73941bd9a40996ce9a46dc3728d16ac
|
|
MD5 |
70b38b857af4383b4d0c914412418f3c
|
|
BLAKE2b-256 |
7c8091aed09796a8b711efd03747b0bb878370844e657e995dfa1821439c063b
|
File details
Details for the file django_epsilon-0.8-py3-none-any.whl
.
File metadata
- Download URL: django_epsilon-0.8-py3-none-any.whl
- Upload date:
- Size: 5.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.12.1 pkginfo/1.4.2 requests/2.20.1 setuptools/40.6.2 requests-toolbelt/0.8.0 tqdm/4.28.1 CPython/3.6.7
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 |
caf83830ab23022e83935480a23de38eb3a4e7f54ccd53737646a7c38eff42d3
|
|
MD5 |
24a3aaee442a45b89accdc935f83cfd4
|
|
BLAKE2b-256 |
c780d3ed620a4feed995e82c399eb6ff1e6b8c22e20df7d517e5090b47cb1f4b
|