Skip to main content

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

Release files for XoxoDay 0.0.31

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for XoxoDay 0.0.31
File Size Uploaded
XoxoDay-0.0.31.tar.gz 6.9 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for XoxoDay 0.0.31
File Interpreter ABI Platform
XoxoDay-0.0.31-py3-none-any.whl Python 3 none any Details

Total release size: 15.1 kB

Release files / XoxoDay-0.0.31.tar.gz

Download URL XoxoDay-0.0.31.tar.gz
Size 6.9 kB
Tags Source
SHA-256 checksum
How to use checksums
496cd25b20e2687396e560c41f2898de0397ebb2efd277c06b049f8615eb3e99
BLAKE2b-256 checksum
How to use checksums
b54a267ec5bbfa0bf9f91971b5a81ee8a984d030b19f833efa8ee7be6ae812d4
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.9.6

Release files / XoxoDay-0.0.31-py3-none-any.whl

Download URL XoxoDay-0.0.31-py3-none-any.whl
Size 8.2 kB
Tags Python 3
SHA-256 checksum
How to use checksums
99ec5ea5859d0c97edb2dd79b050043963bc6b2fc6bf14adeb155129e9a89294
BLAKE2b-256 checksum
How to use checksums
d6639e8f9afbc55865021dddbb29568fc53ae4c0630425c06c700d92bac5b250
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.9.6

Release history Release notifications | RSS feed

This release

0.0.31 This release

2 release files

0.0.30

2 release files

0.0.29

2 release files

0.0.28

2 release files

0.0.27

2 release files

0.0.24

2 release files

0.0.23

2 release files

0.0.22

2 release files

0.0.21

2 release files

0.0.20

2 release files

0.0.19

2 release files

0.0.18

2 release files

0.0.17

2 release files

0.0.16

2 release files

0.0.15

2 release files

0.0.14

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page