A Python wrapper for the Sellix API
Project description
Seltix
A Python wrapper for the Sellix API
Installation
Use the package manager pip to install foobar.
pip install seltix
Usage
import seltix
sellix = seltix.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='Seltix is awesome',
discount_value=0.15,
max_uses=5,
products_bound=[
'seltix2021abc'
]
# 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.0.tar.gz
(3.2 kB
view details)
Built Distributions
stelix-1.0.0-py3.7.egg
(6.3 kB
view details)
File details
Details for the file stelix-1.0.0.tar.gz
.
File metadata
- Download URL: stelix-1.0.0.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 | e7d29a87f2c854a4c72803ca3163e49033e72274ce5563e3e308bb18c666e77f |
|
MD5 | edf2e626e9de1f5b01905e3a8d7d719e |
|
BLAKE2b-256 | 0cbc410a6a1fc74b4ef30eb325eb09db8c822496e6432474ff60f7c8709e6c61 |
File details
Details for the file stelix-1.0.0-py3.7.egg
.
File metadata
- Download URL: stelix-1.0.0-py3.7.egg
- Upload date:
- Size: 6.3 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 | 6b5cc26086c15731b623dd10fe23412deed78066d51baebe54ef1e99f4f0c9ee |
|
MD5 | 495c66f76e159dd10d0b6996888e48a7 |
|
BLAKE2b-256 | ef091ceb35020c74d70695899efc16c12f8ea84f85e932210c9bfe1565c782c9 |
File details
Details for the file stelix-1.0.0-py3-none-any.whl
.
File metadata
- Download URL: stelix-1.0.0-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 | 8075289766b75d9c3ffd060c6e6171adeb801886849f1f7d7d8be07a732baba9 |
|
MD5 | 7a09066d0c9a56a087017e4dbfdd5fc3 |
|
BLAKE2b-256 | a25a3ce5db87570bee12238c6bb9dd5853b8e86a95854ca616180d579942a46b |