forked from twilio/twilio-ruby
-
Notifications
You must be signed in to change notification settings - Fork 0
/
twilio-ruby.rb
106 lines (101 loc) · 4.06 KB
/
twilio-ruby.rb
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
require 'net/http'
require 'net/https'
require 'builder'
require 'multi_json'
require 'cgi'
require 'openssl'
require 'base64'
require 'forwardable'
require 'jwt'
require 'twilio-ruby/version' unless defined?(Twilio::VERSION)
require 'twilio-ruby/util'
require 'twilio-ruby/util/client_config'
require 'twilio-ruby/util/configuration'
require 'twilio-ruby/util/request_validator'
require 'twilio-ruby/util/capability'
require 'twilio-ruby/twiml/response'
require 'twilio-ruby/task_router'
require 'twilio-ruby/task_router/capability'
require 'twilio-ruby/rest/errors'
require 'twilio-ruby/rest/utils'
require 'twilio-ruby/rest/list_resource'
require 'twilio-ruby/rest/next_gen_list_resource'
require 'twilio-ruby/rest/instance_resource'
require 'twilio-ruby/rest/sandbox'
require 'twilio-ruby/rest/accounts'
require 'twilio-ruby/rest/calls'
require 'twilio-ruby/rest/call_feedback'
require 'twilio-ruby/rest/call_feedback_summary'
require 'twilio-ruby/rest/sms'
require 'twilio-ruby/rest/sms/short_codes'
require 'twilio-ruby/rest/sms/messages'
require 'twilio-ruby/rest/sip'
require 'twilio-ruby/rest/sip/domains'
require 'twilio-ruby/rest/sip/domains/ip_access_control_list_mappings'
require 'twilio-ruby/rest/sip/domains/credential_list_mappings'
require 'twilio-ruby/rest/sip/credential_lists'
require 'twilio-ruby/rest/sip/credential_lists/credentials'
require 'twilio-ruby/rest/sip/ip_access_control_lists'
require 'twilio-ruby/rest/sip/ip_access_control_lists/ip_addresses'
require 'twilio-ruby/rest/task_router/statistics'
require 'twilio-ruby/rest/task_router/activities'
require 'twilio-ruby/rest/task_router/events'
require 'twilio-ruby/rest/task_router/reservations'
require 'twilio-ruby/rest/task_router/task_queues'
require 'twilio-ruby/rest/task_router/task_queues_statistics'
require 'twilio-ruby/rest/task_router/tasks'
require 'twilio-ruby/rest/task_router/workers'
require 'twilio-ruby/rest/task_router/workers_statistics'
require 'twilio-ruby/rest/task_router/workflow_statistics'
require 'twilio-ruby/rest/task_router/workflows'
require 'twilio-ruby/rest/task_router/workspaces'
require 'twilio-ruby/rest/task_router/workspace_statistics'
require 'twilio-ruby/rest/lookups/phone_numbers'
require 'twilio-ruby/rest/media'
require 'twilio-ruby/rest/messages'
require 'twilio-ruby/rest/applications'
require 'twilio-ruby/rest/connect_apps'
require 'twilio-ruby/rest/authorized_connect_apps'
require 'twilio-ruby/rest/outgoing_caller_ids'
require 'twilio-ruby/rest/incoming_phone_numbers'
require 'twilio-ruby/rest/incoming_phone_numbers/local'
require 'twilio-ruby/rest/incoming_phone_numbers/toll_free'
require 'twilio-ruby/rest/incoming_phone_numbers/mobile'
require 'twilio-ruby/rest/available_phone_numbers'
require 'twilio-ruby/rest/available_phone_numbers/country'
require 'twilio-ruby/rest/available_phone_numbers/local'
require 'twilio-ruby/rest/available_phone_numbers/mobile'
require 'twilio-ruby/rest/available_phone_numbers/toll_free'
require 'twilio-ruby/rest/conferences'
require 'twilio-ruby/rest/conferences/participants'
require 'twilio-ruby/rest/queues'
require 'twilio-ruby/rest/queues/members'
require 'twilio-ruby/rest/usage'
require 'twilio-ruby/rest/usage/records'
require 'twilio-ruby/rest/usage/triggers'
require 'twilio-ruby/rest/recordings'
require 'twilio-ruby/rest/transcriptions'
require 'twilio-ruby/rest/tokens'
require 'twilio-ruby/rest/notifications'
require 'twilio-ruby/rest/addresses'
require 'twilio-ruby/rest/addresses/dependent_phone_numbers'
require 'twilio-ruby/rest/client'
require 'twilio-ruby/rest/task_router_client'
require 'twilio-ruby/rest/lookups_client'
require 'rack/twilio_webhook_authentication'
module Twilio
extend SingleForwardable
def_delegators :configuration, :account_sid, :auth_token
##
# Pre-configure with account SID and auth token so that you don't need to
# pass them to various initializers each time.
def self.configure(&block)
yield configuration
end
##
# Returns an existing or instantiates a new configuration object.
def self.configuration
@configuration ||= Util::Configuration.new
end
private_class_method :configuration
end