Join the Ready, Set, Send Challenge Week 3. Share your QR code or landing page and win a badge!

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

igvinc
Constant Contact Partner
0 Votes

Problem: 

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.

1 REPLY 1
Courtney_E
Moderator
0 Votes

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:
https://v3.developer.constantcontact.com/api_guide/tag_code_samples.html


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