This commit is contained in:
parent
419abfe917
commit
43dcb969ac
|
|
@ -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)})
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue