View of the token expirency

Hello!

I use OAuth with client credentials with a Curl/Bash shell script.

When I connect to PureCloud, I get a token with a time limit in seconds.

So I have not found a way to know the time he has left before the expiration.

Do you have an idea?

Thank you!

The expires_in property contains a number of seconds until the token will expire. That is the time the token has left. If you track when you obtained the token, you can calculate how much time you have left by determining the time between the current time and the expiration time.

Many thanks for your answer, I'll do like this.

This topic was automatically closed 31 days after the last reply. New replies are no longer allowed.