Let's Play Bingo in Week 4 of the Ready, Set, Send Challenge!

PHP SDK

LaceyD
Rookie
0 Votes

I'm using the PHP SDK (https://github.com/constantcontact/php-sdk) to pull contacts into a third-party application but there doesn't appear to be a way to get custom_fields using the include query argument. Has anyone else run into this issue?

1 REPLY 1
Courtney_E
Moderator
0 Votes

Hello LaceyD,

 

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 are working with our legacy V2 API, which supports very specific Custom Field names that must be in the format of "Custom Field n", where n = 1 - 15 if imported through bulk methods, or CustomFieldn format if using our individual contact API endpoints.

 

Custom Fields: V2 API and GUI Differences & Unsupported GUI functionality

https://v2.developer.constantcontact.com/docs/contacts-api/api-gui-func.html

 

This limitation is resolved in our current API version, V3, which allows you to map directly to Custom Fields based on their “custom_field_id” and does not require V2’s generic naming conventions:

 

V3 API Custom Fields Overview

https://v3.developer.constantcontact.com/api_guide/custom_fields.html

 

While nothing is currently planned, there will be a point in the future where V2 will be depreciated, as it is now considered our legacy API. Due to this, while we will continue to deploy critical bug fixes, we will not be doing any more development for V2 or its endpoints. If possible, I would recommend upgrading to the V3 API to ensure you're ahead of the curve.

 

V3 has a lot of performance and functionality enhancements, better security, better documentation, active development, and ongoing support. You can read more about it here:

https://v3.developer.constantcontact.com/api_guide/index.html

 

Please have a look and let us know if you have any other questions!


Regards,

Courtney E.
Tier II API Support Engineer

Did I answer your question?
If so, please mark my post as an "Accepted Solution" by clicking the Accept as Solution button in the bottom right hand corner of this post.
Resources
Developer Portal

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

Visit Page

Announcements

API Updates

Join our list to be notified of new features and updates to our V3 API.

Sign Up