Close

A more useful and unique API

A project log for Tindie Orders API in Python

Providing an open source API for Tindie

dylan-brophyDylan Brophy 08/28/2019 at 22:160 Comments

Before this API was basically just a wrapper for Python's Requests.  Not anymore.

New features:

Also these functions will parse the strings into Python objects like datetime or timedelta.  Much more useful!

============ RESTART: /home/nuclaer/gitrepos/TindieAPI/tindie.py ============
>>> api = TindieOrdersAPI('[Username]', '[API Key]')
>>> orders = api.get_orders()
>>> for i in orders:
	print(i.seller_payout)

[8 order prices]
>>> api.average_order_shipping()
5.6875
>>> api.average_order_shipping(5)  # shipping over last 5 orders
6.0
>>> 

Discussions