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/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

#accountObject

Account provided as the authenticating account



29
30
31
# File 'lib/twilio-ruby/rest/api/v2010.rb', line 29

def 
    @account ||= AccountContext.new(self, @domain.client.)
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

#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:



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..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..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..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..available_phone_numbers(country_code)
end

#balanceObject



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

def balance
    self..balance()
end

#calls(sid = :unset) ⇒ Object



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

def calls(sid =:unset)
    self..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..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..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..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..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..messages(sid)
end

#new_keysObject



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

def new_keys
    self..new_keys()
end

#new_signing_keysObject



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

def new_signing_keys
    self..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..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..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..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..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..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..signing_keys(sid)
end

#sipObject



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

def sip
    self..sip()
end

#to_sObject

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

#tokensObject



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

def tokens
    self..tokens()
end

#transcriptions(sid = :unset) ⇒ Object



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

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

#usageObject



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

def usage
    self..usage()
end

#validation_requestsObject



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

def validation_requests
    self..validation_requests()
end