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/safelist.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/call/feedback.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/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/call/feedback_summary.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/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, SafelistInstance, SafelistList, SafelistPage
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
26
|
# File 'lib/twilio-ruby/rest/api/v2010.rb', line 21
def initialize(domain)
super
@version = '2010-04-01'
@accounts = nil
@safelist = nil
end
|
Instance Method Details
#account ⇒ Object
Account provided as the authenticating account
30
31
32
|
# File 'lib/twilio-ruby/rest/api/v2010.rb', line 30
def account
@account ||= AccountContext.new(self, @domain.client.account_sid)
end
|
#account=(value) ⇒ Object
Setter to override the primary account
36
37
38
|
# File 'lib/twilio-ruby/rest/api/v2010.rb', line 36
def account=(value)
@account = value
end
|
115
116
117
118
119
120
121
122
123
124
|
# File 'lib/twilio-ruby/rest/api/v2010.rb', line 115
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
39
40
41
|
# File 'lib/twilio-ruby/rest/api/v2010.rb', line 39
def addresses(sid =:unset)
self.account.addresses(sid)
end
|
#applications(sid = :unset) ⇒ Object
42
43
44
|
# File 'lib/twilio-ruby/rest/api/v2010.rb', line 42
def applications(sid =:unset)
self.account.applications(sid)
end
|
#authorized_connect_apps(connect_app_sid = :unset) ⇒ Object
45
46
47
|
# File 'lib/twilio-ruby/rest/api/v2010.rb', line 45
def authorized_connect_apps(connect_app_sid =:unset)
self.account.authorized_connect_apps(connect_app_sid)
end
|
#available_phone_numbers(country_code = :unset) ⇒ Object
48
49
50
|
# File 'lib/twilio-ruby/rest/api/v2010.rb', line 48
def available_phone_numbers(country_code =:unset)
self.account.available_phone_numbers(country_code)
end
|
#balance ⇒ Object
51
52
53
|
# File 'lib/twilio-ruby/rest/api/v2010.rb', line 51
def balance
self.account.balance()
end
|
#calls(sid = :unset) ⇒ Object
54
55
56
|
# File 'lib/twilio-ruby/rest/api/v2010.rb', line 54
def calls(sid =:unset)
self.account.calls(sid)
end
|
#conferences(sid = :unset) ⇒ Object
57
58
59
|
# File 'lib/twilio-ruby/rest/api/v2010.rb', line 57
def conferences(sid =:unset)
self.account.conferences(sid)
end
|
#connect_apps(sid = :unset) ⇒ Object
60
61
62
|
# File 'lib/twilio-ruby/rest/api/v2010.rb', line 60
def connect_apps(sid =:unset)
self.account.connect_apps(sid)
end
|
#incoming_phone_numbers(sid = :unset) ⇒ Object
63
64
65
|
# File 'lib/twilio-ruby/rest/api/v2010.rb', line 63
def incoming_phone_numbers(sid =:unset)
self.account.incoming_phone_numbers(sid)
end
|
#keys(sid = :unset) ⇒ Object
66
67
68
|
# File 'lib/twilio-ruby/rest/api/v2010.rb', line 66
def keys(sid =:unset)
self.account.keys(sid)
end
|
#messages(sid = :unset) ⇒ Object
69
70
71
|
# File 'lib/twilio-ruby/rest/api/v2010.rb', line 69
def messages(sid =:unset)
self.account.messages(sid)
end
|
#new_keys ⇒ Object
72
73
74
|
# File 'lib/twilio-ruby/rest/api/v2010.rb', line 72
def new_keys
self.account.new_keys()
end
|
#new_signing_keys ⇒ Object
75
76
77
|
# File 'lib/twilio-ruby/rest/api/v2010.rb', line 75
def new_signing_keys
self.account.new_signing_keys()
end
|
#notifications(sid = :unset) ⇒ Object
78
79
80
|
# File 'lib/twilio-ruby/rest/api/v2010.rb', line 78
def notifications(sid =:unset)
self.account.notifications(sid)
end
|
#outgoing_caller_ids(sid = :unset) ⇒ Object
81
82
83
|
# File 'lib/twilio-ruby/rest/api/v2010.rb', line 81
def outgoing_caller_ids(sid =:unset)
self.account.outgoing_caller_ids(sid)
end
|
#queues(sid = :unset) ⇒ Object
84
85
86
|
# File 'lib/twilio-ruby/rest/api/v2010.rb', line 84
def queues(sid =:unset)
self.account.queues(sid)
end
|
#recordings(sid = :unset) ⇒ Object
87
88
89
|
# File 'lib/twilio-ruby/rest/api/v2010.rb', line 87
def recordings(sid =:unset)
self.account.recordings(sid)
end
|
127
128
129
|
# File 'lib/twilio-ruby/rest/api/v2010.rb', line 127
def safelist
@safelist ||= SafelistList.new self
end
|
#short_codes(sid = :unset) ⇒ Object
90
91
92
|
# File 'lib/twilio-ruby/rest/api/v2010.rb', line 90
def short_codes(sid =:unset)
self.account.short_codes(sid)
end
|
#signing_keys(sid = :unset) ⇒ Object
93
94
95
|
# File 'lib/twilio-ruby/rest/api/v2010.rb', line 93
def signing_keys(sid =:unset)
self.account.signing_keys(sid)
end
|
#sip ⇒ Object
96
97
98
|
# File 'lib/twilio-ruby/rest/api/v2010.rb', line 96
def sip
self.account.sip()
end
|
#to_s ⇒ Object
Provide a user friendly representation
132
133
134
|
# File 'lib/twilio-ruby/rest/api/v2010.rb', line 132
def to_s
'<Twilio::REST::Api::V2010>';
end
|
#tokens ⇒ Object
99
100
101
|
# File 'lib/twilio-ruby/rest/api/v2010.rb', line 99
def tokens
self.account.tokens()
end
|
#transcriptions(sid = :unset) ⇒ Object
102
103
104
|
# File 'lib/twilio-ruby/rest/api/v2010.rb', line 102
def transcriptions(sid =:unset)
self.account.transcriptions(sid)
end
|
#usage ⇒ Object
105
106
107
|
# File 'lib/twilio-ruby/rest/api/v2010.rb', line 105
def usage
self.account.usage()
end
|
#validation_requests ⇒ Object
108
109
110
|
# File 'lib/twilio-ruby/rest/api/v2010.rb', line 108
def validation_requests
self.account.validation_requests()
end
|