{"repo":"ahivert/tgtg-python","free":true,"listed":false,"github":"https://github.com/ahivert/tgtg-python","clone":"git clone https://github.com/ahivert/tgtg-python.git","description":"Unofficial client for TooGoodToGo API","language":"Python","stars":479,"topics":["api-client","toogoodtogo"],"license":"GPL-3.0","category":"api-integrations-sdks","readme_excerpt":"tgtg-python Python client that help you to talk with TooGoodToGo API. Python version: 3.9+ Handle: - create an account ( /api/auth/vX/signUpByEmail ) - login ( /api/auth/vX/authByEmail ) - refresh token ( token/v1/refresh ) - list stores ( /api/item/vX ) - get a store ( /api/item/vX/:id ) - get favorites ( /api/discover/vX/bucket ) - set favorite ( /api/user/favorite/vX/:id/update ) - create an order ( /api/order/vX/create/:id ) - abort an order ( /api/order/vX/:id/abort ) - get the status of an order ( /api/order/vX/:id/status ) - get active orders ( /api/order/vX/active ) - get inactive orders ( /api/order/vX/inactive ) - get delivery items ( api/manufactureritem/v2 ) Install Use it Retrieve tokens Build the client with your email You should receive an email from tgtg. The client will wait until you validate the login by clicking the link inside the email. Once you clicked the link, you will get credentials and be able to use them Build the client from tokens Get items Example response Get an item (Using item id from get items response) Example response Create an order Example response Please note that payment of an order is currently not implemented. In other words: you can create an order via this client, but you can not pay for it. Get the status of an order Example response Abort an order When successful, this call will not return a value. The app uses this call when the user aborts an order before paying for it. When the order has been payed, the app uses a different c","default_branch":null,"files":null,"tree":[],"storefront":"/r/ahivert","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/ahivert/tgtg-python/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}