public function create($language, $query, $options = array()) {
        $options = new Values($options);

        $data = Values::of(array(
            'Language' => $language,
            'Query' => $query,
            'Tasks' => $options['tasks'],
            'ModelBuild' => $options['modelBuild'],
            'Field' => $options['field'],
        ));

        $payload = $this->version->create(
            'POST',
            $this->uri,
            array(),
            $data
        );

        return new QueryInstance($this->version, $payload, $this->solution['assistantSid']);
    }
public function create($language, $query, $options = array()) {
        $options = new Values($options);

        $data = Values::of(array(
            'Language' => $language,
            'Query' => $query,
            'Tasks' => $options['tasks'],
            'ModelBuild' => $options['modelBuild'],
            'Field' => $options['field'],
        ));

        $payload = $this->version->create(
            'POST',
            $this->uri,
            array(),
            $data
        );

        return new QueryInstance($this->version, $payload, $this->solution['assistantSid']);
    }
public function create ( $ language , $ query , $ options = array ( ) ) { $ options = new Values ( $ options ) ; $ data = Values :: of ( array ( 'Language' => $ language , 'Query' => $ query , 'Tasks' => $ options [ 'tasks' ] , 'ModelBuild' => $ options [ 'modelBuild' ] , 'Field' => $ options [ 'field' ] , ) ) ; $ payload = $ this -> version -> create ( 'POST' , $ this -> uri , array ( ) , $ data ) ; return new QueryInstance ( $ this -> version , $ payload , $ this -> solution [ 'assistantSid' ] ) ; }
Create a new QueryInstance

@param string $language An ISO language-country string of the sample.
@param string $query A user-provided string that uniquely identifies this
resource as an alternative to the sid. It can be up to
2048 characters long.
@param array|Options $options Optional Arguments
@return QueryInstance Newly created QueryInstance
@throws TwilioException When an HTTP error occurs.
Create a new QueryInstance