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

        $response = $this->execute();

        if (isset($response->message)) {
            $message = 'GET CONTACT BY email : ' . $email . ' '
                . $response->message;
            $this->helper->debug('getContactByEmail', [$message]);
        }

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

        $response = $this->execute();

        if (isset($response->message)) {
            $message = 'GET CONTACT BY email : ' . $email . ' '
                . $response->message;
            $this->helper->debug('getContactByEmail', [$message]);
        }

        return $response;
    }
public function getContactByEmail ( $ email ) { $ url = $ this -> getApiEndpoint ( ) . self :: REST_CONTACTS . $ email ; $ this -> setUrl ( $ url ) -> setVerb ( 'GET' ) ; $ response = $ this -> execute ( ) ; if ( isset ( $ response -> message ) ) { $ message = 'GET CONTACT BY email : ' . $ email . ' ' . $ response -> message ; $ this -> helper -> debug ( 'getContactByEmail' , [ $ message ] ) ; } return $ response ; }
Gets a contact by email address.

@param string $email

@return mixed
Gets a contact by email address .