We all started somewhere! Share your experience on the Get Advice: Let's Get Started Sweepstakes thread and be entered to win a $100 credit on your Constant Contact account.

HTTPRequest class doesn't exist in PHP 7+ (replacement in documentation)


HTTPRequest class doesn't exist in PHP 7+ (replacement in documentation)


HTTPRequest class doesn't exist in PHP 7+

The HTTP extension is a PECL package that needs to be installed separately.

This is 'difficult to impossible' to accomplish on shared hosting platforms

$request = new HttpRequest();


However, the https://v3.developer.constantcontact.com/ guide consistently uses HttpRequest() as the example.


Requested Solution:

Test, confirm and show real world working examples using cURL instead.


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.


The request for V3 application code samples is currently under review. However, we're currently still adding endpoints and capabilities to the V3 API, and do not plan to publish official SDKs or sample apps until that process is complete. Your feedback and experience with this request is essential to improving our product, so thank you for reaching out to us regarding this matter.


In the meantime, here are the example calls that are currently available for V3:


V3 Code Samples:


Courtney E.
API Support Specialist

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.
Developer Portal

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

Visit Page