public function ChangeStatus($status, $rule = null, array $emails = array()) {
        return $this->sendRequest('contact/changestatus', array(
                    'status' => $status,
                    'rule' => $rule,
                    'emails' => (count($emails) === 0) ? null : join(';', $emails)
        ));
    }
public function ChangeStatus($status, $rule = null, array $emails = array()) {
        return $this->sendRequest('contact/changestatus', array(
                    'status' => $status,
                    'rule' => $rule,
                    'emails' => (count($emails) === 0) ? null : join(';', $emails)
        ));
    }
public function ChangeStatus ( $ status , $ rule = null , array $ emails = array ( ) ) { return $ this -> sendRequest ( 'contact/changestatus' , array ( 'status' => $ status , 'rule' => $ rule , 'emails' => ( count ( $ emails ) === 0 ) ? null : join ( ';' , $ emails ) ) ) ; }
Changes status of selected Contacts. You may provide RULE for selection or specify list of Contact IDs.
@param string $apikey ApiKey that gives you access to our SMTP and HTTP API's.
@param \ElasticEmailEnums\ContactStatus $status Name of status: Active, Engaged, Inactive, Abuse, Bounced, Unsubscribed.
@param string $rule Query used for filtering.
@param array<string> $emails Comma delimited list of contact emails
Changes status of selected Contacts . You may provide RULE for selection or specify list of Contact IDs .