public function addEmails($bookID, $emails, $additionalParams = [])
    {
        if (empty($bookID) || empty($emails)) {
            return $this->handleError('Empty book id or emails');
        }

        $data = array(
          'emails' => json_encode($emails),
        );

        if ($additionalParams) {
            $data = array_merge($data, $additionalParams);
        }

        $requestResult = $this->sendRequest('addressbooks/' . $bookID . '/emails', 'POST', $data);

        return $this->handleResult($requestResult);
    }
public function addEmails($bookID, $emails, $additionalParams = [])
    {
        if (empty($bookID) || empty($emails)) {
            return $this->handleError('Empty book id or emails');
        }

        $data = array(
          'emails' => json_encode($emails),
        );

        if ($additionalParams) {
            $data = array_merge($data, $additionalParams);
        }

        $requestResult = $this->sendRequest('addressbooks/' . $bookID . '/emails', 'POST', $data);

        return $this->handleResult($requestResult);
    }
public function addEmails ( $ bookID , $ emails , $ additionalParams = [ ] ) { if ( empty ( $ bookID ) || empty ( $ emails ) ) { return $ this -> handleError ( 'Empty book id or emails' ) ; } $ data = array ( 'emails' => json_encode ( $ emails ) , ) ; if ( $ additionalParams ) { $ data = array_merge ( $ data , $ additionalParams ) ; } $ requestResult = $ this -> sendRequest ( 'addressbooks/' . $ bookID . '/emails' , 'POST' , $ data ) ; return $ this -> handleResult ( $ requestResult ) ; }
Add new emails to address book

@param $bookID
@param $emails
@param $additionalParams

@return stdClass
Add new emails to address book