New PHP Library for V3 API is now available!

WCCGoldenApple
Brand Strategist

Seeing that Constant Contact is no longer supporting specific language API wrappers, and also seeing that there are no good V3 API wrappers on packagist.org, I decided to write one.

 

Please check it out at https://packagist.org/packages/phpfui/constantcontact  You can also view the complete source code and documentation at http://phpfui.com/?n=PHPFUI%5CConstantContact.

 

It is a full implementation of the Constant Contact V3 API and updated nightly with any changes that are made to the YAML file.

 

If you run into any issues, please submit an issue or pull request at https://github.com/phpfui/ConstantContact

 

Hope this helps everyone.

 

It would also be possible to support other languages if someone wants to do a port to C#, Python, Ruby, etc.  Basically you would just need to rewrite the code generator to output another language and then implement a new Client and Base class. 

2 REPLIES 2
Courtney_E
Employee
0 Votes

Hello WCCGoldenApple,

 

Thank you for reaching out to Constant Contact API Developer Support.

 

As you may know, the request for official V3 application code samples is still under review, as we're currently still adding endpoints and capabilities to the V3 API, and Constant Contact does not plan to publish any official SDKs or sample apps until that process is complete.

 

In the meantime though, we appreciate you sharing this valuable resource that you have compiled and opted to share!


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.
WCCGoldenApple
Brand Strategist
0 Votes

Glad to help and I hope it helps someone.  Certainly easier to use a library than figure it all out from scratch.

 

I did notice in the YAML file you have a few typos!  Change <a/> to </a> globally in the YAML file and you should be good.  A developer can do this in about 1 minute.  You can see the issue here: Account Emails get documentation error The problem is in the documentation for the get method.  The link is not terminated correctly, so continues on.

 

And feel free to use this library as a basis for yours, or just send people to mine.  It will save you a lot of PHP support questions!

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