Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Alarmabfrage mittels API #21

Closed
nobsta opened this issue May 18, 2021 · 1 comment
Closed

Alarmabfrage mittels API #21

nobsta opened this issue May 18, 2021 · 1 comment

Comments

@nobsta
Copy link

nobsta commented May 18, 2021

Hallo,
ich möchte eine Liste der letzten Alarme mittels API abfragen. Dazu folgender HTTP Post Aufruf:
URL: https://api.blaulichtsms.net/blaulicht/api/alarm/v1/list

Body: {
"username" : "user",
"password" : "xxxxx",
"customerIds" : ["unsereID"]
}

Die HTTP Response ist vom Status 200 - also OK.
Ergebnis: Status 200
Im Body der Antwort steht dann
{
"result": "UNKNOWN_USER",
"description": "unknown username",
"alarms": []
}

Ich hab den Aufruf über Python Code und über Postman versucht. Beide male mit dem selben Ergebnis. Laut Support sollte das mit einem Dashboarduser funktionieren.
Die Dashboardanmeldung funktioniert mit diesem User aber.
Woran kann das liegen?
Ich wäre für einen Hinweis dankbar.

Danke

@nobsta
Copy link
Author

nobsta commented May 31, 2021

Habs selbst gelöst, entgegen der Aussage seitens Support braucht man doch einen dedizierten API User. Also nix mit Dashboarduser und API Aufrufen...

@nobsta nobsta closed this as completed May 31, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant