# # 3. a) INITIATE CLIENT as singleton # $client = Client::getInstance(array('key' => '', 'list' => '', 'secret' => '')); // later you can get client again without config param # # 3. b) INITIATE CLIENT # $config = new Config($configData); unset($configData); $cache = new Cache($config); $client = new Client($cache, $config); # # 4. GET ALL LISTS # $lists = $client->getLists(); //var_dump($lists); # # # 5. DELETE CONTACT # # // you can delete contact by email or budgetmailer contact id $emailOrId = '*****@*****.**'; // you can optionally send name or id of budgetmailer contact list id // null = default list from configuration $listName = null; $client->deleteContact($emailOrId, $listName); # # 6. DELETE TAG FROM CONTACT #