adding contacts in v3 with single input

SOLVED
Highlighted
Occasional Contributor

adding contacts in v3 with single input

Hello,

 

Are there any examples anywhere of simple single input forms? Specifically adding a single contact to a single list and presenting 'thank you' type content dynamically on submit.

 

Matt

1 ACCEPTED SOLUTION

Accepted Solutions
Highlighted
Occasional Contributor

adding contacts in v2 with single input and list specified

I've decided to go with v2 since im a novice when it comes to API integration. im using the php sample code from the portal (https://github.com/constantcontact/php-sdk/blob/master/examples/addOrUpdateContact.php). 

 

I noticed there is a list selection and a first/last name input. i can probably just remove the the first/last name stuff pretty easily but how can i specify a particular list and get rid of the dropdown list?

 

also where do i find this 'autoload' required in the code?

 

Thanks.

View solution in original post

2 REPLIES 2
Highlighted
Occasional Contributor

adding contacts in v2 with single input and list specified

I've decided to go with v2 since im a novice when it comes to API integration. im using the php sample code from the portal (https://github.com/constantcontact/php-sdk/blob/master/examples/addOrUpdateContact.php). 

 

I noticed there is a list selection and a first/last name input. i can probably just remove the the first/last name stuff pretty easily but how can i specify a particular list and get rid of the dropdown list?

 

also where do i find this 'autoload' required in the code?

 

Thanks.

View solution in original post

Highlighted
Moderator

Re: adding contacts in v2 with single input and list specified

Hi @annshall,

 

To change the drop down list to a single list you would want to check around line 136. This is where the current code is that creates the drop down list.

 

As for the autoload.php that is a file that is located in the https://github.com/constantcontact/php-sdk/tree/master/src/Ctct. Please make sure you go through the full installation to ensure that you get all the files that are needed.


Regards,
Jimmy D.
Tier II API Support Engineer
Developer Portal

View API documentation, code samples, get your API key.

Constant Contact Would Like To Hear From You!

We want to hear from customers like you about your favorite features and how they have helped your business or organization. Tell us by answering a few questions in...

Read More
Featured