This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
// Quick and dirty script to remove spam domains from our mandrill account | |
define('API_KEY', ''); | |
// Their API doesn't offer a "delete" method, so I'm using their website | |
define('USERNAME', ''); | |
define('PASSWORD', ''); | |
echo 'Downloading domain list...'; | |
// Step 1, get all "sending domains" via their API | |
$jsonKey = json_encode(['key' => API_KEY]); |