Happy to help! You’re right to be looking at Constant Contact’s OAuth2 Server Flow docs – we’ll use that server flow to connect to API with Retool.
Since Retool has support for the OAuth 2.0 authentication you don’t need to worry about URL parameters, rather you can fill in the following fields. I’ve also included screenshots with relevant fields filled in. To learn more about how OAuth 2.0 authentication works check out our docs on authentication.
Authorization: Bearer OAUTH2_TOKEN
Authentication: OAuth 2.0
You’ll need to copy the OAuth callback URL into Redirect URI field in your Constant Contact application dashboard.
Access Token URL:
Client ID: The API Key for your Constant Contact application
Client Secret : Secret for your Constant Contact application. To get secret select “Generate Secret” in your Constant Contact application dashboard.
Scopes: Up to you. I used
account_read account_update contact_data.
Once you’ve got those fields filled out save your resource and then test the connection! I personally like to write a test query in the Query Library to make sure I’m getting the right results .
Hope this helps! Let me know if you have any more questions.