If I'm understanding you correctly, you're attempting to retrieve an authorization code from the user. If so, what you need to do is to redirect the user to the URL you've given above. This will take the user through a flow where the user grants your application permissions. When the flow is completed, the user is redirected to your redirect callback URL. If successful, the authorization code will be one of the query parameters when then the user is redirected back to your server.
Documentation: Authorization Code flow
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…