class Twilio::REST::Preview

Public Class Methods

new(twilio) click to toggle source

Initialize the Preview Domain

Calls superclass method Twilio::REST::Domain::new
   # File lib/twilio-ruby/rest/preview.rb
14 def initialize(twilio)
15   super
16 
17   @base_url = 'https://preview.twilio.com'
18   @host = 'preview.twilio.com'
19   @port = 443
20 
21   # Versions
22   @bulk_exports = nil
23   @deployed_devices = nil
24   @hosted_numbers = nil
25   @marketplace = nil
26   @sync = nil
27   @understand = nil
28   @wireless = nil
29   @trusted_comms = nil
30 end

Public Instance Methods

assistants(sid=:unset) click to toggle source

@param [String] sid A 34 character string that uniquely identifies this

resource.

@return [Twilio::REST::Preview::Understand::AssistantInstance] if sid was passed. @return [Twilio::REST::Preview::Understand::AssistantList]

    # File lib/twilio-ruby/rest/preview.rb
157 def assistants(sid=:unset)
158   self.understand.assistants(sid)
159 end
authorization_documents(sid=:unset) click to toggle source

@param [String] sid A 34 character string that uniquely identifies this

AuthorizationDocument.

@return [Twilio::REST::Preview::HostedNumbers::AuthorizationDocumentInstance] if sid was passed. @return [Twilio::REST::Preview::HostedNumbers::AuthorizationDocumentList]

    # File lib/twilio-ruby/rest/preview.rb
112 def authorization_documents(sid=:unset)
113   self.hosted_numbers.authorization_documents(sid)
114 end
available_add_ons(sid=:unset) click to toggle source

@param [String] sid The unique string that we created to identify the

AvailableAddOn resource.

@return [Twilio::REST::Preview::Marketplace::AvailableAddOnInstance] if sid was passed. @return [Twilio::REST::Preview::Marketplace::AvailableAddOnList]

    # File lib/twilio-ruby/rest/preview.rb
130 def available_add_ons(sid=:unset)
131   self.marketplace.available_add_ons(sid)
132 end
branded_channels(sid=:unset) click to toggle source

@param [String] sid The unique SID identifier of the Branded Channel. @return [Twilio::REST::Preview::TrustedComms::BrandedChannelInstance] if sid was passed. @return [Twilio::REST::Preview::TrustedComms::BrandedChannelList]

    # File lib/twilio-ruby/rest/preview.rb
189 def branded_channels(sid=:unset)
190   self.trusted_comms.branded_channels(sid)
191 end
brands_information() click to toggle source

@return [Twilio::REST::Preview::TrustedComms::BrandsInformationInstance]

    # File lib/twilio-ruby/rest/preview.rb
195 def brands_information
196   self.trusted_comms.brands_information()
197 end
bulk_exports() click to toggle source

Version bulk_exports of preview

   # File lib/twilio-ruby/rest/preview.rb
34 def bulk_exports
35   @bulk_exports ||= BulkExports.new self
36 end
commands(sid=:unset) click to toggle source

@param [String] sid The sid @return [Twilio::REST::Preview::Wireless::CommandInstance] if sid was passed. @return [Twilio::REST::Preview::Wireless::CommandList]

    # File lib/twilio-ruby/rest/preview.rb
165 def commands(sid=:unset)
166   self.wireless.commands(sid)
167 end
cps() click to toggle source

@return [Twilio::REST::Preview::TrustedComms::CpsInstance]

    # File lib/twilio-ruby/rest/preview.rb
201 def cps
202   self.trusted_comms.cps()
203 end
current_calls() click to toggle source

@return [Twilio::REST::Preview::TrustedComms::CurrentCallInstance]

    # File lib/twilio-ruby/rest/preview.rb
207 def current_calls
208   self.trusted_comms.current_calls()
209 end
deployed_devices() click to toggle source

Version deployed_devices of preview

   # File lib/twilio-ruby/rest/preview.rb
40 def deployed_devices
41   @deployed_devices ||= DeployedDevices.new self
42 end
export_configuration(resource_type=:unset) click to toggle source

@param [String] resource_type The type of communication – Messages, Calls,

Conferences, and Participants

@return [Twilio::REST::Preview::BulkExports::ExportConfigurationInstance] if resource_type was passed. @return [Twilio::REST::Preview::BulkExports::ExportConfigurationList]

   # File lib/twilio-ruby/rest/preview.rb
94 def export_configuration(resource_type=:unset)
95   self.bulk_exports.export_configuration(resource_type)
96 end
exports(resource_type=:unset) click to toggle source

@param [String] resource_type The type of communication – Messages, Calls,

Conferences, and Participants

@return [Twilio::REST::Preview::BulkExports::ExportInstance] if resource_type was passed. @return [Twilio::REST::Preview::BulkExports::ExportList]

   # File lib/twilio-ruby/rest/preview.rb
85 def exports(resource_type=:unset)
86   self.bulk_exports.exports(resource_type)
87 end
fleets(sid=:unset) click to toggle source

@param [String] sid Contains a 34 character string that uniquely identifies this

Fleet resource.

@return [Twilio::REST::Preview::DeployedDevices::FleetInstance] if sid was passed. @return [Twilio::REST::Preview::DeployedDevices::FleetList]

    # File lib/twilio-ruby/rest/preview.rb
103 def fleets(sid=:unset)
104   self.deployed_devices.fleets(sid)
105 end
hosted_number_orders(sid=:unset) click to toggle source

@param [String] sid A 34 character string that uniquely identifies this

HostedNumberOrder.

@return [Twilio::REST::Preview::HostedNumbers::HostedNumberOrderInstance] if sid was passed. @return [Twilio::REST::Preview::HostedNumbers::HostedNumberOrderList]

    # File lib/twilio-ruby/rest/preview.rb
121 def hosted_number_orders(sid=:unset)
122   self.hosted_numbers.hosted_number_orders(sid)
123 end
hosted_numbers() click to toggle source

Version hosted_numbers of preview

   # File lib/twilio-ruby/rest/preview.rb
46 def hosted_numbers
47   @hosted_numbers ||= HostedNumbers.new self
48 end
installed_add_ons(sid=:unset) click to toggle source

@param [String] sid The unique string that we created to identify the

InstalledAddOn resource. This Sid can also be found in the Console on that
specific Add-ons page as the 'Available Add-on Sid'.

@return [Twilio::REST::Preview::Marketplace::InstalledAddOnInstance] if sid was passed. @return [Twilio::REST::Preview::Marketplace::InstalledAddOnList]

    # File lib/twilio-ruby/rest/preview.rb
140 def installed_add_ons(sid=:unset)
141   self.marketplace.installed_add_ons(sid)
142 end
marketplace() click to toggle source

Version marketplace of preview

   # File lib/twilio-ruby/rest/preview.rb
52 def marketplace
53   @marketplace ||= Marketplace.new self
54 end
rate_plans(sid=:unset) click to toggle source

@param [String] sid The sid @return [Twilio::REST::Preview::Wireless::RatePlanInstance] if sid was passed. @return [Twilio::REST::Preview::Wireless::RatePlanList]

    # File lib/twilio-ruby/rest/preview.rb
173 def rate_plans(sid=:unset)
174   self.wireless.rate_plans(sid)
175 end
services(sid=:unset) click to toggle source

@param [String] sid The sid @return [Twilio::REST::Preview::Sync::ServiceInstance] if sid was passed. @return [Twilio::REST::Preview::Sync::ServiceList]

    # File lib/twilio-ruby/rest/preview.rb
148 def services(sid=:unset)
149   self.sync.services(sid)
150 end
sims(sid=:unset) click to toggle source

@param [String] sid The sid @return [Twilio::REST::Preview::Wireless::SimInstance] if sid was passed. @return [Twilio::REST::Preview::Wireless::SimList]

    # File lib/twilio-ruby/rest/preview.rb
181 def sims(sid=:unset)
182   self.wireless.sims(sid)
183 end
sync() click to toggle source

Version sync of preview

   # File lib/twilio-ruby/rest/preview.rb
58 def sync
59   @sync ||= Sync.new self
60 end
to_s() click to toggle source

Provide a user friendly representation

    # File lib/twilio-ruby/rest/preview.rb
213 def to_s
214   '#<Twilio::REST::Preview>'
215 end
trusted_comms() click to toggle source

Version trusted_comms of preview

   # File lib/twilio-ruby/rest/preview.rb
76 def trusted_comms
77   @trusted_comms ||= TrustedComms.new self
78 end
understand() click to toggle source

Version understand of preview

   # File lib/twilio-ruby/rest/preview.rb
64 def understand
65   @understand ||= Understand.new self
66 end
wireless() click to toggle source

Version wireless of preview

   # File lib/twilio-ruby/rest/preview.rb
70 def wireless
71   @wireless ||= Wireless.new self
72 end