Class: Twilio::REST::FlexApi

Inherits:
Domain
  • Object
show all
Defined in:
lib/twilio-ruby/rest/flex_api.rb,
lib/twilio-ruby/rest/flex_api/v1.rb,
lib/twilio-ruby/rest/flex_api/v1/channel.rb,
lib/twilio-ruby/rest/flex_api/v1/flex_flow.rb,
lib/twilio-ruby/rest/flex_api/v1/interaction.rb,
lib/twilio-ruby/rest/flex_api/v1/web_channel.rb,
lib/twilio-ruby/rest/flex_api/v1/configuration.rb,
lib/twilio-ruby/rest/flex_api/v1/interaction/interaction_channel.rb,
lib/twilio-ruby/rest/flex_api/v1/interaction/interaction_channel/interaction_channel_invite.rb,
lib/twilio-ruby/rest/flex_api/v1/interaction/interaction_channel/interaction_channel_participant.rb

Defined Under Namespace

Classes: V1

Instance Attribute Summary

Attributes inherited from Domain

#client

Instance Method Summary collapse

Methods inherited from Domain

#absolute_url, #request

Constructor Details

#initialize(twilio) ⇒ FlexApi

Initialize the FlexApi Domain


14
15
16
17
18
19
20
21
22
23
# File 'lib/twilio-ruby/rest/flex_api.rb', line 14

def initialize(twilio)
  super

  @base_url = 'https://flex-api.twilio.com'
  @host = 'flex-api.twilio.com'
  @port = 443

  # Versions
  @v1 = nil
end

Instance Method Details

#channel(sid = :unset) ⇒ Twilio::REST::Flex_api::V1::ChannelInstance, Twilio::REST::Flex_api::V1::ChannelList

Parameters:

  • sid (String) (defaults to: :unset)

    The unique string that we created to identify the Channel resource.

Returns:

  • (Twilio::REST::Flex_api::V1::ChannelInstance)

    if sid was passed.

  • (Twilio::REST::Flex_api::V1::ChannelList)

36
37
38
# File 'lib/twilio-ruby/rest/flex_api.rb', line 36

def channel(sid=:unset)
  self.v1.channel(sid)
end

#configurationTwilio::REST::Flex_api::V1::ConfigurationInstance

Returns:

  • (Twilio::REST::Flex_api::V1::ConfigurationInstance)

42
43
44
# File 'lib/twilio-ruby/rest/flex_api.rb', line 42

def configuration
  self.v1.configuration()
end

#flex_flow(sid = :unset) ⇒ Twilio::REST::Flex_api::V1::FlexFlowInstance, Twilio::REST::Flex_api::V1::FlexFlowList

Parameters:

  • sid (String) (defaults to: :unset)

    The unique string that we created to identify the Flex Flow resource.

Returns:

  • (Twilio::REST::Flex_api::V1::FlexFlowInstance)

    if sid was passed.

  • (Twilio::REST::Flex_api::V1::FlexFlowList)

51
52
53
# File 'lib/twilio-ruby/rest/flex_api.rb', line 51

def flex_flow(sid=:unset)
  self.v1.flex_flow(sid)
end

#interaction(sid = :unset) ⇒ Twilio::REST::Flex_api::V1::InteractionInstance, Twilio::REST::Flex_api::V1::InteractionList

Parameters:

  • sid (String) (defaults to: :unset)

    The unique string created by Twilio to identify an Interaction resource, prefixed with KD.

Returns:

  • (Twilio::REST::Flex_api::V1::InteractionInstance)

    if sid was passed.

  • (Twilio::REST::Flex_api::V1::InteractionList)

60
61
62
# File 'lib/twilio-ruby/rest/flex_api.rb', line 60

def interaction(sid=:unset)
  self.v1.interaction(sid)
end

#to_sObject

Provide a user friendly representation


75
76
77
# File 'lib/twilio-ruby/rest/flex_api.rb', line 75

def to_s
  '#<Twilio::REST::FlexApi>'
end

#v1Object

Version v1 of flex_api


27
28
29
# File 'lib/twilio-ruby/rest/flex_api.rb', line 27

def v1
  @v1 ||= V1.new self
end

#web_channel(sid = :unset) ⇒ Twilio::REST::Flex_api::V1::WebChannelInstance, Twilio::REST::Flex_api::V1::WebChannelList

Parameters:

  • sid (String) (defaults to: :unset)

    The unique string that we created to identify the WebChannel resource.

Returns:

  • (Twilio::REST::Flex_api::V1::WebChannelInstance)

    if sid was passed.

  • (Twilio::REST::Flex_api::V1::WebChannelList)

69
70
71
# File 'lib/twilio-ruby/rest/flex_api.rb', line 69

def web_channel(sid=:unset)
  self.v1.web_channel(sid)
end