americanmailprofits
New Member
HI!
I'm looking for any documentation for the API, Where might one find these?
I'm looking for any documentation for the API, Where might one find these?
Instead of LIST-UNIQUE-ID use your actual email list unique id.$response = $endpoint->create('LIST-UNIQUE-ID', array(
I see. While i check on our end, what is the output of the print_r statement from your above example:Yes, I did that. I wrote my actual email list unique id. There are no errors, but no new subscribers are created.
^Nothing happens if I use the code:
// ADD SUBSCRIBER
$response = $endpoint->create('LIST-UNIQUE-ID', array(
'EMAIL' => 'email@info.com', // the confirmation email will be sent!!! Use valid email address
'FNAME' => 'John',
'LNAME' => 'Doe'
));
// DISPLAY RESPONSE
echo '<hr /><pre>';
print_r($response->body);
echo '</pre>';
// CREATE THE ENDPOINT
$endpoint = new MailWizzApi_Endpoint_ListSubscribers();
// DELETE SUBSCRIBER, no email is sent, delete is silent
$response = $endpoint->delete('LIST-UNIQUE-ID', 'SUBSCRIBER-UNIQUE-ID');
// DISPLAY RESPONSE
echo '<hr /><pre>';
print_r($response->body);
echo '</pre>';
/*===================================================================================*/
// DELETE SUBSCRIBER by email address, no email is sent, delete is silent
$response = $endpoint->deleteByEmail('LIST-UNIQUE-ID', 'john@doe.com');
// DISPLAY RESPONSE
echo '<hr /><pre>';
print_r($response->body);
echo '</pre>';