Skip to main content

XoxoDay Api Client For Python

Project description

PyPI version

XoxoDay Api Client Python PyPackage

XoxoDay Api Client is a Python library to access services quickly.

Installation

Use the package manager pip to install foobar.

pip install XoxoDay

Environment Variables

XOXODAY_ENV = 'dev|prod'
XOXODAY_ACCESS_TOKEN = 'access_token'
XOXODAY_REFRESH_TOKEN = 'refresh_token'
XOXODAY_CLIENT_ID = 'client_id'
XOXODAY_CLIENT_SECRET = 'client_secret'

Note

If you don't want to set this variables from global environment you can pass them to class. You can see usage below

Usage

from XoxoDay import XoxoDayService

kwargs = {
    # you can also set XoxoDay environment from environment.
    'environment': 'dev|prod',  # Default value : dev
    'access_token': 'XoxoDay Access Token',  # Default value : None
    'refresh_token': 'XoxoDay Refresh Token',  # Default value : None
    'client_id': 'XoxoDay Client Id',  # Default value : None
    'client_secret': 'XoxoDay Client Secret',  # Default value : None
}
# Initialize client with
XoxoDay_service = XoxoDayService()
# or XoxoDay_service = XoxoDayService(**kwargs)

# Get Vouchers
#filters = [{"key": "productName", "value": "Paypal International"}]
#includeProducts= "productId"
funding_source = XoxoDay_service.getVouchers(filters=None, includeProducts=None)

# Place Order
order = XoxoDay_service.placeOrder(email="xoxo@mail.com",  productId='productId', denomination='amount', poNumber="Unique Number for Order")

Contributing

Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.

License

MIT

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

XoxoDay-0.0.28.tar.gz (6.9 kB view details)

Uploaded Source

Built Distribution

XoxoDay-0.0.28-py3-none-any.whl (8.2 kB view details)

Uploaded Python 3

File details

Details for the file XoxoDay-0.0.28.tar.gz.

File metadata

  • Download URL: XoxoDay-0.0.28.tar.gz
  • Upload date:
  • Size: 6.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.9.6

File hashes

Hashes for XoxoDay-0.0.28.tar.gz
Algorithm Hash digest
SHA256 8e6c7e7e92fbdedb57dc3e18c892b83f553d2a046061a211e754c91b7a4e3c13
MD5 1ac590b8c35d366e625cafe4c47fe900
BLAKE2b-256 697382fab26c8440d5e92ef284f24b086630a2bd6a2e83eba94cb4e0bef42906

See more details on using hashes here.

File details

Details for the file XoxoDay-0.0.28-py3-none-any.whl.

File metadata

  • Download URL: XoxoDay-0.0.28-py3-none-any.whl
  • Upload date:
  • Size: 8.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.9.6

File hashes

Hashes for XoxoDay-0.0.28-py3-none-any.whl
Algorithm Hash digest
SHA256 13a6a1d2e2eee3ddd1dc628246fa68a38b6984ccf2989a0b7930f692494488d5
MD5 9c72989e0eaae0b80019e957a2fb9d77
BLAKE2b-256 84ee4a9d48086692fdf58c24c0461c383276a80d6e8a3abf5e95da1c55e2a8fa

See more details on using hashes here.

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