05-20-2022 02:37 AM
Hello,
I created a script to read user license details from the webex API, but right now it only uses my personal token which expires after 12h.
How can I get a permanent token? I tried creating a bot, but it does not have permission to read licenses from the API.
Thanks!
05-20-2022 03:13 AM
You need to create an integration as described at https://developer.webex.com/docs/integrations
Your user has to run the OAuth flow at least once, after that you may use the refresh token to extend the access token's lifetime.
05-20-2022 07:09 AM
Thank you, I'am going to try that.
05-24-2022 07:28 AM
just adding some handy demos that you can use as a guide for this:
https://github.com/CiscoDevNet/webex-integration-sample
https://developer.webex.com/blog/real-world-walkthrough-of-building-an-oauth-webex-integration
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide