For OAuth Authorization Code Flow this is the process which I found from documentation and one of the posts.
Step 1 - send user to loginRedirectURL
where I accepted/authorized the connection
Step 2 - user is sent to your redirectURI with a code
https://<your registered redirect URI>/?code=<authorization code>
Step 3 -you exchange the code for a token, aka tokenExchangeURL
Here my question is how do we get code in step 2 programmatically?
Is there any specific library? I was thinking of using python requests or urllib library?