garmin files - not working
This commit is contained in:
@@ -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):
|
||||
|
||||
Reference in New Issue
Block a user