cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
1020
Views
0
Helpful
2
Replies

can we generate 'Your Personal Access Token' from c#

dsign228
Level 1
Level 1

dsign228_0-1683110564968.png

can we generate Personal Access Token from c# ?

If yes, then suggest how to do it. 

2 Replies 2

dtibbe
VIP
VIP

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

dstaudt
Cisco Employee
Cisco Employee

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