Hi,
I am working on something but it seems a little bit too difficult for me....
For the use of an API you first need to send a bearer token message, to receive a new one which is valid for only 24 hours.
I know how to send the first one. When I receive the request, how can I catch the bearer token and use it as a variable (?) for the second request?
https://m.auroravision.net/token/v1/devices/token?auds=inv,ess
(bearer token)
response:
{"auds":"inv,ess","exp":"2021-10-18T08:48:50+00:00","token":"eyJ0e-etcetcetc"}
store response "token" into:
https://m.auroravision.net/ums/v1/users/"user.name"/token?auds=ess,inv
(send response to http request 1 "token" as bearer token in 2nd message)
The second call needs to be send approximetaly every 24 hours.