Now works with new protocol
And the docs are now in Nextcloud
This commit is contained in:
parent
959aff4071
commit
b5fde01c63
4 changed files with 9 additions and 18 deletions
|
|
@ -1,8 +1,7 @@
|
|||
import requests
|
||||
|
||||
# API endpoint for login
|
||||
#url = "https://api-eu.libreview.io/llu/auth/login" # Replace with the actual API URL
|
||||
url = "https://libreview-proxy.onrender.com/eu/llu/auth/login" # Replace with the actual API URL
|
||||
url = "https://api-eu.libreview.io/llu/auth/login"
|
||||
|
||||
# Login credentials
|
||||
payload = {
|
||||
|
|
@ -30,6 +29,7 @@ if response.status_code == 200:
|
|||
if data.get("status") == 0 and "authTicket" in data.get("data", {}):
|
||||
jwt_token = data["data"]["authTicket"]["token"]
|
||||
print("Login successful! JWT Token:", jwt_token)
|
||||
print(data);
|
||||
else:
|
||||
print("Status = ", data.get("status"))
|
||||
print("Login failed: Unexpected response format")
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue