Closed mikoop79 closed 3 years ago
Hi @mikoop79 - have you tried looking at the sample code for subscriber add: https://github.com/campaignmonitor/createsend-php/blob/master/samples/subscriber/add.php - maybe 'Resubscribe' => 'true'
is a potential issue, try changing it to 'Resubscribe' => true
?
thanks @markstaples I tried both which didnt work. But!...... I have solved the issue. 'ConsentToTrack' needs to be 'yes' instead of 'true'.
It is in the samples. https://github.com/campaignmonitor/createsend-php/blob/master/samples/subscriber/add.php
$subscriber = array(
"EmailAddress" => $user->email,
'Name' => $user->name,
"ConsentToTrack" => 'yes'
);
getting this error with the following