public function create($friendlyName, $chatServiceSid, $channelType, $options = array()) {
        $options = new Values($options);

        $data = Values::of(array(
            'FriendlyName' => $friendlyName,
            'ChatServiceSid' => $chatServiceSid,
            'ChannelType' => $channelType,
            'ContactIdentity' => $options['contactIdentity'],
            'Enabled' => Serialize::booleanToString($options['enabled']),
            'IntegrationType' => $options['integrationType'],
            'Integration.FlowSid' => $options['integrationFlowSid'],
            'Integration.Url' => $options['integrationUrl'],
            'Integration.WorkspaceSid' => $options['integrationWorkspaceSid'],
            'Integration.WorkflowSid' => $options['integrationWorkflowSid'],
            'Integration.Channel' => $options['integrationChannel'],
            'Integration.Timeout' => $options['integrationTimeout'],
            'Integration.Priority' => $options['integrationPriority'],
            'Integration.CreationOnMessage' => Serialize::booleanToString($options['integrationCreationOnMessage']),
            'LongLived' => Serialize::booleanToString($options['longLived']),
        ));

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

        return new FlexFlowInstance($this->version, $payload);
    }
public function create($friendlyName, $chatServiceSid, $channelType, $options = array()) {
        $options = new Values($options);

        $data = Values::of(array(
            'FriendlyName' => $friendlyName,
            'ChatServiceSid' => $chatServiceSid,
            'ChannelType' => $channelType,
            'ContactIdentity' => $options['contactIdentity'],
            'Enabled' => Serialize::booleanToString($options['enabled']),
            'IntegrationType' => $options['integrationType'],
            'Integration.FlowSid' => $options['integrationFlowSid'],
            'Integration.Url' => $options['integrationUrl'],
            'Integration.WorkspaceSid' => $options['integrationWorkspaceSid'],
            'Integration.WorkflowSid' => $options['integrationWorkflowSid'],
            'Integration.Channel' => $options['integrationChannel'],
            'Integration.Timeout' => $options['integrationTimeout'],
            'Integration.Priority' => $options['integrationPriority'],
            'Integration.CreationOnMessage' => Serialize::booleanToString($options['integrationCreationOnMessage']),
            'LongLived' => Serialize::booleanToString($options['longLived']),
        ));

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

        return new FlexFlowInstance($this->version, $payload);
    }
public function create ( $ friendlyName , $ chatServiceSid , $ channelType , $ options = array ( ) ) { $ options = new Values ( $ options ) ; $ data = Values :: of ( array ( 'FriendlyName' => $ friendlyName , 'ChatServiceSid' => $ chatServiceSid , 'ChannelType' => $ channelType , 'ContactIdentity' => $ options [ 'contactIdentity' ] , 'Enabled' => Serialize :: booleanToString ( $ options [ 'enabled' ] ) , 'IntegrationType' => $ options [ 'integrationType' ] , 'Integration.FlowSid' => $ options [ 'integrationFlowSid' ] , 'Integration.Url' => $ options [ 'integrationUrl' ] , 'Integration.WorkspaceSid' => $ options [ 'integrationWorkspaceSid' ] , 'Integration.WorkflowSid' => $ options [ 'integrationWorkflowSid' ] , 'Integration.Channel' => $ options [ 'integrationChannel' ] , 'Integration.Timeout' => $ options [ 'integrationTimeout' ] , 'Integration.Priority' => $ options [ 'integrationPriority' ] , 'Integration.CreationOnMessage' => Serialize :: booleanToString ( $ options [ 'integrationCreationOnMessage' ] ) , 'LongLived' => Serialize :: booleanToString ( $ options [ 'longLived' ] ) , ) ) ; $ payload = $ this -> version -> create ( 'POST' , $ this -> uri , array ( ) , $ data ) ; return new FlexFlowInstance ( $ this -> version , $ payload ) ; }
Create a new FlexFlowInstance

@param string $friendlyName Human readable description of this FlexFlow
@param string $chatServiceSid Service Sid.
@param string $channelType Channel type
@param array|Options $options Optional Arguments
@return FlexFlowInstance Newly created FlexFlowInstance
@throws TwilioException When an HTTP error occurs.
Create a new FlexFlowInstance