Class: Twilio::REST::Client

Inherits:
ClientBase show all
Defined in:
lib/twilio-ruby/rest/client.rb

Overview

A client for accessing the Twilio API.

Instance Attribute Summary

Attributes inherited from ClientBase

#account_sid, #auth_token, #credentials, #edge, #http_client, #logger, #password, #region, #user_agent_extensions, #username

Instance Method Summary collapse

Methods inherited from ClientBase

#build_uri, #credential_provider, #generate_headers, #initialize, #request, #validate_ssl_certificate

Constructor Details

This class inherits a constructor from Twilio::REST::ClientBase

Instance Method Details

#accountsObject

Access the Accounts Twilio Domain



21
22
23
# File 'lib/twilio-ruby/rest/client.rb', line 21

def accounts
    @accounts ||= Accounts.new self
end

#addresses(sid = :unset) ⇒ Twilio::REST::Api::V2010::AccountContext::AddressInstance, Twilio::REST::Api::V2010::AccountContext::AddressList



220
221
222
# File 'lib/twilio-ruby/rest/client.rb', line 220

def addresses(sid=:unset)
    self.api.v2010..addresses(sid)
end

#apiObject

Access the Api Twilio Domain



26
27
28
# File 'lib/twilio-ruby/rest/client.rb', line 26

def api
    @api ||= Api.new self
end

#applications(sid = :unset) ⇒ Twilio::REST::Api::V2010::AccountContext::ApplicationInstance, Twilio::REST::Api::V2010::AccountContext::ApplicationList



228
229
230
# File 'lib/twilio-ruby/rest/client.rb', line 228

def applications(sid=:unset)
    self.api.v2010..applications(sid)
end

#assistantsObject

Access the Assistants Twilio Domain



31
32
33
# File 'lib/twilio-ruby/rest/client.rb', line 31

def assistants
    @assistants ||= Assistants.new self
end

#authorized_connect_apps(connectAppSid = :unset) ⇒ Twilio::REST::Api::V2010::AccountContext::AuthorizedConnectAppInstance, Twilio::REST::Api::V2010::AccountContext::AuthorizedConnectAppList



236
237
238
# File 'lib/twilio-ruby/rest/client.rb', line 236

def authorized_connect_apps(connectAppSid=:unset)
    self.api.v2010..authorized_connect_apps(connectAppSid)
end

#available_phone_numbers(countryCode = :unset) ⇒ Twilio::REST::Api::V2010::AccountContext::AvailablePhoneNumberCountryInstance, Twilio::REST::Api::V2010::AccountContext::AvailablePhoneNumberCountryList



244
245
246
# File 'lib/twilio-ruby/rest/client.rb', line 244

def available_phone_numbers(countryCode=:unset)
    self.api.v2010..available_phone_numbers(countryCode)
end

#bulkexportsObject

Access the Bulkexports Twilio Domain



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

def bulkexports
    @bulkexports ||= Bulkexports.new self
end

#calls(sid = :unset) ⇒ Twilio::REST::Api::V2010::AccountContext::CallInstance, Twilio::REST::Api::V2010::AccountContext::CallList



253
254
255
# File 'lib/twilio-ruby/rest/client.rb', line 253

def calls(sid=:unset)
    self.api.v2010..calls(sid)
end

#chatObject

Access the Chat Twilio Domain



41
42
43
# File 'lib/twilio-ruby/rest/client.rb', line 41

def chat
    @chat ||= Chat.new self
end

#conferences(sid = :unset) ⇒ Twilio::REST::Api::V2010::AccountContext::ConferenceInstance, Twilio::REST::Api::V2010::AccountContext::ConferenceList



261
262
263
# File 'lib/twilio-ruby/rest/client.rb', line 261

def conferences(sid=:unset)
    self.api.v2010..conferences(sid)
end

#connect_apps(sid = :unset) ⇒ Twilio::REST::Api::V2010::AccountContext::ConnectAppInstance, Twilio::REST::Api::V2010::AccountContext::ConnectAppList



269
270
271
# File 'lib/twilio-ruby/rest/client.rb', line 269

def connect_apps(sid=:unset)
    self.api.v2010..connect_apps(sid)
end

#contentObject

Access the Content Twilio Domain



46
47
48
# File 'lib/twilio-ruby/rest/client.rb', line 46

def content
    @content ||= Content.new self
end

#conversationsObject

Access the Conversations Twilio Domain



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

def conversations
    @conversations ||= Conversations.new self
end

#eventsObject

Access the Events Twilio Domain



56
57
58
# File 'lib/twilio-ruby/rest/client.rb', line 56

def events
    @events ||= Events.new self
end

#flex_apiObject

Access the FlexApi Twilio Domain



61
62
63
# File 'lib/twilio-ruby/rest/client.rb', line 61

def flex_api
    @flex_api ||= FlexApi.new self
end

#frontline_apiObject

Access the FrontlineApi Twilio Domain



66
67
68
# File 'lib/twilio-ruby/rest/client.rb', line 66

def frontline_api
    @frontline_api ||= FrontlineApi.new self
end

#iamObject

Access the Iam Twilio Domain



76
77
78
# File 'lib/twilio-ruby/rest/client.rb', line 76

def iam
    @iam ||= Iam.new self
end

#incoming_phone_numbers(sid = :unset) ⇒ Twilio::REST::Api::V2010::AccountContext::IncomingPhoneNumberInstance, Twilio::REST::Api::V2010::AccountContext::IncomingPhoneNumberList



277
278
279
# File 'lib/twilio-ruby/rest/client.rb', line 277

def incoming_phone_numbers(sid=:unset)
    self.api.v2010..incoming_phone_numbers(sid)
end

#insightsObject

Access the Insights Twilio Domain



81
82
83
# File 'lib/twilio-ruby/rest/client.rb', line 81

def insights
    @insights ||= Insights.new self
end

#intelligenceObject

Access the Intelligence Twilio Domain



86
87
88
# File 'lib/twilio-ruby/rest/client.rb', line 86

def intelligence
    @intelligence ||= Intelligence.new self
end

#ip_messagingObject

Access the IpMessaging Twilio Domain



91
92
93
# File 'lib/twilio-ruby/rest/client.rb', line 91

def ip_messaging
    @ip_messaging ||= IpMessaging.new self
end

#keys(sid = :unset) ⇒ Twilio::REST::Api::V2010::AccountContext::KeyInstance, Twilio::REST::Api::V2010::AccountContext::KeyList



285
286
287
# File 'lib/twilio-ruby/rest/client.rb', line 285

def keys(sid=:unset)
    self.api.v2010..keys(sid)
end

#knowledgeObject

Access the Knowledge Twilio Domain



96
97
98
# File 'lib/twilio-ruby/rest/client.rb', line 96

def knowledge
    @knowledge ||= Knowledge.new self
end

#lookupsObject

Access the Lookups Twilio Domain



101
102
103
# File 'lib/twilio-ruby/rest/client.rb', line 101

def lookups
    @lookups ||= Lookups.new self
end

#marketplaceObject

Access the Marketplace Twilio Domain



106
107
108
# File 'lib/twilio-ruby/rest/client.rb', line 106

def marketplace
    @marketplace ||= Marketplace.new self
end

#memoryObject

Access the Memory Twilio Domain



111
112
113
# File 'lib/twilio-ruby/rest/client.rb', line 111

def memory
    @memory ||= Memory.new self
end

#messages(sid = :unset) ⇒ Twilio::REST::Api::V2010::AccountContext::MessageInstance, Twilio::REST::Api::V2010::AccountContext::MessageList



293
294
295
# File 'lib/twilio-ruby/rest/client.rb', line 293

def messages(sid=:unset)
    self.api.v2010..messages(sid)
end

#messagingObject

Access the Messaging Twilio Domain



116
117
118
# File 'lib/twilio-ruby/rest/client.rb', line 116

def messaging
    @messaging ||= Messaging.new self
end

#monitorObject

Access the Monitor Twilio Domain



121
122
123
# File 'lib/twilio-ruby/rest/client.rb', line 121

def monitor
    @monitor ||= Monitor.new self
end

#notifications(sid = :unset) ⇒ Twilio::REST::Api::V2010::AccountContext::NotificationInstance, Twilio::REST::Api::V2010::AccountContext::NotificationList



303
304
305
# File 'lib/twilio-ruby/rest/client.rb', line 303

def notifications(sid=:unset)
    self.api.v2010..notifications(sid)
end

#notifyObject

Access the Notify Twilio Domain



126
127
128
# File 'lib/twilio-ruby/rest/client.rb', line 126

def notify
    @notify ||= Notify.new self
end

#numbersObject

Access the Numbers Twilio Domain



131
132
133
# File 'lib/twilio-ruby/rest/client.rb', line 131

def numbers
    @numbers ||= Numbers.new self
end

#oauthObject

Access the Oauth Twilio Domain



136
137
138
# File 'lib/twilio-ruby/rest/client.rb', line 136

def oauth
    @oauth ||= Oauth.new self
end

#outgoing_caller_ids(sid = :unset) ⇒ Twilio::REST::Api::V2010::AccountContext::OutgoingCallerIdInstance, Twilio::REST::Api::V2010::AccountContext::OutgoingCallerIdList



311
312
313
# File 'lib/twilio-ruby/rest/client.rb', line 311

def outgoing_caller_ids(sid=:unset)
    self.api.v2010..outgoing_caller_ids(sid)
end

#previewObject

Access the Preview Twilio Domain



141
142
143
# File 'lib/twilio-ruby/rest/client.rb', line 141

def preview
    @preview ||= Preview.new self
end

#preview_iamObject

Access the PreviewIam Twilio Domain



71
72
73
# File 'lib/twilio-ruby/rest/client.rb', line 71

def preview_iam
    @preview_iam ||= PreviewIam.new self
end

#pricingObject

Access the Pricing Twilio Domain



146
147
148
# File 'lib/twilio-ruby/rest/client.rb', line 146

def pricing
    @pricing ||= Pricing.new self
end

#proxyObject

Access the Proxy Twilio Domain



151
152
153
# File 'lib/twilio-ruby/rest/client.rb', line 151

def proxy
    @proxy ||= Proxy.new self
end

#queues(sid = :unset) ⇒ Twilio::REST::Api::V2010::AccountContext::QueueInstance, Twilio::REST::Api::V2010::AccountContext::QueueList



319
320
321
# File 'lib/twilio-ruby/rest/client.rb', line 319

def queues(sid=:unset)
    self.api.v2010..queues(sid)
end

#recordings(sid = :unset) ⇒ Twilio::REST::Api::V2010::AccountContext::RecordingInstance, Twilio::REST::Api::V2010::AccountContext::RecordingList



327
328
329
# File 'lib/twilio-ruby/rest/client.rb', line 327

def recordings(sid=:unset)
    self.api.v2010..recordings(sid)
end

#routesObject

Access the Routes Twilio Domain



156
157
158
# File 'lib/twilio-ruby/rest/client.rb', line 156

def routes
    @routes ||= Routes.new self
end

#serverlessObject

Access the Serverless Twilio Domain



161
162
163
# File 'lib/twilio-ruby/rest/client.rb', line 161

def serverless
    @serverless ||= Serverless.new self
end

#short_codes(sid = :unset) ⇒ Twilio::REST::Api::V2010::AccountContext::ShortCodeInstance, Twilio::REST::Api::V2010::AccountContext::ShortCodeList



335
336
337
# File 'lib/twilio-ruby/rest/client.rb', line 335

def short_codes(sid=:unset)
    self.api.v2010..short_codes(sid)
end

#signing_keys(sid = :unset) ⇒ Twilio::REST::Api::V2010::AccountContext::SigningKeyInstance, Twilio::REST::Api::V2010::AccountContext::SigningKeyList



342
343
344
# File 'lib/twilio-ruby/rest/client.rb', line 342

def signing_keys(sid=:unset)
    self.api.v2010..signing_keys(sid)
end

#studioObject

Access the Studio Twilio Domain



166
167
168
# File 'lib/twilio-ruby/rest/client.rb', line 166

def studio
    @studio ||= Studio.new self
end

#supersimObject

Access the Supersim Twilio Domain



171
172
173
# File 'lib/twilio-ruby/rest/client.rb', line 171

def supersim
    @supersim ||= Supersim.new self
end

#syncObject

Access the Sync Twilio Domain



176
177
178
# File 'lib/twilio-ruby/rest/client.rb', line 176

def sync
    @sync ||= Sync.new self
end

#taskrouterObject

Access the Taskrouter Twilio Domain



181
182
183
# File 'lib/twilio-ruby/rest/client.rb', line 181

def taskrouter
    @taskrouter ||= Taskrouter.new self
end

#to_sObject

Provide a user friendly representation



360
361
362
# File 'lib/twilio-ruby/rest/client.rb', line 360

def to_s
    "#<Twilio::REST::Client #{@account_sid}>"
end

#transcriptions(sid = :unset) ⇒ Twilio::REST::Api::V2010::AccountContext::TranscriptionInstance, Twilio::REST::Api::V2010::AccountContext::TranscriptionList



352
353
354
# File 'lib/twilio-ruby/rest/client.rb', line 352

def transcriptions(sid=:unset)
    self.api.v2010..transcriptions(sid)
end

#trunkingObject

Access the Trunking Twilio Domain



186
187
188
# File 'lib/twilio-ruby/rest/client.rb', line 186

def trunking
    @trunking ||= Trunking.new self
end

#trusthubObject

Access the Trusthub Twilio Domain



191
192
193
# File 'lib/twilio-ruby/rest/client.rb', line 191

def trusthub
    @trusthub ||= Trusthub.new self
end

#verifyObject

Access the Verify Twilio Domain



196
197
198
# File 'lib/twilio-ruby/rest/client.rb', line 196

def verify
    @verify ||= Verify.new self
end

#videoObject

Access the Video Twilio Domain



201
202
203
# File 'lib/twilio-ruby/rest/client.rb', line 201

def video
    @video ||= Video.new self
end

#voiceObject

Access the Voice Twilio Domain



206
207
208
# File 'lib/twilio-ruby/rest/client.rb', line 206

def voice
    @voice ||= Voice.new self
end

#wirelessObject

Access the Wireless Twilio Domain



211
212
213
# File 'lib/twilio-ruby/rest/client.rb', line 211

def wireless
    @wireless ||= Wireless.new self
end