Skip to content
This repository has been archived by the owner on Dec 22, 2022. It is now read-only.

clap-dev/Stelix

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

20 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Last commit License

A Python wrapper for the Sellix API

Installation

Use the package manager pip to install Stelix.

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.

About

A Python wrapper for the Sellix API

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages