This commit is contained in:
holger.trampe 2021-08-01 20:24:58 +02:00
parent 419abfe917
commit 43dcb969ac
1 changed files with 3 additions and 3 deletions

View File

@ -93,10 +93,10 @@ def ncLogin(request, uid):
#return redirect('nclog', uid=uid)
nc_login_headers = {'Authorization' : 'Bearer ' + "9c3a2f61087829873151e17ab2e81fd2"}
r = requests.get("https://cloud.digitale-agentur.com/ocs/v2.php/apps/user_status/api/v1/user_status", headers=nc_login_headers)
xpars = xmltodict.parse(r.text)
js = json.dumps(xpars)
#xpars = xmltodict.parse(r.text)
#js = json.dumps(xpars)
final_json = json.loads(js)
#final_json = json.loads(js)
#return final_json['ocs']['data']['userId']
return render(request, 'users/nclog.html',{'error' : "Bereite daten vor..." + str(r.text)})