twilio-ruby 5.20.1 → 5.21.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGES.md +22 -0
- data/README.md +2 -2
- data/lib/twilio-ruby/rest/accounts/v1/credential.rb +4 -4
- data/lib/twilio-ruby/rest/accounts/v1/credential/aws.rb +21 -20
- data/lib/twilio-ruby/rest/accounts/v1/credential/public_key.rb +21 -19
- data/lib/twilio-ruby/rest/api.rb +8 -7
- data/lib/twilio-ruby/rest/api/v2010/account/address/dependent_phone_number.rb +32 -28
- data/lib/twilio-ruby/rest/api/v2010/account/call/notification.rb +56 -37
- data/lib/twilio-ruby/rest/api/v2010/account/call/recording.rb +27 -27
- data/lib/twilio-ruby/rest/api/v2010/account/conference/participant.rb +248 -165
- data/lib/twilio-ruby/rest/api/v2010/account/conference/recording.rb +35 -35
- data/lib/twilio-ruby/rest/api/v2010/account/key.rb +15 -11
- data/lib/twilio-ruby/rest/api/v2010/account/message.rb +104 -114
- data/lib/twilio-ruby/rest/api/v2010/account/message/media.rb +4 -4
- data/lib/twilio-ruby/rest/api/v2010/account/recording.rb +48 -46
- data/lib/twilio-ruby/rest/api/v2010/account/recording/add_on_result.rb +29 -22
- data/lib/twilio-ruby/rest/api/v2010/account/recording/add_on_result/payload.rb +36 -28
- data/lib/twilio-ruby/rest/api/v2010/account/recording/transcription.rb +35 -21
- data/lib/twilio-ruby/rest/api/v2010/account/transcription.rb +24 -20
- data/lib/twilio-ruby/rest/api/v2010/account/validation_request.rb +27 -27
- data/lib/twilio-ruby/rest/authy/v1/service/entity/factor.rb +7 -0
- data/lib/twilio-ruby/rest/authy/v1/service/entity/factor/challenge.rb +7 -0
- data/lib/twilio-ruby/rest/client.rb +8 -7
- data/lib/twilio-ruby/rest/fax.rb +2 -1
- data/lib/twilio-ruby/rest/fax/v1.rb +2 -1
- data/lib/twilio-ruby/rest/fax/v1/fax.rb +85 -75
- data/lib/twilio-ruby/rest/fax/v1/fax/fax_media.rb +16 -16
- data/lib/twilio-ruby/rest/verify/v1/service.rb +8 -2
- data/lib/twilio-ruby/rest/verify/v1/service/verification.rb +120 -3
- data/lib/twilio-ruby/rest/video/v1/composition.rb +1 -1
- data/lib/twilio-ruby/version.rb +1 -1
- data/spec/integration/authy/v1/service/entity/factor/challenge_spec.rb +5 -0
- data/spec/integration/authy/v1/service/entity/factor_spec.rb +4 -0
- data/spec/integration/verify/v1/service/verification_spec.rb +107 -1
- data/spec/integration/video/v1/composition_spec.rb +28 -3
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: e76b1c0b609320ed1401564614b95de7c3918233d476cf0643b0db1a04e777c7
|
4
|
+
data.tar.gz: 4655a995ac910997607ad48f315885bae18e6414b099a1664016049b97c61115
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 60d475fe9b525b2cef55c07d4d0fc8b9fd9f352b9efd7e297fc9bbaf1ec247bcbc7e500a4b2355a8ef0ac4b1b25d939899235e075b9eddf85b055078d0e968ef
|
7
|
+
data.tar.gz: 725b04b2d2832e64e4769c1c63ee0e0f48d42f26d0547eca8c9015bf83a69de67b533fc27c8af2c6b9f7a4b6922c8066ef9af56d5a2c9b8971ce5fa9f6710c54
|
data/CHANGES.md
CHANGED
@@ -1,6 +1,28 @@
|
|
1
1
|
twilio-ruby changelog
|
2
2
|
=====================
|
3
3
|
|
4
|
+
[2019-03-01] Version 5.21.0
|
5
|
+
----------------------------
|
6
|
+
**Api**
|
7
|
+
- Make conference participant preview parameters public
|
8
|
+
|
9
|
+
**Authy**
|
10
|
+
- Added support for FactorType and FactorStrength for Factors and Challenges
|
11
|
+
|
12
|
+
**Iam**
|
13
|
+
- First public release
|
14
|
+
|
15
|
+
**Verify**
|
16
|
+
- Add endpoint to update/cancel a Verification **(breaking change)**
|
17
|
+
|
18
|
+
**Video**
|
19
|
+
- [Composer] Make RoomSid mandatory **(breaking change)**
|
20
|
+
- [Composer] Add `enqueued` state to Composition
|
21
|
+
|
22
|
+
**Twiml**
|
23
|
+
- Update message body to not be required for TwiML `Dial` noun.
|
24
|
+
|
25
|
+
|
4
26
|
[2019-02-15] Version 5.20.1
|
5
27
|
----------------------------
|
6
28
|
**Library**
|
data/README.md
CHANGED
@@ -27,13 +27,13 @@ in-line code documentation here in the library.
|
|
27
27
|
To install using [Bundler][bundler] grab the latest stable version:
|
28
28
|
|
29
29
|
```ruby
|
30
|
-
gem 'twilio-ruby', '~> 5.
|
30
|
+
gem 'twilio-ruby', '~> 5.21.0'
|
31
31
|
```
|
32
32
|
|
33
33
|
To manually install `twilio-ruby` via [Rubygems][rubygems] simply gem install:
|
34
34
|
|
35
35
|
```bash
|
36
|
-
gem install twilio-ruby -v 5.
|
36
|
+
gem install twilio-ruby -v 5.21.0
|
37
37
|
```
|
38
38
|
|
39
39
|
To build and install the development branch yourself from the latest source:
|
@@ -28,8 +28,8 @@ module Twilio
|
|
28
28
|
|
29
29
|
##
|
30
30
|
# Access the public_key
|
31
|
-
# @param [String] sid The
|
32
|
-
# to fetch
|
31
|
+
# @param [String] sid The Twilio-provided string that uniquely identifies the
|
32
|
+
# PublicKey resource to fetch.
|
33
33
|
# @return [PublicKeyList]
|
34
34
|
# @return [PublicKeyContext] if sid was passed.
|
35
35
|
def public_key(sid=:unset)
|
@@ -44,8 +44,8 @@ module Twilio
|
|
44
44
|
|
45
45
|
##
|
46
46
|
# Access the aws
|
47
|
-
# @param [String] sid The
|
48
|
-
# to fetch
|
47
|
+
# @param [String] sid The Twilio-provided string that uniquely identifies the AWS
|
48
|
+
# resource to fetch.
|
49
49
|
# @return [AwsList]
|
50
50
|
# @return [AwsContext] if sid was passed.
|
51
51
|
def aws(sid=:unset)
|
@@ -109,13 +109,14 @@ module Twilio
|
|
109
109
|
##
|
110
110
|
# Retrieve a single page of AwsInstance records from the API.
|
111
111
|
# Request is executed immediately.
|
112
|
-
# @param [String] credentials
|
113
|
-
#
|
114
|
-
# AKIAIOSFODNN7EXAMPLE:wJalrXUtnFEMI/K7MDENG/bPxRfiCYEXAMPLEKEY
|
115
|
-
# @param [String] friendly_name A
|
116
|
-
# to 64 characters.
|
117
|
-
# @param [String] account_sid The Subaccount this Credential
|
118
|
-
# with.
|
112
|
+
# @param [String] credentials A string that contains the AWS access credentials in
|
113
|
+
# the format `<AWS_ACCESS_KEY_ID>:<AWS_SECRET_ACCESS_KEY>`. For example,
|
114
|
+
# `AKIAIOSFODNN7EXAMPLE:wJalrXUtnFEMI/K7MDENG/bPxRfiCYEXAMPLEKEY`
|
115
|
+
# @param [String] friendly_name A descriptive string that you create to describe
|
116
|
+
# the resource. It can be up to 64 characters long.
|
117
|
+
# @param [String] account_sid The SID of the Subaccount that this Credential
|
118
|
+
# should be associated with. Must be a valid Subaccount of the account issuing the
|
119
|
+
# request.
|
119
120
|
# @return [AwsInstance] Newly created AwsInstance
|
120
121
|
def create(credentials: nil, friendly_name: :unset, account_sid: :unset)
|
121
122
|
data = Twilio::Values.of({
|
@@ -173,8 +174,8 @@ module Twilio
|
|
173
174
|
##
|
174
175
|
# Initialize the AwsContext
|
175
176
|
# @param [Version] version Version that contains the resource
|
176
|
-
# @param [String] sid The
|
177
|
-
# to fetch
|
177
|
+
# @param [String] sid The Twilio-provided string that uniquely identifies the AWS
|
178
|
+
# resource to fetch.
|
178
179
|
# @return [AwsContext] AwsContext
|
179
180
|
def initialize(version, sid)
|
180
181
|
super(version)
|
@@ -201,8 +202,8 @@ module Twilio
|
|
201
202
|
|
202
203
|
##
|
203
204
|
# Update the AwsInstance
|
204
|
-
# @param [String] friendly_name A
|
205
|
-
# to 64 characters.
|
205
|
+
# @param [String] friendly_name A descriptive string that you create to describe
|
206
|
+
# the resource. It can be up to 64 characters long.
|
206
207
|
# @return [AwsInstance] Updated AwsInstance
|
207
208
|
def update(friendly_name: :unset)
|
208
209
|
data = Twilio::Values.of({'FriendlyName' => friendly_name, })
|
@@ -243,8 +244,8 @@ module Twilio
|
|
243
244
|
# Initialize the AwsInstance
|
244
245
|
# @param [Version] version Version that contains the resource
|
245
246
|
# @param [Hash] payload payload that contains response from Twilio
|
246
|
-
# @param [String] sid The
|
247
|
-
# to fetch
|
247
|
+
# @param [String] sid The Twilio-provided string that uniquely identifies the AWS
|
248
|
+
# resource to fetch.
|
248
249
|
# @return [AwsInstance] AwsInstance
|
249
250
|
def initialize(version, payload, sid: nil)
|
250
251
|
super(version)
|
@@ -276,31 +277,31 @@ module Twilio
|
|
276
277
|
end
|
277
278
|
|
278
279
|
##
|
279
|
-
# @return [String]
|
280
|
+
# @return [String] The unique string that identifies the resource
|
280
281
|
def sid
|
281
282
|
@properties['sid']
|
282
283
|
end
|
283
284
|
|
284
285
|
##
|
285
|
-
# @return [String]
|
286
|
+
# @return [String] The SID of the Account that created the resource
|
286
287
|
def account_sid
|
287
288
|
@properties['account_sid']
|
288
289
|
end
|
289
290
|
|
290
291
|
##
|
291
|
-
# @return [String]
|
292
|
+
# @return [String] The string that you assigned to describe the resource
|
292
293
|
def friendly_name
|
293
294
|
@properties['friendly_name']
|
294
295
|
end
|
295
296
|
|
296
297
|
##
|
297
|
-
# @return [Time] The date
|
298
|
+
# @return [Time] The RFC 2822 date and time in GMT when the resource was created
|
298
299
|
def date_created
|
299
300
|
@properties['date_created']
|
300
301
|
end
|
301
302
|
|
302
303
|
##
|
303
|
-
# @return [Time] The date
|
304
|
+
# @return [Time] The RFC 2822 date and time in GMT when the resource was last updated
|
304
305
|
def date_updated
|
305
306
|
@properties['date_updated']
|
306
307
|
end
|
@@ -320,8 +321,8 @@ module Twilio
|
|
320
321
|
|
321
322
|
##
|
322
323
|
# Update the AwsInstance
|
323
|
-
# @param [String] friendly_name A
|
324
|
-
# to 64 characters.
|
324
|
+
# @param [String] friendly_name A descriptive string that you create to describe
|
325
|
+
# the resource. It can be up to 64 characters long.
|
325
326
|
# @return [AwsInstance] Updated AwsInstance
|
326
327
|
def update(friendly_name: :unset)
|
327
328
|
context.update(friendly_name: friendly_name, )
|
@@ -109,12 +109,14 @@ module Twilio
|
|
109
109
|
##
|
110
110
|
# Retrieve a single page of PublicKeyInstance records from the API.
|
111
111
|
# Request is executed immediately.
|
112
|
-
# @param [String] public_key URL encoded representation of the public key
|
113
|
-
#
|
114
|
-
#
|
115
|
-
#
|
116
|
-
#
|
117
|
-
#
|
112
|
+
# @param [String] public_key A URL encoded representation of the public key. For
|
113
|
+
# example, `-----BEGIN PUBLIC KEY-----MIIBIjANB.pa9xQIDAQAB-----END PUBLIC
|
114
|
+
# KEY-----`
|
115
|
+
# @param [String] friendly_name A descriptive string that you create to describe
|
116
|
+
# the resource. It can be up to 64 characters long.
|
117
|
+
# @param [String] account_sid The SID of the Subaccount that this Credential
|
118
|
+
# should be associated with. Must be a valid Subaccount of the account issuing the
|
119
|
+
# request
|
118
120
|
# @return [PublicKeyInstance] Newly created PublicKeyInstance
|
119
121
|
def create(public_key: nil, friendly_name: :unset, account_sid: :unset)
|
120
122
|
data = Twilio::Values.of({
|
@@ -172,8 +174,8 @@ module Twilio
|
|
172
174
|
##
|
173
175
|
# Initialize the PublicKeyContext
|
174
176
|
# @param [Version] version Version that contains the resource
|
175
|
-
# @param [String] sid The
|
176
|
-
# to fetch
|
177
|
+
# @param [String] sid The Twilio-provided string that uniquely identifies the
|
178
|
+
# PublicKey resource to fetch.
|
177
179
|
# @return [PublicKeyContext] PublicKeyContext
|
178
180
|
def initialize(version, sid)
|
179
181
|
super(version)
|
@@ -200,8 +202,8 @@ module Twilio
|
|
200
202
|
|
201
203
|
##
|
202
204
|
# Update the PublicKeyInstance
|
203
|
-
# @param [String] friendly_name A
|
204
|
-
# to 64 characters.
|
205
|
+
# @param [String] friendly_name A descriptive string that you create to describe
|
206
|
+
# the resource. It can be up to 64 characters long.
|
205
207
|
# @return [PublicKeyInstance] Updated PublicKeyInstance
|
206
208
|
def update(friendly_name: :unset)
|
207
209
|
data = Twilio::Values.of({'FriendlyName' => friendly_name, })
|
@@ -242,8 +244,8 @@ module Twilio
|
|
242
244
|
# Initialize the PublicKeyInstance
|
243
245
|
# @param [Version] version Version that contains the resource
|
244
246
|
# @param [Hash] payload payload that contains response from Twilio
|
245
|
-
# @param [String] sid The
|
246
|
-
# to fetch
|
247
|
+
# @param [String] sid The Twilio-provided string that uniquely identifies the
|
248
|
+
# PublicKey resource to fetch.
|
247
249
|
# @return [PublicKeyInstance] PublicKeyInstance
|
248
250
|
def initialize(version, payload, sid: nil)
|
249
251
|
super(version)
|
@@ -275,31 +277,31 @@ module Twilio
|
|
275
277
|
end
|
276
278
|
|
277
279
|
##
|
278
|
-
# @return [String]
|
280
|
+
# @return [String] The unique string that identifies the resource
|
279
281
|
def sid
|
280
282
|
@properties['sid']
|
281
283
|
end
|
282
284
|
|
283
285
|
##
|
284
|
-
# @return [String]
|
286
|
+
# @return [String] The SID of the Account that created the Credential that the PublicKey resource belongs to
|
285
287
|
def account_sid
|
286
288
|
@properties['account_sid']
|
287
289
|
end
|
288
290
|
|
289
291
|
##
|
290
|
-
# @return [String]
|
292
|
+
# @return [String] The string that you assigned to describe the resource
|
291
293
|
def friendly_name
|
292
294
|
@properties['friendly_name']
|
293
295
|
end
|
294
296
|
|
295
297
|
##
|
296
|
-
# @return [Time] The date
|
298
|
+
# @return [Time] The RFC 2822 date and time in GMT when the resource was created
|
297
299
|
def date_created
|
298
300
|
@properties['date_created']
|
299
301
|
end
|
300
302
|
|
301
303
|
##
|
302
|
-
# @return [Time] The date
|
304
|
+
# @return [Time] The RFC 2822 date and time in GMT when the resource was last updated
|
303
305
|
def date_updated
|
304
306
|
@properties['date_updated']
|
305
307
|
end
|
@@ -319,8 +321,8 @@ module Twilio
|
|
319
321
|
|
320
322
|
##
|
321
323
|
# Update the PublicKeyInstance
|
322
|
-
# @param [String] friendly_name A
|
323
|
-
# to 64 characters.
|
324
|
+
# @param [String] friendly_name A descriptive string that you create to describe
|
325
|
+
# the resource. It can be up to 64 characters long.
|
324
326
|
# @return [PublicKeyInstance] Updated PublicKeyInstance
|
325
327
|
def update(friendly_name: :unset)
|
326
328
|
context.update(friendly_name: friendly_name, )
|
data/lib/twilio-ruby/rest/api.rb
CHANGED
@@ -122,8 +122,8 @@ module Twilio
|
|
122
122
|
end
|
123
123
|
|
124
124
|
##
|
125
|
-
# @param [String] sid
|
126
|
-
#
|
125
|
+
# @param [String] sid The unique string that that we created to identify the Key
|
126
|
+
# resource.
|
127
127
|
# @return [Twilio::REST::Api::V2010::AccountContext::KeyInstance] if sid was passed.
|
128
128
|
# @return [Twilio::REST::Api::V2010::AccountContext::KeyList]
|
129
129
|
def keys(sid=:unset)
|
@@ -131,8 +131,8 @@ module Twilio
|
|
131
131
|
end
|
132
132
|
|
133
133
|
##
|
134
|
-
# @param [String] sid
|
135
|
-
# resource.
|
134
|
+
# @param [String] sid The unique string that that we created to identify the
|
135
|
+
# Message resource.
|
136
136
|
# @return [Twilio::REST::Api::V2010::AccountContext::MessageInstance] if sid was passed.
|
137
137
|
# @return [Twilio::REST::Api::V2010::AccountContext::MessageList]
|
138
138
|
def messages(sid=:unset)
|
@@ -179,8 +179,8 @@ module Twilio
|
|
179
179
|
end
|
180
180
|
|
181
181
|
##
|
182
|
-
# @param [String] sid
|
183
|
-
# resource.
|
182
|
+
# @param [String] sid The unique string that that we created to identify the
|
183
|
+
# Recording resource.
|
184
184
|
# @return [Twilio::REST::Api::V2010::AccountContext::RecordingInstance] if sid was passed.
|
185
185
|
# @return [Twilio::REST::Api::V2010::AccountContext::RecordingList]
|
186
186
|
def recordings(sid=:unset)
|
@@ -217,7 +217,8 @@ module Twilio
|
|
217
217
|
end
|
218
218
|
|
219
219
|
##
|
220
|
-
# @param [String] sid
|
220
|
+
# @param [String] sid The unique string that that we created to identify the
|
221
|
+
# Transcription resource.
|
221
222
|
# @return [Twilio::REST::Api::V2010::AccountContext::TranscriptionInstance] if sid was passed.
|
222
223
|
# @return [Twilio::REST::Api::V2010::AccountContext::TranscriptionList]
|
223
224
|
def transcriptions(sid=:unset)
|
@@ -16,7 +16,9 @@ module Twilio
|
|
16
16
|
##
|
17
17
|
# Initialize the DependentPhoneNumberList
|
18
18
|
# @param [Version] version Version that contains the resource
|
19
|
-
# @param [String] account_sid The
|
19
|
+
# @param [String] account_sid The SID of the
|
20
|
+
# [Account](https://www.twilio.com/docs/api/rest/account) that created the
|
21
|
+
# DependentPhoneNumber resource.
|
20
22
|
# @param [String] address_sid The unique string that that we created to identify
|
21
23
|
# the Address resource.
|
22
24
|
# @return [DependentPhoneNumberList] DependentPhoneNumberList
|
@@ -156,7 +158,9 @@ module Twilio
|
|
156
158
|
# Initialize the DependentPhoneNumberInstance
|
157
159
|
# @param [Version] version Version that contains the resource
|
158
160
|
# @param [Hash] payload payload that contains response from Twilio
|
159
|
-
# @param [String] account_sid The
|
161
|
+
# @param [String] account_sid The SID of the
|
162
|
+
# [Account](https://www.twilio.com/docs/api/rest/account) that created the
|
163
|
+
# DependentPhoneNumber resource.
|
160
164
|
# @param [String] address_sid The unique string that that we created to identify
|
161
165
|
# the Address resource.
|
162
166
|
# @return [DependentPhoneNumberInstance] DependentPhoneNumberInstance
|
@@ -195,157 +199,157 @@ module Twilio
|
|
195
199
|
end
|
196
200
|
|
197
201
|
##
|
198
|
-
# @return [String] The
|
202
|
+
# @return [String] The unique string that identifies the resource
|
199
203
|
def sid
|
200
204
|
@properties['sid']
|
201
205
|
end
|
202
206
|
|
203
207
|
##
|
204
|
-
# @return [String] The
|
208
|
+
# @return [String] The SID of the Account that created the resource
|
205
209
|
def account_sid
|
206
210
|
@properties['account_sid']
|
207
211
|
end
|
208
212
|
|
209
213
|
##
|
210
|
-
# @return [String] The
|
214
|
+
# @return [String] The string that you assigned to describe the resource
|
211
215
|
def friendly_name
|
212
216
|
@properties['friendly_name']
|
213
217
|
end
|
214
218
|
|
215
219
|
##
|
216
|
-
# @return [String] The
|
220
|
+
# @return [String] The phone number in E.164 format
|
217
221
|
def phone_number
|
218
222
|
@properties['phone_number']
|
219
223
|
end
|
220
224
|
|
221
225
|
##
|
222
|
-
# @return [String] The
|
226
|
+
# @return [String] The URL we call when the phone number receives a call
|
223
227
|
def voice_url
|
224
228
|
@properties['voice_url']
|
225
229
|
end
|
226
230
|
|
227
231
|
##
|
228
|
-
# @return [String] The
|
232
|
+
# @return [String] The HTTP method used with the voice_url
|
229
233
|
def voice_method
|
230
234
|
@properties['voice_method']
|
231
235
|
end
|
232
236
|
|
233
237
|
##
|
234
|
-
# @return [String] The
|
238
|
+
# @return [String] The HTTP method used with voice_fallback_url
|
235
239
|
def voice_fallback_method
|
236
240
|
@properties['voice_fallback_method']
|
237
241
|
end
|
238
242
|
|
239
243
|
##
|
240
|
-
# @return [String] The
|
244
|
+
# @return [String] The URL we call when an error occurs in TwiML
|
241
245
|
def voice_fallback_url
|
242
246
|
@properties['voice_fallback_url']
|
243
247
|
end
|
244
248
|
|
245
249
|
##
|
246
|
-
# @return [Boolean]
|
250
|
+
# @return [Boolean] Whether to lookup the caller's name
|
247
251
|
def voice_caller_id_lookup
|
248
252
|
@properties['voice_caller_id_lookup']
|
249
253
|
end
|
250
254
|
|
251
255
|
##
|
252
|
-
# @return [Time] The
|
256
|
+
# @return [Time] The RFC 2822 date and time in GMT that the resource was created
|
253
257
|
def date_created
|
254
258
|
@properties['date_created']
|
255
259
|
end
|
256
260
|
|
257
261
|
##
|
258
|
-
# @return [Time] The
|
262
|
+
# @return [Time] The RFC 2822 date and time in GMT that the resource was last updated
|
259
263
|
def date_updated
|
260
264
|
@properties['date_updated']
|
261
265
|
end
|
262
266
|
|
263
267
|
##
|
264
|
-
# @return [String] The
|
268
|
+
# @return [String] The HTTP method used with sms_fallback_url
|
265
269
|
def sms_fallback_method
|
266
270
|
@properties['sms_fallback_method']
|
267
271
|
end
|
268
272
|
|
269
273
|
##
|
270
|
-
# @return [String] The
|
274
|
+
# @return [String] The URL that we call when an error occurs while retrieving or executing the TwiML
|
271
275
|
def sms_fallback_url
|
272
276
|
@properties['sms_fallback_url']
|
273
277
|
end
|
274
278
|
|
275
279
|
##
|
276
|
-
# @return [String] The
|
280
|
+
# @return [String] The HTTP method to use with sms_url
|
277
281
|
def sms_method
|
278
282
|
@properties['sms_method']
|
279
283
|
end
|
280
284
|
|
281
285
|
##
|
282
|
-
# @return [String] The
|
286
|
+
# @return [String] The URL we call when the phone number receives an incoming SMS message
|
283
287
|
def sms_url
|
284
288
|
@properties['sms_url']
|
285
289
|
end
|
286
290
|
|
287
291
|
##
|
288
|
-
# @return [dependent_phone_number.AddressRequirement]
|
292
|
+
# @return [dependent_phone_number.AddressRequirement] Whether the phone number requires an Address registered with Twilio
|
289
293
|
def address_requirements
|
290
294
|
@properties['address_requirements']
|
291
295
|
end
|
292
296
|
|
293
297
|
##
|
294
|
-
# @return [Hash]
|
298
|
+
# @return [Hash] Indicate if a phone can receive calls or messages
|
295
299
|
def capabilities
|
296
300
|
@properties['capabilities']
|
297
301
|
end
|
298
302
|
|
299
303
|
##
|
300
|
-
# @return [String] The
|
304
|
+
# @return [String] The URL to send status information to your application
|
301
305
|
def status_callback
|
302
306
|
@properties['status_callback']
|
303
307
|
end
|
304
308
|
|
305
309
|
##
|
306
|
-
# @return [String] The
|
310
|
+
# @return [String] The HTTP method we use to call status_callback
|
307
311
|
def status_callback_method
|
308
312
|
@properties['status_callback_method']
|
309
313
|
end
|
310
314
|
|
311
315
|
##
|
312
|
-
# @return [String] The
|
316
|
+
# @return [String] The API version used to start a new TwiML session
|
313
317
|
def api_version
|
314
318
|
@properties['api_version']
|
315
319
|
end
|
316
320
|
|
317
321
|
##
|
318
|
-
# @return [String] The
|
322
|
+
# @return [String] The SID of the application that handles SMS messages sent to the phone number
|
319
323
|
def sms_application_sid
|
320
324
|
@properties['sms_application_sid']
|
321
325
|
end
|
322
326
|
|
323
327
|
##
|
324
|
-
# @return [String] The
|
328
|
+
# @return [String] The SID of the application that handles calls to the phone number
|
325
329
|
def voice_application_sid
|
326
330
|
@properties['voice_application_sid']
|
327
331
|
end
|
328
332
|
|
329
333
|
##
|
330
|
-
# @return [String] The
|
334
|
+
# @return [String] The SID of the Trunk that handles calls to the phone number
|
331
335
|
def trunk_sid
|
332
336
|
@properties['trunk_sid']
|
333
337
|
end
|
334
338
|
|
335
339
|
##
|
336
|
-
# @return [dependent_phone_number.EmergencyStatus]
|
340
|
+
# @return [dependent_phone_number.EmergencyStatus] Whether the phone number is enabled for emergency calling
|
337
341
|
def emergency_status
|
338
342
|
@properties['emergency_status']
|
339
343
|
end
|
340
344
|
|
341
345
|
##
|
342
|
-
# @return [String] The
|
346
|
+
# @return [String] The emergency address configuration to use for emergency calling
|
343
347
|
def emergency_address_sid
|
344
348
|
@properties['emergency_address_sid']
|
345
349
|
end
|
346
350
|
|
347
351
|
##
|
348
|
-
# @return [String] The
|
352
|
+
# @return [String] The URI of the resource, relative to `https://api.twilio.com`
|
349
353
|
def uri
|
350
354
|
@properties['uri']
|
351
355
|
end
|