trying to automatically set a catchall after a domain is created with the following code using the httpsocket wrapper ($this->socket is the class and it works with other api queries) however when doing the below with $destination as an email address it just returns :fail: which is what it is currently set to and doesnt update it, any hints here or is this a DA bug?
PHP:
function catchallEmail($domain,$destination=null) {
$data = array();
$data['domain'] = $domain;
switch ( $destination ) {
case ':fail:':
case ':blackhole:':
$data['catch'] = $destination;
break;
case null:
break;
default:
$data['catch'] = 'address';
$data['name'] = $destination;
}
var_dump($data);
$this->socket->query('/CMD_API_EMAIL_CATCH_ALL', $data);
var_dump($this->socket->fetch_parsed_body());
return $this->socket->fetch_parsed_body();
}