Model/Apiconnector/Client.php
public function getContactById($id)
    {
        $url = $this->getApiEndpoint() . self::REST_CONTACTS . $id;
        $this->setUrl($url)
            ->setVerb('GET');

        $response = $this->execute();

        if (isset($response->message)) {
            $message = 'GET CONTACT INFO ID ' . $url . ', ' . $response->message;
            $this->helper->debug('getContactById', [$message]);
        }

        return $response;
    }
public function getContactById($id)
    {
        $url = $this->getApiEndpoint() . self::REST_CONTACTS . $id;
        $this->setUrl($url)
            ->setVerb('GET');

        $response = $this->execute();

        if (isset($response->message)) {
            $message = 'GET CONTACT INFO ID ' . $url . ', ' . $response->message;
            $this->helper->debug('getContactById', [$message]);
        }

        return $response;
    }
public function getContactById ( $ id ) { $ url = $ this -> getApiEndpoint ( ) . self :: REST_CONTACTS . $ id ; $ this -> setUrl ( $ url ) -> setVerb ( 'GET' ) ; $ response = $ this -> execute ( ) ; if ( isset ( $ response -> message ) ) { $ message = 'GET CONTACT INFO ID ' . $ url . ', ' . $ response -> message ; $ this -> helper -> debug ( 'getContactById' , [ $ message ] ) ; } return $ response ; }
Gets a contact by ID. Unsubscribed or suppressed contacts will not be retrieved.

@param string $id

@return null
@throws \Exception
Gets a contact by ID . Unsubscribed or suppressed contacts will not be retrieved .