twilio-ruby 5.26.0 → 5.27.0
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 +5 -5
- data/.travis.yml +5 -6
- data/CHANGES.md +21 -0
- data/README.md +28 -19
- data/VERSIONS.md +9 -10
- data/lib/twilio-ruby.rb +4 -2
- data/lib/twilio-ruby/framework/domain.rb +1 -1
- data/lib/twilio-ruby/http/http_client.rb +9 -3
- data/lib/twilio-ruby/rest/api/v2010/account/address.rb +3 -3
- data/lib/twilio-ruby/rest/api/v2010/account/address/dependent_phone_number.rb +2 -2
- data/lib/twilio-ruby/rest/api/v2010/account/application.rb +3 -3
- data/lib/twilio-ruby/rest/api/v2010/account/authorized_connect_app.rb +3 -3
- data/lib/twilio-ruby/rest/api/v2010/account/available_phone_number.rb +1 -1
- data/lib/twilio-ruby/rest/api/v2010/account/available_phone_number/local.rb +18 -18
- data/lib/twilio-ruby/rest/api/v2010/account/available_phone_number/machine_to_machine.rb +18 -18
- data/lib/twilio-ruby/rest/api/v2010/account/available_phone_number/mobile.rb +18 -18
- data/lib/twilio-ruby/rest/api/v2010/account/available_phone_number/national.rb +18 -18
- data/lib/twilio-ruby/rest/api/v2010/account/available_phone_number/shared_cost.rb +18 -18
- data/lib/twilio-ruby/rest/api/v2010/account/available_phone_number/toll_free.rb +18 -18
- data/lib/twilio-ruby/rest/api/v2010/account/available_phone_number/voip.rb +18 -18
- data/lib/twilio-ruby/rest/api/v2010/account/call.rb +3 -3
- data/lib/twilio-ruby/rest/api/v2010/account/call/feedback.rb +3 -3
- data/lib/twilio-ruby/rest/api/v2010/account/call/feedback_summary.rb +3 -3
- data/lib/twilio-ruby/rest/api/v2010/account/call/notification.rb +6 -6
- data/lib/twilio-ruby/rest/api/v2010/account/call/recording.rb +6 -6
- data/lib/twilio-ruby/rest/api/v2010/account/conference.rb +3 -3
- data/lib/twilio-ruby/rest/api/v2010/account/conference/participant.rb +5 -5
- data/lib/twilio-ruby/rest/api/v2010/account/conference/recording.rb +3 -3
- data/lib/twilio-ruby/rest/api/v2010/account/connect_app.rb +3 -3
- data/lib/twilio-ruby/rest/api/v2010/account/incoming_phone_number.rb +5 -5
- data/lib/twilio-ruby/rest/api/v2010/account/incoming_phone_number/assigned_add_on.rb +4 -4
- data/lib/twilio-ruby/rest/api/v2010/account/incoming_phone_number/assigned_add_on/assigned_add_on_extension.rb +4 -4
- data/lib/twilio-ruby/rest/api/v2010/account/incoming_phone_number/local.rb +2 -2
- data/lib/twilio-ruby/rest/api/v2010/account/incoming_phone_number/mobile.rb +2 -2
- data/lib/twilio-ruby/rest/api/v2010/account/incoming_phone_number/toll_free.rb +2 -2
- data/lib/twilio-ruby/rest/api/v2010/account/key.rb +1 -1
- data/lib/twilio-ruby/rest/api/v2010/account/message.rb +6 -6
- data/lib/twilio-ruby/rest/api/v2010/account/message/feedback.rb +3 -5
- data/lib/twilio-ruby/rest/api/v2010/account/message/media.rb +3 -3
- data/lib/twilio-ruby/rest/api/v2010/account/notification.rb +3 -3
- data/lib/twilio-ruby/rest/api/v2010/account/outgoing_caller_id.rb +3 -3
- data/lib/twilio-ruby/rest/api/v2010/account/queue.rb +3 -3
- data/lib/twilio-ruby/rest/api/v2010/account/queue/member.rb +5 -5
- data/lib/twilio-ruby/rest/api/v2010/account/recording.rb +6 -6
- data/lib/twilio-ruby/rest/api/v2010/account/recording/add_on_result.rb +3 -3
- data/lib/twilio-ruby/rest/api/v2010/account/recording/add_on_result/payload.rb +3 -3
- data/lib/twilio-ruby/rest/api/v2010/account/recording/transcription.rb +3 -3
- data/lib/twilio-ruby/rest/api/v2010/account/short_code.rb +3 -3
- data/lib/twilio-ruby/rest/api/v2010/account/sip/domain.rb +1 -1
- data/lib/twilio-ruby/rest/api/v2010/account/sip/domain/auth_types.rb +2 -2
- data/lib/twilio-ruby/rest/api/v2010/account/sip/domain/auth_types/auth_calls_mapping.rb +2 -2
- data/lib/twilio-ruby/rest/api/v2010/account/sip/domain/auth_types/auth_calls_mapping/auth_calls_credential_list_mapping.rb +3 -3
- data/lib/twilio-ruby/rest/api/v2010/account/sip/domain/auth_types/auth_calls_mapping/auth_calls_ip_access_control_list_mapping.rb +3 -3
- data/lib/twilio-ruby/rest/api/v2010/account/sip/domain/auth_types/auth_registrations_mapping.rb +2 -2
- data/lib/twilio-ruby/rest/api/v2010/account/sip/domain/auth_types/auth_registrations_mapping/auth_registrations_credential_list_mapping.rb +3 -3
- data/lib/twilio-ruby/rest/api/v2010/account/sip/domain/credential_list_mapping.rb +1 -1
- data/lib/twilio-ruby/rest/api/v2010/account/sip/ip_access_control_list.rb +1 -1
- data/lib/twilio-ruby/rest/api/v2010/account/sip/ip_access_control_list/ip_address.rb +1 -1
- data/lib/twilio-ruby/rest/api/v2010/account/token.rb +2 -2
- data/lib/twilio-ruby/rest/api/v2010/account/transcription.rb +3 -3
- data/lib/twilio-ruby/rest/api/v2010/account/usage/record.rb +3 -3
- data/lib/twilio-ruby/rest/api/v2010/account/usage/record/all_time.rb +3 -3
- data/lib/twilio-ruby/rest/api/v2010/account/usage/record/daily.rb +3 -3
- data/lib/twilio-ruby/rest/api/v2010/account/usage/record/last_month.rb +3 -3
- data/lib/twilio-ruby/rest/api/v2010/account/usage/record/monthly.rb +3 -3
- data/lib/twilio-ruby/rest/api/v2010/account/usage/record/this_month.rb +3 -3
- data/lib/twilio-ruby/rest/api/v2010/account/usage/record/today.rb +3 -3
- data/lib/twilio-ruby/rest/api/v2010/account/usage/record/yearly.rb +3 -3
- data/lib/twilio-ruby/rest/api/v2010/account/usage/record/yesterday.rb +3 -3
- data/lib/twilio-ruby/rest/api/v2010/account/usage/trigger.rb +10 -10
- data/lib/twilio-ruby/rest/api/v2010/account/validation_request.rb +2 -2
- data/lib/twilio-ruby/rest/authy/v1/service/entity/factor/challenge.rb +1 -1
- data/lib/twilio-ruby/rest/autopilot/v1/assistant/task/field.rb +1 -1
- data/lib/twilio-ruby/rest/chat/v2/service.rb +12 -6
- data/lib/twilio-ruby/rest/chat/v2/service/binding.rb +12 -12
- data/lib/twilio-ruby/rest/chat/v2/service/channel.rb +6 -6
- data/lib/twilio-ruby/rest/chat/v2/service/channel/invite.rb +17 -16
- data/lib/twilio-ruby/rest/chat/v2/service/channel/member.rb +35 -35
- data/lib/twilio-ruby/rest/chat/v2/service/channel/message.rb +6 -6
- data/lib/twilio-ruby/rest/chat/v2/service/channel/webhook.rb +6 -6
- data/lib/twilio-ruby/rest/chat/v2/service/role.rb +8 -8
- data/lib/twilio-ruby/rest/chat/v2/service/user.rb +16 -12
- data/lib/twilio-ruby/rest/chat/v2/service/user/user_binding.rb +12 -12
- data/lib/twilio-ruby/rest/chat/v2/service/user/user_channel.rb +13 -11
- data/lib/twilio-ruby/rest/client.rb +2 -2
- data/lib/twilio-ruby/rest/conversations/v1/conversation.rb +4 -4
- data/lib/twilio-ruby/rest/conversations/v1/conversation/message.rb +4 -4
- data/lib/twilio-ruby/rest/conversations/v1/conversation/participant.rb +4 -4
- data/lib/twilio-ruby/rest/conversations/v1/conversation/webhook.rb +4 -4
- data/lib/twilio-ruby/rest/conversations/v1/webhook.rb +4 -4
- data/lib/twilio-ruby/rest/fax/v1/fax.rb +11 -5
- data/lib/twilio-ruby/rest/ip_messaging/v2/service.rb +12 -6
- data/lib/twilio-ruby/rest/ip_messaging/v2/service/binding.rb +12 -12
- data/lib/twilio-ruby/rest/ip_messaging/v2/service/channel.rb +6 -6
- data/lib/twilio-ruby/rest/ip_messaging/v2/service/channel/invite.rb +17 -16
- data/lib/twilio-ruby/rest/ip_messaging/v2/service/channel/member.rb +35 -35
- data/lib/twilio-ruby/rest/ip_messaging/v2/service/channel/message.rb +6 -6
- data/lib/twilio-ruby/rest/ip_messaging/v2/service/channel/webhook.rb +6 -6
- data/lib/twilio-ruby/rest/ip_messaging/v2/service/role.rb +8 -8
- data/lib/twilio-ruby/rest/ip_messaging/v2/service/user.rb +16 -12
- data/lib/twilio-ruby/rest/ip_messaging/v2/service/user/user_binding.rb +12 -12
- data/lib/twilio-ruby/rest/ip_messaging/v2/service/user/user_channel.rb +13 -11
- data/lib/twilio-ruby/rest/lookups/v1/phone_number.rb +5 -5
- data/lib/twilio-ruby/rest/monitor/v1.rb +1 -1
- data/lib/twilio-ruby/rest/monitor/v1/alert.rb +16 -16
- data/lib/twilio-ruby/rest/pricing/v1/voice/number.rb +1 -1
- data/lib/twilio-ruby/rest/pricing/v2/voice/number.rb +1 -1
- data/lib/twilio-ruby/security/request_validator.rb +1 -1
- data/lib/twilio-ruby/util/configuration.rb +10 -5
- data/lib/twilio-ruby/version.rb +1 -1
- data/spec/http/http_client_spec.rb +2 -2
- data/spec/integration/lookups/v1/phone_number_spec.rb +1 -1
- data/spec/integration/monitor/v1/alert_spec.rb +5 -28
- data/spec/integration/pricing/v1/voice/number_spec.rb +1 -1
- data/spec/integration/pricing/v2/voice/number_spec.rb +1 -1
- data/spec/rest/client_spec.rb +22 -0
- data/spec/twilio_spec.rb +3 -1
- data/spec/util/configuration_spec.rb +6 -0
- metadata +4 -3
|
@@ -17,8 +17,8 @@ module Twilio
|
|
|
17
17
|
# Initialize the MessageList
|
|
18
18
|
# @param [Version] version Version that contains the resource
|
|
19
19
|
# @param [String] service_sid The SID of the
|
|
20
|
-
# [Service](https://www.twilio.com/docs/chat/rest/
|
|
21
|
-
# is associated with.
|
|
20
|
+
# [Service](https://www.twilio.com/docs/chat/rest/service-resource) the Message
|
|
21
|
+
# resource is associated with.
|
|
22
22
|
# @param [String] channel_sid The SID of the
|
|
23
23
|
# [Channel](https://www.twilio.com/docs/chat/channels) the Message resource
|
|
24
24
|
# belongs to.
|
|
@@ -216,8 +216,8 @@ module Twilio
|
|
|
216
216
|
# Initialize the MessageContext
|
|
217
217
|
# @param [Version] version Version that contains the resource
|
|
218
218
|
# @param [String] service_sid The SID of the
|
|
219
|
-
# [Service](https://www.twilio.com/docs/chat/rest/
|
|
220
|
-
# resource from.
|
|
219
|
+
# [Service](https://www.twilio.com/docs/chat/rest/service-resource) to fetch the
|
|
220
|
+
# Message resource from.
|
|
221
221
|
# @param [String] channel_sid The SID of the
|
|
222
222
|
# [Channel](https://www.twilio.com/docs/chat/channels) the Message resource to
|
|
223
223
|
# fetch belongs to. This value can be the Channel resource's `sid` or
|
|
@@ -327,8 +327,8 @@ module Twilio
|
|
|
327
327
|
# @param [Version] version Version that contains the resource
|
|
328
328
|
# @param [Hash] payload payload that contains response from Twilio
|
|
329
329
|
# @param [String] service_sid The SID of the
|
|
330
|
-
# [Service](https://www.twilio.com/docs/chat/rest/
|
|
331
|
-
# is associated with.
|
|
330
|
+
# [Service](https://www.twilio.com/docs/chat/rest/service-resource) the Message
|
|
331
|
+
# resource is associated with.
|
|
332
332
|
# @param [String] channel_sid The SID of the
|
|
333
333
|
# [Channel](https://www.twilio.com/docs/chat/channels) the Message resource
|
|
334
334
|
# belongs to.
|
|
@@ -17,8 +17,8 @@ module Twilio
|
|
|
17
17
|
# Initialize the WebhookList
|
|
18
18
|
# @param [Version] version Version that contains the resource
|
|
19
19
|
# @param [String] service_sid The SID of the
|
|
20
|
-
# [Service](https://www.twilio.com/docs/chat/rest/
|
|
21
|
-
# resource is associated with.
|
|
20
|
+
# [Service](https://www.twilio.com/docs/chat/rest/service-resource) the Channel
|
|
21
|
+
# Webhook resource is associated with.
|
|
22
22
|
# @param [String] channel_sid The SID of the
|
|
23
23
|
# [Channel](https://www.twilio.com/docs/chat/channels) the Channel Webhook
|
|
24
24
|
# resource belongs to.
|
|
@@ -209,8 +209,8 @@ module Twilio
|
|
|
209
209
|
# Initialize the WebhookContext
|
|
210
210
|
# @param [Version] version Version that contains the resource
|
|
211
211
|
# @param [String] service_sid The SID of the
|
|
212
|
-
# [Service](https://www.twilio.com/docs/chat/rest/
|
|
213
|
-
# fetch the Webhook resource from.
|
|
212
|
+
# [Service](https://www.twilio.com/docs/chat/rest/service-resource) with the
|
|
213
|
+
# Channel to fetch the Webhook resource from.
|
|
214
214
|
# @param [String] channel_sid The SID of the
|
|
215
215
|
# [Channel](https://www.twilio.com/docs/chat/channels) the Channel Webhook
|
|
216
216
|
# resource to fetch belongs to. This value can be the Channel resource's `sid` or
|
|
@@ -321,8 +321,8 @@ module Twilio
|
|
|
321
321
|
# @param [Version] version Version that contains the resource
|
|
322
322
|
# @param [Hash] payload payload that contains response from Twilio
|
|
323
323
|
# @param [String] service_sid The SID of the
|
|
324
|
-
# [Service](https://www.twilio.com/docs/chat/rest/
|
|
325
|
-
# resource is associated with.
|
|
324
|
+
# [Service](https://www.twilio.com/docs/chat/rest/service-resource) the Channel
|
|
325
|
+
# Webhook resource is associated with.
|
|
326
326
|
# @param [String] channel_sid The SID of the
|
|
327
327
|
# [Channel](https://www.twilio.com/docs/chat/channels) the Channel Webhook
|
|
328
328
|
# resource belongs to.
|
|
@@ -16,8 +16,8 @@ module Twilio
|
|
|
16
16
|
# Initialize the RoleList
|
|
17
17
|
# @param [Version] version Version that contains the resource
|
|
18
18
|
# @param [String] service_sid The SID of the
|
|
19
|
-
# [Service](https://www.twilio.com/docs/chat/rest/
|
|
20
|
-
# associated with.
|
|
19
|
+
# [Service](https://www.twilio.com/docs/chat/rest/service-resource) the Role
|
|
20
|
+
# resource is associated with.
|
|
21
21
|
# @return [RoleList] RoleList
|
|
22
22
|
def initialize(version, service_sid: nil)
|
|
23
23
|
super(version)
|
|
@@ -33,8 +33,8 @@ module Twilio
|
|
|
33
33
|
# @param [String] friendly_name A descriptive string that you create to describe
|
|
34
34
|
# the new resource. It can be up to 64 characters long.
|
|
35
35
|
# @param [role.RoleType] type The type of role. Can be: `channel` for
|
|
36
|
-
# [Channel](https://www.twilio.com/docs/chat/
|
|
37
|
-
#
|
|
36
|
+
# [Channel](https://www.twilio.com/docs/chat/channels) roles or `deployment` for
|
|
37
|
+
# [Service](https://www.twilio.com/docs/chat/rest/service-resource) roles.
|
|
38
38
|
# @param [String] permission A permission that you grant to the new role. Only one
|
|
39
39
|
# permission can be granted per parameter. To assign more than one permission,
|
|
40
40
|
# repeat this parameter for each permission value. The values for this parameter
|
|
@@ -179,8 +179,8 @@ module Twilio
|
|
|
179
179
|
# Initialize the RoleContext
|
|
180
180
|
# @param [Version] version Version that contains the resource
|
|
181
181
|
# @param [String] service_sid The SID of the
|
|
182
|
-
# [Service](https://www.twilio.com/docs/chat/rest/
|
|
183
|
-
# resource from.
|
|
182
|
+
# [Service](https://www.twilio.com/docs/chat/rest/service-resource) to fetch the
|
|
183
|
+
# Role resource from.
|
|
184
184
|
# @param [String] sid The SID of the Role resource to fetch.
|
|
185
185
|
# @return [RoleContext] RoleContext
|
|
186
186
|
def initialize(version, service_sid, sid)
|
|
@@ -255,8 +255,8 @@ module Twilio
|
|
|
255
255
|
# @param [Version] version Version that contains the resource
|
|
256
256
|
# @param [Hash] payload payload that contains response from Twilio
|
|
257
257
|
# @param [String] service_sid The SID of the
|
|
258
|
-
# [Service](https://www.twilio.com/docs/chat/rest/
|
|
259
|
-
# associated with.
|
|
258
|
+
# [Service](https://www.twilio.com/docs/chat/rest/service-resource) the Role
|
|
259
|
+
# resource is associated with.
|
|
260
260
|
# @param [String] sid The SID of the Role resource to fetch.
|
|
261
261
|
# @return [RoleInstance] RoleInstance
|
|
262
262
|
def initialize(version, payload, service_sid: nil, sid: nil)
|
|
@@ -16,8 +16,8 @@ module Twilio
|
|
|
16
16
|
# Initialize the UserList
|
|
17
17
|
# @param [Version] version Version that contains the resource
|
|
18
18
|
# @param [String] service_sid The SID of the
|
|
19
|
-
# [Service](https://www.twilio.com/docs/chat/rest/
|
|
20
|
-
# associated with.
|
|
19
|
+
# [Service](https://www.twilio.com/docs/chat/rest/service-resource) the User
|
|
20
|
+
# resource is associated with.
|
|
21
21
|
# @return [UserList] UserList
|
|
22
22
|
def initialize(version, service_sid: nil)
|
|
23
23
|
super(version)
|
|
@@ -31,11 +31,13 @@ module Twilio
|
|
|
31
31
|
# Retrieve a single page of UserInstance records from the API.
|
|
32
32
|
# Request is executed immediately.
|
|
33
33
|
# @param [String] identity The `identity` value that uniquely identifies the new
|
|
34
|
-
# resource's [User](https://www.twilio.com/docs/chat/rest/
|
|
35
|
-
# [Service](https://www.twilio.com/docs/chat/rest/
|
|
36
|
-
# username or email address. See the Identity documentation for
|
|
34
|
+
# resource's [User](https://www.twilio.com/docs/chat/rest/user-resource) within
|
|
35
|
+
# the [Service](https://www.twilio.com/docs/chat/rest/service-resource). This
|
|
36
|
+
# value is often a username or email address. See the Identity documentation for
|
|
37
|
+
# more info.
|
|
37
38
|
# @param [String] role_sid The SID of the
|
|
38
|
-
# [Role](https://www.twilio.com/docs/chat/rest/
|
|
39
|
+
# [Role](https://www.twilio.com/docs/chat/rest/role-resource) to assign to the new
|
|
40
|
+
# User.
|
|
39
41
|
# @param [String] attributes A valid JSON string that contains
|
|
40
42
|
# application-specific data.
|
|
41
43
|
# @param [String] friendly_name A descriptive string that you create to describe
|
|
@@ -181,8 +183,8 @@ module Twilio
|
|
|
181
183
|
# Initialize the UserContext
|
|
182
184
|
# @param [Version] version Version that contains the resource
|
|
183
185
|
# @param [String] service_sid The SID of the
|
|
184
|
-
# [Service](https://www.twilio.com/docs/chat/rest/
|
|
185
|
-
# resource from.
|
|
186
|
+
# [Service](https://www.twilio.com/docs/chat/rest/service-resource) to fetch the
|
|
187
|
+
# User resource from.
|
|
186
188
|
# @param [String] sid The SID of the User resource to fetch. This value can be
|
|
187
189
|
# either the `sid` or the `identity` of the User resource to fetch.
|
|
188
190
|
# @return [UserContext] UserContext
|
|
@@ -223,7 +225,8 @@ module Twilio
|
|
|
223
225
|
##
|
|
224
226
|
# Update the UserInstance
|
|
225
227
|
# @param [String] role_sid The SID of the
|
|
226
|
-
# [Role](https://www.twilio.com/docs/chat/rest/
|
|
228
|
+
# [Role](https://www.twilio.com/docs/chat/rest/role-resource) to assign to the
|
|
229
|
+
# User.
|
|
227
230
|
# @param [String] attributes A valid JSON string that contains
|
|
228
231
|
# application-specific data.
|
|
229
232
|
# @param [String] friendly_name A descriptive string that you create to describe
|
|
@@ -310,8 +313,8 @@ module Twilio
|
|
|
310
313
|
# @param [Version] version Version that contains the resource
|
|
311
314
|
# @param [Hash] payload payload that contains response from Twilio
|
|
312
315
|
# @param [String] service_sid The SID of the
|
|
313
|
-
# [Service](https://www.twilio.com/docs/chat/rest/
|
|
314
|
-
# associated with.
|
|
316
|
+
# [Service](https://www.twilio.com/docs/chat/rest/service-resource) the User
|
|
317
|
+
# resource is associated with.
|
|
315
318
|
# @param [String] sid The SID of the User resource to fetch. This value can be
|
|
316
319
|
# either the `sid` or the `identity` of the User resource to fetch.
|
|
317
320
|
# @return [UserInstance] UserInstance
|
|
@@ -453,7 +456,8 @@ module Twilio
|
|
|
453
456
|
##
|
|
454
457
|
# Update the UserInstance
|
|
455
458
|
# @param [String] role_sid The SID of the
|
|
456
|
-
# [Role](https://www.twilio.com/docs/chat/rest/
|
|
459
|
+
# [Role](https://www.twilio.com/docs/chat/rest/role-resource) to assign to the
|
|
460
|
+
# User.
|
|
457
461
|
# @param [String] attributes A valid JSON string that contains
|
|
458
462
|
# application-specific data.
|
|
459
463
|
# @param [String] friendly_name A descriptive string that you create to describe
|
|
@@ -17,11 +17,11 @@ module Twilio
|
|
|
17
17
|
# Initialize the UserBindingList
|
|
18
18
|
# @param [Version] version Version that contains the resource
|
|
19
19
|
# @param [String] service_sid The SID of the
|
|
20
|
-
# [Service](https://www.twilio.com/docs/chat/rest/
|
|
21
|
-
# resource is associated with.
|
|
20
|
+
# [Service](https://www.twilio.com/docs/chat/rest/service-resource) the User
|
|
21
|
+
# Binding resource is associated with.
|
|
22
22
|
# @param [String] user_sid The SID of the
|
|
23
|
-
# [User](https://www.twilio.com/docs/chat/rest/
|
|
24
|
-
# resource. See [push notification
|
|
23
|
+
# [User](https://www.twilio.com/docs/chat/rest/user-resource) with the User
|
|
24
|
+
# Binding resource. See [push notification
|
|
25
25
|
# configuration](https://www.twilio.com/docs/chat/push-notification-configuration)
|
|
26
26
|
# for more info.
|
|
27
27
|
# @return [UserBindingList] UserBindingList
|
|
@@ -177,11 +177,11 @@ module Twilio
|
|
|
177
177
|
# Initialize the UserBindingContext
|
|
178
178
|
# @param [Version] version Version that contains the resource
|
|
179
179
|
# @param [String] service_sid The SID of the
|
|
180
|
-
# [Service](https://www.twilio.com/docs/chat/rest/
|
|
181
|
-
# Binding resource from.
|
|
180
|
+
# [Service](https://www.twilio.com/docs/chat/rest/service-resource) to fetch the
|
|
181
|
+
# User Binding resource from.
|
|
182
182
|
# @param [String] user_sid The SID of the
|
|
183
|
-
# [User](https://www.twilio.com/docs/chat/rest/
|
|
184
|
-
# resource to fetch. See [push notification
|
|
183
|
+
# [User](https://www.twilio.com/docs/chat/rest/user-resource) with the User
|
|
184
|
+
# Binding resource to fetch. See [push notification
|
|
185
185
|
# configuration](https://www.twilio.com/docs/chat/push-notification-configuration)
|
|
186
186
|
# for more info.
|
|
187
187
|
# @param [String] sid The SID of the User Binding resource to fetch.
|
|
@@ -243,11 +243,11 @@ module Twilio
|
|
|
243
243
|
# @param [Version] version Version that contains the resource
|
|
244
244
|
# @param [Hash] payload payload that contains response from Twilio
|
|
245
245
|
# @param [String] service_sid The SID of the
|
|
246
|
-
# [Service](https://www.twilio.com/docs/chat/rest/
|
|
247
|
-
# resource is associated with.
|
|
246
|
+
# [Service](https://www.twilio.com/docs/chat/rest/service-resource) the User
|
|
247
|
+
# Binding resource is associated with.
|
|
248
248
|
# @param [String] user_sid The SID of the
|
|
249
|
-
# [User](https://www.twilio.com/docs/chat/rest/
|
|
250
|
-
# resource. See [push notification
|
|
249
|
+
# [User](https://www.twilio.com/docs/chat/rest/user-resource) with the User
|
|
250
|
+
# Binding resource. See [push notification
|
|
251
251
|
# configuration](https://www.twilio.com/docs/chat/push-notification-configuration)
|
|
252
252
|
# for more info.
|
|
253
253
|
# @param [String] sid The SID of the User Binding resource to fetch.
|
|
@@ -17,10 +17,11 @@ module Twilio
|
|
|
17
17
|
# Initialize the UserChannelList
|
|
18
18
|
# @param [Version] version Version that contains the resource
|
|
19
19
|
# @param [String] service_sid The SID of the
|
|
20
|
-
# [Service](https://www.twilio.com/docs/chat/rest/
|
|
21
|
-
# resource is associated with.
|
|
20
|
+
# [Service](https://www.twilio.com/docs/chat/rest/service-resource) the User
|
|
21
|
+
# Channel resource is associated with.
|
|
22
22
|
# @param [String] user_sid The SID of the
|
|
23
|
-
# [User](https://www.twilio.com/docs/chat/rest/
|
|
23
|
+
# [User](https://www.twilio.com/docs/chat/rest/user-resource) the User Channel
|
|
24
|
+
# belongs to.
|
|
24
25
|
# @return [UserChannelList] UserChannelList
|
|
25
26
|
def initialize(version, service_sid: nil, user_sid: nil)
|
|
26
27
|
super(version)
|
|
@@ -158,12 +159,12 @@ module Twilio
|
|
|
158
159
|
# Initialize the UserChannelContext
|
|
159
160
|
# @param [Version] version Version that contains the resource
|
|
160
161
|
# @param [String] service_sid The SID of the
|
|
161
|
-
# [Service](https://www.twilio.com/docs/chat/rest/
|
|
162
|
-
# Channel resource from.
|
|
162
|
+
# [Service](https://www.twilio.com/docs/chat/rest/service-resource) to fetch the
|
|
163
|
+
# User Channel resource from.
|
|
163
164
|
# @param [String] user_sid The SID of the
|
|
164
|
-
# [User](https://www.twilio.com/docs/chat/rest/
|
|
165
|
-
# resource from. This value can be either the `sid` or the `identity` of
|
|
166
|
-
# resource.
|
|
165
|
+
# [User](https://www.twilio.com/docs/chat/rest/user-resource) to fetch the User
|
|
166
|
+
# Channel resource from. This value can be either the `sid` or the `identity` of
|
|
167
|
+
# the User resource.
|
|
167
168
|
# @param [String] channel_sid The SID of the
|
|
168
169
|
# [Channel](https://www.twilio.com/docs/chat/channels) that has the User Channel
|
|
169
170
|
# to fetch. This value can be either the `sid` or the `unique_name` of the Channel
|
|
@@ -242,10 +243,11 @@ module Twilio
|
|
|
242
243
|
# @param [Version] version Version that contains the resource
|
|
243
244
|
# @param [Hash] payload payload that contains response from Twilio
|
|
244
245
|
# @param [String] service_sid The SID of the
|
|
245
|
-
# [Service](https://www.twilio.com/docs/chat/rest/
|
|
246
|
-
# resource is associated with.
|
|
246
|
+
# [Service](https://www.twilio.com/docs/chat/rest/service-resource) the User
|
|
247
|
+
# Channel resource is associated with.
|
|
247
248
|
# @param [String] user_sid The SID of the
|
|
248
|
-
# [User](https://www.twilio.com/docs/chat/rest/
|
|
249
|
+
# [User](https://www.twilio.com/docs/chat/rest/user-resource) the User Channel
|
|
250
|
+
# belongs to.
|
|
249
251
|
# @param [String] channel_sid The SID of the
|
|
250
252
|
# [Channel](https://www.twilio.com/docs/chat/channels) that has the User Channel
|
|
251
253
|
# to fetch. This value can be either the `sid` or the `unique_name` of the Channel
|
|
@@ -15,14 +15,14 @@ module Twilio
|
|
|
15
15
|
|
|
16
16
|
##
|
|
17
17
|
# Initializes the Twilio Client
|
|
18
|
-
def initialize(username=nil, password=nil, account_sid=nil, region=nil, http_client=
|
|
18
|
+
def initialize(username=nil, password=nil, account_sid=nil, region=nil, http_client=nil)
|
|
19
19
|
@username = username || Twilio.account_sid
|
|
20
20
|
@password = password || Twilio.auth_token
|
|
21
21
|
@region = region
|
|
22
22
|
@account_sid = account_sid || @username
|
|
23
23
|
@auth_token = @password
|
|
24
24
|
@auth = [@username, @password]
|
|
25
|
-
@http_client = http_client
|
|
25
|
+
@http_client = http_client || Twilio.http_client || Twilio::HTTP::Client.new
|
|
26
26
|
|
|
27
27
|
# Domains
|
|
28
28
|
@accounts = nil
|
|
@@ -11,7 +11,7 @@ module Twilio
|
|
|
11
11
|
class Conversations < Domain
|
|
12
12
|
class V1 < Version
|
|
13
13
|
##
|
|
14
|
-
# PLEASE NOTE that this class contains
|
|
14
|
+
# PLEASE NOTE that this class contains beta products that are subject to change. Use them with caution.
|
|
15
15
|
class ConversationList < ListResource
|
|
16
16
|
##
|
|
17
17
|
# Initialize the ConversationList
|
|
@@ -148,7 +148,7 @@ module Twilio
|
|
|
148
148
|
end
|
|
149
149
|
|
|
150
150
|
##
|
|
151
|
-
# PLEASE NOTE that this class contains
|
|
151
|
+
# PLEASE NOTE that this class contains beta products that are subject to change. Use them with caution.
|
|
152
152
|
class ConversationPage < Page
|
|
153
153
|
##
|
|
154
154
|
# Initialize the ConversationPage
|
|
@@ -179,7 +179,7 @@ module Twilio
|
|
|
179
179
|
end
|
|
180
180
|
|
|
181
181
|
##
|
|
182
|
-
# PLEASE NOTE that this class contains
|
|
182
|
+
# PLEASE NOTE that this class contains beta products that are subject to change. Use them with caution.
|
|
183
183
|
class ConversationContext < InstanceContext
|
|
184
184
|
##
|
|
185
185
|
# Initialize the ConversationContext
|
|
@@ -320,7 +320,7 @@ module Twilio
|
|
|
320
320
|
end
|
|
321
321
|
|
|
322
322
|
##
|
|
323
|
-
# PLEASE NOTE that this class contains
|
|
323
|
+
# PLEASE NOTE that this class contains beta products that are subject to change. Use them with caution.
|
|
324
324
|
class ConversationInstance < InstanceResource
|
|
325
325
|
##
|
|
326
326
|
# Initialize the ConversationInstance
|
|
@@ -12,7 +12,7 @@ module Twilio
|
|
|
12
12
|
class V1 < Version
|
|
13
13
|
class ConversationContext < InstanceContext
|
|
14
14
|
##
|
|
15
|
-
# PLEASE NOTE that this class contains
|
|
15
|
+
# PLEASE NOTE that this class contains beta products that are subject to change. Use them with caution.
|
|
16
16
|
class MessageList < ListResource
|
|
17
17
|
##
|
|
18
18
|
# Initialize the MessageList
|
|
@@ -150,7 +150,7 @@ module Twilio
|
|
|
150
150
|
end
|
|
151
151
|
|
|
152
152
|
##
|
|
153
|
-
# PLEASE NOTE that this class contains
|
|
153
|
+
# PLEASE NOTE that this class contains beta products that are subject to change. Use them with caution.
|
|
154
154
|
class MessagePage < Page
|
|
155
155
|
##
|
|
156
156
|
# Initialize the MessagePage
|
|
@@ -181,7 +181,7 @@ module Twilio
|
|
|
181
181
|
end
|
|
182
182
|
|
|
183
183
|
##
|
|
184
|
-
# PLEASE NOTE that this class contains
|
|
184
|
+
# PLEASE NOTE that this class contains beta products that are subject to change. Use them with caution.
|
|
185
185
|
class MessageContext < InstanceContext
|
|
186
186
|
##
|
|
187
187
|
# Initialize the MessageContext
|
|
@@ -278,7 +278,7 @@ module Twilio
|
|
|
278
278
|
end
|
|
279
279
|
|
|
280
280
|
##
|
|
281
|
-
# PLEASE NOTE that this class contains
|
|
281
|
+
# PLEASE NOTE that this class contains beta products that are subject to change. Use them with caution.
|
|
282
282
|
class MessageInstance < InstanceResource
|
|
283
283
|
##
|
|
284
284
|
# Initialize the MessageInstance
|
|
@@ -12,7 +12,7 @@ module Twilio
|
|
|
12
12
|
class V1 < Version
|
|
13
13
|
class ConversationContext < InstanceContext
|
|
14
14
|
##
|
|
15
|
-
# PLEASE NOTE that this class contains
|
|
15
|
+
# PLEASE NOTE that this class contains beta products that are subject to change. Use them with caution.
|
|
16
16
|
class ParticipantList < ListResource
|
|
17
17
|
##
|
|
18
18
|
# Initialize the ParticipantList
|
|
@@ -161,7 +161,7 @@ module Twilio
|
|
|
161
161
|
end
|
|
162
162
|
|
|
163
163
|
##
|
|
164
|
-
# PLEASE NOTE that this class contains
|
|
164
|
+
# PLEASE NOTE that this class contains beta products that are subject to change. Use them with caution.
|
|
165
165
|
class ParticipantPage < Page
|
|
166
166
|
##
|
|
167
167
|
# Initialize the ParticipantPage
|
|
@@ -192,7 +192,7 @@ module Twilio
|
|
|
192
192
|
end
|
|
193
193
|
|
|
194
194
|
##
|
|
195
|
-
# PLEASE NOTE that this class contains
|
|
195
|
+
# PLEASE NOTE that this class contains beta products that are subject to change. Use them with caution.
|
|
196
196
|
class ParticipantContext < InstanceContext
|
|
197
197
|
##
|
|
198
198
|
# Initialize the ParticipantContext
|
|
@@ -283,7 +283,7 @@ module Twilio
|
|
|
283
283
|
end
|
|
284
284
|
|
|
285
285
|
##
|
|
286
|
-
# PLEASE NOTE that this class contains
|
|
286
|
+
# PLEASE NOTE that this class contains beta products that are subject to change. Use them with caution.
|
|
287
287
|
class ParticipantInstance < InstanceResource
|
|
288
288
|
##
|
|
289
289
|
# Initialize the ParticipantInstance
|
|
@@ -12,7 +12,7 @@ module Twilio
|
|
|
12
12
|
class V1 < Version
|
|
13
13
|
class ConversationContext < InstanceContext
|
|
14
14
|
##
|
|
15
|
-
# PLEASE NOTE that this class contains
|
|
15
|
+
# PLEASE NOTE that this class contains beta products that are subject to change. Use them with caution.
|
|
16
16
|
class WebhookList < ListResource
|
|
17
17
|
##
|
|
18
18
|
# Initialize the WebhookList
|
|
@@ -156,7 +156,7 @@ module Twilio
|
|
|
156
156
|
end
|
|
157
157
|
|
|
158
158
|
##
|
|
159
|
-
# PLEASE NOTE that this class contains
|
|
159
|
+
# PLEASE NOTE that this class contains beta products that are subject to change. Use them with caution.
|
|
160
160
|
class WebhookPage < Page
|
|
161
161
|
##
|
|
162
162
|
# Initialize the WebhookPage
|
|
@@ -187,7 +187,7 @@ module Twilio
|
|
|
187
187
|
end
|
|
188
188
|
|
|
189
189
|
##
|
|
190
|
-
# PLEASE NOTE that this class contains
|
|
190
|
+
# PLEASE NOTE that this class contains beta products that are subject to change. Use them with caution.
|
|
191
191
|
class WebhookContext < InstanceContext
|
|
192
192
|
##
|
|
193
193
|
# Initialize the WebhookContext
|
|
@@ -284,7 +284,7 @@ module Twilio
|
|
|
284
284
|
end
|
|
285
285
|
|
|
286
286
|
##
|
|
287
|
-
# PLEASE NOTE that this class contains
|
|
287
|
+
# PLEASE NOTE that this class contains beta products that are subject to change. Use them with caution.
|
|
288
288
|
class WebhookInstance < InstanceResource
|
|
289
289
|
##
|
|
290
290
|
# Initialize the WebhookInstance
|
|
@@ -11,7 +11,7 @@ module Twilio
|
|
|
11
11
|
class Conversations < Domain
|
|
12
12
|
class V1 < Version
|
|
13
13
|
##
|
|
14
|
-
# PLEASE NOTE that this class contains
|
|
14
|
+
# PLEASE NOTE that this class contains beta products that are subject to change. Use them with caution.
|
|
15
15
|
class WebhookList < ListResource
|
|
16
16
|
##
|
|
17
17
|
# Initialize the WebhookList
|
|
@@ -32,7 +32,7 @@ module Twilio
|
|
|
32
32
|
end
|
|
33
33
|
|
|
34
34
|
##
|
|
35
|
-
# PLEASE NOTE that this class contains
|
|
35
|
+
# PLEASE NOTE that this class contains beta products that are subject to change. Use them with caution.
|
|
36
36
|
class WebhookPage < Page
|
|
37
37
|
##
|
|
38
38
|
# Initialize the WebhookPage
|
|
@@ -63,7 +63,7 @@ module Twilio
|
|
|
63
63
|
end
|
|
64
64
|
|
|
65
65
|
##
|
|
66
|
-
# PLEASE NOTE that this class contains
|
|
66
|
+
# PLEASE NOTE that this class contains beta products that are subject to change. Use them with caution.
|
|
67
67
|
class WebhookContext < InstanceContext
|
|
68
68
|
##
|
|
69
69
|
# Initialize the WebhookContext
|
|
@@ -141,7 +141,7 @@ module Twilio
|
|
|
141
141
|
end
|
|
142
142
|
|
|
143
143
|
##
|
|
144
|
-
# PLEASE NOTE that this class contains
|
|
144
|
+
# PLEASE NOTE that this class contains beta products that are subject to change. Use them with caution.
|
|
145
145
|
class WebhookInstance < InstanceResource
|
|
146
146
|
##
|
|
147
147
|
# Initialize the WebhookInstance
|