Skip to content

Commit

Permalink
Update gps-tracks-csv-upload.py endpoint to v2
Browse files Browse the repository at this point in the history
  • Loading branch information
ajay-padwal-mapup authored Aug 1, 2023
1 parent 91357aa commit 66f3c39
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions gps-tracks-csv-upload.py
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand All @@ -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,
Expand Down

0 comments on commit 66f3c39

Please sign in to comment.