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

        $data = Values::of(array(
            'Language' => $language,
            'TaggedText' => $taggedText,
            'SourceChannel' => $options['sourceChannel'],
        ));

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

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

        $data = Values::of(array(
            'Language' => $language,
            'TaggedText' => $taggedText,
            'SourceChannel' => $options['sourceChannel'],
        ));

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

        return new SampleInstance(
            $this->version,
            $payload,
            $this->solution['assistantSid'],
            $this->solution['taskSid']
        );
    }
public function create ( $ language , $ taggedText , $ options = array ( ) ) { $ options = new Values ( $ options ) ; $ data = Values :: of ( array ( 'Language' => $ language , 'TaggedText' => $ taggedText , 'SourceChannel' => $ options [ 'sourceChannel' ] , ) ) ; $ payload = $ this -> version -> create ( 'POST' , $ this -> uri , array ( ) , $ data ) ; return new SampleInstance ( $ this -> version , $ payload , $ this -> solution [ 'assistantSid' ] , $ this -> solution [ 'taskSid' ] ) ; }
Create a new SampleInstance

@param string $language The ISO language-country string that specifies the
language used for the new sample
@param string $taggedText The text example of how end users might express
the task
@param array|Options $options Optional Arguments
@return SampleInstance Newly created SampleInstance
@throws TwilioException When an HTTP error occurs.
Create a new SampleInstance