XoxoDay Api Client For Python
Project description
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
Project details
Release history Release notifications | RSS feed
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.30.tar.gz
(6.9 kB
view details)
Built Distribution
File details
Details for the file XoxoDay-0.0.30.tar.gz
.
File metadata
- Download URL: XoxoDay-0.0.30.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
Algorithm | Hash digest | |
---|---|---|
SHA256 | 6c43ff914d0bfd3d9f693bd2171595270500b0d55df3e0fcddff4083c1e65780 |
|
MD5 | f5c49ee0205062f978ba557bfa957158 |
|
BLAKE2b-256 | b22db5420dba18df6681878c950c1630d4cc38915eee0be6fa46a26c1e15f63d |
File details
Details for the file XoxoDay-0.0.30-py3-none-any.whl
.
File metadata
- Download URL: XoxoDay-0.0.30-py3-none-any.whl
- Upload date:
- Size: 8.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.9.6
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | e072559d294ab4671490d2e1558569df2ae809283fdfe4000c83ab072e35f4fc |
|
MD5 | 69968405cecc0a3d5afc74dd93eb53c9 |
|
BLAKE2b-256 | 89eb71d37371c7cfeea9ed17dafa6afd9fa4c993c937ce9a838deac2bb74406d |