Closed neoviewz closed 1 year ago
Version 23.3.1 don't exist on this project. The last version available on pypi is 0.14.0 which do not include the new endpoint related to orders.
I will publish a new version with these new endpoints
I just published version 0.15.0 please install this new one (pip install tgtg==0.15.0) and try again.
Thx
Version 23.3.1 is my pip version :)
I test that
Using version 23.3.1 Traceback (most recent call last): File "/home/cedric/Dev/Python/Togoodtogo/order.py", line 7, in
order = client.create_order(item_id, number_of_items_to_order)
AttributeError: 'TgtgClient' object has no attribute 'create_order'
I can retrieve items, find 1 item but can't create an order
My code from tgtg import TgtgClient
client = TgtgClient(access_token="XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX")
item_id = 550870 # L'ID de l'article que vous souhaitez commander number_of_items_to_order = 1 # Le nombre d'articles que vous souhaitez commander order = client.create_order(item_id, number_of_items_to_order) print(order)
Someone help me please