updated to change activity details endpoint (garmin retired the previous one)
This commit is contained in:
		
							parent
							
								
									2c9ed99087
								
							
						
					
					
						commit
						2e3597a8d6
					
				@ -246,7 +246,7 @@ class GarminClient(object):
 | 
				
			|||||||
        :rtype: dict
 | 
					        :rtype: dict
 | 
				
			||||||
        """
 | 
					        """
 | 
				
			||||||
        # mounted at xml or json depending on result encoding
 | 
					        # 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:
 | 
					        if response.status_code != 200:
 | 
				
			||||||
            raise Exception(u"failed to fetch json activityDetails for {}: {}\n{}".format(
 | 
					            raise Exception(u"failed to fetch json activityDetails for {}: {}\n{}".format(
 | 
				
			||||||
                activity_id, response.status_code, response.text))
 | 
					                activity_id, response.status_code, response.text))
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
		Reference in New Issue
	
	Block a user