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
|
@@ -16,7 +16,7 @@ module Twilio
|
|
|
16
16
|
# Initialize the ConnectAppList
|
|
17
17
|
# @param [Version] version Version that contains the resource
|
|
18
18
|
# @param [String] account_sid The SID of the
|
|
19
|
-
# [Account](https://www.twilio.com/docs/api/
|
|
19
|
+
# [Account](https://www.twilio.com/docs/iam/api/account) that created the
|
|
20
20
|
# ConnectApp resource.
|
|
21
21
|
# @return [ConnectAppList] ConnectAppList
|
|
22
22
|
def initialize(version, account_sid: nil)
|
|
@@ -150,7 +150,7 @@ module Twilio
|
|
|
150
150
|
# Initialize the ConnectAppContext
|
|
151
151
|
# @param [Version] version Version that contains the resource
|
|
152
152
|
# @param [String] account_sid The SID of the
|
|
153
|
-
# [Account](https://www.twilio.com/docs/api/
|
|
153
|
+
# [Account](https://www.twilio.com/docs/iam/api/account) that created the
|
|
154
154
|
# ConnectApp resource to fetch.
|
|
155
155
|
# @param [String] sid The Twilio-provided string that uniquely identifies the
|
|
156
156
|
# ConnectApp resource to fetch.
|
|
@@ -255,7 +255,7 @@ 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] account_sid The SID of the
|
|
258
|
-
# [Account](https://www.twilio.com/docs/api/
|
|
258
|
+
# [Account](https://www.twilio.com/docs/iam/api/account) that created the
|
|
259
259
|
# ConnectApp resource.
|
|
260
260
|
# @param [String] sid The Twilio-provided string that uniquely identifies the
|
|
261
261
|
# ConnectApp resource to fetch.
|
|
@@ -16,7 +16,7 @@ module Twilio
|
|
|
16
16
|
# Initialize the IncomingPhoneNumberList
|
|
17
17
|
# @param [Version] version Version that contains the resource
|
|
18
18
|
# @param [String] account_sid The SID of the
|
|
19
|
-
# [Account](https://www.twilio.com/docs/api/
|
|
19
|
+
# [Account](https://www.twilio.com/docs/iam/api/account) that created this
|
|
20
20
|
# IncomingPhoneNumber resource.
|
|
21
21
|
# @return [IncomingPhoneNumberList] IncomingPhoneNumberList
|
|
22
22
|
def initialize(version, account_sid: nil)
|
|
@@ -331,7 +331,7 @@ module Twilio
|
|
|
331
331
|
# Initialize the IncomingPhoneNumberContext
|
|
332
332
|
# @param [Version] version Version that contains the resource
|
|
333
333
|
# @param [String] account_sid The SID of the
|
|
334
|
-
# [Account](https://www.twilio.com/docs/api/
|
|
334
|
+
# [Account](https://www.twilio.com/docs/iam/api/account) that created the
|
|
335
335
|
# IncomingPhoneNumber resource to fetch.
|
|
336
336
|
# @param [String] sid The Twilio-provided string that uniquely identifies the
|
|
337
337
|
# IncomingPhoneNumber resource to fetch.
|
|
@@ -350,7 +350,7 @@ module Twilio
|
|
|
350
350
|
##
|
|
351
351
|
# Update the IncomingPhoneNumberInstance
|
|
352
352
|
# @param [String] account_sid The SID of the
|
|
353
|
-
# [Account](https://www.twilio.com/docs/api/
|
|
353
|
+
# [Account](https://www.twilio.com/docs/iam/api/account) that created the
|
|
354
354
|
# IncomingPhoneNumber resource to update. For more information, see [Exchanging
|
|
355
355
|
# Numbers Between
|
|
356
356
|
# Subaccounts](https://www.twilio.com/docs/iam/api/subaccounts#exchanging-numbers).
|
|
@@ -520,7 +520,7 @@ module Twilio
|
|
|
520
520
|
# @param [Version] version Version that contains the resource
|
|
521
521
|
# @param [Hash] payload payload that contains response from Twilio
|
|
522
522
|
# @param [String] account_sid The SID of the
|
|
523
|
-
# [Account](https://www.twilio.com/docs/api/
|
|
523
|
+
# [Account](https://www.twilio.com/docs/iam/api/account) that created this
|
|
524
524
|
# IncomingPhoneNumber resource.
|
|
525
525
|
# @param [String] sid The Twilio-provided string that uniquely identifies the
|
|
526
526
|
# IncomingPhoneNumber resource to fetch.
|
|
@@ -761,7 +761,7 @@ module Twilio
|
|
|
761
761
|
##
|
|
762
762
|
# Update the IncomingPhoneNumberInstance
|
|
763
763
|
# @param [String] account_sid The SID of the
|
|
764
|
-
# [Account](https://www.twilio.com/docs/api/
|
|
764
|
+
# [Account](https://www.twilio.com/docs/iam/api/account) that created the
|
|
765
765
|
# IncomingPhoneNumber resource to update. For more information, see [Exchanging
|
|
766
766
|
# Numbers Between
|
|
767
767
|
# Subaccounts](https://www.twilio.com/docs/iam/api/subaccounts#exchanging-numbers).
|
|
@@ -19,7 +19,7 @@ module Twilio
|
|
|
19
19
|
# Initialize the AssignedAddOnList
|
|
20
20
|
# @param [Version] version Version that contains the resource
|
|
21
21
|
# @param [String] account_sid The SID of the
|
|
22
|
-
# [Account](https://www.twilio.com/docs/api/
|
|
22
|
+
# [Account](https://www.twilio.com/docs/iam/api/account) that created the
|
|
23
23
|
# resource.
|
|
24
24
|
# @param [String] resource_sid The SID of the Phone Number to which the Add-on is
|
|
25
25
|
# assigned.
|
|
@@ -187,8 +187,8 @@ module Twilio
|
|
|
187
187
|
# Initialize the AssignedAddOnContext
|
|
188
188
|
# @param [Version] version Version that contains the resource
|
|
189
189
|
# @param [String] account_sid The SID of the
|
|
190
|
-
# [Account](https://www.twilio.com/docs/api/
|
|
191
|
-
#
|
|
190
|
+
# [Account](https://www.twilio.com/docs/iam/api/account) that created the resource
|
|
191
|
+
# to fetch.
|
|
192
192
|
# @param [String] resource_sid The SID of the Phone Number to which the Add-on is
|
|
193
193
|
# assigned.
|
|
194
194
|
# @param [String] sid The Twilio-provided string that uniquely identifies the
|
|
@@ -285,7 +285,7 @@ module Twilio
|
|
|
285
285
|
# @param [Version] version Version that contains the resource
|
|
286
286
|
# @param [Hash] payload payload that contains response from Twilio
|
|
287
287
|
# @param [String] account_sid The SID of the
|
|
288
|
-
# [Account](https://www.twilio.com/docs/api/
|
|
288
|
+
# [Account](https://www.twilio.com/docs/iam/api/account) that created the
|
|
289
289
|
# resource.
|
|
290
290
|
# @param [String] resource_sid The SID of the Phone Number to which the Add-on is
|
|
291
291
|
# assigned.
|
|
@@ -20,7 +20,7 @@ module Twilio
|
|
|
20
20
|
# Initialize the AssignedAddOnExtensionList
|
|
21
21
|
# @param [Version] version Version that contains the resource
|
|
22
22
|
# @param [String] account_sid The SID of the
|
|
23
|
-
# [Account](https://www.twilio.com/docs/api/
|
|
23
|
+
# [Account](https://www.twilio.com/docs/iam/api/account) that created the
|
|
24
24
|
# resource.
|
|
25
25
|
# @param [String] resource_sid The SID of the Phone Number to which the Add-on is
|
|
26
26
|
# assigned.
|
|
@@ -172,8 +172,8 @@ module Twilio
|
|
|
172
172
|
# Initialize the AssignedAddOnExtensionContext
|
|
173
173
|
# @param [Version] version Version that contains the resource
|
|
174
174
|
# @param [String] account_sid The SID of the
|
|
175
|
-
# [Account](https://www.twilio.com/docs/api/
|
|
176
|
-
#
|
|
175
|
+
# [Account](https://www.twilio.com/docs/iam/api/account) that created the resource
|
|
176
|
+
# to fetch.
|
|
177
177
|
# @param [String] resource_sid The SID of the Phone Number to which the Add-on is
|
|
178
178
|
# assigned.
|
|
179
179
|
# @param [String] assigned_add_on_sid The SID that uniquely identifies the
|
|
@@ -239,7 +239,7 @@ module Twilio
|
|
|
239
239
|
# @param [Version] version Version that contains the resource
|
|
240
240
|
# @param [Hash] payload payload that contains response from Twilio
|
|
241
241
|
# @param [String] account_sid The SID of the
|
|
242
|
-
# [Account](https://www.twilio.com/docs/api/
|
|
242
|
+
# [Account](https://www.twilio.com/docs/iam/api/account) that created the
|
|
243
243
|
# resource.
|
|
244
244
|
# @param [String] resource_sid The SID of the Phone Number to which the Add-on is
|
|
245
245
|
# assigned.
|
|
@@ -17,7 +17,7 @@ module Twilio
|
|
|
17
17
|
# Initialize the LocalList
|
|
18
18
|
# @param [Version] version Version that contains the resource
|
|
19
19
|
# @param [String] account_sid The SID of the
|
|
20
|
-
# [Account](https://www.twilio.com/docs/api/
|
|
20
|
+
# [Account](https://www.twilio.com/docs/iam/api/account) that created this
|
|
21
21
|
# IncomingPhoneNumber resource.
|
|
22
22
|
# @return [LocalList] LocalList
|
|
23
23
|
def initialize(version, account_sid: nil)
|
|
@@ -279,7 +279,7 @@ module Twilio
|
|
|
279
279
|
# @param [Version] version Version that contains the resource
|
|
280
280
|
# @param [Hash] payload payload that contains response from Twilio
|
|
281
281
|
# @param [String] account_sid The SID of the
|
|
282
|
-
# [Account](https://www.twilio.com/docs/api/
|
|
282
|
+
# [Account](https://www.twilio.com/docs/iam/api/account) that created this
|
|
283
283
|
# IncomingPhoneNumber resource.
|
|
284
284
|
# @return [LocalInstance] LocalInstance
|
|
285
285
|
def initialize(version, payload, account_sid: nil)
|
|
@@ -17,7 +17,7 @@ module Twilio
|
|
|
17
17
|
# Initialize the MobileList
|
|
18
18
|
# @param [Version] version Version that contains the resource
|
|
19
19
|
# @param [String] account_sid The SID of the
|
|
20
|
-
# [Account](https://www.twilio.com/docs/api/
|
|
20
|
+
# [Account](https://www.twilio.com/docs/iam/api/account) that created this
|
|
21
21
|
# IncomingPhoneNumber resource.
|
|
22
22
|
# @return [MobileList] MobileList
|
|
23
23
|
def initialize(version, account_sid: nil)
|
|
@@ -278,7 +278,7 @@ module Twilio
|
|
|
278
278
|
# @param [Version] version Version that contains the resource
|
|
279
279
|
# @param [Hash] payload payload that contains response from Twilio
|
|
280
280
|
# @param [String] account_sid The SID of the
|
|
281
|
-
# [Account](https://www.twilio.com/docs/api/
|
|
281
|
+
# [Account](https://www.twilio.com/docs/iam/api/account) that created this
|
|
282
282
|
# IncomingPhoneNumber resource.
|
|
283
283
|
# @return [MobileInstance] MobileInstance
|
|
284
284
|
def initialize(version, payload, account_sid: nil)
|
|
@@ -17,7 +17,7 @@ module Twilio
|
|
|
17
17
|
# Initialize the TollFreeList
|
|
18
18
|
# @param [Version] version Version that contains the resource
|
|
19
19
|
# @param [String] account_sid The SID of the
|
|
20
|
-
# [Account](https://www.twilio.com/docs/api/
|
|
20
|
+
# [Account](https://www.twilio.com/docs/iam/api/account) that created this
|
|
21
21
|
# IncomingPhoneNumber resource.
|
|
22
22
|
# @return [TollFreeList] TollFreeList
|
|
23
23
|
def initialize(version, account_sid: nil)
|
|
@@ -278,7 +278,7 @@ module Twilio
|
|
|
278
278
|
# @param [Version] version Version that contains the resource
|
|
279
279
|
# @param [Hash] payload payload that contains response from Twilio
|
|
280
280
|
# @param [String] account_sid The SID of the
|
|
281
|
-
# [Account](https://www.twilio.com/docs/api/
|
|
281
|
+
# [Account](https://www.twilio.com/docs/iam/api/account) that created this
|
|
282
282
|
# IncomingPhoneNumber resource.
|
|
283
283
|
# @return [TollFreeInstance] TollFreeInstance
|
|
284
284
|
def initialize(version, payload, account_sid: nil)
|
|
@@ -149,7 +149,7 @@ module Twilio
|
|
|
149
149
|
# Initialize the KeyContext
|
|
150
150
|
# @param [Version] version Version that contains the resource
|
|
151
151
|
# @param [String] account_sid The SID of the
|
|
152
|
-
# [Account](https://www.twilio.com/docs/api/
|
|
152
|
+
# [Account](https://www.twilio.com/docs/iam/api/account) that created the Key
|
|
153
153
|
# resource to fetch.
|
|
154
154
|
# @param [String] sid The Twilio-provided string that uniquely identifies the Key
|
|
155
155
|
# resource to fetch.
|
|
@@ -16,7 +16,7 @@ module Twilio
|
|
|
16
16
|
# Initialize the MessageList
|
|
17
17
|
# @param [Version] version Version that contains the resource
|
|
18
18
|
# @param [String] account_sid The SID of the
|
|
19
|
-
# [Account](https://www.twilio.com/docs/api/
|
|
19
|
+
# [Account](https://www.twilio.com/docs/iam/api/account) that sent the message
|
|
20
20
|
# that created the resource.
|
|
21
21
|
# @return [MessageList] MessageList
|
|
22
22
|
def initialize(version, account_sid: nil)
|
|
@@ -61,8 +61,8 @@ module Twilio
|
|
|
61
61
|
# @param [Boolean] provide_feedback Whether to confirm delivery of the message.
|
|
62
62
|
# Set this value to `true` if you are sending messages that have a trackable user
|
|
63
63
|
# action and you intend to confirm delivery of the message using the [Message
|
|
64
|
-
# Feedback API](https://www.twilio.com/docs/sms/api/message-feedback).
|
|
65
|
-
# parameter is `false` by default.
|
|
64
|
+
# Feedback API](https://www.twilio.com/docs/sms/api/message-feedback-resource).
|
|
65
|
+
# This parameter is `false` by default.
|
|
66
66
|
# @param [String] validity_period How long in seconds the message can remain in
|
|
67
67
|
# our outgoing message queue. After this period elapses, the message fails and we
|
|
68
68
|
# call your status callback. Can be between 1 and the default value of 14,400
|
|
@@ -75,7 +75,7 @@ module Twilio
|
|
|
75
75
|
# @param [String] from A Twilio phone number in
|
|
76
76
|
# [E.164](https://www.twilio.com/docs/glossary/what-e164) format, an [alphanumeric
|
|
77
77
|
# sender
|
|
78
|
-
# ID](https://www.twilio.com/docs/sms/send-messages#use-an-alphanumeric-sender-id), or a [Channel Endpoint address](https://www.twilio.com/docs/sms/channels#channel-addresses) that is enabled for the type of message you want to send. Phone numbers or [short codes](https://www.twilio.com/docs/sms/api/short-
|
|
78
|
+
# ID](https://www.twilio.com/docs/sms/send-messages#use-an-alphanumeric-sender-id), or a [Channel Endpoint address](https://www.twilio.com/docs/sms/channels#channel-addresses) that is enabled for the type of message you want to send. Phone numbers or [short codes](https://www.twilio.com/docs/sms/api/short-code) purchased from Twilio also work here. You cannot, for example, spoof messages from a private cell phone number. If you are using `messaging_service_sid`, this parameter must be empty.
|
|
79
79
|
# @param [String] messaging_service_sid The SID of the [Messaging
|
|
80
80
|
# Service](https://www.twilio.com/docs/sms/services#send-a-message-with-copilot)
|
|
81
81
|
# you want to associate with the Message. Set this parameter to use the [Messaging
|
|
@@ -281,7 +281,7 @@ module Twilio
|
|
|
281
281
|
# Initialize the MessageContext
|
|
282
282
|
# @param [Version] version Version that contains the resource
|
|
283
283
|
# @param [String] account_sid The SID of the
|
|
284
|
-
# [Account](https://www.twilio.com/docs/api/
|
|
284
|
+
# [Account](https://www.twilio.com/docs/iam/api/account) that created the Message
|
|
285
285
|
# resource to fetch.
|
|
286
286
|
# @param [String] sid The Twilio-provided string that uniquely identifies the
|
|
287
287
|
# Message resource to fetch.
|
|
@@ -392,7 +392,7 @@ module Twilio
|
|
|
392
392
|
# @param [Version] version Version that contains the resource
|
|
393
393
|
# @param [Hash] payload payload that contains response from Twilio
|
|
394
394
|
# @param [String] account_sid The SID of the
|
|
395
|
-
# [Account](https://www.twilio.com/docs/api/
|
|
395
|
+
# [Account](https://www.twilio.com/docs/iam/api/account) that sent the message
|
|
396
396
|
# that created the resource.
|
|
397
397
|
# @param [String] sid The Twilio-provided string that uniquely identifies the
|
|
398
398
|
# Message resource to fetch.
|
|
@@ -17,7 +17,7 @@ module Twilio
|
|
|
17
17
|
# Initialize the FeedbackList
|
|
18
18
|
# @param [Version] version Version that contains the resource
|
|
19
19
|
# @param [String] account_sid The SID of the
|
|
20
|
-
# [Account](https://www.twilio.com/docs/api/
|
|
20
|
+
# [Account](https://www.twilio.com/docs/iam/api/account) that created the
|
|
21
21
|
# MessageFeedback resource.
|
|
22
22
|
# @param [String] message_sid The SID of the Message resource for which the
|
|
23
23
|
# feedback was provided.
|
|
@@ -35,9 +35,7 @@ module Twilio
|
|
|
35
35
|
# Request is executed immediately.
|
|
36
36
|
# @param [feedback.Outcome] outcome Whether the feedback has arrived. Can be:
|
|
37
37
|
# `unconfirmed` or `confirmed`. If `provide_feedback`=`true` in [the initial HTTP
|
|
38
|
-
# POST](https://www.twilio.com/docs/sms/api/message#create-a-message-resource),
|
|
39
|
-
# the initial value of this property is `unconfirmed`. After the message arrives,
|
|
40
|
-
# update the value to `confirmed`.
|
|
38
|
+
# POST](https://www.twilio.com/docs/sms/api/message-resource#create-a-message-resource), the initial value of this property is `unconfirmed`. After the message arrives, update the value to `confirmed`.
|
|
41
39
|
# @return [FeedbackInstance] Newly created FeedbackInstance
|
|
42
40
|
def create(outcome: :unset)
|
|
43
41
|
data = Twilio::Values.of({'Outcome' => outcome, })
|
|
@@ -103,7 +101,7 @@ module Twilio
|
|
|
103
101
|
# @param [Version] version Version that contains the resource
|
|
104
102
|
# @param [Hash] payload payload that contains response from Twilio
|
|
105
103
|
# @param [String] account_sid The SID of the
|
|
106
|
-
# [Account](https://www.twilio.com/docs/api/
|
|
104
|
+
# [Account](https://www.twilio.com/docs/iam/api/account) that created the
|
|
107
105
|
# MessageFeedback resource.
|
|
108
106
|
# @param [String] message_sid The SID of the Message resource for which the
|
|
109
107
|
# feedback was provided.
|
|
@@ -17,7 +17,7 @@ module Twilio
|
|
|
17
17
|
# Initialize the MediaList
|
|
18
18
|
# @param [Version] version Version that contains the resource
|
|
19
19
|
# @param [String] account_sid The SID of the
|
|
20
|
-
# [Account](https://www.twilio.com/docs/api/
|
|
20
|
+
# [Account](https://www.twilio.com/docs/iam/api/account) that created this Media
|
|
21
21
|
# resource.
|
|
22
22
|
# @param [String] message_sid The unique string that that we created to identify
|
|
23
23
|
# the Message resource.
|
|
@@ -181,7 +181,7 @@ module Twilio
|
|
|
181
181
|
# Initialize the MediaContext
|
|
182
182
|
# @param [Version] version Version that contains the resource
|
|
183
183
|
# @param [String] account_sid The SID of the
|
|
184
|
-
# [Account](https://www.twilio.com/docs/api/
|
|
184
|
+
# [Account](https://www.twilio.com/docs/iam/api/account) that created the Media
|
|
185
185
|
# resource(s) to fetch.
|
|
186
186
|
# @param [String] message_sid The SID of the Message resource that this Media
|
|
187
187
|
# resource belongs to.
|
|
@@ -245,7 +245,7 @@ module Twilio
|
|
|
245
245
|
# @param [Version] version Version that contains the resource
|
|
246
246
|
# @param [Hash] payload payload that contains response from Twilio
|
|
247
247
|
# @param [String] account_sid The SID of the
|
|
248
|
-
# [Account](https://www.twilio.com/docs/api/
|
|
248
|
+
# [Account](https://www.twilio.com/docs/iam/api/account) that created this Media
|
|
249
249
|
# resource.
|
|
250
250
|
# @param [String] message_sid The unique string that that we created to identify
|
|
251
251
|
# the Message resource.
|
|
@@ -16,7 +16,7 @@ module Twilio
|
|
|
16
16
|
# Initialize the NotificationList
|
|
17
17
|
# @param [Version] version Version that contains the resource
|
|
18
18
|
# @param [String] account_sid The SID of the
|
|
19
|
-
# [Account](https://www.twilio.com/docs/api/
|
|
19
|
+
# [Account](https://www.twilio.com/docs/iam/api/account) that created the
|
|
20
20
|
# Notification resource.
|
|
21
21
|
# @return [NotificationList] NotificationList
|
|
22
22
|
def initialize(version, account_sid: nil)
|
|
@@ -185,7 +185,7 @@ module Twilio
|
|
|
185
185
|
# Initialize the NotificationContext
|
|
186
186
|
# @param [Version] version Version that contains the resource
|
|
187
187
|
# @param [String] account_sid The SID of the
|
|
188
|
-
# [Account](https://www.twilio.com/docs/api/
|
|
188
|
+
# [Account](https://www.twilio.com/docs/iam/api/account) that created the
|
|
189
189
|
# Notification resource to fetch.
|
|
190
190
|
# @param [String] sid The Twilio-provided string that uniquely identifies the
|
|
191
191
|
# Notification resource to fetch.
|
|
@@ -246,7 +246,7 @@ module Twilio
|
|
|
246
246
|
# @param [Version] version Version that contains the resource
|
|
247
247
|
# @param [Hash] payload payload that contains response from Twilio
|
|
248
248
|
# @param [String] account_sid The SID of the
|
|
249
|
-
# [Account](https://www.twilio.com/docs/api/
|
|
249
|
+
# [Account](https://www.twilio.com/docs/iam/api/account) that created the
|
|
250
250
|
# Notification resource.
|
|
251
251
|
# @param [String] sid The Twilio-provided string that uniquely identifies the
|
|
252
252
|
# Notification resource to fetch.
|
|
@@ -16,7 +16,7 @@ module Twilio
|
|
|
16
16
|
# Initialize the OutgoingCallerIdList
|
|
17
17
|
# @param [Version] version Version that contains the resource
|
|
18
18
|
# @param [String] account_sid The SID of the
|
|
19
|
-
# [Account](https://www.twilio.com/docs/api/
|
|
19
|
+
# [Account](https://www.twilio.com/docs/iam/api/account) that created the
|
|
20
20
|
# OutgoingCallerId resource.
|
|
21
21
|
# @return [OutgoingCallerIdList] OutgoingCallerIdList
|
|
22
22
|
def initialize(version, account_sid: nil)
|
|
@@ -173,7 +173,7 @@ module Twilio
|
|
|
173
173
|
# Initialize the OutgoingCallerIdContext
|
|
174
174
|
# @param [Version] version Version that contains the resource
|
|
175
175
|
# @param [String] account_sid The SID of the
|
|
176
|
-
# [Account](https://www.twilio.com/docs/api/
|
|
176
|
+
# [Account](https://www.twilio.com/docs/iam/api/account) that created the
|
|
177
177
|
# OutgoingCallerId resource to fetch.
|
|
178
178
|
# @param [String] sid The Twilio-provided string that uniquely identifies the
|
|
179
179
|
# OutgoingCallerId resource to fetch.
|
|
@@ -256,7 +256,7 @@ module Twilio
|
|
|
256
256
|
# @param [Version] version Version that contains the resource
|
|
257
257
|
# @param [Hash] payload payload that contains response from Twilio
|
|
258
258
|
# @param [String] account_sid The SID of the
|
|
259
|
-
# [Account](https://www.twilio.com/docs/api/
|
|
259
|
+
# [Account](https://www.twilio.com/docs/iam/api/account) that created the
|
|
260
260
|
# OutgoingCallerId resource.
|
|
261
261
|
# @param [String] sid The Twilio-provided string that uniquely identifies the
|
|
262
262
|
# OutgoingCallerId resource to fetch.
|
|
@@ -16,7 +16,7 @@ module Twilio
|
|
|
16
16
|
# Initialize the QueueList
|
|
17
17
|
# @param [Version] version Version that contains the resource
|
|
18
18
|
# @param [String] account_sid The SID of the
|
|
19
|
-
# [Account](https://www.twilio.com/docs/api/
|
|
19
|
+
# [Account](https://www.twilio.com/docs/iam/api/account) that created this Queue
|
|
20
20
|
# resource.
|
|
21
21
|
# @return [QueueList] QueueList
|
|
22
22
|
def initialize(version, account_sid: nil)
|
|
@@ -170,7 +170,7 @@ module Twilio
|
|
|
170
170
|
# Initialize the QueueContext
|
|
171
171
|
# @param [Version] version Version that contains the resource
|
|
172
172
|
# @param [String] account_sid The SID of the
|
|
173
|
-
# [Account](https://www.twilio.com/docs/api/
|
|
173
|
+
# [Account](https://www.twilio.com/docs/iam/api/account) that created the Queue
|
|
174
174
|
# resource(s) to fetch.
|
|
175
175
|
# @param [String] sid The Twilio-provided string that uniquely identifies the
|
|
176
176
|
# Queue resource to fetch
|
|
@@ -270,7 +270,7 @@ module Twilio
|
|
|
270
270
|
# @param [Version] version Version that contains the resource
|
|
271
271
|
# @param [Hash] payload payload that contains response from Twilio
|
|
272
272
|
# @param [String] account_sid The SID of the
|
|
273
|
-
# [Account](https://www.twilio.com/docs/api/
|
|
273
|
+
# [Account](https://www.twilio.com/docs/iam/api/account) that created this Queue
|
|
274
274
|
# resource.
|
|
275
275
|
# @param [String] sid The Twilio-provided string that uniquely identifies the
|
|
276
276
|
# Queue resource to fetch
|
|
@@ -17,7 +17,7 @@ module Twilio
|
|
|
17
17
|
# Initialize the MemberList
|
|
18
18
|
# @param [Version] version Version that contains the resource
|
|
19
19
|
# @param [String] account_sid The SID of the
|
|
20
|
-
# [Account](https://www.twilio.com/docs/api/
|
|
20
|
+
# [Account](https://www.twilio.com/docs/iam/api/account) that created this Queue
|
|
21
21
|
# resource.
|
|
22
22
|
# @param [String] queue_sid The SID of the Queue the member is in.
|
|
23
23
|
# @return [MemberList] MemberList
|
|
@@ -157,11 +157,11 @@ module Twilio
|
|
|
157
157
|
# Initialize the MemberContext
|
|
158
158
|
# @param [Version] version Version that contains the resource
|
|
159
159
|
# @param [String] account_sid The SID of the
|
|
160
|
-
# [Account](https://www.twilio.com/docs/api/
|
|
160
|
+
# [Account](https://www.twilio.com/docs/iam/api/account) that created the Member
|
|
161
161
|
# resource(s) to fetch.
|
|
162
162
|
# @param [String] queue_sid The SID of the Queue in which to find the members to
|
|
163
163
|
# fetch.
|
|
164
|
-
# @param [String] call_sid The [Call](https://www.twilio.com/docs/api/
|
|
164
|
+
# @param [String] call_sid The [Call](https://www.twilio.com/docs/voice/api/call)
|
|
165
165
|
# SID of the resource(s) to fetch.
|
|
166
166
|
# @return [MemberContext] MemberContext
|
|
167
167
|
def initialize(version, account_sid, queue_sid, call_sid)
|
|
@@ -239,10 +239,10 @@ module Twilio
|
|
|
239
239
|
# @param [Version] version Version that contains the resource
|
|
240
240
|
# @param [Hash] payload payload that contains response from Twilio
|
|
241
241
|
# @param [String] account_sid The SID of the
|
|
242
|
-
# [Account](https://www.twilio.com/docs/api/
|
|
242
|
+
# [Account](https://www.twilio.com/docs/iam/api/account) that created this Queue
|
|
243
243
|
# resource.
|
|
244
244
|
# @param [String] queue_sid The SID of the Queue the member is in.
|
|
245
|
-
# @param [String] call_sid The [Call](https://www.twilio.com/docs/api/
|
|
245
|
+
# @param [String] call_sid The [Call](https://www.twilio.com/docs/voice/api/call)
|
|
246
246
|
# SID of the resource(s) to fetch.
|
|
247
247
|
# @return [MemberInstance] MemberInstance
|
|
248
248
|
def initialize(version, payload, account_sid: nil, queue_sid: nil, call_sid: nil)
|
|
@@ -16,7 +16,7 @@ module Twilio
|
|
|
16
16
|
# Initialize the RecordingList
|
|
17
17
|
# @param [Version] version Version that contains the resource
|
|
18
18
|
# @param [String] account_sid The SID of the
|
|
19
|
-
# [Account](https://www.twilio.com/docs/api/
|
|
19
|
+
# [Account](https://www.twilio.com/docs/iam/api/account) that created the
|
|
20
20
|
# Recording resource.
|
|
21
21
|
# @return [RecordingList] RecordingList
|
|
22
22
|
def initialize(version, account_sid: nil)
|
|
@@ -34,7 +34,7 @@ module Twilio
|
|
|
34
34
|
# @param [Time] date_created_before The `YYYY-MM-DD` value of the resources to read
|
|
35
35
|
# @param [Time] date_created The `YYYY-MM-DD` value of the resources to read
|
|
36
36
|
# @param [Time] date_created_after The `YYYY-MM-DD` value of the resources to read
|
|
37
|
-
# @param [String] call_sid The [Call](https://www.twilio.com/docs/api/
|
|
37
|
+
# @param [String] call_sid The [Call](https://www.twilio.com/docs/voice/api/call)
|
|
38
38
|
# SID of the resources to read.
|
|
39
39
|
# @param [String] conference_sid The Conference SID that identifies the conference
|
|
40
40
|
# associated with the recording to read.
|
|
@@ -64,7 +64,7 @@ module Twilio
|
|
|
64
64
|
# @param [Time] date_created_before The `YYYY-MM-DD` value of the resources to read
|
|
65
65
|
# @param [Time] date_created The `YYYY-MM-DD` value of the resources to read
|
|
66
66
|
# @param [Time] date_created_after The `YYYY-MM-DD` value of the resources to read
|
|
67
|
-
# @param [String] call_sid The [Call](https://www.twilio.com/docs/api/
|
|
67
|
+
# @param [String] call_sid The [Call](https://www.twilio.com/docs/voice/api/call)
|
|
68
68
|
# SID of the resources to read.
|
|
69
69
|
# @param [String] conference_sid The Conference SID that identifies the conference
|
|
70
70
|
# associated with the recording to read.
|
|
@@ -110,7 +110,7 @@ module Twilio
|
|
|
110
110
|
# @param [Time] date_created_before The `YYYY-MM-DD` value of the resources to read
|
|
111
111
|
# @param [Time] date_created The `YYYY-MM-DD` value of the resources to read
|
|
112
112
|
# @param [Time] date_created_after The `YYYY-MM-DD` value of the resources to read
|
|
113
|
-
# @param [String] call_sid The [Call](https://www.twilio.com/docs/api/
|
|
113
|
+
# @param [String] call_sid The [Call](https://www.twilio.com/docs/voice/api/call)
|
|
114
114
|
# SID of the resources to read.
|
|
115
115
|
# @param [String] conference_sid The Conference SID that identifies the conference
|
|
116
116
|
# associated with the recording to read.
|
|
@@ -191,7 +191,7 @@ module Twilio
|
|
|
191
191
|
# Initialize the RecordingContext
|
|
192
192
|
# @param [Version] version Version that contains the resource
|
|
193
193
|
# @param [String] account_sid The SID of the
|
|
194
|
-
# [Account](https://www.twilio.com/docs/api/
|
|
194
|
+
# [Account](https://www.twilio.com/docs/iam/api/account) that created the
|
|
195
195
|
# Recording resource to fetch.
|
|
196
196
|
# @param [String] sid The Twilio-provided string that uniquely identifies the
|
|
197
197
|
# Recording resource to fetch.
|
|
@@ -295,7 +295,7 @@ module Twilio
|
|
|
295
295
|
# @param [Version] version Version that contains the resource
|
|
296
296
|
# @param [Hash] payload payload that contains response from Twilio
|
|
297
297
|
# @param [String] account_sid The SID of the
|
|
298
|
-
# [Account](https://www.twilio.com/docs/api/
|
|
298
|
+
# [Account](https://www.twilio.com/docs/iam/api/account) that created the
|
|
299
299
|
# Recording resource.
|
|
300
300
|
# @param [String] sid The Twilio-provided string that uniquely identifies the
|
|
301
301
|
# Recording resource to fetch.
|