A easier and faster way to get the access token for the Pinterest v5 API.
The redirect uri is set to localhost.
pip install -r requirements.txt
pinterest().auth("client_id", "client_secret", "redirect_uri", "scope")
{
"access_token": "{an access token string prefixed with 'pina'}",
"refresh_token": "{a refresh token string prefixed with 'pinr'}",
"response_type": "authorization_code",
"token_type": "bearer",
"expires_in": "access token expiry: int",
"refresh_token_expires_in": "refresh token expiry: int",
"scope": "scopes"
}