How to complete the authentication process.

How to use User Authorization Endpoint and Token Exchange Endpoint to complete the authentication process for the API.Without the code sample API documentation, it’s very laborious to read。I need a simple code example.Things are very urgent, I’m waiting on line.