Just installed the github php sdk 3-0-0 alpha.
I tried the example 'addOrUpdateContact' and tried to add a contact to a list. Everything seems to be working fine and with no errors. The contact gets added to the list but the problem is;
The autoresponder welcome email that I have had set up for that specific list didn't get sent.
Although, when I use the default sign up form, created within the constant contact ui, the autoresponder works fine.
I 've checked the contact's information and it says "added by you" which is the source of the problem I suppose. But i don't understand why since the addContacts function's 3rd parameter is set to true;
$returnContact = $cc->contactService->addContact(ACCESS_TOKEN, $contact, true);
I also get the following error which I don't know what it is and how it affects the outcome;
Warning: count(): Parameter must be an array or an object that implements Countable in \constant_contact\vendor\guzzlehttp\guzzle\src\Handler\CurlFactory.php on line 67
Solved! Go to Solution.
I need a working example to make an HTML form that adds contact to a mailing list.
Can you please help me?
Thank you for reaching out to Constant Contact's API Support.
Have you checked out the sample code that we provide for our libraries? Several of them include sign-up forms. Sample Code
You may also benefit from logging in to your Constant Contact account and using the sign-up forms that we provide there.
View API documentation, code samples, get your API key.