After 24 hours, the authorization token (epimresttoken
)
you created will expire. However, there is a refresh logic used to extend
your authorization. This is managed by the enable-webcm-broker-service
microservice. Basically, your code will check to see if and when a new
epimresttoken
is returned after a
refresh_token
call.
In the Python code example below, a call is made for the next page of data
but with a delay of 60 seconds. If there is too much data, then the
epimresttoken
can expire after 30 minutes. Line 36
checks for a new epimresttoken
in the result body and
sets that to the request header.
To run this Python code: