twilio-ruby 5.25.3 → 5.25.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGES.md +26 -0
- data/README.md +2 -2
- data/lib/twilio-ruby/rest/api/v2010/account/message.rb +1 -8
- data/lib/twilio-ruby/rest/autopilot/v1/assistant/field_type/field_value.rb +4 -4
- data/lib/twilio-ruby/rest/flex_api.rb +16 -0
- data/lib/twilio-ruby/rest/flex_api/v1.rb +30 -0
- data/lib/twilio-ruby/rest/flex_api/v1/channel.rb +352 -0
- data/lib/twilio-ruby/rest/flex_api/v1/configuration.rb +7 -0
- data/lib/twilio-ruby/rest/flex_api/v1/web_channel.rb +358 -0
- data/lib/twilio-ruby/rest/insights/v1/summary.rb +0 -14
- data/lib/twilio-ruby/rest/ip_messaging.rb +2 -2
- data/lib/twilio-ruby/rest/sync/v1/service.rb +22 -3
- data/lib/twilio-ruby/rest/verify/v2/service/verification.rb +5 -5
- data/lib/twilio-ruby/rest/verify/v2/service/verification_check.rb +2 -2
- data/lib/twilio-ruby/twiml/voice_response.rb +19 -7
- data/lib/twilio-ruby/version.rb +1 -1
- data/spec/integration/conversations/v1/conversation_spec.rb +1 -1
- data/spec/integration/flex_api/v1/channel_spec.rb +191 -0
- data/spec/integration/flex_api/v1/configuration_spec.rb +24 -0
- data/spec/integration/flex_api/v1/web_channel_spec.rb +220 -0
- data/spec/integration/insights/v1/summary_spec.rb +0 -2
- data/spec/integration/ip_messaging/v1/credential_spec.rb +5 -5
- data/spec/integration/ip_messaging/v1/service/channel/invite_spec.rb +4 -4
- data/spec/integration/ip_messaging/v1/service/channel/member_spec.rb +5 -5
- data/spec/integration/ip_messaging/v1/service/channel/message_spec.rb +5 -5
- data/spec/integration/ip_messaging/v1/service/channel_spec.rb +5 -5
- data/spec/integration/ip_messaging/v1/service/role_spec.rb +5 -5
- data/spec/integration/ip_messaging/v1/service/user/user_channel_spec.rb +1 -1
- data/spec/integration/ip_messaging/v1/service/user_spec.rb +5 -5
- data/spec/integration/ip_messaging/v1/service_spec.rb +5 -5
- data/spec/integration/ip_messaging/v2/credential_spec.rb +5 -5
- data/spec/integration/ip_messaging/v2/service/binding_spec.rb +3 -3
- data/spec/integration/ip_messaging/v2/service/channel/invite_spec.rb +4 -4
- data/spec/integration/ip_messaging/v2/service/channel/member_spec.rb +5 -5
- data/spec/integration/ip_messaging/v2/service/channel/message_spec.rb +5 -5
- data/spec/integration/ip_messaging/v2/service/channel/webhook_spec.rb +5 -5
- data/spec/integration/ip_messaging/v2/service/channel_spec.rb +5 -5
- data/spec/integration/ip_messaging/v2/service/role_spec.rb +5 -5
- data/spec/integration/ip_messaging/v2/service/user/user_binding_spec.rb +3 -3
- data/spec/integration/ip_messaging/v2/service/user/user_channel_spec.rb +3 -3
- data/spec/integration/ip_messaging/v2/service/user_spec.rb +5 -5
- data/spec/integration/ip_messaging/v2/service_spec.rb +5 -5
- data/spec/integration/monitor/v1/alert_spec.rb +8 -8
- data/spec/integration/sync/v1/service_spec.rb +4 -0
- data/spec/integration/wireless/v1/rate_plan_spec.rb +8 -0
- metadata +8 -2
@@ -22,7 +22,7 @@ describe 'Member' do
|
|
22
22
|
expect(
|
23
23
|
@holodeck.has_request?(Holodeck::Request.new(
|
24
24
|
method: 'get',
|
25
|
-
url: 'https://
|
25
|
+
url: 'https://chat.twilio.com/v2/Services/ISXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX/Channels/CHXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX/Members/MBXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX',
|
26
26
|
))).to eq(true)
|
27
27
|
end
|
28
28
|
|
@@ -67,7 +67,7 @@ describe 'Member' do
|
|
67
67
|
expect(
|
68
68
|
@holodeck.has_request?(Holodeck::Request.new(
|
69
69
|
method: 'post',
|
70
|
-
url: 'https://
|
70
|
+
url: 'https://chat.twilio.com/v2/Services/ISXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX/Channels/CHXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX/Members',
|
71
71
|
data: values,
|
72
72
|
))).to eq(true)
|
73
73
|
end
|
@@ -113,7 +113,7 @@ describe 'Member' do
|
|
113
113
|
expect(
|
114
114
|
@holodeck.has_request?(Holodeck::Request.new(
|
115
115
|
method: 'get',
|
116
|
-
url: 'https://
|
116
|
+
url: 'https://chat.twilio.com/v2/Services/ISXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX/Channels/CHXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX/Members',
|
117
117
|
))).to eq(true)
|
118
118
|
end
|
119
119
|
|
@@ -197,7 +197,7 @@ describe 'Member' do
|
|
197
197
|
expect(
|
198
198
|
@holodeck.has_request?(Holodeck::Request.new(
|
199
199
|
method: 'delete',
|
200
|
-
url: 'https://
|
200
|
+
url: 'https://chat.twilio.com/v2/Services/ISXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX/Channels/CHXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX/Members/MBXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX',
|
201
201
|
))).to eq(true)
|
202
202
|
end
|
203
203
|
|
@@ -227,7 +227,7 @@ describe 'Member' do
|
|
227
227
|
expect(
|
228
228
|
@holodeck.has_request?(Holodeck::Request.new(
|
229
229
|
method: 'post',
|
230
|
-
url: 'https://
|
230
|
+
url: 'https://chat.twilio.com/v2/Services/ISXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX/Channels/CHXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX/Members/MBXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX',
|
231
231
|
))).to eq(true)
|
232
232
|
end
|
233
233
|
|
@@ -22,7 +22,7 @@ describe 'Message' do
|
|
22
22
|
expect(
|
23
23
|
@holodeck.has_request?(Holodeck::Request.new(
|
24
24
|
method: 'get',
|
25
|
-
url: 'https://
|
25
|
+
url: 'https://chat.twilio.com/v2/Services/ISXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX/Channels/CHXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX/Messages/IMXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX',
|
26
26
|
))).to eq(true)
|
27
27
|
end
|
28
28
|
|
@@ -108,7 +108,7 @@ describe 'Message' do
|
|
108
108
|
expect(
|
109
109
|
@holodeck.has_request?(Holodeck::Request.new(
|
110
110
|
method: 'post',
|
111
|
-
url: 'https://
|
111
|
+
url: 'https://chat.twilio.com/v2/Services/ISXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX/Channels/CHXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX/Messages',
|
112
112
|
))).to eq(true)
|
113
113
|
end
|
114
114
|
|
@@ -226,7 +226,7 @@ describe 'Message' do
|
|
226
226
|
expect(
|
227
227
|
@holodeck.has_request?(Holodeck::Request.new(
|
228
228
|
method: 'get',
|
229
|
-
url: 'https://
|
229
|
+
url: 'https://chat.twilio.com/v2/Services/ISXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX/Channels/CHXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX/Messages',
|
230
230
|
))).to eq(true)
|
231
231
|
end
|
232
232
|
|
@@ -337,7 +337,7 @@ describe 'Message' do
|
|
337
337
|
expect(
|
338
338
|
@holodeck.has_request?(Holodeck::Request.new(
|
339
339
|
method: 'delete',
|
340
|
-
url: 'https://
|
340
|
+
url: 'https://chat.twilio.com/v2/Services/ISXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX/Channels/CHXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX/Messages/IMXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX',
|
341
341
|
))).to eq(true)
|
342
342
|
end
|
343
343
|
|
@@ -367,7 +367,7 @@ describe 'Message' do
|
|
367
367
|
expect(
|
368
368
|
@holodeck.has_request?(Holodeck::Request.new(
|
369
369
|
method: 'post',
|
370
|
-
url: 'https://
|
370
|
+
url: 'https://chat.twilio.com/v2/Services/ISXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX/Channels/CHXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX/Messages/IMXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX',
|
371
371
|
))).to eq(true)
|
372
372
|
end
|
373
373
|
|
@@ -22,7 +22,7 @@ describe 'Webhook' do
|
|
22
22
|
expect(
|
23
23
|
@holodeck.has_request?(Holodeck::Request.new(
|
24
24
|
method: 'get',
|
25
|
-
url: 'https://
|
25
|
+
url: 'https://chat.twilio.com/v2/Services/ISXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX/Channels/CHXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX/Webhooks',
|
26
26
|
))).to eq(true)
|
27
27
|
end
|
28
28
|
|
@@ -143,7 +143,7 @@ describe 'Webhook' do
|
|
143
143
|
expect(
|
144
144
|
@holodeck.has_request?(Holodeck::Request.new(
|
145
145
|
method: 'get',
|
146
|
-
url: 'https://
|
146
|
+
url: 'https://chat.twilio.com/v2/Services/ISXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX/Channels/CHXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX/Webhooks/WHXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX',
|
147
147
|
))).to eq(true)
|
148
148
|
end
|
149
149
|
|
@@ -187,7 +187,7 @@ describe 'Webhook' do
|
|
187
187
|
expect(
|
188
188
|
@holodeck.has_request?(Holodeck::Request.new(
|
189
189
|
method: 'post',
|
190
|
-
url: 'https://
|
190
|
+
url: 'https://chat.twilio.com/v2/Services/ISXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX/Channels/CHXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX/Webhooks',
|
191
191
|
data: values,
|
192
192
|
))).to eq(true)
|
193
193
|
end
|
@@ -238,7 +238,7 @@ describe 'Webhook' do
|
|
238
238
|
expect(
|
239
239
|
@holodeck.has_request?(Holodeck::Request.new(
|
240
240
|
method: 'post',
|
241
|
-
url: 'https://
|
241
|
+
url: 'https://chat.twilio.com/v2/Services/ISXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX/Channels/CHXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX/Webhooks/WHXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX',
|
242
242
|
))).to eq(true)
|
243
243
|
end
|
244
244
|
|
@@ -288,7 +288,7 @@ describe 'Webhook' do
|
|
288
288
|
expect(
|
289
289
|
@holodeck.has_request?(Holodeck::Request.new(
|
290
290
|
method: 'delete',
|
291
|
-
url: 'https://
|
291
|
+
url: 'https://chat.twilio.com/v2/Services/ISXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX/Channels/CHXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX/Webhooks/WHXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX',
|
292
292
|
))).to eq(true)
|
293
293
|
end
|
294
294
|
|
@@ -21,7 +21,7 @@ describe 'Channel' do
|
|
21
21
|
expect(
|
22
22
|
@holodeck.has_request?(Holodeck::Request.new(
|
23
23
|
method: 'get',
|
24
|
-
url: 'https://
|
24
|
+
url: 'https://chat.twilio.com/v2/Services/ISXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX/Channels/CHXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX',
|
25
25
|
))).to eq(true)
|
26
26
|
end
|
27
27
|
|
@@ -72,7 +72,7 @@ describe 'Channel' do
|
|
72
72
|
expect(
|
73
73
|
@holodeck.has_request?(Holodeck::Request.new(
|
74
74
|
method: 'delete',
|
75
|
-
url: 'https://
|
75
|
+
url: 'https://chat.twilio.com/v2/Services/ISXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX/Channels/CHXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX',
|
76
76
|
))).to eq(true)
|
77
77
|
end
|
78
78
|
|
@@ -100,7 +100,7 @@ describe 'Channel' do
|
|
100
100
|
expect(
|
101
101
|
@holodeck.has_request?(Holodeck::Request.new(
|
102
102
|
method: 'post',
|
103
|
-
url: 'https://
|
103
|
+
url: 'https://chat.twilio.com/v2/Services/ISXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX/Channels',
|
104
104
|
))).to eq(true)
|
105
105
|
end
|
106
106
|
|
@@ -151,7 +151,7 @@ describe 'Channel' do
|
|
151
151
|
expect(
|
152
152
|
@holodeck.has_request?(Holodeck::Request.new(
|
153
153
|
method: 'get',
|
154
|
-
url: 'https://
|
154
|
+
url: 'https://chat.twilio.com/v2/Services/ISXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX/Channels',
|
155
155
|
))).to eq(true)
|
156
156
|
end
|
157
157
|
|
@@ -240,7 +240,7 @@ describe 'Channel' do
|
|
240
240
|
expect(
|
241
241
|
@holodeck.has_request?(Holodeck::Request.new(
|
242
242
|
method: 'post',
|
243
|
-
url: 'https://
|
243
|
+
url: 'https://chat.twilio.com/v2/Services/ISXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX/Channels/CHXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX',
|
244
244
|
))).to eq(true)
|
245
245
|
end
|
246
246
|
|
@@ -21,7 +21,7 @@ describe 'Role' do
|
|
21
21
|
expect(
|
22
22
|
@holodeck.has_request?(Holodeck::Request.new(
|
23
23
|
method: 'get',
|
24
|
-
url: 'https://
|
24
|
+
url: 'https://chat.twilio.com/v2/Services/ISXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX/Roles/RLXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX',
|
25
25
|
))).to eq(true)
|
26
26
|
end
|
27
27
|
|
@@ -66,7 +66,7 @@ describe 'Role' do
|
|
66
66
|
expect(
|
67
67
|
@holodeck.has_request?(Holodeck::Request.new(
|
68
68
|
method: 'delete',
|
69
|
-
url: 'https://
|
69
|
+
url: 'https://chat.twilio.com/v2/Services/ISXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX/Roles/RLXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX',
|
70
70
|
))).to eq(true)
|
71
71
|
end
|
72
72
|
|
@@ -98,7 +98,7 @@ describe 'Role' do
|
|
98
98
|
expect(
|
99
99
|
@holodeck.has_request?(Holodeck::Request.new(
|
100
100
|
method: 'post',
|
101
|
-
url: 'https://
|
101
|
+
url: 'https://chat.twilio.com/v2/Services/ISXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX/Roles',
|
102
102
|
data: values,
|
103
103
|
))).to eq(true)
|
104
104
|
end
|
@@ -144,7 +144,7 @@ describe 'Role' do
|
|
144
144
|
expect(
|
145
145
|
@holodeck.has_request?(Holodeck::Request.new(
|
146
146
|
method: 'get',
|
147
|
-
url: 'https://
|
147
|
+
url: 'https://chat.twilio.com/v2/Services/ISXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX/Roles',
|
148
148
|
))).to eq(true)
|
149
149
|
end
|
150
150
|
|
@@ -227,7 +227,7 @@ describe 'Role' do
|
|
227
227
|
expect(
|
228
228
|
@holodeck.has_request?(Holodeck::Request.new(
|
229
229
|
method: 'post',
|
230
|
-
url: 'https://
|
230
|
+
url: 'https://chat.twilio.com/v2/Services/ISXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX/Roles/RLXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX',
|
231
231
|
data: values,
|
232
232
|
))).to eq(true)
|
233
233
|
end
|
@@ -22,7 +22,7 @@ describe 'UserBinding' do
|
|
22
22
|
expect(
|
23
23
|
@holodeck.has_request?(Holodeck::Request.new(
|
24
24
|
method: 'get',
|
25
|
-
url: 'https://
|
25
|
+
url: 'https://chat.twilio.com/v2/Services/ISXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX/Users/USXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX/Bindings',
|
26
26
|
))).to eq(true)
|
27
27
|
end
|
28
28
|
|
@@ -111,7 +111,7 @@ describe 'UserBinding' do
|
|
111
111
|
expect(
|
112
112
|
@holodeck.has_request?(Holodeck::Request.new(
|
113
113
|
method: 'get',
|
114
|
-
url: 'https://
|
114
|
+
url: 'https://chat.twilio.com/v2/Services/ISXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX/Users/USXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX/Bindings/BSXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX',
|
115
115
|
))).to eq(true)
|
116
116
|
end
|
117
117
|
|
@@ -161,7 +161,7 @@ describe 'UserBinding' do
|
|
161
161
|
expect(
|
162
162
|
@holodeck.has_request?(Holodeck::Request.new(
|
163
163
|
method: 'delete',
|
164
|
-
url: 'https://
|
164
|
+
url: 'https://chat.twilio.com/v2/Services/ISXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX/Users/USXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX/Bindings/BSXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX',
|
165
165
|
))).to eq(true)
|
166
166
|
end
|
167
167
|
|
@@ -22,7 +22,7 @@ describe 'UserChannel' do
|
|
22
22
|
expect(
|
23
23
|
@holodeck.has_request?(Holodeck::Request.new(
|
24
24
|
method: 'get',
|
25
|
-
url: 'https://
|
25
|
+
url: 'https://chat.twilio.com/v2/Services/ISXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX/Users/USXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX/Channels',
|
26
26
|
))).to eq(true)
|
27
27
|
end
|
28
28
|
|
@@ -108,7 +108,7 @@ describe 'UserChannel' do
|
|
108
108
|
expect(
|
109
109
|
@holodeck.has_request?(Holodeck::Request.new(
|
110
110
|
method: 'get',
|
111
|
-
url: 'https://
|
111
|
+
url: 'https://chat.twilio.com/v2/Services/ISXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX/Users/USXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX/Channels/CHXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX',
|
112
112
|
))).to eq(true)
|
113
113
|
end
|
114
114
|
|
@@ -155,7 +155,7 @@ describe 'UserChannel' do
|
|
155
155
|
expect(
|
156
156
|
@holodeck.has_request?(Holodeck::Request.new(
|
157
157
|
method: 'post',
|
158
|
-
url: 'https://
|
158
|
+
url: 'https://chat.twilio.com/v2/Services/ISXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX/Users/USXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX/Channels/CHXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX',
|
159
159
|
data: values,
|
160
160
|
))).to eq(true)
|
161
161
|
end
|
@@ -21,7 +21,7 @@ describe 'User' do
|
|
21
21
|
expect(
|
22
22
|
@holodeck.has_request?(Holodeck::Request.new(
|
23
23
|
method: 'get',
|
24
|
-
url: 'https://
|
24
|
+
url: 'https://chat.twilio.com/v2/Services/ISXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX/Users/USXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX',
|
25
25
|
))).to eq(true)
|
26
26
|
end
|
27
27
|
|
@@ -69,7 +69,7 @@ describe 'User' do
|
|
69
69
|
expect(
|
70
70
|
@holodeck.has_request?(Holodeck::Request.new(
|
71
71
|
method: 'delete',
|
72
|
-
url: 'https://
|
72
|
+
url: 'https://chat.twilio.com/v2/Services/ISXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX/Users/USXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX',
|
73
73
|
))).to eq(true)
|
74
74
|
end
|
75
75
|
|
@@ -97,7 +97,7 @@ describe 'User' do
|
|
97
97
|
expect(
|
98
98
|
@holodeck.has_request?(Holodeck::Request.new(
|
99
99
|
method: 'post',
|
100
|
-
url: 'https://
|
100
|
+
url: 'https://chat.twilio.com/v2/Services/ISXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX/Users',
|
101
101
|
data: values,
|
102
102
|
))).to eq(true)
|
103
103
|
end
|
@@ -146,7 +146,7 @@ describe 'User' do
|
|
146
146
|
expect(
|
147
147
|
@holodeck.has_request?(Holodeck::Request.new(
|
148
148
|
method: 'get',
|
149
|
-
url: 'https://
|
149
|
+
url: 'https://chat.twilio.com/v2/Services/ISXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX/Users',
|
150
150
|
))).to eq(true)
|
151
151
|
end
|
152
152
|
|
@@ -232,7 +232,7 @@ describe 'User' do
|
|
232
232
|
expect(
|
233
233
|
@holodeck.has_request?(Holodeck::Request.new(
|
234
234
|
method: 'post',
|
235
|
-
url: 'https://
|
235
|
+
url: 'https://chat.twilio.com/v2/Services/ISXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX/Users/USXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX',
|
236
236
|
))).to eq(true)
|
237
237
|
end
|
238
238
|
|
@@ -20,7 +20,7 @@ describe 'Service' do
|
|
20
20
|
expect(
|
21
21
|
@holodeck.has_request?(Holodeck::Request.new(
|
22
22
|
method: 'get',
|
23
|
-
url: 'https://
|
23
|
+
url: 'https://chat.twilio.com/v2/Services/ISXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX',
|
24
24
|
))).to eq(true)
|
25
25
|
end
|
26
26
|
|
@@ -85,7 +85,7 @@ describe 'Service' do
|
|
85
85
|
expect(
|
86
86
|
@holodeck.has_request?(Holodeck::Request.new(
|
87
87
|
method: 'delete',
|
88
|
-
url: 'https://
|
88
|
+
url: 'https://chat.twilio.com/v2/Services/ISXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX',
|
89
89
|
))).to eq(true)
|
90
90
|
end
|
91
91
|
|
@@ -111,7 +111,7 @@ describe 'Service' do
|
|
111
111
|
expect(
|
112
112
|
@holodeck.has_request?(Holodeck::Request.new(
|
113
113
|
method: 'post',
|
114
|
-
url: 'https://
|
114
|
+
url: 'https://chat.twilio.com/v2/Services',
|
115
115
|
data: values,
|
116
116
|
))).to eq(true)
|
117
117
|
end
|
@@ -177,7 +177,7 @@ describe 'Service' do
|
|
177
177
|
expect(
|
178
178
|
@holodeck.has_request?(Holodeck::Request.new(
|
179
179
|
method: 'get',
|
180
|
-
url: 'https://
|
180
|
+
url: 'https://chat.twilio.com/v2/Services',
|
181
181
|
))).to eq(true)
|
182
182
|
end
|
183
183
|
|
@@ -279,7 +279,7 @@ describe 'Service' do
|
|
279
279
|
expect(
|
280
280
|
@holodeck.has_request?(Holodeck::Request.new(
|
281
281
|
method: 'post',
|
282
|
-
url: 'https://
|
282
|
+
url: 'https://chat.twilio.com/v2/Services/ISXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX',
|
283
283
|
))).to eq(true)
|
284
284
|
end
|
285
285
|
|
@@ -45,7 +45,7 @@ describe 'Alert' do
|
|
45
45
|
"response_body": "response_body",
|
46
46
|
"response_headers": "response_headers",
|
47
47
|
"sid": "NOaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
|
48
|
-
"url": "
|
48
|
+
"url": "https://monitor.twilio.com/v1/Alerts/NOaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa"
|
49
49
|
}
|
50
50
|
]
|
51
51
|
))
|
@@ -103,13 +103,13 @@ describe 'Alert' do
|
|
103
103
|
{
|
104
104
|
"alerts": [],
|
105
105
|
"meta": {
|
106
|
-
"first_page_url": "https://monitor.twilio.com/v1/Alerts?
|
106
|
+
"first_page_url": "https://monitor.twilio.com/v1/Alerts?LogLevel=log_level&StartDate=2016-01-01&EndDate=2016-01-01&PageSize=50&Page=0",
|
107
107
|
"key": "alerts",
|
108
108
|
"next_page_url": null,
|
109
109
|
"page": 0,
|
110
|
-
"page_size":
|
110
|
+
"page_size": 50,
|
111
111
|
"previous_page_url": null,
|
112
|
-
"url": "https://monitor.twilio.com/v1/Alerts"
|
112
|
+
"url": "https://monitor.twilio.com/v1/Alerts?LogLevel=log_level&StartDate=2016-01-01&EndDate=2016-01-01&PageSize=50&Page=0"
|
113
113
|
}
|
114
114
|
}
|
115
115
|
]
|
@@ -140,17 +140,17 @@ describe 'Alert' do
|
|
140
140
|
"request_url": "http://www.example.com",
|
141
141
|
"resource_sid": "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
|
142
142
|
"sid": "NOaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
|
143
|
-
"url": "
|
143
|
+
"url": "https://monitor.twilio.com/v1/Alerts/NOaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa"
|
144
144
|
}
|
145
145
|
],
|
146
146
|
"meta": {
|
147
|
-
"first_page_url": "https://monitor.twilio.com/v1/Alerts?
|
147
|
+
"first_page_url": "https://monitor.twilio.com/v1/Alerts?LogLevel=log_level&StartDate=2016-01-01&EndDate=2016-01-01&PageSize=50&Page=0",
|
148
148
|
"key": "alerts",
|
149
149
|
"next_page_url": null,
|
150
150
|
"page": 0,
|
151
|
-
"page_size":
|
151
|
+
"page_size": 50,
|
152
152
|
"previous_page_url": null,
|
153
|
-
"url": "https://monitor.twilio.com/v1/Alerts"
|
153
|
+
"url": "https://monitor.twilio.com/v1/Alerts?LogLevel=log_level&StartDate=2016-01-01&EndDate=2016-01-01&PageSize=50&Page=0"
|
154
154
|
}
|
155
155
|
}
|
156
156
|
]
|
@@ -43,6 +43,7 @@ describe 'Service' do
|
|
43
43
|
"unique_name": "unique_name",
|
44
44
|
"url": "https://sync.twilio.com/v1/Services/ISaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
|
45
45
|
"webhook_url": "http://www.example.com",
|
46
|
+
"webhooks_from_rest_enabled": false,
|
46
47
|
"reachability_webhooks_enabled": false,
|
47
48
|
"acl_enabled": false,
|
48
49
|
"reachability_debouncing_enabled": false,
|
@@ -116,6 +117,7 @@ describe 'Service' do
|
|
116
117
|
"unique_name": "unique_name",
|
117
118
|
"url": "https://sync.twilio.com/v1/Services/ISaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
|
118
119
|
"webhook_url": "http://www.example.com",
|
120
|
+
"webhooks_from_rest_enabled": false,
|
119
121
|
"reachability_webhooks_enabled": false,
|
120
122
|
"acl_enabled": true,
|
121
123
|
"reachability_debouncing_enabled": false,
|
@@ -198,6 +200,7 @@ describe 'Service' do
|
|
198
200
|
"unique_name": "unique_name",
|
199
201
|
"url": "https://sync.twilio.com/v1/Services/ISaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
|
200
202
|
"webhook_url": "http://www.example.com",
|
203
|
+
"webhooks_from_rest_enabled": false,
|
201
204
|
"reachability_webhooks_enabled": false,
|
202
205
|
"acl_enabled": false,
|
203
206
|
"reachability_debouncing_enabled": false,
|
@@ -247,6 +250,7 @@ describe 'Service' do
|
|
247
250
|
"unique_name": "unique_name",
|
248
251
|
"url": "https://sync.twilio.com/v1/Services/ISaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
|
249
252
|
"webhook_url": "http://www.example.com",
|
253
|
+
"webhooks_from_rest_enabled": false,
|
250
254
|
"reachability_webhooks_enabled": false,
|
251
255
|
"acl_enabled": true,
|
252
256
|
"reachability_debouncing_enabled": false,
|
@@ -83,6 +83,8 @@ describe 'RatePlan' do
|
|
83
83
|
],
|
84
84
|
"international_roaming_data_limit": 1000,
|
85
85
|
"sid": "WPaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
|
86
|
+
"usage_notification_method": "POST",
|
87
|
+
"usage_notification_url": "https://callback.com",
|
86
88
|
"url": "https://wireless.twilio.com/v1/RatePlans/WPaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa"
|
87
89
|
}
|
88
90
|
]
|
@@ -134,6 +136,8 @@ describe 'RatePlan' do
|
|
134
136
|
],
|
135
137
|
"international_roaming_data_limit": 1000,
|
136
138
|
"sid": "WPaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
|
139
|
+
"usage_notification_method": "POST",
|
140
|
+
"usage_notification_url": "https://callback.com",
|
137
141
|
"url": "https://wireless.twilio.com/v1/RatePlans/WPaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa"
|
138
142
|
}
|
139
143
|
]
|
@@ -183,6 +187,8 @@ describe 'RatePlan' do
|
|
183
187
|
],
|
184
188
|
"international_roaming_data_limit": 1000,
|
185
189
|
"sid": "WPaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
|
190
|
+
"usage_notification_method": "POST",
|
191
|
+
"usage_notification_url": "https://callback.com",
|
186
192
|
"url": "https://wireless.twilio.com/v1/RatePlans/WPaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa"
|
187
193
|
}
|
188
194
|
]
|
@@ -232,6 +238,8 @@ describe 'RatePlan' do
|
|
232
238
|
],
|
233
239
|
"international_roaming_data_limit": 1000,
|
234
240
|
"sid": "WPaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
|
241
|
+
"usage_notification_method": "POST",
|
242
|
+
"usage_notification_url": "https://callback.com",
|
235
243
|
"url": "https://wireless.twilio.com/v1/RatePlans/WPaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa"
|
236
244
|
}
|
237
245
|
]
|