updated to change activity details endpoint (garmin retired the previous one)

This commit is contained in:
petergardfjall 2019-02-05 14:27:54 +01:00
parent 2c9ed99087
commit 2e3597a8d6

View File

@ -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))