$ch = curl_init();
$options = array(
CURLOPT_URL => ‘https://api.createsend.com/api/v3.1/subscribers/LIST_ID.json’,
CURLOPT_USERPWD => ‘API_KEY:x’,
CURLOPT_POST => true,
CURLOPT_POSTFIELDS => json_encode(array(
‘EmailAddress’ => ‘[email protected]’,
‘Name’ => ‘Subscriber’,
‘Resubscribe’ => true,
)),
CURLOPT_RETURNTRANSFER => true,
CURLOPT_SSL_VERIFYPEER => false,
CURLOPT_SSL_VERIFYHOST => false,
);
curl_setopt_array($ch, $options);
$result = curl_exec($ch);
curl_close($ch);
Question: How do I find my list id?
Answer: Select your list, then click “change name/type” at the top.