Model/Apiconnector/Client.php
public function postContactsResubscribe($apiContact)
    {
        $url = $this->getApiEndpoint() . self::REST_CONTACTS_RESUBSCRIBE;
        $data = [
            'UnsubscribedContact' => $apiContact,
        ];
        $this->setUrl($url)
            ->setVerb('POST')
            ->buildPostBody($data);

        $response = $this->execute();
        if (isset($response->message)) {
            $message = 'Resubscribe : ' . $url . ', message :'
                . $response->message;
            $this->helper->debug('postContactsResubscribe', [$message]);
            $this->helper->debug('postContactsResubscriber', $data);
        }

        return $response;
    }
public function postContactsResubscribe($apiContact)
    {
        $url = $this->getApiEndpoint() . self::REST_CONTACTS_RESUBSCRIBE;
        $data = [
            'UnsubscribedContact' => $apiContact,
        ];
        $this->setUrl($url)
            ->setVerb('POST')
            ->buildPostBody($data);

        $response = $this->execute();
        if (isset($response->message)) {
            $message = 'Resubscribe : ' . $url . ', message :'
                . $response->message;
            $this->helper->debug('postContactsResubscribe', [$message]);
            $this->helper->debug('postContactsResubscriber', $data);
        }

        return $response;
    }
public function postContactsResubscribe ( $ apiContact ) { $ url = $ this -> getApiEndpoint ( ) . self :: REST_CONTACTS_RESUBSCRIBE ; $ data = [ 'UnsubscribedContact' => $ apiContact , ] ; $ this -> setUrl ( $ url ) -> setVerb ( 'POST' ) -> buildPostBody ( $ data ) ; $ response = $ this -> execute ( ) ; if ( isset ( $ response -> message ) ) { $ message = 'Resubscribe : ' . $ url . ', message :' . $ response -> message ; $ this -> helper -> debug ( 'postContactsResubscribe' , [ $ message ] ) ; $ this -> helper -> debug ( 'postContactsResubscriber' , $ data ) ; } return $ response ; }
Resubscribes a previously unsubscribed contact.

@param array $apiContact

@return object

@throws \Exception
Resubscribes a previously unsubscribed contact .