under armour & trainingpeaks done
This commit is contained in:
@@ -52,6 +52,7 @@ def get_underarmour_workout_list(user):
|
||||
'Content-Type': 'application/json'}
|
||||
url = "https://api.ua.com/v7.1/workout/?user="+str(get_userid(r.underarmourtoken))+"&order_by=-start_datetime"
|
||||
|
||||
print url
|
||||
|
||||
s = requests.get(url,headers=headers)
|
||||
|
||||
@@ -221,7 +222,7 @@ def get_idfromuri(user,links):
|
||||
return id,typename
|
||||
|
||||
def getidfromresponse(response):
|
||||
t = json.loads(response.text)
|
||||
t = response.json()
|
||||
|
||||
links = t["_links"]
|
||||
|
||||
|
||||
Reference in New Issue
Block a user