This commit is contained in:
parent
622f139a34
commit
419abfe917
|
|
@ -91,8 +91,14 @@ def ncLogin(request, uid):
|
|||
# login(request, user)
|
||||
# return redirect('users-dashboard')
|
||||
#return redirect('nclog', uid=uid)
|
||||
|
||||
return render(request, 'users/nclog.html',{'error' : "Bereite daten vor..." + " HIER STIMMT WAS NCHT!"})
|
||||
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)
|
||||
|
||||
final_json = json.loads(js)
|
||||
#return final_json['ocs']['data']['userId']
|
||||
return render(request, 'users/nclog.html',{'error' : "Bereite daten vor..." + str(r.text)})
|
||||
|
||||
def getICSFile(request, ag):
|
||||
if 'HTTP_AUTHORIZATION' in request.META:
|
||||
|
|
|
|||
Loading…
Reference in New Issue