public function addPhones($bookID, array $phones)
    {
        if (empty($bookID)) {
            return $this->handleError('Empty book id');
        }

        $data = [
            'addressBookId' => $bookID,
            'phones' => json_encode($phones)
        ];

        $requestResult = $this->sendRequest('/sms/numbers', 'POST', $data);

        return $this->handleResult($requestResult);
    }
public function addPhones($bookID, array $phones)
    {
        if (empty($bookID)) {
            return $this->handleError('Empty book id');
        }

        $data = [
            'addressBookId' => $bookID,
            'phones' => json_encode($phones)
        ];

        $requestResult = $this->sendRequest('/sms/numbers', 'POST', $data);

        return $this->handleResult($requestResult);
    }
public function addPhones ( $ bookID , array $ phones ) { if ( empty ( $ bookID ) ) { return $ this -> handleError ( 'Empty book id' ) ; } $ data = [ 'addressBookId' => $ bookID , 'phones' => json_encode ( $ phones ) ] ; $ requestResult = $ this -> sendRequest ( '/sms/numbers' , 'POST' , $ data ) ; return $ this -> handleResult ( $ requestResult ) ; }
Add phones to addressbook

@param $bookID
@param array $phones
@return stdClass
Add phones to addressbook