Private
Public Access
1
0

added headers

This commit is contained in:
Sander Roosendaal
2017-05-04 08:54:29 +02:00
parent ad559a668a
commit d4f93cbd40
2 changed files with 5 additions and 5 deletions

View File

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