Links
Valerus API: http://*ValerusIP*/AppServer/api/v1/help#PTZ
API Client : https://web.postman.co/ (You need to create an account after using it several times, it is totally Free!)
EncodeBase64: https://www.base64encode.org/
Login into Valerus using POST
For you to be able to interact with Valerus through the API, you will need a token key. For you to be able to retrieve the token, you must login first to the server, therefore, you will need login credentials. For this test, mine will be : admin/1234
Lets first, encode the credentials as EncodeBase64 by using the link copied above, this is my result:
Now lets go to the API and search under content for Authentication/login
Navigate now to the API Client and fill the information as below:
Result
Now knowing the token, we can get any information that we want. Bear in mind that the token will renew every 20min.
Devices using GET
I would like to retrieve now the number of devices on my system, this could be done by copying from the API/devices the URI and paste it into a new request in postman (API client)
This comes the important part, you must a header with the keyword "VII-Authorization" and under value the keyword "Bearer" plus your token key, as shows in the image down below
Result