twilio-ruby 5.39.2 → 5.39.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/.travis.yml +1 -1
- data/CHANGES.md +14 -0
- data/ISSUE_TEMPLATE.md +5 -1
- data/PULL_REQUEST_TEMPLATE.md +1 -1
- data/README.md +4 -2
- data/lib/twilio-ruby/rest/api/v2010/account/call/payment.rb +79 -60
- data/lib/twilio-ruby/rest/api/v2010/account/incoming_phone_number/local.rb +14 -0
- data/lib/twilio-ruby/rest/api/v2010/account/incoming_phone_number/mobile.rb +14 -0
- data/lib/twilio-ruby/rest/api/v2010/account/incoming_phone_number/toll_free.rb +14 -0
- data/lib/twilio-ruby/rest/proxy/v1/service/session.rb +25 -3
- data/lib/twilio-ruby/rest/verify/v2/service.rb +21 -9
- data/lib/twilio-ruby/rest/verify/v2/service/entity/challenge.rb +10 -2
- data/lib/twilio-ruby/rest/verify/v2/service/verification.rb +4 -1
- data/lib/twilio-ruby/version.rb +1 -1
- data/spec/integration/api/v2010/account/incoming_phone_number/local_spec.rb +35 -36
- data/spec/integration/api/v2010/account/incoming_phone_number/mobile_spec.rb +39 -40
- data/spec/integration/api/v2010/account/incoming_phone_number/toll_free_spec.rb +35 -36
- data/spec/integration/api/v2010/account/incoming_phone_number_spec.rb +25 -23
- data/spec/integration/api/v2010/account/message_spec.rb +37 -0
- data/spec/integration/conversations/v1/conversation/message_spec.rb +38 -0
- data/spec/integration/conversations/v1/conversation/participant_spec.rb +56 -0
- data/spec/integration/conversations/v1/conversation_spec.rb +30 -0
- data/spec/integration/verify/v2/service/access_token_spec.rb +1 -1
- data/spec/integration/verify/v2/service/entity/challenge_spec.rb +8 -8
- metadata +2 -2
|
@@ -36,9 +36,17 @@ module Twilio
|
|
|
36
36
|
# @param [Time] expiration_date The future date in which this Challenge will
|
|
37
37
|
# expire, given in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format.
|
|
38
38
|
# @param [String] details Details provided to give context about the Challenge.
|
|
39
|
-
# Shown to the end user.
|
|
39
|
+
# Shown to the end user. It must be a stringified JSON with the following
|
|
40
|
+
# structure: {"message": "string", "fields": [ { "label": "string", "value":
|
|
41
|
+
# "string"}]}. `message` is required. If you send the `fields` property, each
|
|
42
|
+
# field has to include `label` and `value` properties. If you had set
|
|
43
|
+
# `include_date=true` in the `push` configuration of the
|
|
44
|
+
# [service](https://www.twilio.com/docs/verify/api/service), the response will
|
|
45
|
+
# also include the challenge's date created value as an additional field called
|
|
46
|
+
# `date`
|
|
40
47
|
# @param [String] hidden_details Details provided to give context about the
|
|
41
|
-
# Challenge. Not shown to the end user.
|
|
48
|
+
# Challenge. Not shown to the end user. It must be a stringified JSON with only
|
|
49
|
+
# strings values eg. `{"ip": "172.168.1.234"}`
|
|
42
50
|
# @param [String] twilio_sandbox_mode The Twilio-Sandbox-Mode HTTP request header
|
|
43
51
|
# @return [ChallengeInstance] Created ChallengeInstance
|
|
44
52
|
def create(factor_sid: nil, expiration_date: :unset, details: :unset, hidden_details: :unset, twilio_sandbox_mode: :unset)
|
|
@@ -34,6 +34,8 @@ module Twilio
|
|
|
34
34
|
# be in [E.164 format](https://www.twilio.com/docs/glossary/what-e164).
|
|
35
35
|
# @param [String] channel The verification method to use. Can be:
|
|
36
36
|
# [`email`](https://www.twilio.com/docs/verify/email), `sms` or `call`.
|
|
37
|
+
# @param [String] custom_friendly_name A custom user defined friendly name that
|
|
38
|
+
# overwrites the existing one in the verification message
|
|
37
39
|
# @param [String] custom_message The text of a custom message to use for the
|
|
38
40
|
# verification.
|
|
39
41
|
# @param [String] send_digits The digits to send after a phone call is answered,
|
|
@@ -61,10 +63,11 @@ module Twilio
|
|
|
61
63
|
# @param [String] app_hash Your [App
|
|
62
64
|
# Hash](https://developers.google.com/identity/sms-retriever/verify#computing_your_apps_hash_string) to be appended at the end of your verification SMS body. Applies only to SMS. Example SMS body: `<#> Your AppName verification code is: 1234 He42w354ol9`.
|
|
63
65
|
# @return [VerificationInstance] Created VerificationInstance
|
|
64
|
-
def create(to: nil, channel: nil, custom_message: :unset, send_digits: :unset, locale: :unset, custom_code: :unset, amount: :unset, payee: :unset, rate_limits: :unset, channel_configuration: :unset, app_hash: :unset)
|
|
66
|
+
def create(to: nil, channel: nil, custom_friendly_name: :unset, custom_message: :unset, send_digits: :unset, locale: :unset, custom_code: :unset, amount: :unset, payee: :unset, rate_limits: :unset, channel_configuration: :unset, app_hash: :unset)
|
|
65
67
|
data = Twilio::Values.of({
|
|
66
68
|
'To' => to,
|
|
67
69
|
'Channel' => channel,
|
|
70
|
+
'CustomFriendlyName' => custom_friendly_name,
|
|
68
71
|
'CustomMessage' => custom_message,
|
|
69
72
|
'SendDigits' => send_digits,
|
|
70
73
|
'Locale' => locale,
|
data/lib/twilio-ruby/version.rb
CHANGED
|
@@ -31,7 +31,7 @@ describe 'Local' do
|
|
|
31
31
|
%q[
|
|
32
32
|
{
|
|
33
33
|
"end": 0,
|
|
34
|
-
"first_page_uri": "/2010-04-01/Accounts/ACaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/IncomingPhoneNumbers/Local.json?PageSize=
|
|
34
|
+
"first_page_uri": "/2010-04-01/Accounts/ACaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/IncomingPhoneNumbers/Local.json?FriendlyName=friendly_name&Beta=true&PhoneNumber=%2B19876543210&PageSize=50&Page=0",
|
|
35
35
|
"incoming_phone_numbers": [
|
|
36
36
|
{
|
|
37
37
|
"account_sid": "ACaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
|
|
@@ -46,10 +46,12 @@ describe 'Local' do
|
|
|
46
46
|
},
|
|
47
47
|
"date_created": "Thu, 30 Jul 2015 23:19:04 +0000",
|
|
48
48
|
"date_updated": "Thu, 30 Jul 2015 23:19:04 +0000",
|
|
49
|
+
"emergency_status": "Active",
|
|
50
|
+
"emergency_address_sid": "ADaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
|
|
49
51
|
"friendly_name": "(808) 925-5327",
|
|
50
52
|
"identity_sid": "RIaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
|
|
51
|
-
"phone_number": "+18089255327",
|
|
52
53
|
"origin": "origin",
|
|
54
|
+
"phone_number": "+18089255327",
|
|
53
55
|
"sid": "PNaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
|
|
54
56
|
"sms_application_sid": "",
|
|
55
57
|
"sms_fallback_method": "POST",
|
|
@@ -66,20 +68,17 @@ describe 'Local' do
|
|
|
66
68
|
"voice_fallback_url": null,
|
|
67
69
|
"voice_method": "POST",
|
|
68
70
|
"voice_url": null,
|
|
69
|
-
"
|
|
70
|
-
"
|
|
71
|
-
"
|
|
71
|
+
"bundle_sid": "BUaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
|
|
72
|
+
"voice_receive_mode": "voice",
|
|
73
|
+
"status": "in-use"
|
|
72
74
|
}
|
|
73
75
|
],
|
|
74
|
-
"last_page_uri": "/2010-04-01/Accounts/ACaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/IncomingPhoneNumbers/Local.json?PageSize=1&Page=2",
|
|
75
76
|
"next_page_uri": null,
|
|
76
|
-
"num_pages": 3,
|
|
77
77
|
"page": 0,
|
|
78
|
-
"page_size":
|
|
78
|
+
"page_size": 50,
|
|
79
79
|
"previous_page_uri": null,
|
|
80
80
|
"start": 0,
|
|
81
|
-
"
|
|
82
|
-
"uri": "/2010-04-01/Accounts/ACaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/IncomingPhoneNumbers/Local.json?PageSize=1"
|
|
81
|
+
"uri": "/2010-04-01/Accounts/ACaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/IncomingPhoneNumbers/Local.json?FriendlyName=friendly_name&Beta=true&PhoneNumber=%2B19876543210&PageSize=50&Page=0"
|
|
83
82
|
}
|
|
84
83
|
]
|
|
85
84
|
))
|
|
@@ -97,17 +96,14 @@ describe 'Local' do
|
|
|
97
96
|
%q[
|
|
98
97
|
{
|
|
99
98
|
"end": 0,
|
|
100
|
-
"first_page_uri": "/2010-04-01/Accounts/ACaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/IncomingPhoneNumbers/Local.json?PageSize=
|
|
99
|
+
"first_page_uri": "/2010-04-01/Accounts/ACaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/IncomingPhoneNumbers/Local.json?FriendlyName=friendly_name&Beta=true&PhoneNumber=%2B19876543210&PageSize=50&Page=0",
|
|
101
100
|
"incoming_phone_numbers": [],
|
|
102
|
-
"last_page_uri": "/2010-04-01/Accounts/ACaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/IncomingPhoneNumbers/Local.json?PageSize=1&Page=2",
|
|
103
101
|
"next_page_uri": null,
|
|
104
|
-
"num_pages": 3,
|
|
105
102
|
"page": 0,
|
|
106
|
-
"page_size":
|
|
103
|
+
"page_size": 50,
|
|
107
104
|
"previous_page_uri": null,
|
|
108
105
|
"start": 0,
|
|
109
|
-
"
|
|
110
|
-
"uri": "/2010-04-01/Accounts/ACaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/IncomingPhoneNumbers/Local.json?PageSize=1"
|
|
106
|
+
"uri": "/2010-04-01/Accounts/ACaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/IncomingPhoneNumbers/Local.json?FriendlyName=friendly_name&Beta=true&PhoneNumber=%2B19876543210&PageSize=50&Page=0"
|
|
111
107
|
}
|
|
112
108
|
]
|
|
113
109
|
))
|
|
@@ -148,35 +144,38 @@ describe 'Local' do
|
|
|
148
144
|
"api_version": "2010-04-01",
|
|
149
145
|
"beta": false,
|
|
150
146
|
"capabilities": {
|
|
151
|
-
"
|
|
147
|
+
"voice": true,
|
|
152
148
|
"sms": false,
|
|
153
|
-
"
|
|
149
|
+
"mms": true,
|
|
150
|
+
"fax": false
|
|
154
151
|
},
|
|
155
152
|
"date_created": "Thu, 30 Jul 2015 23:19:04 +0000",
|
|
156
153
|
"date_updated": "Thu, 30 Jul 2015 23:19:04 +0000",
|
|
157
|
-
"
|
|
154
|
+
"emergency_status": "Active",
|
|
155
|
+
"emergency_address_sid": "ADaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
|
|
156
|
+
"friendly_name": "friendly_name",
|
|
158
157
|
"identity_sid": "RIaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
|
|
159
|
-
"phone_number": "+18089255327",
|
|
160
158
|
"origin": "origin",
|
|
159
|
+
"phone_number": "+18089255327",
|
|
161
160
|
"sid": "PNaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
|
|
162
|
-
"sms_application_sid": "",
|
|
163
|
-
"sms_fallback_method": "
|
|
164
|
-
"sms_fallback_url": "",
|
|
165
|
-
"sms_method": "
|
|
166
|
-
"sms_url": "",
|
|
167
|
-
"status_callback": "",
|
|
168
|
-
"status_callback_method": "
|
|
161
|
+
"sms_application_sid": "APaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
|
|
162
|
+
"sms_fallback_method": "GET",
|
|
163
|
+
"sms_fallback_url": "https://example.com",
|
|
164
|
+
"sms_method": "GET",
|
|
165
|
+
"sms_url": "https://example.com",
|
|
166
|
+
"status_callback": "https://example.com",
|
|
167
|
+
"status_callback_method": "GET",
|
|
169
168
|
"trunk_sid": null,
|
|
170
169
|
"uri": "/2010-04-01/Accounts/ACaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/IncomingPhoneNumbers/PNaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa.json",
|
|
171
|
-
"voice_application_sid": "",
|
|
172
|
-
"voice_caller_id_lookup":
|
|
173
|
-
"voice_fallback_method": "
|
|
174
|
-
"voice_fallback_url":
|
|
175
|
-
"voice_method": "
|
|
176
|
-
"voice_url":
|
|
177
|
-
"
|
|
178
|
-
"
|
|
179
|
-
"
|
|
170
|
+
"voice_application_sid": "APaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
|
|
171
|
+
"voice_caller_id_lookup": true,
|
|
172
|
+
"voice_fallback_method": "GET",
|
|
173
|
+
"voice_fallback_url": "https://example.com",
|
|
174
|
+
"voice_method": "GET",
|
|
175
|
+
"voice_url": "https://example.com",
|
|
176
|
+
"bundle_sid": "BUaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
|
|
177
|
+
"voice_receive_mode": "voice",
|
|
178
|
+
"status": "in-use"
|
|
180
179
|
}
|
|
181
180
|
]
|
|
182
181
|
))
|
|
@@ -31,7 +31,7 @@ describe 'Mobile' do
|
|
|
31
31
|
%q[
|
|
32
32
|
{
|
|
33
33
|
"end": 0,
|
|
34
|
-
"first_page_uri": "/2010-04-01/Accounts/ACaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/IncomingPhoneNumbers/Mobile.json?
|
|
34
|
+
"first_page_uri": "/2010-04-01/Accounts/ACaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/IncomingPhoneNumbers/Mobile.json?FriendlyName=friendly_name&Beta=true&PhoneNumber=%2B19876543210&PageSize=50&Page=0",
|
|
35
35
|
"incoming_phone_numbers": [
|
|
36
36
|
{
|
|
37
37
|
"account_sid": "ACaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
|
|
@@ -40,16 +40,18 @@ describe 'Mobile' do
|
|
|
40
40
|
"api_version": "2010-04-01",
|
|
41
41
|
"beta": null,
|
|
42
42
|
"capabilities": {
|
|
43
|
-
"mms":
|
|
44
|
-
"sms":
|
|
45
|
-
"voice":
|
|
43
|
+
"mms": true,
|
|
44
|
+
"sms": false,
|
|
45
|
+
"voice": true
|
|
46
46
|
},
|
|
47
|
-
"date_created": "
|
|
48
|
-
"date_updated": "
|
|
49
|
-
"
|
|
47
|
+
"date_created": "Thu, 30 Jul 2015 23:19:04 +0000",
|
|
48
|
+
"date_updated": "Thu, 30 Jul 2015 23:19:04 +0000",
|
|
49
|
+
"emergency_status": "Active",
|
|
50
|
+
"emergency_address_sid": "ADaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
|
|
51
|
+
"friendly_name": "(808) 925-5327",
|
|
50
52
|
"identity_sid": "RIaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
|
|
51
|
-
"phone_number": "+61429099450",
|
|
52
53
|
"origin": "origin",
|
|
54
|
+
"phone_number": "+18089255327",
|
|
53
55
|
"sid": "PNaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
|
|
54
56
|
"sms_application_sid": "",
|
|
55
57
|
"sms_fallback_method": "POST",
|
|
@@ -66,20 +68,17 @@ describe 'Mobile' do
|
|
|
66
68
|
"voice_fallback_url": null,
|
|
67
69
|
"voice_method": "POST",
|
|
68
70
|
"voice_url": null,
|
|
69
|
-
"
|
|
70
|
-
"
|
|
71
|
-
"
|
|
71
|
+
"bundle_sid": "BUaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
|
|
72
|
+
"voice_receive_mode": "voice",
|
|
73
|
+
"status": "in-use"
|
|
72
74
|
}
|
|
73
75
|
],
|
|
74
|
-
"last_page_uri": "/2010-04-01/Accounts/ACaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/IncomingPhoneNumbers/Mobile.json?Page=0&PageSize=50",
|
|
75
76
|
"next_page_uri": null,
|
|
76
|
-
"num_pages": 1,
|
|
77
77
|
"page": 0,
|
|
78
78
|
"page_size": 50,
|
|
79
79
|
"previous_page_uri": null,
|
|
80
80
|
"start": 0,
|
|
81
|
-
"
|
|
82
|
-
"uri": "/2010-04-01/Accounts/ACaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/IncomingPhoneNumbers/Mobile.json"
|
|
81
|
+
"uri": "/2010-04-01/Accounts/ACaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/IncomingPhoneNumbers/Mobile.json?FriendlyName=friendly_name&Beta=true&PhoneNumber=%2B19876543210&PageSize=50&Page=0"
|
|
83
82
|
}
|
|
84
83
|
]
|
|
85
84
|
))
|
|
@@ -97,17 +96,14 @@ describe 'Mobile' do
|
|
|
97
96
|
%q[
|
|
98
97
|
{
|
|
99
98
|
"end": 0,
|
|
100
|
-
"first_page_uri": "/2010-04-01/Accounts/ACaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/IncomingPhoneNumbers/Mobile.json?
|
|
99
|
+
"first_page_uri": "/2010-04-01/Accounts/ACaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/IncomingPhoneNumbers/Mobile.json?FriendlyName=friendly_name&Beta=true&PhoneNumber=%2B19876543210&PageSize=50&Page=0",
|
|
101
100
|
"incoming_phone_numbers": [],
|
|
102
|
-
"last_page_uri": "/2010-04-01/Accounts/ACaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/IncomingPhoneNumbers/Mobile.json?Page=0&PageSize=50",
|
|
103
101
|
"next_page_uri": null,
|
|
104
|
-
"num_pages": 1,
|
|
105
102
|
"page": 0,
|
|
106
103
|
"page_size": 50,
|
|
107
104
|
"previous_page_uri": null,
|
|
108
105
|
"start": 0,
|
|
109
|
-
"
|
|
110
|
-
"uri": "/2010-04-01/Accounts/ACaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/IncomingPhoneNumbers/Mobile.json"
|
|
106
|
+
"uri": "/2010-04-01/Accounts/ACaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/IncomingPhoneNumbers/Mobile.json?FriendlyName=friendly_name&Beta=true&PhoneNumber=%2B19876543210&PageSize=50&Page=0"
|
|
111
107
|
}
|
|
112
108
|
]
|
|
113
109
|
))
|
|
@@ -148,35 +144,38 @@ describe 'Mobile' do
|
|
|
148
144
|
"api_version": "2010-04-01",
|
|
149
145
|
"beta": false,
|
|
150
146
|
"capabilities": {
|
|
151
|
-
"
|
|
147
|
+
"voice": true,
|
|
152
148
|
"sms": false,
|
|
153
|
-
"
|
|
149
|
+
"mms": true,
|
|
150
|
+
"fax": false
|
|
154
151
|
},
|
|
155
152
|
"date_created": "Thu, 30 Jul 2015 23:19:04 +0000",
|
|
156
153
|
"date_updated": "Thu, 30 Jul 2015 23:19:04 +0000",
|
|
154
|
+
"emergency_status": "Active",
|
|
155
|
+
"emergency_address_sid": "ADaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
|
|
156
|
+
"friendly_name": "friendly_name",
|
|
157
157
|
"identity_sid": "RIaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
|
|
158
|
-
"friendly_name": "(808) 925-5327",
|
|
159
|
-
"phone_number": "+18089255327",
|
|
160
158
|
"origin": "origin",
|
|
159
|
+
"phone_number": "+18089255327",
|
|
161
160
|
"sid": "PNaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
|
|
162
|
-
"sms_application_sid": "",
|
|
163
|
-
"sms_fallback_method": "
|
|
164
|
-
"sms_fallback_url": "",
|
|
165
|
-
"sms_method": "
|
|
166
|
-
"sms_url": "",
|
|
167
|
-
"status_callback": "",
|
|
168
|
-
"status_callback_method": "
|
|
161
|
+
"sms_application_sid": "APaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
|
|
162
|
+
"sms_fallback_method": "GET",
|
|
163
|
+
"sms_fallback_url": "https://example.com",
|
|
164
|
+
"sms_method": "GET",
|
|
165
|
+
"sms_url": "https://example.com",
|
|
166
|
+
"status_callback": "https://example.com",
|
|
167
|
+
"status_callback_method": "GET",
|
|
169
168
|
"trunk_sid": null,
|
|
170
169
|
"uri": "/2010-04-01/Accounts/ACaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/IncomingPhoneNumbers/PNaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa.json",
|
|
171
|
-
"voice_application_sid": "",
|
|
172
|
-
"voice_caller_id_lookup":
|
|
173
|
-
"voice_fallback_method": "
|
|
174
|
-
"voice_fallback_url":
|
|
175
|
-
"voice_method": "
|
|
176
|
-
"voice_url":
|
|
177
|
-
"
|
|
178
|
-
"
|
|
179
|
-
"
|
|
170
|
+
"voice_application_sid": "APaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
|
|
171
|
+
"voice_caller_id_lookup": true,
|
|
172
|
+
"voice_fallback_method": "GET",
|
|
173
|
+
"voice_fallback_url": "https://example.com",
|
|
174
|
+
"voice_method": "GET",
|
|
175
|
+
"voice_url": "https://example.com",
|
|
176
|
+
"bundle_sid": "BUaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
|
|
177
|
+
"voice_receive_mode": "voice",
|
|
178
|
+
"status": "in-use"
|
|
180
179
|
}
|
|
181
180
|
]
|
|
182
181
|
))
|
|
@@ -31,7 +31,7 @@ describe 'TollFree' do
|
|
|
31
31
|
%q[
|
|
32
32
|
{
|
|
33
33
|
"end": 0,
|
|
34
|
-
"first_page_uri": "/2010-04-01/Accounts/ACaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/IncomingPhoneNumbers/TollFree.json?PageSize=
|
|
34
|
+
"first_page_uri": "/2010-04-01/Accounts/ACaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/IncomingPhoneNumbers/TollFree.json?FriendlyName=friendly_name&Beta=true&PhoneNumber=%2B19876543210&PageSize=50&Page=0",
|
|
35
35
|
"incoming_phone_numbers": [
|
|
36
36
|
{
|
|
37
37
|
"account_sid": "ACaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
|
|
@@ -46,10 +46,12 @@ describe 'TollFree' do
|
|
|
46
46
|
},
|
|
47
47
|
"date_created": "Thu, 30 Jul 2015 23:19:04 +0000",
|
|
48
48
|
"date_updated": "Thu, 30 Jul 2015 23:19:04 +0000",
|
|
49
|
+
"emergency_status": "Active",
|
|
50
|
+
"emergency_address_sid": "ADaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
|
|
49
51
|
"friendly_name": "(808) 925-5327",
|
|
50
52
|
"identity_sid": "RIaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
|
|
51
|
-
"phone_number": "+18089255327",
|
|
52
53
|
"origin": "origin",
|
|
54
|
+
"phone_number": "+18089255327",
|
|
53
55
|
"sid": "PNaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
|
|
54
56
|
"sms_application_sid": "",
|
|
55
57
|
"sms_fallback_method": "POST",
|
|
@@ -66,20 +68,17 @@ describe 'TollFree' do
|
|
|
66
68
|
"voice_fallback_url": null,
|
|
67
69
|
"voice_method": "POST",
|
|
68
70
|
"voice_url": null,
|
|
69
|
-
"
|
|
70
|
-
"
|
|
71
|
-
"
|
|
71
|
+
"bundle_sid": "BUaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
|
|
72
|
+
"voice_receive_mode": "voice",
|
|
73
|
+
"status": "in-use"
|
|
72
74
|
}
|
|
73
75
|
],
|
|
74
|
-
"last_page_uri": "/2010-04-01/Accounts/ACaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/IncomingPhoneNumbers/TollFree.json?PageSize=1&Page=2",
|
|
75
76
|
"next_page_uri": null,
|
|
76
|
-
"num_pages": 3,
|
|
77
77
|
"page": 0,
|
|
78
|
-
"page_size":
|
|
78
|
+
"page_size": 50,
|
|
79
79
|
"previous_page_uri": null,
|
|
80
80
|
"start": 0,
|
|
81
|
-
"
|
|
82
|
-
"uri": "/2010-04-01/Accounts/ACaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/IncomingPhoneNumbers/TollFree.json?PageSize=1"
|
|
81
|
+
"uri": "/2010-04-01/Accounts/ACaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/IncomingPhoneNumbers/TollFree.json?FriendlyName=friendly_name&Beta=true&PhoneNumber=%2B19876543210&PageSize=50&Page=0"
|
|
83
82
|
}
|
|
84
83
|
]
|
|
85
84
|
))
|
|
@@ -97,17 +96,14 @@ describe 'TollFree' do
|
|
|
97
96
|
%q[
|
|
98
97
|
{
|
|
99
98
|
"end": 0,
|
|
100
|
-
"first_page_uri": "/2010-04-01/Accounts/ACaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/IncomingPhoneNumbers/TollFree.json?PageSize=
|
|
99
|
+
"first_page_uri": "/2010-04-01/Accounts/ACaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/IncomingPhoneNumbers/TollFree.json?FriendlyName=friendly_name&Beta=true&PhoneNumber=%2B19876543210&PageSize=50&Page=0",
|
|
101
100
|
"incoming_phone_numbers": [],
|
|
102
|
-
"last_page_uri": "/2010-04-01/Accounts/ACaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/IncomingPhoneNumbers/TollFree.json?PageSize=1&Page=2",
|
|
103
101
|
"next_page_uri": null,
|
|
104
|
-
"num_pages": 3,
|
|
105
102
|
"page": 0,
|
|
106
|
-
"page_size":
|
|
103
|
+
"page_size": 50,
|
|
107
104
|
"previous_page_uri": null,
|
|
108
105
|
"start": 0,
|
|
109
|
-
"
|
|
110
|
-
"uri": "/2010-04-01/Accounts/ACaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/IncomingPhoneNumbers/TollFree.json?PageSize=1"
|
|
106
|
+
"uri": "/2010-04-01/Accounts/ACaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/IncomingPhoneNumbers/TollFree.json?FriendlyName=friendly_name&Beta=true&PhoneNumber=%2B19876543210&PageSize=50&Page=0"
|
|
111
107
|
}
|
|
112
108
|
]
|
|
113
109
|
))
|
|
@@ -148,35 +144,38 @@ describe 'TollFree' do
|
|
|
148
144
|
"api_version": "2010-04-01",
|
|
149
145
|
"beta": false,
|
|
150
146
|
"capabilities": {
|
|
151
|
-
"
|
|
147
|
+
"voice": true,
|
|
152
148
|
"sms": false,
|
|
153
|
-
"
|
|
149
|
+
"mms": true,
|
|
150
|
+
"fax": false
|
|
154
151
|
},
|
|
155
152
|
"date_created": "Thu, 30 Jul 2015 23:19:04 +0000",
|
|
156
153
|
"date_updated": "Thu, 30 Jul 2015 23:19:04 +0000",
|
|
157
|
-
"
|
|
154
|
+
"emergency_status": "Active",
|
|
155
|
+
"emergency_address_sid": "ADaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
|
|
156
|
+
"friendly_name": "friendly_name",
|
|
158
157
|
"identity_sid": "RIaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
|
|
159
|
-
"phone_number": "+18089255327",
|
|
160
158
|
"origin": "origin",
|
|
159
|
+
"phone_number": "+18089255327",
|
|
161
160
|
"sid": "PNaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
|
|
162
|
-
"sms_application_sid": "",
|
|
163
|
-
"sms_fallback_method": "
|
|
164
|
-
"sms_fallback_url": "",
|
|
165
|
-
"sms_method": "
|
|
166
|
-
"sms_url": "",
|
|
167
|
-
"status_callback": "",
|
|
168
|
-
"status_callback_method": "
|
|
161
|
+
"sms_application_sid": "APaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
|
|
162
|
+
"sms_fallback_method": "GET",
|
|
163
|
+
"sms_fallback_url": "https://example.com",
|
|
164
|
+
"sms_method": "GET",
|
|
165
|
+
"sms_url": "https://example.com",
|
|
166
|
+
"status_callback": "https://example.com",
|
|
167
|
+
"status_callback_method": "GET",
|
|
169
168
|
"trunk_sid": null,
|
|
170
169
|
"uri": "/2010-04-01/Accounts/ACaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/IncomingPhoneNumbers/PNaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa.json",
|
|
171
|
-
"voice_application_sid": "",
|
|
172
|
-
"voice_caller_id_lookup":
|
|
173
|
-
"voice_fallback_method": "
|
|
174
|
-
"voice_fallback_url":
|
|
175
|
-
"voice_method": "
|
|
176
|
-
"voice_url":
|
|
177
|
-
"
|
|
178
|
-
"
|
|
179
|
-
"
|
|
170
|
+
"voice_application_sid": "APaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
|
|
171
|
+
"voice_caller_id_lookup": true,
|
|
172
|
+
"voice_fallback_method": "GET",
|
|
173
|
+
"voice_fallback_url": "https://example.com",
|
|
174
|
+
"voice_method": "GET",
|
|
175
|
+
"voice_url": "https://example.com",
|
|
176
|
+
"bundle_sid": "BUaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
|
|
177
|
+
"voice_receive_mode": "voice",
|
|
178
|
+
"status": "in-use"
|
|
180
179
|
}
|
|
181
180
|
]
|
|
182
181
|
))
|
|
@@ -205,7 +205,7 @@ describe 'IncomingPhoneNumber' do
|
|
|
205
205
|
%q[
|
|
206
206
|
{
|
|
207
207
|
"end": 0,
|
|
208
|
-
"first_page_uri": "/2010-04-01/Accounts/ACaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/IncomingPhoneNumbers.json?PageSize=
|
|
208
|
+
"first_page_uri": "/2010-04-01/Accounts/ACaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/IncomingPhoneNumbers.json?FriendlyName=friendly_name&Beta=true&PhoneNumber=%2B19876543210&PageSize=50&Page=0",
|
|
209
209
|
"incoming_phone_numbers": [
|
|
210
210
|
{
|
|
211
211
|
"account_sid": "ACaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
|
|
@@ -214,9 +214,10 @@ describe 'IncomingPhoneNumber' do
|
|
|
214
214
|
"api_version": "2010-04-01",
|
|
215
215
|
"beta": null,
|
|
216
216
|
"capabilities": {
|
|
217
|
-
"
|
|
217
|
+
"voice": true,
|
|
218
218
|
"sms": false,
|
|
219
|
-
"
|
|
219
|
+
"mms": true,
|
|
220
|
+
"fax": false
|
|
220
221
|
},
|
|
221
222
|
"date_created": "Thu, 30 Jul 2015 23:19:04 +0000",
|
|
222
223
|
"date_updated": "Thu, 30 Jul 2015 23:19:04 +0000",
|
|
@@ -255,10 +256,10 @@ describe 'IncomingPhoneNumber' do
|
|
|
255
256
|
],
|
|
256
257
|
"next_page_uri": null,
|
|
257
258
|
"page": 0,
|
|
258
|
-
"page_size":
|
|
259
|
+
"page_size": 50,
|
|
259
260
|
"previous_page_uri": null,
|
|
260
261
|
"start": 0,
|
|
261
|
-
"uri": "/2010-04-01/Accounts/ACaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/IncomingPhoneNumbers.json?PageSize=
|
|
262
|
+
"uri": "/2010-04-01/Accounts/ACaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/IncomingPhoneNumbers.json?FriendlyName=friendly_name&Beta=true&PhoneNumber=%2B19876543210&PageSize=50&Page=0"
|
|
262
263
|
}
|
|
263
264
|
]
|
|
264
265
|
))
|
|
@@ -275,14 +276,14 @@ describe 'IncomingPhoneNumber' do
|
|
|
275
276
|
%q[
|
|
276
277
|
{
|
|
277
278
|
"end": 0,
|
|
278
|
-
"first_page_uri": "/2010-04-01/Accounts/ACaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/IncomingPhoneNumbers.json?PageSize=
|
|
279
|
+
"first_page_uri": "/2010-04-01/Accounts/ACaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/IncomingPhoneNumbers.json?FriendlyName=friendly_name&Beta=true&PhoneNumber=%2B19876543210&PageSize=50&Page=0",
|
|
279
280
|
"incoming_phone_numbers": [],
|
|
280
281
|
"next_page_uri": null,
|
|
281
282
|
"page": 0,
|
|
282
|
-
"page_size":
|
|
283
|
+
"page_size": 50,
|
|
283
284
|
"previous_page_uri": null,
|
|
284
285
|
"start": 0,
|
|
285
|
-
"uri": "/2010-04-01/Accounts/ACaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/IncomingPhoneNumbers.json?PageSize=
|
|
286
|
+
"uri": "/2010-04-01/Accounts/ACaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/IncomingPhoneNumbers.json?FriendlyName=friendly_name&Beta=true&PhoneNumber=%2B19876543210&PageSize=50&Page=0"
|
|
286
287
|
}
|
|
287
288
|
]
|
|
288
289
|
))
|
|
@@ -319,34 +320,35 @@ describe 'IncomingPhoneNumber' do
|
|
|
319
320
|
"api_version": "2010-04-01",
|
|
320
321
|
"beta": false,
|
|
321
322
|
"capabilities": {
|
|
322
|
-
"
|
|
323
|
+
"voice": true,
|
|
323
324
|
"sms": false,
|
|
324
|
-
"
|
|
325
|
+
"mms": true,
|
|
326
|
+
"fax": false
|
|
325
327
|
},
|
|
326
328
|
"date_created": "Thu, 30 Jul 2015 23:19:04 +0000",
|
|
327
329
|
"date_updated": "Thu, 30 Jul 2015 23:19:04 +0000",
|
|
328
330
|
"emergency_status": "Active",
|
|
329
331
|
"emergency_address_sid": "ADaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
|
|
330
|
-
"friendly_name": "
|
|
332
|
+
"friendly_name": "friendly_name",
|
|
331
333
|
"identity_sid": "RIaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
|
|
332
334
|
"origin": "origin",
|
|
333
335
|
"phone_number": "+18089255327",
|
|
334
336
|
"sid": "PNaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
|
|
335
|
-
"sms_application_sid": "",
|
|
336
|
-
"sms_fallback_method": "
|
|
337
|
-
"sms_fallback_url": "",
|
|
338
|
-
"sms_method": "
|
|
339
|
-
"sms_url": "",
|
|
340
|
-
"status_callback": "",
|
|
341
|
-
"status_callback_method": "
|
|
337
|
+
"sms_application_sid": "APaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
|
|
338
|
+
"sms_fallback_method": "GET",
|
|
339
|
+
"sms_fallback_url": "https://example.com",
|
|
340
|
+
"sms_method": "GET",
|
|
341
|
+
"sms_url": "https://example.com",
|
|
342
|
+
"status_callback": "https://example.com",
|
|
343
|
+
"status_callback_method": "GET",
|
|
342
344
|
"trunk_sid": null,
|
|
343
345
|
"uri": "/2010-04-01/Accounts/ACaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/IncomingPhoneNumbers/PNaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa.json",
|
|
344
|
-
"voice_application_sid": "",
|
|
346
|
+
"voice_application_sid": "APaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
|
|
345
347
|
"voice_caller_id_lookup": false,
|
|
346
|
-
"voice_fallback_method": "
|
|
347
|
-
"voice_fallback_url":
|
|
348
|
-
"voice_method": "
|
|
349
|
-
"voice_url":
|
|
348
|
+
"voice_fallback_method": "GET",
|
|
349
|
+
"voice_fallback_url": "https://example.com",
|
|
350
|
+
"voice_method": "GET",
|
|
351
|
+
"voice_url": "https://example.com",
|
|
350
352
|
"bundle_sid": "BUaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
|
|
351
353
|
"voice_receive_mode": "voice",
|
|
352
354
|
"status": "in-use",
|