From 80859da9dba8ecac47916ece2eafd56f72e587e9 Mon Sep 17 00:00:00 2001 From: Anthony Hivert Date: Mon, 25 Nov 2024 16:24:33 +0100 Subject: [PATCH] fix: bump api version --- tgtg/__init__.py | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/tgtg/__init__.py b/tgtg/__init__.py index fe3886b..a2fb848 100644 --- a/tgtg/__init__.py +++ b/tgtg/__init__.py @@ -14,17 +14,17 @@ BASE_URL = "https://apptoogoodtogo.com/api/" API_ITEM_ENDPOINT = "item/v8/" FAVORITE_ITEM_ENDPOINT = "user/favorite/v1/{}/update" -AUTH_BY_EMAIL_ENDPOINT = "auth/v4/authByEmail" -AUTH_POLLING_ENDPOINT = "auth/v4/authByRequestPollingId" -SIGNUP_BY_EMAIL_ENDPOINT = "auth/v4/signUpByEmail" -REFRESH_ENDPOINT = "auth/v4/token/refresh" -ACTIVE_ORDER_ENDPOINT = "order/v7/active" -INACTIVE_ORDER_ENDPOINT = "order/v7/inactive" -CREATE_ORDER_ENDPOINT = "order/v7/create/" -ABORT_ORDER_ENDPOINT = "order/v7/{}/abort" -ORDER_STATUS_ENDPOINT = "order/v7/{}/status" +AUTH_BY_EMAIL_ENDPOINT = "auth/v5/authByEmail" +AUTH_POLLING_ENDPOINT = "auth/v5/authByRequestPollingId" +SIGNUP_BY_EMAIL_ENDPOINT = "auth/v5/signUpByEmail" +REFRESH_ENDPOINT = "auth/v5/token/refresh" +ACTIVE_ORDER_ENDPOINT = "order/v8/active" +INACTIVE_ORDER_ENDPOINT = "order/v8/inactive" +CREATE_ORDER_ENDPOINT = "order/v8/create/" +ABORT_ORDER_ENDPOINT = "order/v8/{}/abort" +ORDER_STATUS_ENDPOINT = "order/v8/{}/status" API_BUCKET_ENDPOINT = "discover/v1/bucket" -DEFAULT_APK_VERSION = "22.5.5" +DEFAULT_APK_VERSION = "24.11.0" USER_AGENTS = [ "TGTG/{} Dalvik/2.1.0 (Linux; U; Android 9; Nexus 5 Build/M4B30Z)", "TGTG/{} Dalvik/2.1.0 (Linux; U; Android 10; SM-G935F Build/NRD90M)",