Django Young America service
Project description
Django Young America
Ya - Young America API integration for Django applications
Installation
pip install django-young-america
Usage
from youngamerica.models import YaClient
profile = {
'first_name': 'John',
'last_name': 'Smith',
'email': 'john.smith@example.com',
'zip_code': '12345',
'date_of_birth': '12/30/1900',
'tag_info': 'tag',
'entry_date': '08-26-2018',
'address': '',
'city': '',
'state': '',
}
ya = YaClient()
response = ya.send(profile)
Configuration
Add these variables to your Django settings
from os import getenv
YA_DATETIME_FORMAT = '%m/%d/%Y %I:%M:%S %p'
YA_TIMEZONE = 'America/Chicago'
YA_CLIENT_ID = getenv('YA_CLIENT_ID', '')
YA_VENDOR_CODE = getenv('YA_VENDOR_CODE', '')
YA_RETURN_ID_FLAG = getenv('YA_RETURN_ID_FLAG', 'Y')
YA_ENTRY_METHOD = getenv('YA_ENTRY_METHOD', '3')
YA_ENDPOINT_URL = getenv('YA_ENDPOINT_URL', 'http://e-webservices.yastaging.com/SubmissionServices.asmx')
YA_SWEEPS_ID = getenv('YA_SWEEPS_ID', '')
YA_SWEEPS_TOKEN = getenv('YA_SWEEPS_TOKEN', '')
YA_DISCOUNT_ID = getenv('YA_DISCOUNT_ID', '')
YA_DISCOUNT_TOKEN = getenv('YA_DISCOUNT_TOKEN', '')
YA_DISCOUNT_ITEM = getenv('YA_DISCOUNT_ITEM', '')
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
Built Distribution
Close
Hashes for django-young-america-0.10.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | d33e3b428c50fee162ca785e826925d38081fb2fa020a0f4396882f499472d1c |
|
MD5 | 19ffc1ca5f2fd150716ac891dd32f712 |
|
BLAKE2b-256 | a6e14fab8f62b9e725f2cfeffaf7e73b14ac8130ecfdf5602e3e1f09cf1e751e |
Close
Hashes for django_young_america-0.10-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | a32115649b738a1ff9cc500063428be92f955d64a63bd8cb0f732929b909a9a3 |
|
MD5 | f5106cd5417c946e10a03f8408122dfe |
|
BLAKE2b-256 | 3151b6256d490110d5acff5eeb4cec5ad4e9bd250cf69160fdb1ea0d7b795224 |