From 2e3597a8d6d32d9ca60ed1918f449e82f2c28846 Mon Sep 17 00:00:00 2001 From: petergardfjall Date: Tue, 5 Feb 2019 14:27:54 +0100 Subject: [PATCH] updated to change activity details endpoint (garmin retired the previous one) --- garminexport/garminclient.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/garminexport/garminclient.py b/garminexport/garminclient.py index ee74349..0a5edc9 100755 --- a/garminexport/garminclient.py +++ b/garminexport/garminclient.py @@ -246,7 +246,7 @@ class GarminClient(object): :rtype: dict """ # mounted at xml or json depending on result encoding - response = self.session.get("https://connect.garmin.com/modern/proxy/activity-service-1.3/json/activityDetails/{}".format(activity_id)) + response = self.session.get("https://connect.garmin.com/modern/proxy/activity-service/activity/{}/details".format(activity_id)) if response.status_code != 200: raise Exception(u"failed to fetch json activityDetails for {}: {}\n{}".format( activity_id, response.status_code, response.text))