twilio-ruby 5.0.0.rc4 → 5.0.0.rc5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/CHANGES.md +8 -1
- data/Makefile +3 -0
- data/lib/twilio-ruby.rb +0 -1
- data/lib/twilio-ruby/framework/version.rb +4 -4
- data/lib/twilio-ruby/rest/api/v2010/account.rb +0 -13
- data/lib/twilio-ruby/rest/api/v2010/account/address.rb +0 -13
- data/lib/twilio-ruby/rest/api/v2010/account/application.rb +0 -14
- data/lib/twilio-ruby/rest/api/v2010/account/authorized_connect_app.rb +0 -13
- data/lib/twilio-ruby/rest/api/v2010/account/available_phone_number.rb +0 -13
- data/lib/twilio-ruby/rest/api/v2010/account/call.rb +0 -13
- data/lib/twilio-ruby/rest/api/v2010/account/call/feedback.rb +0 -11
- data/lib/twilio-ruby/rest/api/v2010/account/call/feedback_summary.rb +0 -13
- data/lib/twilio-ruby/rest/api/v2010/account/call/notification.rb +0 -14
- data/lib/twilio-ruby/rest/api/v2010/account/call/recording.rb +0 -14
- data/lib/twilio-ruby/rest/api/v2010/account/conference.rb +0 -13
- data/lib/twilio-ruby/rest/api/v2010/account/conference/participant.rb +0 -14
- data/lib/twilio-ruby/rest/api/v2010/account/connect_app.rb +0 -13
- data/lib/twilio-ruby/rest/api/v2010/account/incoming_phone_number.rb +0 -14
- data/lib/twilio-ruby/rest/api/v2010/account/message.rb +0 -13
- data/lib/twilio-ruby/rest/api/v2010/account/message/media.rb +0 -14
- data/lib/twilio-ruby/rest/api/v2010/account/notification.rb +0 -13
- data/lib/twilio-ruby/rest/api/v2010/account/outgoing_caller_id.rb +0 -14
- data/lib/twilio-ruby/rest/api/v2010/account/queue.rb +0 -13
- data/lib/twilio-ruby/rest/api/v2010/account/queue/member.rb +0 -14
- data/lib/twilio-ruby/rest/api/v2010/account/recording.rb +0 -13
- data/lib/twilio-ruby/rest/api/v2010/account/recording/transcription.rb +0 -14
- data/lib/twilio-ruby/rest/api/v2010/account/sandbox.rb +0 -10
- data/lib/twilio-ruby/rest/api/v2010/account/sip/credential_list.rb +0 -13
- data/lib/twilio-ruby/rest/api/v2010/account/sip/credential_list/credential.rb +0 -14
- data/lib/twilio-ruby/rest/api/v2010/account/sip/domain.rb +0 -13
- data/lib/twilio-ruby/rest/api/v2010/account/sip/domain/credential_list_mapping.rb +0 -14
- data/lib/twilio-ruby/rest/api/v2010/account/sip/domain/ip_access_control_list_mapping.rb +0 -14
- data/lib/twilio-ruby/rest/api/v2010/account/sip/ip_access_control_list.rb +0 -14
- data/lib/twilio-ruby/rest/api/v2010/account/sip/ip_access_control_list/ip_address.rb +0 -14
- data/lib/twilio-ruby/rest/api/v2010/account/sms/short_code.rb +0 -13
- data/lib/twilio-ruby/rest/api/v2010/account/sms/sms_message.rb +0 -13
- data/lib/twilio-ruby/rest/api/v2010/account/transcription.rb +0 -13
- data/lib/twilio-ruby/rest/api/v2010/account/usage/trigger.rb +0 -13
- data/lib/twilio-ruby/rest/client.rb +7 -7
- data/lib/twilio-ruby/rest/ip_messaging/v1/credential.rb +0 -12
- data/lib/twilio-ruby/rest/ip_messaging/v1/service.rb +0 -12
- data/lib/twilio-ruby/rest/ip_messaging/v1/service/channel.rb +0 -13
- data/lib/twilio-ruby/rest/ip_messaging/v1/service/channel/member.rb +0 -14
- data/lib/twilio-ruby/rest/ip_messaging/v1/service/channel/message.rb +0 -14
- data/lib/twilio-ruby/rest/ip_messaging/v1/service/role.rb +0 -13
- data/lib/twilio-ruby/rest/ip_messaging/v1/service/user.rb +0 -18
- data/lib/twilio-ruby/rest/lookups/v1/phone_number.rb +0 -12
- data/lib/twilio-ruby/rest/monitor/v1/alert.rb +0 -12
- data/lib/twilio-ruby/rest/monitor/v1/event.rb +0 -12
- data/lib/twilio-ruby/rest/notifications.rb +4 -0
- data/lib/twilio-ruby/rest/notifications/v1.rb +9 -0
- data/lib/twilio-ruby/rest/notifications/v1/credential.rb +390 -0
- data/lib/twilio-ruby/rest/notifications/v1/service.rb +0 -12
- data/lib/twilio-ruby/rest/notifications/v1/service/binding.rb +0 -13
- data/lib/twilio-ruby/rest/preview.rb +47 -0
- data/lib/twilio-ruby/rest/preview/wireless.rb +53 -0
- data/lib/twilio-ruby/rest/preview/wireless/command.rb +345 -0
- data/lib/twilio-ruby/rest/preview/wireless/device.rb +456 -0
- data/lib/twilio-ruby/rest/preview/wireless/device/usage.rb +227 -0
- data/lib/twilio-ruby/rest/preview/wireless/rate_plan.rb +325 -0
- data/lib/twilio-ruby/rest/pricing/v1/messaging/country.rb +0 -12
- data/lib/twilio-ruby/rest/pricing/v1/phone_number/country.rb +0 -12
- data/lib/twilio-ruby/rest/pricing/v1/voice/country.rb +0 -12
- data/lib/twilio-ruby/rest/pricing/v1/voice/number.rb +0 -12
- data/lib/twilio-ruby/rest/taskrouter/v1/workspace.rb +0 -12
- data/lib/twilio-ruby/rest/taskrouter/v1/workspace/activity.rb +0 -13
- data/lib/twilio-ruby/rest/taskrouter/v1/workspace/event.rb +0 -13
- data/lib/twilio-ruby/rest/taskrouter/v1/workspace/task.rb +0 -13
- data/lib/twilio-ruby/rest/taskrouter/v1/workspace/task/reservation.rb +0 -14
- data/lib/twilio-ruby/rest/taskrouter/v1/workspace/task_queue.rb +0 -13
- data/lib/twilio-ruby/rest/taskrouter/v1/workspace/task_queue/task_queue_statistics.rb +0 -11
- data/lib/twilio-ruby/rest/taskrouter/v1/workspace/worker.rb +0 -13
- data/lib/twilio-ruby/rest/taskrouter/v1/workspace/worker/worker_statistics.rb +0 -11
- data/lib/twilio-ruby/rest/taskrouter/v1/workspace/worker/workers_statistics.rb +0 -10
- data/lib/twilio-ruby/rest/taskrouter/v1/workspace/workflow.rb +0 -13
- data/lib/twilio-ruby/rest/taskrouter/v1/workspace/workflow/workflow_statistics.rb +0 -11
- data/lib/twilio-ruby/rest/taskrouter/v1/workspace/workspace_statistics.rb +0 -10
- data/lib/twilio-ruby/rest/trunking/v1/trunk.rb +0 -12
- data/lib/twilio-ruby/rest/trunking/v1/trunk/credential_list.rb +0 -13
- data/lib/twilio-ruby/rest/trunking/v1/trunk/ip_access_control_list.rb +0 -13
- data/lib/twilio-ruby/rest/trunking/v1/trunk/origination_url.rb +0 -13
- data/lib/twilio-ruby/rest/trunking/v1/trunk/phone_number.rb +0 -13
- data/lib/twilio-ruby/version.rb +1 -1
- data/spec/integration/api/v2010/account/usage/trigger_spec.rb +3 -3
- data/spec/integration/ip_messaging/v1/credential_spec.rb +1 -1
- data/spec/integration/ip_messaging/v1/service/role_spec.rb +1 -1
- data/spec/integration/notifications/v1/credential_spec.rb +228 -0
- data/spec/integration/notifications/v1/service/binding_spec.rb +2 -2
- data/spec/integration/preview/wireless/command_spec.rb +58 -0
- data/spec/integration/preview/wireless/device/usage_spec.rb +25 -0
- data/spec/integration/preview/wireless/device_spec.rb +72 -0
- data/spec/integration/preview/wireless/rate_plan_spec.rb +39 -0
- metadata +19 -16
- data/lib/twilio-ruby/rest/conversations.rb +0 -40
- data/lib/twilio-ruby/rest/conversations/v1.rb +0 -35
- data/lib/twilio-ruby/rest/conversations/v1/conversation.rb +0 -270
- data/lib/twilio-ruby/rest/conversations/v1/conversation/completed.rb +0 -217
- data/lib/twilio-ruby/rest/conversations/v1/conversation/in_progress.rb +0 -217
- data/lib/twilio-ruby/rest/conversations/v1/conversation/participant.rb +0 -352
- data/spec/integration/conversations/v1/conversation/completed_spec.rb +0 -89
- data/spec/integration/conversations/v1/conversation/in_progress_spec.rb +0 -89
- data/spec/integration/conversations/v1/conversation/participant_spec.rb +0 -174
- data/spec/integration/conversations/v1/conversation_spec.rb +0 -49
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: b36c0c36564e2f8f9a28c2a0806ffb3e22ac45ce
|
|
4
|
+
data.tar.gz: 3945773e1504b060c44995ab120ee6e931ce8b34
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 34b7af3a9579a759eebeef7618441387c255591dccda3bdc563579d345e487ebad9a9dc1757716d1168c3c27f50c6b1e4db8e8db84b7ca89faf6ba4655e39f2e
|
|
7
|
+
data.tar.gz: e7ab48283e6cc5e1a8c9f231c267781adb3d9462ac107149dee6a20b12d1126d6d6fc67dfac5352ba75538d221f4e63682094df50be8ba370801fad72426554c
|
data/CHANGES.md
CHANGED
data/Makefile
CHANGED
|
@@ -10,3 +10,6 @@ test:
|
|
|
10
10
|
authors:
|
|
11
11
|
echo "Authors\n=======\n\nA huge thanks to all of our contributors:\n\n" > AUTHORS.md
|
|
12
12
|
git log --raw | grep "^Author: " | cut -d ' ' -f2- | cut -d '<' -f1 | sed 's/^/- /' | sort | uniq >> AUTHORS.md
|
|
13
|
+
|
|
14
|
+
deploy:
|
|
15
|
+
bundle exec rake build | sed -e 's/.*pkg/pkg/g' | sed -e "s/\.$$//g" | xargs gem push
|
data/lib/twilio-ruby.rb
CHANGED
|
@@ -73,7 +73,7 @@ module Twilio
|
|
|
73
73
|
timeout
|
|
74
74
|
)
|
|
75
75
|
|
|
76
|
-
if response.status_code
|
|
76
|
+
if response.status_code < 200 || response.status_code >= 300
|
|
77
77
|
raise Twilio::REST::TwilioException.new('Unable to fetch record')
|
|
78
78
|
end
|
|
79
79
|
|
|
@@ -91,7 +91,7 @@ module Twilio
|
|
|
91
91
|
timeout
|
|
92
92
|
)
|
|
93
93
|
|
|
94
|
-
if response.status_code
|
|
94
|
+
if response.status_code < 200 || response.status_code >= 300
|
|
95
95
|
raise TwilioException.new('Unable to update record')
|
|
96
96
|
end
|
|
97
97
|
|
|
@@ -109,7 +109,7 @@ module Twilio
|
|
|
109
109
|
timeout
|
|
110
110
|
)
|
|
111
111
|
|
|
112
|
-
if
|
|
112
|
+
if response.status_code < 200 || response.status_code >= 300
|
|
113
113
|
raise TwilioException.new('Unable to delete record')
|
|
114
114
|
end
|
|
115
115
|
|
|
@@ -158,7 +158,7 @@ module Twilio
|
|
|
158
158
|
auth,
|
|
159
159
|
timeout)
|
|
160
160
|
|
|
161
|
-
|
|
161
|
+
if response.status_code < 200 || response.status_code >= 300
|
|
162
162
|
raise TwilioException.new("[#{response.status_code}] Unable to create record\n#{response.body}")
|
|
163
163
|
end
|
|
164
164
|
|
|
@@ -149,19 +149,6 @@ module Twilio
|
|
|
149
149
|
return AccountPage.new(@version, response, @solution)
|
|
150
150
|
end
|
|
151
151
|
|
|
152
|
-
##
|
|
153
|
-
# Constructs a AccountContext
|
|
154
|
-
# @param [String] sid The Account Sid that uniquely identifies the account to
|
|
155
|
-
# fetch
|
|
156
|
-
|
|
157
|
-
# @return [AccountContext] AccountContext
|
|
158
|
-
def get(sid)
|
|
159
|
-
AccountContext.new(
|
|
160
|
-
@version,
|
|
161
|
-
sid: sid,
|
|
162
|
-
)
|
|
163
|
-
end
|
|
164
|
-
|
|
165
152
|
##
|
|
166
153
|
# Provide a user friendly representation
|
|
167
154
|
def to_s
|
|
@@ -168,19 +168,6 @@ module Twilio
|
|
|
168
168
|
return AddressPage.new(@version, response, @solution)
|
|
169
169
|
end
|
|
170
170
|
|
|
171
|
-
##
|
|
172
|
-
# Constructs a AddressContext
|
|
173
|
-
# @param [String] sid The sid
|
|
174
|
-
|
|
175
|
-
# @return [AddressContext] AddressContext
|
|
176
|
-
def get(sid)
|
|
177
|
-
AddressContext.new(
|
|
178
|
-
@version,
|
|
179
|
-
account_sid: @solution[:account_sid],
|
|
180
|
-
sid: sid,
|
|
181
|
-
)
|
|
182
|
-
end
|
|
183
|
-
|
|
184
171
|
##
|
|
185
172
|
# Provide a user friendly representation
|
|
186
173
|
def to_s
|
|
@@ -193,20 +193,6 @@ module Twilio
|
|
|
193
193
|
return ApplicationPage.new(@version, response, @solution)
|
|
194
194
|
end
|
|
195
195
|
|
|
196
|
-
##
|
|
197
|
-
# Constructs a ApplicationContext
|
|
198
|
-
# @param [String] sid The application Sid that that uniquely identifies this
|
|
199
|
-
# resource
|
|
200
|
-
|
|
201
|
-
# @return [ApplicationContext] ApplicationContext
|
|
202
|
-
def get(sid)
|
|
203
|
-
ApplicationContext.new(
|
|
204
|
-
@version,
|
|
205
|
-
account_sid: @solution[:account_sid],
|
|
206
|
-
sid: sid,
|
|
207
|
-
)
|
|
208
|
-
end
|
|
209
|
-
|
|
210
196
|
##
|
|
211
197
|
# Provide a user friendly representation
|
|
212
198
|
def to_s
|
|
@@ -112,19 +112,6 @@ module Twilio
|
|
|
112
112
|
return AuthorizedConnectAppPage.new(@version, response, @solution)
|
|
113
113
|
end
|
|
114
114
|
|
|
115
|
-
##
|
|
116
|
-
# Constructs a AuthorizedConnectAppContext
|
|
117
|
-
# @param [String] connect_app_sid The connect_app_sid
|
|
118
|
-
|
|
119
|
-
# @return [AuthorizedConnectAppContext] AuthorizedConnectAppContext
|
|
120
|
-
def get(connect_app_sid)
|
|
121
|
-
AuthorizedConnectAppContext.new(
|
|
122
|
-
@version,
|
|
123
|
-
account_sid: @solution[:account_sid],
|
|
124
|
-
connect_app_sid: connect_app_sid,
|
|
125
|
-
)
|
|
126
|
-
end
|
|
127
|
-
|
|
128
115
|
##
|
|
129
116
|
# Provide a user friendly representation
|
|
130
117
|
def to_s
|
|
@@ -112,19 +112,6 @@ module Twilio
|
|
|
112
112
|
return AvailablePhoneNumberCountryPage.new(@version, response, @solution)
|
|
113
113
|
end
|
|
114
114
|
|
|
115
|
-
##
|
|
116
|
-
# Constructs a AvailablePhoneNumberCountryContext
|
|
117
|
-
# @param [String] country_code The country_code
|
|
118
|
-
|
|
119
|
-
# @return [AvailablePhoneNumberCountryContext] AvailablePhoneNumberCountryContext
|
|
120
|
-
def get(country_code)
|
|
121
|
-
AvailablePhoneNumberCountryContext.new(
|
|
122
|
-
@version,
|
|
123
|
-
account_sid: @solution[:account_sid],
|
|
124
|
-
country_code: country_code,
|
|
125
|
-
)
|
|
126
|
-
end
|
|
127
|
-
|
|
128
115
|
##
|
|
129
116
|
# Provide a user friendly representation
|
|
130
117
|
def to_s
|
|
@@ -284,19 +284,6 @@ module Twilio
|
|
|
284
284
|
)
|
|
285
285
|
end
|
|
286
286
|
|
|
287
|
-
##
|
|
288
|
-
# Constructs a CallContext
|
|
289
|
-
# @param [String] sid The Call Sid that uniquely identifies the Call to fetch
|
|
290
|
-
|
|
291
|
-
# @return [CallContext] CallContext
|
|
292
|
-
def get(sid)
|
|
293
|
-
CallContext.new(
|
|
294
|
-
@version,
|
|
295
|
-
account_sid: @solution[:account_sid],
|
|
296
|
-
sid: sid,
|
|
297
|
-
)
|
|
298
|
-
end
|
|
299
|
-
|
|
300
287
|
##
|
|
301
288
|
# Provide a user friendly representation
|
|
302
289
|
def to_s
|
|
@@ -29,17 +29,6 @@ module Twilio
|
|
|
29
29
|
}
|
|
30
30
|
end
|
|
31
31
|
|
|
32
|
-
##
|
|
33
|
-
# Constructs a FeedbackContext
|
|
34
|
-
# @return [FeedbackContext] FeedbackContext
|
|
35
|
-
def get
|
|
36
|
-
FeedbackContext.new(
|
|
37
|
-
@version,
|
|
38
|
-
account_sid: @solution[:account_sid],
|
|
39
|
-
call_sid: @solution[:call_sid],
|
|
40
|
-
)
|
|
41
|
-
end
|
|
42
|
-
|
|
43
32
|
##
|
|
44
33
|
# Provide a user friendly representation
|
|
45
34
|
def to_s
|
|
@@ -60,19 +60,6 @@ module Twilio
|
|
|
60
60
|
)
|
|
61
61
|
end
|
|
62
62
|
|
|
63
|
-
##
|
|
64
|
-
# Constructs a FeedbackSummaryContext
|
|
65
|
-
# @param [String] sid The sid
|
|
66
|
-
|
|
67
|
-
# @return [FeedbackSummaryContext] FeedbackSummaryContext
|
|
68
|
-
def get(sid)
|
|
69
|
-
FeedbackSummaryContext.new(
|
|
70
|
-
@version,
|
|
71
|
-
account_sid: @solution[:account_sid],
|
|
72
|
-
sid: sid,
|
|
73
|
-
)
|
|
74
|
-
end
|
|
75
|
-
|
|
76
63
|
##
|
|
77
64
|
# Provide a user friendly representation
|
|
78
65
|
def to_s
|
|
@@ -142,20 +142,6 @@ module Twilio
|
|
|
142
142
|
return NotificationPage.new(@version, response, @solution)
|
|
143
143
|
end
|
|
144
144
|
|
|
145
|
-
##
|
|
146
|
-
# Constructs a NotificationContext
|
|
147
|
-
# @param [String] sid The sid
|
|
148
|
-
|
|
149
|
-
# @return [NotificationContext] NotificationContext
|
|
150
|
-
def get(sid)
|
|
151
|
-
NotificationContext.new(
|
|
152
|
-
@version,
|
|
153
|
-
account_sid: @solution[:account_sid],
|
|
154
|
-
call_sid: @solution[:call_sid],
|
|
155
|
-
sid: sid,
|
|
156
|
-
)
|
|
157
|
-
end
|
|
158
|
-
|
|
159
145
|
##
|
|
160
146
|
# Provide a user friendly representation
|
|
161
147
|
def to_s
|
|
@@ -135,20 +135,6 @@ module Twilio
|
|
|
135
135
|
return RecordingPage.new(@version, response, @solution)
|
|
136
136
|
end
|
|
137
137
|
|
|
138
|
-
##
|
|
139
|
-
# Constructs a RecordingContext
|
|
140
|
-
# @param [String] sid The sid
|
|
141
|
-
|
|
142
|
-
# @return [RecordingContext] RecordingContext
|
|
143
|
-
def get(sid)
|
|
144
|
-
RecordingContext.new(
|
|
145
|
-
@version,
|
|
146
|
-
account_sid: @solution[:account_sid],
|
|
147
|
-
call_sid: @solution[:call_sid],
|
|
148
|
-
sid: sid,
|
|
149
|
-
)
|
|
150
|
-
end
|
|
151
|
-
|
|
152
138
|
##
|
|
153
139
|
# Provide a user friendly representation
|
|
154
140
|
def to_s
|
|
@@ -176,19 +176,6 @@ module Twilio
|
|
|
176
176
|
return ConferencePage.new(@version, response, @solution)
|
|
177
177
|
end
|
|
178
178
|
|
|
179
|
-
##
|
|
180
|
-
# Constructs a ConferenceContext
|
|
181
|
-
# @param [String] sid The conference Sid that uniquely identifies this resource
|
|
182
|
-
|
|
183
|
-
# @return [ConferenceContext] ConferenceContext
|
|
184
|
-
def get(sid)
|
|
185
|
-
ConferenceContext.new(
|
|
186
|
-
@version,
|
|
187
|
-
account_sid: @solution[:account_sid],
|
|
188
|
-
sid: sid,
|
|
189
|
-
)
|
|
190
|
-
end
|
|
191
|
-
|
|
192
179
|
##
|
|
193
180
|
# Provide a user friendly representation
|
|
194
181
|
def to_s
|
|
@@ -123,20 +123,6 @@ module Twilio
|
|
|
123
123
|
return ParticipantPage.new(@version, response, @solution)
|
|
124
124
|
end
|
|
125
125
|
|
|
126
|
-
##
|
|
127
|
-
# Constructs a ParticipantContext
|
|
128
|
-
# @param [String] call_sid The call_sid
|
|
129
|
-
|
|
130
|
-
# @return [ParticipantContext] ParticipantContext
|
|
131
|
-
def get(call_sid)
|
|
132
|
-
ParticipantContext.new(
|
|
133
|
-
@version,
|
|
134
|
-
account_sid: @solution[:account_sid],
|
|
135
|
-
conference_sid: @solution[:conference_sid],
|
|
136
|
-
call_sid: call_sid,
|
|
137
|
-
)
|
|
138
|
-
end
|
|
139
|
-
|
|
140
126
|
##
|
|
141
127
|
# Provide a user friendly representation
|
|
142
128
|
def to_s
|
|
@@ -112,19 +112,6 @@ module Twilio
|
|
|
112
112
|
return ConnectAppPage.new(@version, response, @solution)
|
|
113
113
|
end
|
|
114
114
|
|
|
115
|
-
##
|
|
116
|
-
# Constructs a ConnectAppContext
|
|
117
|
-
# @param [String] sid The connect-app Sid that uniquely identifies this resource
|
|
118
|
-
|
|
119
|
-
# @return [ConnectAppContext] ConnectAppContext
|
|
120
|
-
def get(sid)
|
|
121
|
-
ConnectAppContext.new(
|
|
122
|
-
@version,
|
|
123
|
-
account_sid: @solution[:account_sid],
|
|
124
|
-
sid: sid,
|
|
125
|
-
)
|
|
126
|
-
end
|
|
127
|
-
|
|
128
115
|
##
|
|
129
116
|
# Provide a user friendly representation
|
|
130
117
|
def to_s
|
|
@@ -256,20 +256,6 @@ module Twilio
|
|
|
256
256
|
)
|
|
257
257
|
end
|
|
258
258
|
|
|
259
|
-
##
|
|
260
|
-
# Constructs a IncomingPhoneNumberContext
|
|
261
|
-
# @param [String] sid The incoming-phone-number Sid that uniquely identifies this
|
|
262
|
-
# resource
|
|
263
|
-
|
|
264
|
-
# @return [IncomingPhoneNumberContext] IncomingPhoneNumberContext
|
|
265
|
-
def get(sid)
|
|
266
|
-
IncomingPhoneNumberContext.new(
|
|
267
|
-
@version,
|
|
268
|
-
owner_account_sid: @solution[:owner_account_sid],
|
|
269
|
-
sid: sid,
|
|
270
|
-
)
|
|
271
|
-
end
|
|
272
|
-
|
|
273
259
|
##
|
|
274
260
|
# Provide a user friendly representation
|
|
275
261
|
def to_s
|
|
@@ -185,19 +185,6 @@ module Twilio
|
|
|
185
185
|
return MessagePage.new(@version, response, @solution)
|
|
186
186
|
end
|
|
187
187
|
|
|
188
|
-
##
|
|
189
|
-
# Constructs a MessageContext
|
|
190
|
-
# @param [String] sid The message Sid that uniquely identifies this resource
|
|
191
|
-
|
|
192
|
-
# @return [MessageContext] MessageContext
|
|
193
|
-
def get(sid)
|
|
194
|
-
MessageContext.new(
|
|
195
|
-
@version,
|
|
196
|
-
account_sid: @solution[:account_sid],
|
|
197
|
-
sid: sid,
|
|
198
|
-
)
|
|
199
|
-
end
|
|
200
|
-
|
|
201
188
|
##
|
|
202
189
|
# Provide a user friendly representation
|
|
203
190
|
def to_s
|
|
@@ -137,20 +137,6 @@ module Twilio
|
|
|
137
137
|
return MediaPage.new(@version, response, @solution)
|
|
138
138
|
end
|
|
139
139
|
|
|
140
|
-
##
|
|
141
|
-
# Constructs a MediaContext
|
|
142
|
-
# @param [String] sid The media Sid that uniquely identifies this resource
|
|
143
|
-
|
|
144
|
-
# @return [MediaContext] MediaContext
|
|
145
|
-
def get(sid)
|
|
146
|
-
MediaContext.new(
|
|
147
|
-
@version,
|
|
148
|
-
account_sid: @solution[:account_sid],
|
|
149
|
-
message_sid: @solution[:message_sid],
|
|
150
|
-
sid: sid,
|
|
151
|
-
)
|
|
152
|
-
end
|
|
153
|
-
|
|
154
140
|
##
|
|
155
141
|
# Provide a user friendly representation
|
|
156
142
|
def to_s
|
|
@@ -140,19 +140,6 @@ module Twilio
|
|
|
140
140
|
return NotificationPage.new(@version, response, @solution)
|
|
141
141
|
end
|
|
142
142
|
|
|
143
|
-
##
|
|
144
|
-
# Constructs a NotificationContext
|
|
145
|
-
# @param [String] sid The notification Sid that uniquely identifies this resource
|
|
146
|
-
|
|
147
|
-
# @return [NotificationContext] NotificationContext
|
|
148
|
-
def get(sid)
|
|
149
|
-
NotificationContext.new(
|
|
150
|
-
@version,
|
|
151
|
-
account_sid: @solution[:account_sid],
|
|
152
|
-
sid: sid,
|
|
153
|
-
)
|
|
154
|
-
end
|
|
155
|
-
|
|
156
143
|
##
|
|
157
144
|
# Provide a user friendly representation
|
|
158
145
|
def to_s
|
|
@@ -134,20 +134,6 @@ module Twilio
|
|
|
134
134
|
return OutgoingCallerIdPage.new(@version, response, @solution)
|
|
135
135
|
end
|
|
136
136
|
|
|
137
|
-
##
|
|
138
|
-
# Constructs a OutgoingCallerIdContext
|
|
139
|
-
# @param [String] sid The outgoing-caller-id Sid that uniquely identifies this
|
|
140
|
-
# resource
|
|
141
|
-
|
|
142
|
-
# @return [OutgoingCallerIdContext] OutgoingCallerIdContext
|
|
143
|
-
def get(sid)
|
|
144
|
-
OutgoingCallerIdContext.new(
|
|
145
|
-
@version,
|
|
146
|
-
account_sid: @solution[:account_sid],
|
|
147
|
-
sid: sid,
|
|
148
|
-
)
|
|
149
|
-
end
|
|
150
|
-
|
|
151
137
|
##
|
|
152
138
|
# Provide a user friendly representation
|
|
153
139
|
def to_s
|