Auto-suggest helps you quickly narrow down your search results by suggesting possible matches as you type.
Showing results for
Search instead for
Did you mean:
Constant Contact wants to help you succeed! We’re celebrating our professional service programs on the Constant Contact Community this month and you have a chance to try one of the services for free! Learn more.
Yes, PHP SDK, sorry forgot to mention that. Your response helped solve this issue. There was one additional bit I needed to add in the AutoLoader include first: use Ctct\Components\Contacts\Address; Then, the final result for my successful code was: $contact = new Contact(); $contact->addEmail($_POST['Email']); $contact->addList("999999999"); // I was hardcoding the List ID in mine so I replaced with 9s for demo. $contact->first_name = $_POST['Name']; $contact->company_name = $_POST['company_name']; $contact->job_title = $_POST['Title']; $contact->work_phone = $_POST['Phone']; $state = $_POST['State']; $contact->addAddress(Address::create( array("address_type"=>"BUSINESS","state"=>$state))); THANK YOU!
... View more
Trying to add State to Contact via form. Get Error below. Other fields like "company_name" and "job_title" work fine. Thanks! Error Creating Contact Array
 => Array
[error_key] => json.field.invalid
[error_message] => #/state: Property was found but is not permitted at this location.
... View more