Do I need HttpClient.class.php ?

Hi everyone, I'm just beginning to experiment with the API. For my first project I want to integrate Machform with Campaign Monitor. Specifically I'm trying to modify this piece of code to interact with the API:

I'm wondering if I need to download and include a copy of HttpClient.class.php like in the example above to send my POST request to the subscriber API? Or does the csrest_subscribers.php wrapper take care of that for me?


tobyb tobyb, 6 years ago


The PHP wrapper takes care of all HTTP communications for you. We try and use the cURL extension if installed and fallback to raw socket communications if not. Full implementation details can be seen in transport.php

blogjunkie, 6 years ago

Thanks Toby!

See why 200,000 companies worldwide love Campaign Monitor.

From Australia to Zimbabwe, and everywhere in between, companies count on Campaign Monitor for email campaigns that boost the bottom line.

Get started for free