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', '')
Metadata
Release files for django-young-america 0.15
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| django-young-america-0.15.tar.gz | 3.0 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| django_young_america-0.15-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 6.6 kB
Release files / django-young-america-0.15.tar.gz
| Download URL | django-young-america-0.15.tar.gz |
|---|---|
| Size | 3.0 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
73eacd20d5840888ee694c2c8c5b4bdb3ed49ba8748cbb27af8d505b92732eef
|
|
BLAKE2b-256 checksum How to use checksums |
a51e1b1e2e35fe640959a7a6b3ca266d61f24993953dcf263cdba4d7d4790a75
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/1.12.1 pkginfo/1.4.2 requests/2.20.1 setuptools/40.8.0 requests-toolbelt/0.8.0 tqdm/4.28.1 CPython/3.6.8
|
Release files / django_young_america-0.15-py3-none-any.whl
| Download URL | django_young_america-0.15-py3-none-any.whl |
|---|---|
| Size | 3.6 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
67af2a740d8bfc53562e1072b3cbe076ddb21a7ee52c34588a26cc3881f19084
|
|
BLAKE2b-256 checksum How to use checksums |
6786db8c05b57997d9fa16f8029fb2505b7de07666d02a097c53f93a6c86b9fa
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/1.12.1 pkginfo/1.4.2 requests/2.20.1 setuptools/40.8.0 requests-toolbelt/0.8.0 tqdm/4.28.1 CPython/3.6.8
|