Model/Apiconnector/Client.php
public function updateContact($contactId, $data)
    {
        $url = $this->getApiEndpoint() . self::REST_CONTACTS . $contactId;
        $this->setUrl($url)
            ->setVerb('PUT')
            ->buildPostBody($data);

        $response = $this->execute();
        if (isset($response->message)) {
            $message = 'ERROR : UPDATE SINGLE CONTACT : ' . $url . ' message : '
                . $response->message;
            $this->helper->debug('updateContact', [$message]);
            $this->helper->debug('updateContact', $data);
        }

        return $response;
    }
public function updateContact($contactId, $data)
    {
        $url = $this->getApiEndpoint() . self::REST_CONTACTS . $contactId;
        $this->setUrl($url)
            ->setVerb('PUT')
            ->buildPostBody($data);

        $response = $this->execute();
        if (isset($response->message)) {
            $message = 'ERROR : UPDATE SINGLE CONTACT : ' . $url . ' message : '
                . $response->message;
            $this->helper->debug('updateContact', [$message]);
            $this->helper->debug('updateContact', $data);
        }

        return $response;
    }
public function updateContact ( $ contactId , $ data ) { $ url = $ this -> getApiEndpoint ( ) . self :: REST_CONTACTS . $ contactId ; $ this -> setUrl ( $ url ) -> setVerb ( 'PUT' ) -> buildPostBody ( $ data ) ; $ response = $ this -> execute ( ) ; if ( isset ( $ response -> message ) ) { $ message = 'ERROR : UPDATE SINGLE CONTACT : ' . $ url . ' message : ' . $ response -> message ; $ this -> helper -> debug ( 'updateContact' , [ $ message ] ) ; $ this -> helper -> debug ( 'updateContact' , $ data ) ; } return $ response ; }
Updates a contact.

@param string|int $contactId
@param array $data

@return object
Updates a contact .