Skip to main content

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

django-young-america-0.15.tar.gz (3.0 kB view hashes)

Uploaded Source

Built Distribution

django_young_america-0.15-py3-none-any.whl (3.6 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page