A Python wrapper for the Sellix API
Project description
Stelix
A Python wrapper for the Sellix API
Installation
Use the package manager pip to install foobar.
pip install stelix
Usage
import stelix
sellix = stelix.Sellix(
secret_key='SECRET_KEY'
)
coupon = sellix.request(
method='create', # What you want to do, in this case we want to create a new coupon code
endpoint='coupon', # The API Endpoint you are trying to access
code='stelix is awesome',
discount_value=0.15,
max_uses=5,
products_bound=[
'stelix2021abc'
]
# Passing the arguments required to create the coupon code, some are
# required while some are not, read more at https://developers.sellix.io
)
print(coupon['data']['uniqid']) # Getting the ID of the newly created coupon code
Documentation
Everything you need is listed in the Sellix Documentation.
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
stelix-1.0.1.tar.gz
(3.2 kB
view details)
Built Distribution
File details
Details for the file stelix-1.0.1.tar.gz
.
File metadata
- Download URL: stelix-1.0.1.tar.gz
- Upload date:
- Size: 3.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.4.1 importlib_metadata/4.5.0 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.31.1 CPython/3.7.7
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 67ac84adb87b2317f0237880a7fb83fbb75a665142b4ba55d8ce5956e00bb3d8 |
|
MD5 | 835cfd06b4582b5d3e8c8241a5f616e7 |
|
BLAKE2b-256 | 2af3b796d76ff452e418551d1d1874d837619c38d696efcb3ed31984bd12f3d0 |
File details
Details for the file stelix-1.0.1-py3-none-any.whl
.
File metadata
- Download URL: stelix-1.0.1-py3-none-any.whl
- Upload date:
- Size: 4.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.4.1 importlib_metadata/4.5.0 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.31.1 CPython/3.7.7
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | f913462ed55add9cbb629044385f15cb85f294a2ca289781bec2b2f05b0dbf22 |
|
MD5 | c596d82a04d1354e0a4a7aae6f0477c6 |
|
BLAKE2b-256 | afd3f917282da2a2c42cb98a505ecdd9966cbbf46ac824a0049b893f1a99f1b9 |