Class: Twilio::REST::Api::V2010

Inherits:
Version
  • Object
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/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/available_phone_number.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/sip/ip_access_control_list.rb,
lib/twilio-ruby/rest/api/v2010/account/available_phone_number/voip.rb,
lib/twilio-ruby/rest/api/v2010/account/incoming_phone_number/local.rb,
lib/twilio-ruby/rest/api/v2010/account/available_phone_number/local.rb,
lib/twilio-ruby/rest/api/v2010/account/incoming_phone_number/mobile.rb,
lib/twilio-ruby/rest/api/v2010/account/available_phone_number/mobile.rb,
lib/twilio-ruby/rest/api/v2010/account/address/dependent_phone_number.rb,
lib/twilio-ruby/rest/api/v2010/account/sip/credential_list/credential.rb,
lib/twilio-ruby/rest/api/v2010/account/available_phone_number/national.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/available_phone_number/toll_free.rb,
lib/twilio-ruby/rest/api/v2010/account/available_phone_number/shared_cost.rb,
lib/twilio-ruby/rest/api/v2010/account/sip/domain/credential_list_mapping.rb,
lib/twilio-ruby/rest/api/v2010/account/incoming_phone_number/assigned_add_on.rb,
lib/twilio-ruby/rest/api/v2010/account/sip/ip_access_control_list/ip_address.rb,
lib/twilio-ruby/rest/api/v2010/account/sip/domain/auth_types/auth_calls_mapping.rb,
lib/twilio-ruby/rest/api/v2010/account/available_phone_number/machine_to_machine.rb,
lib/twilio-ruby/rest/api/v2010/account/sip/domain/ip_access_control_list_mapping.rb,
lib/twilio-ruby/rest/api/v2010/account/sip/domain/auth_types/auth_registrations_mapping.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_calls_mapping/auth_calls_credential_list_mapping.rb,
lib/twilio-ruby/rest/api/v2010/account/sip/domain/auth_types/auth_calls_mapping/auth_calls_ip_access_control_list_mapping.rb,
lib/twilio-ruby/rest/api/v2010/account/sip/domain/auth_types/auth_registrations_mapping/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


15
16
17
18
19
20
# File 'lib/twilio-ruby/rest/api/v2010.rb', line 15

def initialize(domain)
  super
  @version = '2010-04-01'
  @accounts = nil
  @account = nil
end

Instance Method Details

#accountObject

Account provided as the authenticating account


40
41
42
# File 'lib/twilio-ruby/rest/api/v2010.rb', line 40

def 
  @account ||= AccountContext.new(self, @domain.client.)
end

#account=(value) ⇒ Object

Setter to override the primary account


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

def account=(value)
  @account = value
end

#accounts(sid = :unset) ⇒ Twilio::REST::Api::V2010::AccountContext, Twilio::REST::Api::V2010::AccountList

Parameters:

  • sid (String) (defaults to: :unset)

    The Account Sid that uniquely identifies the account to fetch

Returns:


27
28
29
30
31
32
33
34
35
36
# File 'lib/twilio-ruby/rest/api/v2010.rb', line 27

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


50
51
52
# File 'lib/twilio-ruby/rest/api/v2010.rb', line 50

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

#applications(sid = :unset) ⇒ Object


54
55
56
# File 'lib/twilio-ruby/rest/api/v2010.rb', line 54

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

#authorized_connect_apps(connect_app_sid = :unset) ⇒ Object


58
59
60
# File 'lib/twilio-ruby/rest/api/v2010.rb', line 58

def authorized_connect_apps(connect_app_sid=:unset)
  self..authorized_connect_apps(connect_app_sid)
end

#available_phone_numbers(country_code = :unset) ⇒ Object


62
63
64
# File 'lib/twilio-ruby/rest/api/v2010.rb', line 62

def available_phone_numbers(country_code=:unset)
  self..available_phone_numbers(country_code)
end

#balanceObject


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

def balance
  self..balance()
end

#calls(sid = :unset) ⇒ Object


70
71
72
# File 'lib/twilio-ruby/rest/api/v2010.rb', line 70

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

#conferences(sid = :unset) ⇒ Object


74
75
76
# File 'lib/twilio-ruby/rest/api/v2010.rb', line 74

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

#connect_apps(sid = :unset) ⇒ Object


78
79
80
# File 'lib/twilio-ruby/rest/api/v2010.rb', line 78

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

#incoming_phone_numbers(sid = :unset) ⇒ Object


82
83
84
# File 'lib/twilio-ruby/rest/api/v2010.rb', line 82

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

#keys(sid = :unset) ⇒ Object


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

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

#messages(sid = :unset) ⇒ Object


90
91
92
# File 'lib/twilio-ruby/rest/api/v2010.rb', line 90

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

#new_keysObject


94
95
96
# File 'lib/twilio-ruby/rest/api/v2010.rb', line 94

def new_keys
  self..new_keys()
end

#new_signing_keysObject


98
99
100
# File 'lib/twilio-ruby/rest/api/v2010.rb', line 98

def new_signing_keys
  self..new_signing_keys()
end

#notifications(sid = :unset) ⇒ Object


102
103
104
# File 'lib/twilio-ruby/rest/api/v2010.rb', line 102

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

#outgoing_caller_ids(sid = :unset) ⇒ Object


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

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

#queues(sid = :unset) ⇒ Object


110
111
112
# File 'lib/twilio-ruby/rest/api/v2010.rb', line 110

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

#recordings(sid = :unset) ⇒ Object


114
115
116
# File 'lib/twilio-ruby/rest/api/v2010.rb', line 114

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

#short_codes(sid = :unset) ⇒ Object


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

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

#signing_keys(sid = :unset) ⇒ Object


118
119
120
# File 'lib/twilio-ruby/rest/api/v2010.rb', line 118

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

#sipObject


122
123
124
# File 'lib/twilio-ruby/rest/api/v2010.rb', line 122

def sip
  self..sip()
end

#to_sObject

Provide a user friendly representation


148
149
150
# File 'lib/twilio-ruby/rest/api/v2010.rb', line 148

def to_s
  '<Twilio::REST::Api::V2010>'
end

#tokensObject


130
131
132
# File 'lib/twilio-ruby/rest/api/v2010.rb', line 130

def tokens
  self..tokens()
end

#transcriptions(sid = :unset) ⇒ Object


134
135
136
# File 'lib/twilio-ruby/rest/api/v2010.rb', line 134

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

#usageObject


138
139
140
# File 'lib/twilio-ruby/rest/api/v2010.rb', line 138

def usage
  self..usage()
end

#validation_requestsObject


142
143
144
# File 'lib/twilio-ruby/rest/api/v2010.rb', line 142

def validation_requests
  self..validation_requests()
end