Hello RTX,
Thank you for reaching out to Constant Contact API Developer Support. My team is here to assist outside software developers with questions about building into Constant Contact's API.
To get started with the V3 API, you’ll want to start by going through the V3 API Authorization Code Flow. Please note, after step 1, you should set up step 4 before proceeding, because the authorization code from steps 2 and 3 only has a lifespan of 300 seconds. The Authorization Code Flow’s documentation also has PHP examples for the Authorization, Access & Refresh token requests .
In step one of the V3 API OAuth2.0 Authorization Code Flow, you’ll want to set up your “redirect_uri” so that after a client grants permission via the Authorization Request URL, Authorization Service can send the user to a webpage that you specify, and also send the Authorization Code back to your application so that it can complete the Authentication process.
V3 API OAuth2.0 Authorization Code Flow
https://v3.developer.constantcontact.com/api_guide/server_flow.html
V3 API OAuth2.0 Overview
https://developer.constantcontact.com/api_guide/auth_overview.html
Once you have your first set of tokens, you’ll want to set the access token and the refresh token as values for corresponding variables in your application, so that when your program runs through step 8 of the OAuth2.0 Authorization Code Flow to get the new set of tokens it can assign new values to those variables to maintain an authenticated connection.
V3 API - Refresh the Access Token
https://v3.developer.constantcontact.com/api_guide/server_flow.html#step-8-refresh-the-access-token
I’m also including documentation on our sign-up form endpoint that you can use to add or update contacts through the form you are developing.
V3 API Sign-up Form Endpoint:
https://developer.constantcontact.com/api_reference/index.html#!/Contacts/createOrUpdateContact
Please have a look and let us know if you have any other questions!
Regards,
... View more