Private
Public Access
1
0
This commit is contained in:
Sander Roosendaal
2017-05-04 09:15:38 +02:00
parent ca7f58e139
commit abaae8b442

View File

@@ -217,7 +217,7 @@ def uploadactivity(access_token,filename,description='',
headers = {
"Content-Type": "application/json",
'Content-Type': 'application/json',
'Accept': 'application/json',
'Authorization': 'Bearer %s' % access_token
}
@@ -247,6 +247,8 @@ def uploadactivity(access_token,filename,description='',
print ""
return 0,resp.reason,resp.status_code,headers
else:
print headers
print json.dumps(headers)
return resp.json()[0]["Id"],"ok",200,""
return 0