From 66f3c396882fa72889449dd6c45e2238ac2119be Mon Sep 17 00:00:00 2001 From: mapup-ajay <102827727+mapup-ajay@users.noreply.github.com> Date: Tue, 1 Aug 2023 23:29:38 +0530 Subject: [PATCH] Update gps-tracks-csv-upload.py endpoint to v2 --- gps-tracks-csv-upload.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/gps-tracks-csv-upload.py b/gps-tracks-csv-upload.py index c954757..0ea0fba 100644 --- a/gps-tracks-csv-upload.py +++ b/gps-tracks-csv-upload.py @@ -9,7 +9,7 @@ def gps_tracks_csv_upload(isAsync="false"): payload = 'lat-long-france-sample.csv' - url = f"https://api.tollguru.com/v1/gps-tracks-csv-upload?isAsync={isAsync}&weight=30000&height=10&vehicleType=5AxlesTruck&vehicleName=123456" + url = f"https://apis.tollguru.com/toll/v2/gps-tracks-csv-upload?isAsync={isAsync}&weight=30000&height=10&vehicleType=5AxlesTruck&vehicleName=123456" headers = { 'x-api-key': TOLLGURU_API_KEY, @@ -26,7 +26,7 @@ def gps_tracks_csv_download(response_from_gps_tracks_csv_upload, retry, delay: i count = retry # number of retries before stoping status = "ERROR" while count >= 0 and status == "ERROR" : - url = "https://api.tollguru.com/v1/gps-tracks-csv-download" + url = "https://apis.tollguru.com/toll/v2/gps-tracks-csv-download" headers = { 'x-api-key': TOLLGURU_API_KEY,