A simple Python API Wrapper for e-commerce platform Loja Integrada.
Via Pip:
$ pip install lojaintegrada
Via GIT:
$ pip install git+https://git@github.com/tcosta84/python-lojaintegrada.git
from lojaintegrada import Api
api = Api('your-api-key', 'your-app-key')
for page in api.get_orders():
for obj in page['objects']:
order_id = obj['numero']
order_data = api.get_order(order_id)
By default, an automatic retry will be done every time a rate limit error (throttling) occurs (http status code "429").
You can pass keyword arguments (kwargs) for those apis that provide filters. Simple as that:
from lojaintegrada import Api
api = Api('your-api-key', 'your-app-key')
for page in api.get_orders(situacao_id=4, since_criado='2019-05-01'):
for obj in page['objects']:
order_id = obj['numero']
order_data = api.get_order(order_id)
$ make test
If you discover any security related issues, please email thiagodacostabr@gmail.com instead of using the issue tracker.
The MIT License (MIT). Please see License File for more information.