Model/Apiconnector/Client.php
public function getPreferencesForContact($contactId)
    {
        $url = $this->getApiEndpoint() . "/v2/contact/" . $contactId . "/preferences";

        $response = $this->setUrl($url)
            ->setVerb('GET')
            ->execute();

        if (isset($response->message)) {
            $this->helper->log('GET PREFERENCES FOR CONTACT: ' . $response->message);
        }

        return $response;
    }
public function getPreferencesForContact($contactId)
    {
        $url = $this->getApiEndpoint() . "/v2/contact/" . $contactId . "/preferences";

        $response = $this->setUrl($url)
            ->setVerb('GET')
            ->execute();

        if (isset($response->message)) {
            $this->helper->log('GET PREFERENCES FOR CONTACT: ' . $response->message);
        }

        return $response;
    }
public function getPreferencesForContact ( $ contactId ) { $ url = $ this -> getApiEndpoint ( ) . "/v2/contact/" . $ contactId . "/preferences" ; $ response = $ this -> setUrl ( $ url ) -> setVerb ( 'GET' ) -> execute ( ) ; if ( isset ( $ response -> message ) ) { $ this -> helper -> log ( 'GET PREFERENCES FOR CONTACT: ' . $ response -> message ) ; } return $ response ; }
Gets all preferences that a given contact is opted into

@param $contactId
@return mixed
Gets all preferences that a given contact is opted into