Class: Twilio::REST::Api
- Inherits:
-
ApiBase
show all
- Defined in:
- lib/twilio-ruby/rest/api.rb,
lib/twilio-ruby/rest/api/v2010.rb,
lib/twilio-ruby/rest/api/v2010/account.rb,
lib/twilio-ruby/rest/api/v2010/account/key.rb,
lib/twilio-ruby/rest/api/v2010/account/sip.rb,
lib/twilio-ruby/rest/api/v2010/account/call.rb,
lib/twilio-ruby/rest/api/v2010/account/queue.rb,
lib/twilio-ruby/rest/api/v2010/account/token.rb,
lib/twilio-ruby/rest/api/v2010/account/usage.rb,
lib/twilio-ruby/rest/api/v2010/account/address.rb,
lib/twilio-ruby/rest/api/v2010/account/balance.rb,
lib/twilio-ruby/rest/api/v2010/account/message.rb,
lib/twilio-ruby/rest/api/v2010/account/new_key.rb,
lib/twilio-ruby/rest/api/v2010/account/recording.rb,
lib/twilio-ruby/rest/api/v2010/account/call/event.rb,
lib/twilio-ruby/rest/api/v2010/account/conference.rb,
lib/twilio-ruby/rest/api/v2010/account/short_code.rb,
lib/twilio-ruby/rest/api/v2010/account/sip/domain.rb,
lib/twilio-ruby/rest/api/v2010/account/application.rb,
lib/twilio-ruby/rest/api/v2010/account/call/siprec.rb,
lib/twilio-ruby/rest/api/v2010/account/call/stream.rb,
lib/twilio-ruby/rest/api/v2010/account/connect_app.rb,
lib/twilio-ruby/rest/api/v2010/account/signing_key.rb,
lib/twilio-ruby/rest/api/v2010/account/call/payment.rb,
lib/twilio-ruby/rest/api/v2010/account/notification.rb,
lib/twilio-ruby/rest/api/v2010/account/queue/member.rb,
lib/twilio-ruby/rest/api/v2010/account/usage/record.rb,
lib/twilio-ruby/rest/api/v2010/account/message/media.rb,
lib/twilio-ruby/rest/api/v2010/account/transcription.rb,
lib/twilio-ruby/rest/api/v2010/account/usage/trigger.rb,
lib/twilio-ruby/rest/api/v2010/account/call/recording.rb,
lib/twilio-ruby/rest/api/v2010/account/new_signing_key.rb,
lib/twilio-ruby/rest/api/v2010/account/message/feedback.rb,
lib/twilio-ruby/rest/api/v2010/account/call/notification.rb,
lib/twilio-ruby/rest/api/v2010/account/call/transcription.rb,
lib/twilio-ruby/rest/api/v2010/account/outgoing_caller_id.rb,
lib/twilio-ruby/rest/api/v2010/account/usage/record/daily.rb,
lib/twilio-ruby/rest/api/v2010/account/usage/record/today.rb,
lib/twilio-ruby/rest/api/v2010/account/validation_request.rb,
lib/twilio-ruby/rest/api/v2010/account/sip/credential_list.rb,
lib/twilio-ruby/rest/api/v2010/account/usage/record/yearly.rb,
lib/twilio-ruby/rest/api/v2010/account/conference/recording.rb,
lib/twilio-ruby/rest/api/v2010/account/usage/record/monthly.rb,
lib/twilio-ruby/rest/api/v2010/account/incoming_phone_number.rb,
lib/twilio-ruby/rest/api/v2010/account/sip/domain/auth_types.rb,
lib/twilio-ruby/rest/api/v2010/account/usage/record/all_time.rb,
lib/twilio-ruby/rest/api/v2010/account/authorized_connect_app.rb,
lib/twilio-ruby/rest/api/v2010/account/conference/participant.rb,
lib/twilio-ruby/rest/api/v2010/account/usage/record/yesterday.rb,
lib/twilio-ruby/rest/api/v2010/account/recording/add_on_result.rb,
lib/twilio-ruby/rest/api/v2010/account/recording/transcription.rb,
lib/twilio-ruby/rest/api/v2010/account/usage/record/last_month.rb,
lib/twilio-ruby/rest/api/v2010/account/usage/record/this_month.rb,
lib/twilio-ruby/rest/api/v2010/account/call/user_defined_message.rb,
lib/twilio-ruby/rest/api/v2010/account/sip/ip_access_control_list.rb,
lib/twilio-ruby/rest/api/v2010/account/incoming_phone_number/local.rb,
lib/twilio-ruby/rest/api/v2010/account/incoming_phone_number/mobile.rb,
lib/twilio-ruby/rest/api/v2010/account/address/dependent_phone_number.rb,
lib/twilio-ruby/rest/api/v2010/account/available_phone_number_country.rb,
lib/twilio-ruby/rest/api/v2010/account/sip/credential_list/credential.rb,
lib/twilio-ruby/rest/api/v2010/account/incoming_phone_number/toll_free.rb,
lib/twilio-ruby/rest/api/v2010/account/recording/add_on_result/payload.rb,
lib/twilio-ruby/rest/api/v2010/account/sip/domain/credential_list_mapping.rb,
lib/twilio-ruby/rest/api/v2010/account/available_phone_number_country/voip.rb,
lib/twilio-ruby/rest/api/v2010/account/available_phone_number_country/local.rb,
lib/twilio-ruby/rest/api/v2010/account/recording/add_on_result/payload/data.rb,
lib/twilio-ruby/rest/api/v2010/account/available_phone_number_country/mobile.rb,
lib/twilio-ruby/rest/api/v2010/account/incoming_phone_number/assigned_add_on.rb,
lib/twilio-ruby/rest/api/v2010/account/sip/domain/auth_types/auth_type_calls.rb,
lib/twilio-ruby/rest/api/v2010/account/sip/ip_access_control_list/ip_address.rb,
lib/twilio-ruby/rest/api/v2010/account/call/user_defined_message_subscription.rb,
lib/twilio-ruby/rest/api/v2010/account/available_phone_number_country/national.rb,
lib/twilio-ruby/rest/api/v2010/account/available_phone_number_country/toll_free.rb,
lib/twilio-ruby/rest/api/v2010/account/sip/domain/ip_access_control_list_mapping.rb,
lib/twilio-ruby/rest/api/v2010/account/available_phone_number_country/shared_cost.rb,
lib/twilio-ruby/rest/api/v2010/account/sip/domain/auth_types/auth_type_registrations.rb,
lib/twilio-ruby/rest/api/v2010/account/available_phone_number_country/machine_to_machine.rb,
lib/twilio-ruby/rest/api/v2010/account/incoming_phone_number/assigned_add_on/assigned_add_on_extension.rb,
lib/twilio-ruby/rest/api/v2010/account/sip/domain/auth_types/auth_type_calls/auth_calls_credential_list_mapping.rb,
lib/twilio-ruby/rest/api/v2010/account/sip/domain/auth_types/auth_type_calls/auth_calls_ip_access_control_list_mapping.rb,
lib/twilio-ruby/rest/api/v2010/account/sip/domain/auth_types/auth_type_registrations/auth_registrations_credential_list_mapping.rb
Defined Under Namespace
Classes: V2010
Instance Attribute Summary
Attributes inherited from Domain
#client
Instance Method Summary
collapse
-
#account ⇒ Object
Account provided as the authenticating account.
-
#accounts(sid = :unset) ⇒ Twilio::REST::Api::V2010::AccountInstance, Twilio::REST::Api::V2010::AccountList
-
#addresses(sid = :unset) ⇒ Twilio::REST::Api::V2010::AccountContext::AddressInstance, Twilio::REST::Api::V2010::AccountContext::AddressList
-
#applications(sid = :unset) ⇒ Twilio::REST::Api::V2010::AccountContext::ApplicationInstance, Twilio::REST::Api::V2010::AccountContext::ApplicationList
-
#authorized_connect_apps(connect_app_sid = :unset) ⇒ Twilio::REST::Api::V2010::AccountContext::AuthorizedConnectAppInstance, Twilio::REST::Api::V2010::AccountContext::AuthorizedConnectAppList
-
#available_phone_numbers(country_code = :unset) ⇒ Twilio::REST::Api::V2010::AccountContext::AvailablePhoneNumberCountryInstance, Twilio::REST::Api::V2010::AccountContext::AvailablePhoneNumberCountryList
-
#balance ⇒ Twilio::REST::Api::V2010::AccountContext::BalanceInstance
-
#calls(sid = :unset) ⇒ Twilio::REST::Api::V2010::AccountContext::CallInstance, Twilio::REST::Api::V2010::AccountContext::CallList
-
#conferences(sid = :unset) ⇒ Twilio::REST::Api::V2010::AccountContext::ConferenceInstance, Twilio::REST::Api::V2010::AccountContext::ConferenceList
-
#connect_apps(sid = :unset) ⇒ Twilio::REST::Api::V2010::AccountContext::ConnectAppInstance, Twilio::REST::Api::V2010::AccountContext::ConnectAppList
-
#incoming_phone_numbers(sid = :unset) ⇒ Twilio::REST::Api::V2010::AccountContext::IncomingPhoneNumberInstance, Twilio::REST::Api::V2010::AccountContext::IncomingPhoneNumberList
-
#keys(sid = :unset) ⇒ Twilio::REST::Api::V2010::AccountContext::KeyInstance, Twilio::REST::Api::V2010::AccountContext::KeyList
-
#messages(sid = :unset) ⇒ Twilio::REST::Api::V2010::AccountContext::MessageInstance, Twilio::REST::Api::V2010::AccountContext::MessageList
-
#new_keys ⇒ Twilio::REST::Api::V2010::AccountContext::NewKeyInstance
-
#new_signing_keys ⇒ Twilio::REST::Api::V2010::AccountContext::NewSigningKeyInstance
-
#notifications(sid = :unset) ⇒ Twilio::REST::Api::V2010::AccountContext::NotificationInstance, Twilio::REST::Api::V2010::AccountContext::NotificationList
-
#outgoing_caller_ids(sid = :unset) ⇒ Twilio::REST::Api::V2010::AccountContext::OutgoingCallerIdInstance, Twilio::REST::Api::V2010::AccountContext::OutgoingCallerIdList
-
#queues(sid = :unset) ⇒ Twilio::REST::Api::V2010::AccountContext::QueueInstance, Twilio::REST::Api::V2010::AccountContext::QueueList
-
#recordings(sid = :unset) ⇒ Twilio::REST::Api::V2010::AccountContext::RecordingInstance, Twilio::REST::Api::V2010::AccountContext::RecordingList
-
#short_codes(sid = :unset) ⇒ Twilio::REST::Api::V2010::AccountContext::ShortCodeInstance, Twilio::REST::Api::V2010::AccountContext::ShortCodeList
-
#signing_keys(sid = :unset) ⇒ Twilio::REST::Api::V2010::AccountContext::SigningKeyInstance, Twilio::REST::Api::V2010::AccountContext::SigningKeyList
-
#sip ⇒ Twilio::REST::Api::V2010::AccountContext::SipInstance
-
#tokens ⇒ Twilio::REST::Api::V2010::AccountContext::TokenInstance
-
#transcriptions(sid = :unset) ⇒ Twilio::REST::Api::V2010::AccountContext::TranscriptionInstance, Twilio::REST::Api::V2010::AccountContext::TranscriptionList
-
#usage ⇒ Twilio::REST::Api::V2010::AccountContext::UsageInstance
-
#validation_requests ⇒ Twilio::REST::Api::V2010::AccountContext::ValidationRequestInstance
Methods inherited from ApiBase
#initialize, #to_s, #v2010
Methods inherited from Domain
#absolute_url, #initialize, #request
Instance Method Details
#account ⇒ Object
Account provided as the authenticating account
6
7
8
|
# File 'lib/twilio-ruby/rest/api.rb', line 6
def account
self.v2010.account
end
|
15
16
17
|
# File 'lib/twilio-ruby/rest/api.rb', line 15
def accounts(sid=:unset)
self.v2010.accounts(sid)
end
|
24
25
26
27
|
# File 'lib/twilio-ruby/rest/api.rb', line 24
def addresses(sid=:unset)
warn "addresses is deprecated. Use account.addresses instead."
self.account.addresses(sid)
end
|
34
35
36
37
|
# File 'lib/twilio-ruby/rest/api.rb', line 34
def applications(sid=:unset)
warn "applications is deprecated. Use account.applications instead."
self.account.applications(sid)
end
|
43
44
45
46
|
# File 'lib/twilio-ruby/rest/api.rb', line 43
def authorized_connect_apps(connect_app_sid=:unset)
warn "authorized_connect_apps is deprecated. Use account.authorized_connect_apps instead."
self.account.authorized_connect_apps(connect_app_sid)
end
|
54
55
56
57
|
# File 'lib/twilio-ruby/rest/api.rb', line 54
def available_phone_numbers(country_code=:unset)
warn "available_phone_numbers is deprecated. Use account.available_phone_numbers instead."
self.account.available_phone_numbers(country_code)
end
|
61
62
63
64
|
# File 'lib/twilio-ruby/rest/api.rb', line 61
def balance
warn "balance is deprecated. Use account.balance instead."
self.account.balance()
end
|
71
72
73
74
|
# File 'lib/twilio-ruby/rest/api.rb', line 71
def calls(sid=:unset)
warn "calls is deprecated. Use account.calls instead."
self.account.calls(sid)
end
|
81
82
83
84
|
# File 'lib/twilio-ruby/rest/api.rb', line 81
def conferences(sid=:unset)
warn "conferences is deprecated. Use account.conferences instead."
self.account.conferences(sid)
end
|
91
92
93
94
|
# File 'lib/twilio-ruby/rest/api.rb', line 91
def connect_apps(sid=:unset)
warn "connect_apps is deprecated. Use account.connect_apps instead."
self.account.connect_apps(sid)
end
|
101
102
103
104
|
# File 'lib/twilio-ruby/rest/api.rb', line 101
def incoming_phone_numbers(sid=:unset)
warn "incoming_phone_numbers is deprecated. Use account.incoming_phone_numbers instead."
self.account.incoming_phone_numbers(sid)
end
|
111
112
113
114
|
# File 'lib/twilio-ruby/rest/api.rb', line 111
def keys(sid=:unset)
warn "keys is deprecated. Use account.keys instead."
self.account.keys(sid)
end
|
121
122
123
124
|
# File 'lib/twilio-ruby/rest/api.rb', line 121
def messages(sid=:unset)
warn "messages is deprecated. Use account.messages instead."
self.account.messages(sid)
end
|
128
129
130
131
|
# File 'lib/twilio-ruby/rest/api.rb', line 128
def new_keys
warn "new_keys is deprecated. Use account.new_keys instead."
self.account.new_keys()
end
|
135
136
137
138
|
# File 'lib/twilio-ruby/rest/api.rb', line 135
def new_signing_keys
warn "new_signing_keys is deprecated. Use account.new_signing_keys instead."
self.account.new_signing_keys()
end
|
145
146
147
148
|
# File 'lib/twilio-ruby/rest/api.rb', line 145
def notifications(sid=:unset)
warn "notifications is deprecated. Use account.notifications instead."
self.account.notifications(sid)
end
|
155
156
157
158
|
# File 'lib/twilio-ruby/rest/api.rb', line 155
def outgoing_caller_ids(sid=:unset)
warn "outgoing_caller_ids is deprecated. Use account.outgoing_caller_ids instead."
self.account.outgoing_caller_ids(sid)
end
|
165
166
167
168
|
# File 'lib/twilio-ruby/rest/api.rb', line 165
def queues(sid=:unset)
warn "queues is deprecated. Use account.queues instead."
self.account.queues(sid)
end
|
175
176
177
178
|
# File 'lib/twilio-ruby/rest/api.rb', line 175
def recordings(sid=:unset)
warn "recordings is deprecated. Use account.recordings instead."
self.account.recordings(sid)
end
|
201
202
203
204
|
# File 'lib/twilio-ruby/rest/api.rb', line 201
def short_codes(sid=:unset)
warn "short_codes is deprecated. Use account.short_codes instead."
self.account.short_codes(sid)
end
|
184
185
186
187
|
# File 'lib/twilio-ruby/rest/api.rb', line 184
def signing_keys(sid=:unset)
warn "signing_keys is deprecated. Use account.signing_keys instead."
self.account.signing_keys(sid)
end
|
191
192
193
194
|
# File 'lib/twilio-ruby/rest/api.rb', line 191
def sip
warn "sip is deprecated. Use account.sip instead."
self.account.sip()
end
|
208
209
210
211
|
# File 'lib/twilio-ruby/rest/api.rb', line 208
def tokens
warn "tokens is deprecated. Use account.tokens instead."
self.account.tokens()
end
|
218
219
220
221
|
# File 'lib/twilio-ruby/rest/api.rb', line 218
def transcriptions(sid=:unset)
warn "transcriptions is deprecated. Use account.transcriptions instead."
self.account.transcriptions(sid)
end
|
225
226
227
228
|
# File 'lib/twilio-ruby/rest/api.rb', line 225
def usage
warn "usage is deprecated. Use account.usage instead."
self.account.usage()
end
|
232
233
234
235
|
# File 'lib/twilio-ruby/rest/api.rb', line 232
def validation_requests
warn "validation_requests is deprecated. Use account.validation_requests instead."
self.account.validation_requests()
end
|