PHP Sample Code


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.

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.

Visit Page