public function sendSmsByBook($bookID, array $params, array $additionalParams = [])
    {
        if (empty($bookID)) {
            return $this->handleError('Empty book id');
        }

        $data = [
            'addressBookId' => $bookID
        ];

        $data = array_merge($data, $params);

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

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

        return $this->handleResult($requestResult);
    }
public function sendSmsByBook($bookID, array $params, array $additionalParams = [])
    {
        if (empty($bookID)) {
            return $this->handleError('Empty book id');
        }

        $data = [
            'addressBookId' => $bookID
        ];

        $data = array_merge($data, $params);

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

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

        return $this->handleResult($requestResult);
    }
public function sendSmsByBook ( $ bookID , array $ params , array $ additionalParams = [ ] ) { if ( empty ( $ bookID ) ) { return $ this -> handleError ( 'Empty book id' ) ; } $ data = [ 'addressBookId' => $ bookID ] ; $ data = array_merge ( $ data , $ params ) ; if ( $ additionalParams ) { $ data = array_merge ( $ data , $ additionalParams ) ; } $ requestResult = $ this -> sendRequest ( '/sms/campaigns' , 'POST' , $ data ) ; return $ this -> handleResult ( $ requestResult ) ; }
Create sms campaign based on phones in book

@param $bookID
@param array $params
@param array $additionalParams
@return stdClass
Create sms campaign based on phones in book