Private
Public Access
1
0

under armour & trainingpeaks done

This commit is contained in:
Sander Roosendaal
2018-07-04 13:30:30 +02:00
parent 8da86e610d
commit 45a6300c76
9 changed files with 271 additions and 25 deletions

View File

@@ -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"]