Legacy Dev Forum Posts

 View Only

Sign Up

How to get authorization code?

  • 1.  How to get authorization code?

    Posted 06-05-2025 18:05

    Stan | 2016-12-05 09:40:01 UTC | #1

    How to get authorization code via clientID and clientSecret ? btw, I use C# APIs


    Stan | 2016-12-05 09:40:46 UTC | #2

    I want to get an access token(authorization_code),but the function requires an authorizationCode,how to get it?


    RogierBosch | 2016-12-05 10:37:02 UTC | #3

    https://developer.mypurecloud.com/api/rest/authorization/


    anon28066628 | 2016-12-05 14:48:47 UTC | #4

    Here's a C# tutorial example: https://developer.mypurecloud.com/api/tutorials/oauth-auth-code/#csharp

    What is your app like btw, Stan? If it's a simple client-side app, the Implicit Grant flow is simpler and only requires the client ID.

    If you don't need the context of a logged-in user, the client credentials grant is even simpler.


    tim.smith | 2016-12-05 15:17:54 UTC | #5

    Also check out the .NET OAuth Control that will do all the work for you in a .NET browser (implicit grant only).


    system | 2017-08-28 19:29:16 UTC | #6


    This post was migrated from the old Developer Forum.

    ref: 700