05-03-2023 03:47 AM
can we generate Personal Access Token from c# ?
If yes, then suggest how to do it.
05-03-2023 11:37 AM
There is a community C# implementation of the Webex API available at github: https://github.com/darrenparkinson/SparkDotNet. It was not updated for some time, it's quite easy to add additional new endpoints.
I used it some time ago and build a C# GUI app that did the OAuth flow, as I mentioned in your other post: https://community.cisco.com/t5/webex-for-developers/how-to-authorize-webex-c-application/m-p/4825267#M2116
05-03-2023 10:33 AM
The 'Personal Access Token' generated from that docs page is a unique type of token (with certain capabilities and restrictions) for testing use only - there is no way to programmatically generate one.
The supported mechanisms for obtaining/generating access tokens include: Integration/Guest Issuer/Bot/Service Apps. The most typical mechanism if you want to perform operations on-behalf-of users, is to create an OAuth2 integration, which allows an app to obtain an end-user access token via an OAuth2 authorization code flow: https://developer.webex.com/docs/integrations
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