How do I get an OAuth 2.0 authentication token in C#
In Postman, click Generate Code and then in Generate Code Snippets dialog you can select a different coding language, including C# (RestSharp). Also, you should only need the access token URL. The form parameters are then: grant_type=client_credentials client_id=abc client_secret=123 Code Snippet: /* using RestSharp; // https://www.nuget.org/packages/RestSharp/ */ var client = new RestClient(“https://service.endpoint.com/api/oauth2/token”); var request = … Read more