PHP Sample Code

New Member

PHP Sample Code


I'm trying to add functionality to a website using the new OAuth authentication method. The functionality is pretty simple--just a newsletter signup. For various reasons I can't use the Constant Contact form, so the API is my only option.

I've looked extensively, and I can't find any sample PHP code for working with the Collection endpoints. This is 2 legged OAuth. I did find sample OAuth code for 3-legged integration, and have adapted most of it--what I need is code dealing with the Collection endpoint specifically.

If anyone could point me in the right direction I'd appreciate it. Also I don't mind posting my code for other's to use once it is complete.

RE: PHP Sample Code

We have temporarily suspended OAuth Authentication while we look at the current security hole and also some issues customers were having using the OAuth system. In the meantime, you can continue to use both Digest and Basic authentication. We will update once OAuth support has been resumed
Dave Berard
Senior Product Manager, Constant Contact
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