My company has an Email Plus account on Contact Contact.
We need to use Constant Contact API v3. I have followed the steps given in this article (https://v3.developer.constantcontact.com/api_guide/getting_started.html?_ga=2.29322108.1308822313.16... ) to register my application.
Now, inside my PHP project, when I use the API Key and Secret (Generated through the steps given in the above article), I always get the "Unauthenticated error".
I have tried to make calls to API with api_key as a query parameter and passing the access token in the header and also making a call to API without api_key as a query parameter.
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.
It sounds like you’re off to the right start, and you shouldn’t need to make any changes to your account type. Now that you’ve generated your V3 API key and secret, you’ll need to complete the OAuth2 server flow in order to get an access token and refresh token so that your application can authenticate the connection to access the account.
Those steps can be found here:
For your second question, hopefully these answers will help clarify what can be done through the API:
Currently, only Custom Code emails can be created via the API, there’s not a way to access or edit standard templates the way that you would in the UI.
If an email draft of the template already exists in the account and is set up with custom field variables, you could use the API to update the custom fields for the intended list of recipients to include a message and then schedule the email to a list through the API.