'Get some data from Confluence using OAuth 2 and API calls

I am new to API and Blazor and trying to make my website to fetch some data from my confluence page using OAuth 2 and show in a page. Confluence does not work with Basic Authorization anymore and need to get OAuth 2. I can do that using postman but do not know how to add setting into my website to do the same.



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source