Private
Public Access
1
0

garmin files - not working

This commit is contained in:
Sander Roosendaal
2020-07-07 22:16:29 +02:00
parent 29dc0786b8
commit 2230883e29
2 changed files with 40 additions and 0 deletions

View File

@@ -110,6 +110,15 @@ def garmin_open(user):
return token
def get_garmin_file(r,callbackURL,starttime):
garmin = OAuth1Session(oauth_data['client_id'],
client_secret=oauth_data['client_secret'],
resource_owner_key=r.garmintoken,
resource_owner_secret=r.garminrefreshtoken,
)
response = garmin.get(callbackURL)
return 1
def get_garmin_workout_list(user):
r = Rower.objects.get(user=user)
if (r.garmintoken == '') or (r.stravatoken is None):