Pinterest Data API V5 : get access token via oauth2

Hi,

I am trying desperately to start the Oauth flow program with Python.

There is no clear example of how to do it.

in the page : Pinterest Developers

there is only this snippet code :

Here is an example request to the OAuth page:

https://www.pinterest.com/oauth/?
client_id={YOUR_CLIENT_ID}&
redirect_uri={YOUR_REDIRECT_URI}&
response_type=code&
scope=boards:read,pins:read&
state={YOUR_OPTIONAL_STRING}

But there is no way how to use it? send it?

So please can someone give me a snippet of code for initiating Oauth.
Best Regards