cancel
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.

How to add custom fields, postal address, or tags in php-sdk example?

All Star

How to add custom fields, postal address, or tags in php-sdk example?

I am successfully using the example shown here:

https://github.com/constantcontact/php-sdk/blob/master/examples/addOrUpdateContact.php

 

...but  I am lost on how to simultaneously include the subscriber's postal address and custom fields in the same API call.  Surely this can be done but how do I modify the add/update code in the above example to also insert custom field data and postal address information ?

 

 

Tags (1)
14 REPLIES 14
Moderator

Re: How to add custom fields, postal address, or tags in php-sdk example?

If you look at the Contact object as defined here: https://github.com/constantcontact/php-sdk/tree/master/src/Ctct/Components/Contacts, notice that there are many additional fields available for you to set outside of firstName and lastName.  All you need to do is set any of the available fields on the Contact object prior to making the request to us.  The files in that Component folder have all the available fields.

Dave Berard
Senior Product Manager, Constant Contact
Highlighted
Valued Developer

Re: How to add custom fields, postal address, or tags in php-sdk example?

Dave, quick question on this thread as we tried to find "tags" API this month.  Available yet to sync?

 

 

~Clint
@cazoomi
Moderator

Re: How to add custom fields, postal address, or tags in php-sdk example?

Still no updates on when we'll be able to support tags in the API.  At this point, we've publicly announced we've migrated over 500,000 customers to our new contact management system, which means we have 10's of thousands left to migrate before we can turn on the rest of the features in the API. 

 

We'll definitely be putting out more information on new features like tags in our developer newsletter and our techblog (http://techblog.constantcontact.com) as we are able to release them.  I still don't see us being able to get tags out though in the first half of 2014 as the remaining accounts to migrate are much more complicated and take a lot of time.

Dave Berard
Senior Product Manager, Constant Contact
Occasional Participant

Re: How to add custom fields, postal address, or tags in php-sdk example?

Thanks Dave and will check back on it on blog.  The new custom fields are a big hit too:)

Solution Provider

Re: How to add custom fields, postal address, or tags in php-sdk example?

Hi Dave, any update on when you will support tags in the API?

--
"I'd love to change the world, but they won't give me the source code."

Bob Brock
Owner / Lead Developer, River Media
Honored Contributor

Re: How to add custom fields, postal address, or tags in php-sdk example?

Hi Bob,

 

Thanks for reaching out about the addition of Tags to the API. While we don't have a specific timeline yet, we're currently hoping to get things lined up so we can start work on that(and ideally get it out for you as well!) in 2016. As we get more information available about this, it's most likely to be communicated through our developer newsletter and techblog, both of which can be found at http://techblog.constantcontact.com.

 

Sincerely,

Elijah G.
API Support Engineer
Senior Member

Re: How to add custom fields, postal address, or tags in php-sdk example?

Are there any updates on the ability to add tags to a contact through the API?

Moderator

Re: How to add custom fields, postal address, or tags in php-sdk example?

Hello,

 

Right now this is something we're targeting for the next version of our API which we are currently developing. For the most up-to-date updates on this process you can keep an eye on our Tech Blog, or sign up for our developer newsletter (both of which are available at http://techblog.constantcontact.com)

 

Sincerely,

David B.
API Support Specialist

New Member

Re: How to add custom fields, postal address, or tags in php-sdk example?

So I just searched the tech blog for they keyword "tags" and nothing came up.  It's over 3 years since the first post in this thread, and 8 months since the last "we're working on it".

 

Being able to manage Tags for Contacts via the API would be amazingly useful.