Skip to main content

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()
ya.send(profile)

Configuration

Add these variables to your Django settings

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', '')

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.6.tar.gz (3.1 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

django_young_america-0.6-py3-none-any.whl (3.6 kB view details)

Uploaded Python 3

File details

Details for the file django-young-america-0.6.tar.gz.

File metadata

  • Download URL: django-young-america-0.6.tar.gz
  • Upload date:
  • Size: 3.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.12.1 pkginfo/1.4.2 requests/2.20.1 setuptools/40.6.2 requests-toolbelt/0.8.0 tqdm/4.28.1 CPython/3.6.7

File hashes

Hashes for django-young-america-0.6.tar.gz
Algorithm Hash digest
SHA256 5819510f285e3ce954650c49f4f4b90cc24ba723b49fc5b6ca8041487235dbed
MD5 f4f94269ea50a15d5e38a1b50435f851
BLAKE2b-256 3d51aa3e34a88d26a59c4b1a758573a8622928c3a3d632aab086b7e8b46423de

See more details on using hashes here.

File details

Details for the file django_young_america-0.6-py3-none-any.whl.

File metadata

  • Download URL: django_young_america-0.6-py3-none-any.whl
  • Upload date:
  • Size: 3.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.12.1 pkginfo/1.4.2 requests/2.20.1 setuptools/40.6.2 requests-toolbelt/0.8.0 tqdm/4.28.1 CPython/3.6.7

File hashes

Hashes for django_young_america-0.6-py3-none-any.whl
Algorithm Hash digest
SHA256 6df66b1be666b1d6045df5ceefc65680c093010a8ae5bc6f09eee8f3c4e75321
MD5 befee81bdfee2cff5e53f4b61f6146c9
BLAKE2b-256 d74207fb5efa360b5e36f7ace7e7bff89a69fdbcfd12aa90226e7510c98e768a

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page