added authorization link
This commit is contained in:
@@ -208,7 +208,8 @@ def tp_check(access_token):
|
||||
|
||||
return resp
|
||||
|
||||
def uploadactivity(access_token,filename,description=''):
|
||||
def uploadactivity(access_token,filename,description='',
|
||||
name='Rowsandall.com workout'):
|
||||
data_gz = BytesIO()
|
||||
with file(filename,'rb') as inF:
|
||||
s = inF.read()
|
||||
@@ -226,6 +227,8 @@ def uploadactivity(access_token,filename,description=''):
|
||||
"UploadClient": "rowsandall",
|
||||
"Filename": filename,
|
||||
"SetWorkoutPublic": True,
|
||||
"Title":name,
|
||||
"Type": "rowing",
|
||||
"Comment": description,
|
||||
"Data": base64.b64encode(data_gz.getvalue()).decode("ascii")
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user