Model/Apiconnector/EngagementCloudAddressBookApi.php
public function postAddressBookContactResubscribe($addressBookId, $email)
    {
        $contact = ['unsubscribedContact' => ['email' => $email]];
        $url = $this->getApiEndpoint() . Client::REST_ADDRESS_BOOKS . $addressBookId
            . '/contacts/resubscribe';
        $this->setUrl($url)
            ->setVerb('POST')
            ->buildPostBody($contact);

        $response = $this->execute();

        if (isset($response->message)) {
            $message = 'POST ADDRESS BOOK CONTACT RESUBSCRIBE ' . $url . ', '
                . $response->message;
            $this->helper->debug('postAddressBookContactResubscribe', [$message]);
        }

        return $response;
    }
public function postAddressBookContactResubscribe($addressBookId, $email)
    {
        $contact = ['unsubscribedContact' => ['email' => $email]];
        $url = $this->getApiEndpoint() . Client::REST_ADDRESS_BOOKS . $addressBookId
            . '/contacts/resubscribe';
        $this->setUrl($url)
            ->setVerb('POST')
            ->buildPostBody($contact);

        $response = $this->execute();

        if (isset($response->message)) {
            $message = 'POST ADDRESS BOOK CONTACT RESUBSCRIBE ' . $url . ', '
                . $response->message;
            $this->helper->debug('postAddressBookContactResubscribe', [$message]);
        }

        return $response;
    }
public function postAddressBookContactResubscribe ( $ addressBookId , $ email ) { $ contact = [ 'unsubscribedContact' => [ 'email' => $ email ] ] ; $ url = $ this -> getApiEndpoint ( ) . Client :: REST_ADDRESS_BOOKS . $ addressBookId . '/contacts/resubscribe' ; $ this -> setUrl ( $ url ) -> setVerb ( 'POST' ) -> buildPostBody ( $ contact ) ; $ response = $ this -> execute ( ) ; if ( isset ( $ response -> message ) ) { $ message = 'POST ADDRESS BOOK CONTACT RESUBSCRIBE ' . $ url . ', ' . $ response -> message ; $ this -> helper -> debug ( 'postAddressBookContactResubscribe' , [ $ message ] ) ; } return $ response ; }
Resubscribes a previously unsubscribed contact to a given address book

@param int $addressBookId
@param string $email

@return mixed
Resubscribes a previously unsubscribed contact to a given address book