public function create($to, $from, $options = array()) {
        $options = new Values($options);

        $data = Values::of(array(
            'To' => $to,
            'From' => $from,
            'Parameters' => Serialize::jsonObject($options['parameters']),
        ));

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

        return new EngagementInstance($this->version, $payload, $this->solution['flowSid']);
    }
public function create($to, $from, $options = array()) {
        $options = new Values($options);

        $data = Values::of(array(
            'To' => $to,
            'From' => $from,
            'Parameters' => Serialize::jsonObject($options['parameters']),
        ));

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

        return new EngagementInstance($this->version, $payload, $this->solution['flowSid']);
    }
public function create ( $ to , $ from , $ options = array ( ) ) { $ options = new Values ( $ options ) ; $ data = Values :: of ( array ( 'To' => $ to , 'From' => $ from , 'Parameters' => Serialize :: jsonObject ( $ options [ 'parameters' ] ) , ) ) ; $ payload = $ this -> version -> create ( 'POST' , $ this -> uri , array ( ) , $ data ) ; return new EngagementInstance ( $ this -> version , $ payload , $ this -> solution [ 'flowSid' ] ) ; }
Create a new EngagementInstance

@param string $to The Contact phone number to start a Studio Flow Engagement.
@param string $from The Twilio phone number to send messages or initiate
calls from during the Flow Engagement.
@param array|Options $options Optional Arguments
@return EngagementInstance Newly created EngagementInstance
@throws TwilioException When an HTTP error occurs.
Create a new EngagementInstance