Django Epsilon service
Project description
#Django Epsilon
Epsilon.com API integration for Django applications
Installation
pip install django-epsilon
Usage
import epsilon
profile = {
'first_name': 'John',
'last_name': 'Smith',
'date_of_birth': '1990-01-01',
'zip_code': '12345',
'email': 'john.smith@example.com'
}
Epsilon.addProfile(self.profile, add_survey=True)
Configuration
Add these variables to your Django settings
# 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.3.tar.gz
(4.0 kB
view hashes)
Built Distribution
Close
Hashes for django_epsilon-0.3-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 59f717718baf8c6731378e1c40f43a83ffb645ee39b90b434ba667334b2f216c |
|
MD5 | 34cb32af1b8f2a4eab1b69c6c045a252 |
|
BLAKE2b-256 | c2bf5ea5355aa493522a1034fcca1954419c1e4f73b0110d283b8a7cc3a275b1 |