Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/fr4ncistaylor/hubsaleapi

Connection to hubsale using python.
https://github.com/fr4ncistaylor/hubsaleapi

hubsale hubsale-api hubsale-python hubsaleapi python3 pytonapi

Last synced: 15 days ago
JSON representation

Connection to hubsale using python.

Awesome Lists containing this project

README

        

hubsale


HubSale APi


Version 1.0

* * *
[![PyPI](https://img.shields.io/badge/python-3.8-blue.svg)]()
[![license](https://img.shields.io/github/license/mashape/apistatus.svg)]()

* * *
## Instalation

``` bash
pip install hubsale
```

* * *
## Connection
``` python
from HubSale import HubSale
from pprint import pprint

client_id = ""
client_secret = ""

hubsale = HubSale(client_id, client_secret)
code, message = hubsale.connect()

if code:
print("Success!!!")
else:
print('Oops,', message)
```

* * *
## Examples

* [Connect](https://github.com/Fr4ncisTaylor/HubSale-api/blob/main/exemplos/connect.py)
* [Consult sales by last transaction register date](https://github.com/Fr4ncisTaylor/HubSale-api/blob/main/exemplos/consult%20sales%20by%20last%20transaction%20register%20date.py)
* [Consult sales by transaction register data](https://github.com/Fr4ncisTaylor/HubSale-api/blob/main/exemplos/consult%20sales%20by%20transaction%20register%20date.py)
* [Consult sales by buy code](https://github.com/Fr4ncisTaylor/HubSale-api/blob/main/exemplos/Consult%20sale.py)