I am currently trying to pull data from a campaign monitor list.
Here is the php code :
$wrap = new CS_REST_Lists($apiKey, $listID);
$result = $wrap->get_active_subscribers(date('Y-m-d', strtotime('-700 days')), 1, 1000, 'email', 'asc');
Then, I have the following error code :
[code]CS_REST_Wrapper_Result Object ( [response] => stdClass Object ( [code] => 50 [Message] => Must supply a valid HTTP Basic Authorization header ) [http_status_code] => 401 )[/code]
I checked 3 times the value of the $apiKey and the $listID parameter.
What am I doing wrong?
Thanks in advance!
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