Class: Twilio::REST::Api::V2010
- Inherits:
-
Version
- Object
- Version
- Twilio::REST::Api::V2010
show all
- Defined in:
- 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: AccountContext, AccountInstance, AccountList, AccountPage
Instance Attribute Summary
Attributes inherited from Version
#domain
Instance Method Summary
collapse
Methods inherited from Version
#absolute_url, #create, #delete, #exception, #fetch, #page, #read_limits, #relative_uri, #request, #stream, #update
Constructor Details
#initialize(domain) ⇒ V2010
Initialize the V2010 version of Api
21
22
23
24
25
|
# File 'lib/twilio-ruby/rest/api/v2010.rb', line 21
def initialize(domain)
super
@version = '2010-04-01'
@accounts = nil
end
|
Instance Method Details
#account ⇒ Object
Account provided as the authenticating account
29
30
31
|
# File 'lib/twilio-ruby/rest/api/v2010.rb', line 29
def account
@account ||= AccountContext.new(self, @domain.client.account_sid)
end
|
#account=(value) ⇒ Object
Setter to override the primary account
35
36
37
|
# File 'lib/twilio-ruby/rest/api/v2010.rb', line 35
def account=(value)
@account = value
end
|
114
115
116
117
118
119
120
121
122
123
|
# File 'lib/twilio-ruby/rest/api/v2010.rb', line 114
def accounts(sid=:unset)
if sid.nil?
raise ArgumentError, 'sid cannot be nil'
end
if sid == :unset
@accounts ||= AccountList.new self
else
AccountContext.new(self, sid)
end
end
|
#addresses(sid = :unset) ⇒ Object
38
39
40
|
# File 'lib/twilio-ruby/rest/api/v2010.rb', line 38
def addresses(sid =:unset)
self.account.addresses(sid)
end
|
#applications(sid = :unset) ⇒ Object
41
42
43
|
# File 'lib/twilio-ruby/rest/api/v2010.rb', line 41
def applications(sid =:unset)
self.account.applications(sid)
end
|
#authorized_connect_apps(connect_app_sid = :unset) ⇒ Object
44
45
46
|
# File 'lib/twilio-ruby/rest/api/v2010.rb', line 44
def authorized_connect_apps(connect_app_sid =:unset)
self.account.authorized_connect_apps(connect_app_sid)
end
|
#available_phone_numbers(country_code = :unset) ⇒ Object
47
48
49
|
# File 'lib/twilio-ruby/rest/api/v2010.rb', line 47
def available_phone_numbers(country_code =:unset)
self.account.available_phone_numbers(country_code)
end
|
#balance ⇒ Object
50
51
52
|
# File 'lib/twilio-ruby/rest/api/v2010.rb', line 50
def balance
self.account.balance()
end
|
#calls(sid = :unset) ⇒ Object
53
54
55
|
# File 'lib/twilio-ruby/rest/api/v2010.rb', line 53
def calls(sid =:unset)
self.account.calls(sid)
end
|
#conferences(sid = :unset) ⇒ Object
56
57
58
|
# File 'lib/twilio-ruby/rest/api/v2010.rb', line 56
def conferences(sid =:unset)
self.account.conferences(sid)
end
|
#connect_apps(sid = :unset) ⇒ Object
59
60
61
|
# File 'lib/twilio-ruby/rest/api/v2010.rb', line 59
def connect_apps(sid =:unset)
self.account.connect_apps(sid)
end
|
#incoming_phone_numbers(sid = :unset) ⇒ Object
62
63
64
|
# File 'lib/twilio-ruby/rest/api/v2010.rb', line 62
def incoming_phone_numbers(sid =:unset)
self.account.incoming_phone_numbers(sid)
end
|
#keys(sid = :unset) ⇒ Object
65
66
67
|
# File 'lib/twilio-ruby/rest/api/v2010.rb', line 65
def keys(sid =:unset)
self.account.keys(sid)
end
|
#messages(sid = :unset) ⇒ Object
68
69
70
|
# File 'lib/twilio-ruby/rest/api/v2010.rb', line 68
def messages(sid =:unset)
self.account.messages(sid)
end
|
#new_keys ⇒ Object
71
72
73
|
# File 'lib/twilio-ruby/rest/api/v2010.rb', line 71
def new_keys
self.account.new_keys()
end
|
#new_signing_keys ⇒ Object
74
75
76
|
# File 'lib/twilio-ruby/rest/api/v2010.rb', line 74
def new_signing_keys
self.account.new_signing_keys()
end
|
#notifications(sid = :unset) ⇒ Object
77
78
79
|
# File 'lib/twilio-ruby/rest/api/v2010.rb', line 77
def notifications(sid =:unset)
self.account.notifications(sid)
end
|
#outgoing_caller_ids(sid = :unset) ⇒ Object
80
81
82
|
# File 'lib/twilio-ruby/rest/api/v2010.rb', line 80
def outgoing_caller_ids(sid =:unset)
self.account.outgoing_caller_ids(sid)
end
|
#queues(sid = :unset) ⇒ Object
83
84
85
|
# File 'lib/twilio-ruby/rest/api/v2010.rb', line 83
def queues(sid =:unset)
self.account.queues(sid)
end
|
#recordings(sid = :unset) ⇒ Object
86
87
88
|
# File 'lib/twilio-ruby/rest/api/v2010.rb', line 86
def recordings(sid =:unset)
self.account.recordings(sid)
end
|
#short_codes(sid = :unset) ⇒ Object
89
90
91
|
# File 'lib/twilio-ruby/rest/api/v2010.rb', line 89
def short_codes(sid =:unset)
self.account.short_codes(sid)
end
|
#signing_keys(sid = :unset) ⇒ Object
92
93
94
|
# File 'lib/twilio-ruby/rest/api/v2010.rb', line 92
def signing_keys(sid =:unset)
self.account.signing_keys(sid)
end
|
#sip ⇒ Object
95
96
97
|
# File 'lib/twilio-ruby/rest/api/v2010.rb', line 95
def sip
self.account.sip()
end
|
#to_s ⇒ Object
Provide a user friendly representation
126
127
128
|
# File 'lib/twilio-ruby/rest/api/v2010.rb', line 126
def to_s
'<Twilio::REST::Api::V2010>';
end
|
#tokens ⇒ Object
98
99
100
|
# File 'lib/twilio-ruby/rest/api/v2010.rb', line 98
def tokens
self.account.tokens()
end
|
#transcriptions(sid = :unset) ⇒ Object
101
102
103
|
# File 'lib/twilio-ruby/rest/api/v2010.rb', line 101
def transcriptions(sid =:unset)
self.account.transcriptions(sid)
end
|
#usage ⇒ Object
104
105
106
|
# File 'lib/twilio-ruby/rest/api/v2010.rb', line 104
def usage
self.account.usage()
end
|
#validation_requests ⇒ Object
107
108
109
|
# File 'lib/twilio-ruby/rest/api/v2010.rb', line 107
def validation_requests
self.account.validation_requests()
end
|