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!

Join 150,000 companies around the world that use Campaign Monitor to run email marketing campaigns that deliver results for their business.

Get started for free