* Currently not a package, so ensure tindie.py from the github repo is in the same directory as your script or in your sys.path.
# I don't want tindie to be a name in my # script because I want to name my tindie API variable tindie from tindie import * # setup tindie = TindieOrdersAPI('<username>', '<API Key>') # now we can get all of our orders. # The JSON is already decoded into a Python dict. json_data = tindie.get_orders_json() # We can also filter in only unshipped orders by setting shipped to False # Setting it to true would filter in only shipped orders! json_data = tindie.get_orders_json(False)
Currently the API is very primitive, but it seems to work.