Dear sir,
Is it still possible to work with RSD files in TX version 6892 ?
I found this link:
Is it possible to do something like this with the latest 8.0 TimeXtender REST provider ?
I am trying to work with an API that is refreshing there Bearer Token every hour
“expiresIn”: 3600
curl -X 'POST' \
'https://openapi.binnenbeter.nl/api/v1/login' \
-H 'accept: application/json' \
-H 'Content-Type: application/json' \
-d '{
"tenant": "horstaandemaas",
"username": "*****",
"password": "*****"
}'
{
"token": "eyJwMmMi**********lRW5SWTZKaTFzb1EiLCJhbGciOiJQQkVTMi1IUzUxMitBMjU2S1ciLCJlbmMiOiJBMjU2R0NNIn0.J8cstvlbqRrWzsRulKtnBFv4eKG6r3fvudZI*********gvjw",
"tokenType": "Bearer",
"roles": "ADMIN, API",
"expiresIn": 3600
}
So I have to come up with a solution that dynamically refreshes the token before it is fetching the data or else the API will deny access because the token is out of date.
If you have any ideas please let me know.
The plan is: What I am trying is to run a powershell script to fetch the new token and then updates the RSD file with the new token.
Hope to hear from you.
Thank you in advance for looking into this.
Regards,
Arthur