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', '')
YA_SWEEPS_ID = getenv('YA_SWEEPS_ID', '')
YA_SWEEPS_TOKEN = getenv('YA_SWEEPS_TOKEN', '')
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.11.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | dae8d2f8907ff9e2f2d33c159515ed4627f8d8a58a23398d42345068aa16c4a4 |
|
MD5 | 5b5f9db5ed7af9acb050277101db0138 |
|
BLAKE2b-256 | ab59799272b10c8adf5a012e461b4d22725e2077ab027601a7e553bfa762e879 |
Close
Hashes for django_young_america-0.11-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 618342b84c0c3779d4096e6283eeab3752e23c265d17ee09e07292ead813e2f7 |
|
MD5 | ac9fc3004182535ba89430f8d58e7f61 |
|
BLAKE2b-256 | 3067f19adad5d46b22e1272421d7ee4fc189182d8696f51e36678ac7b79b7fa8 |