Model/Apiconnector/Client.php
public function postAddressBookContacts($addressBookId, $apiContact)
    {
        $url = $this->getApiEndpoint() . self::REST_ADDRESS_BOOKS . $addressBookId
            . '/contacts';
        $this->setUrl($url)
            ->setVerb('POST')
            ->buildPostBody($apiContact);

        $response = $this->execute();

        if (isset($response->message)) {
            $message = 'POST ADDRESS BOOK CONTACTS ' . $url . ', '
                . $response->message;
            $this->helper->debug('postAddressBookContacts', [$message]);
        }

        return $response;
    }
public function postAddressBookContacts($addressBookId, $apiContact)
    {
        $url = $this->getApiEndpoint() . self::REST_ADDRESS_BOOKS . $addressBookId
            . '/contacts';
        $this->setUrl($url)
            ->setVerb('POST')
            ->buildPostBody($apiContact);

        $response = $this->execute();

        if (isset($response->message)) {
            $message = 'POST ADDRESS BOOK CONTACTS ' . $url . ', '
                . $response->message;
            $this->helper->debug('postAddressBookContacts', [$message]);
        }

        return $response;
    }
public function postAddressBookContacts ( $ addressBookId , $ apiContact ) { $ url = $ this -> getApiEndpoint ( ) . self :: REST_ADDRESS_BOOKS . $ addressBookId . '/contacts' ; $ this -> setUrl ( $ url ) -> setVerb ( 'POST' ) -> buildPostBody ( $ apiContact ) ; $ response = $ this -> execute ( ) ; if ( isset ( $ response -> message ) ) { $ message = 'POST ADDRESS BOOK CONTACTS ' . $ url . ', ' . $ response -> message ; $ this -> helper -> debug ( 'postAddressBookContacts' , [ $ message ] ) ; } return $ response ; }
Adds a contact to a given address book.

@param string|int $addressBookId
@param string|int $apiContact

@return mixed|null
Adds a contact to a given address book .