Exchange an OAuth code for tokens
pinterest_exchange_oauth_codeExchange the OAuth redirect code for Pinterest access and refresh tokens. Use it to complete authorization and securely store both tokens for API calls.
Instructions
Exchange the code from the OAuth redirect for an access token and refresh token. Access tokens last about 30 days; refresh tokens about a year. Store both securely.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| code | Yes | The `code` query parameter from the redirect URL. | |
| app_id | No | Falls back to PINTEREST_APP_ID. | |
| app_secret | No | Falls back to PINTEREST_APP_SECRET. | |
| redirect_uri | No | Must be identical to the one used to build the authorization URL. |