twilio-ruby 5.39.2 → 5.40.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.travis.yml +1 -1
- data/CHANGES.md +107 -1
- data/CONTRIBUTING.md +2 -2
- data/ISSUE_TEMPLATE.md +5 -1
- data/PULL_REQUEST_TEMPLATE.md +1 -1
- data/README.md +4 -3
- data/lib/twilio-ruby/framework/version.rb +4 -8
- data/lib/twilio-ruby/rest/api/v2010/account/application.rb +6 -4
- data/lib/twilio-ruby/rest/api/v2010/account/available_phone_number/local.rb +12 -3
- data/lib/twilio-ruby/rest/api/v2010/account/available_phone_number/machine_to_machine.rb +12 -3
- data/lib/twilio-ruby/rest/api/v2010/account/available_phone_number/mobile.rb +12 -3
- data/lib/twilio-ruby/rest/api/v2010/account/available_phone_number/national.rb +12 -3
- data/lib/twilio-ruby/rest/api/v2010/account/available_phone_number/shared_cost.rb +12 -3
- data/lib/twilio-ruby/rest/api/v2010/account/available_phone_number/toll_free.rb +12 -3
- data/lib/twilio-ruby/rest/api/v2010/account/available_phone_number/voip.rb +12 -3
- data/lib/twilio-ruby/rest/api/v2010/account/call.rb +2 -1
- data/lib/twilio-ruby/rest/api/v2010/account/call/payment.rb +85 -60
- data/lib/twilio-ruby/rest/api/v2010/account/conference/participant.rb +5 -2
- 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/api/v2010/account/message.rb +8 -1
- data/lib/twilio-ruby/rest/api/v2010/account/message/feedback.rb +3 -1
- data/lib/twilio-ruby/rest/api/v2010/account/usage/trigger.rb +2 -1
- data/lib/twilio-ruby/rest/autopilot/v1/assistant/field_type/field_value.rb +8 -4
- data/lib/twilio-ruby/rest/autopilot/v1/assistant/query.rb +11 -4
- data/lib/twilio-ruby/rest/autopilot/v1/assistant/task/sample.rb +13 -6
- data/lib/twilio-ruby/rest/client.rb +7 -0
- data/lib/twilio-ruby/rest/conversations.rb +39 -3
- data/lib/twilio-ruby/rest/conversations/v1.rb +68 -5
- data/lib/twilio-ruby/rest/conversations/v1/configuration.rb +268 -0
- data/lib/twilio-ruby/rest/conversations/v1/configuration/webhook.rb +262 -0
- data/lib/twilio-ruby/rest/conversations/v1/conversation.rb +21 -10
- data/lib/twilio-ruby/rest/conversations/v1/conversation/message.rb +13 -10
- data/lib/twilio-ruby/rest/conversations/v1/conversation/message/delivery_receipt.rb +34 -19
- data/lib/twilio-ruby/rest/conversations/v1/conversation/participant.rb +48 -32
- data/lib/twilio-ruby/rest/conversations/v1/conversation/webhook.rb +14 -11
- data/lib/twilio-ruby/rest/conversations/v1/credential.rb +427 -0
- data/lib/twilio-ruby/rest/conversations/v1/role.rb +374 -0
- data/lib/twilio-ruby/rest/conversations/v1/service.rb +442 -0
- data/lib/twilio-ruby/rest/conversations/v1/service/binding.rb +388 -0
- data/lib/twilio-ruby/rest/conversations/v1/service/configuration.rb +271 -0
- data/lib/twilio-ruby/rest/conversations/v1/service/configuration/notification.rb +315 -0
- data/lib/twilio-ruby/rest/conversations/v1/service/conversation.rb +586 -0
- data/lib/twilio-ruby/rest/conversations/v1/service/conversation/message.rb +549 -0
- data/lib/twilio-ruby/rest/conversations/v1/service/conversation/message/delivery_receipt.rb +394 -0
- data/lib/twilio-ruby/rest/conversations/v1/service/conversation/participant.rb +519 -0
- data/lib/twilio-ruby/rest/conversations/v1/service/conversation/webhook.rb +457 -0
- data/lib/twilio-ruby/rest/conversations/v1/service/role.rb +395 -0
- data/lib/twilio-ruby/rest/conversations/v1/service/user.rb +419 -0
- data/lib/twilio-ruby/rest/conversations/v1/user.rb +398 -0
- data/lib/twilio-ruby/rest/events.rb +72 -0
- data/lib/twilio-ruby/rest/events/v1.rb +90 -0
- data/lib/twilio-ruby/rest/events/v1/event_type.rb +291 -0
- data/lib/twilio-ruby/rest/events/v1/schema.rb +226 -0
- data/lib/twilio-ruby/rest/events/v1/schema/schema_version.rb +290 -0
- data/lib/twilio-ruby/rest/events/v1/sink.rb +380 -0
- data/lib/twilio-ruby/rest/events/v1/sink/sink_test.rb +115 -0
- data/lib/twilio-ruby/rest/events/v1/sink/sink_validate.rb +119 -0
- data/lib/twilio-ruby/rest/events/v1/subscription.rb +383 -0
- data/lib/twilio-ruby/rest/events/v1/subscription/subscribed_event.rb +216 -0
- data/lib/twilio-ruby/rest/fax/v1/fax.rb +2 -1
- data/lib/twilio-ruby/rest/messaging.rb +6 -0
- data/lib/twilio-ruby/rest/messaging/v1.rb +7 -0
- data/lib/twilio-ruby/rest/messaging/v1/deactivation.rb +164 -0
- data/lib/twilio-ruby/rest/messaging/v1/service.rb +6 -3
- data/lib/twilio-ruby/rest/notify/v1/credential.rb +12 -6
- data/lib/twilio-ruby/rest/notify/v1/service/notification.rb +10 -2
- data/lib/twilio-ruby/rest/numbers/v2/regulatory_compliance.rb +3 -3
- data/lib/twilio-ruby/rest/numbers/v2/regulatory_compliance/end_user.rb +16 -2
- data/lib/twilio-ruby/rest/numbers/v2/regulatory_compliance/supporting_document.rb +18 -4
- data/lib/twilio-ruby/rest/preview/hosted_numbers/authorization_document.rb +10 -5
- data/lib/twilio-ruby/rest/preview/hosted_numbers/authorization_document/dependent_hosted_number_order.rb +6 -3
- data/lib/twilio-ruby/rest/preview/trusted_comms/business/insights.rb +1 -4
- data/lib/twilio-ruby/rest/proxy/v1/service/phone_number.rb +3 -1
- data/lib/twilio-ruby/rest/proxy/v1/service/session.rb +45 -4
- data/lib/twilio-ruby/rest/proxy/v1/service/session/participant.rb +14 -1
- data/lib/twilio-ruby/rest/serverless/v1/service.rb +13 -13
- data/lib/twilio-ruby/rest/serverless/v1/service/asset.rb +6 -6
- data/lib/twilio-ruby/rest/serverless/v1/service/asset/asset_version.rb +5 -5
- data/lib/twilio-ruby/rest/serverless/v1/service/build.rb +8 -8
- data/lib/twilio-ruby/rest/serverless/v1/service/environment.rb +6 -8
- data/lib/twilio-ruby/rest/serverless/v1/service/environment/deployment.rb +8 -8
- data/lib/twilio-ruby/rest/serverless/v1/service/environment/variable.rb +14 -14
- data/lib/twilio-ruby/rest/serverless/v1/service/function.rb +4 -4
- data/lib/twilio-ruby/rest/serverless/v1/service/function/function_version.rb +7 -7
- data/lib/twilio-ruby/rest/serverless/v1/service/function/function_version/function_version_content.rb +1 -1
- data/lib/twilio-ruby/rest/supersim/v1/fleet.rb +12 -11
- data/lib/twilio-ruby/rest/supersim/v1/sim.rb +17 -7
- data/lib/twilio-ruby/rest/supersim/v1/usage_record.rb +75 -9
- data/lib/twilio-ruby/rest/taskrouter/v1/workspace/activity.rb +2 -1
- data/lib/twilio-ruby/rest/taskrouter/v1/workspace/task/reservation.rb +6 -2
- data/lib/twilio-ruby/rest/taskrouter/v1/workspace/worker.rb +1 -4
- data/lib/twilio-ruby/rest/taskrouter/v1/workspace/worker/reservation.rb +6 -2
- data/lib/twilio-ruby/rest/trunking/v1/trunk.rb +38 -23
- data/lib/twilio-ruby/rest/trunking/v1/trunk/ip_access_control_list.rb +2 -1
- data/lib/twilio-ruby/rest/trunking/v1/trunk/phone_number.rb +2 -1
- data/lib/twilio-ruby/rest/trunking/v1/trunk/recording.rb +201 -0
- 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 +7 -2
- data/lib/twilio-ruby/rest/video/v1/composition.rb +7 -3
- data/lib/twilio-ruby/rest/video/v1/composition_hook.rb +18 -9
- data/lib/twilio-ruby/rest/video/v1/room.rb +2 -1
- data/lib/twilio-ruby/rest/video/v1/room/room_participant/room_participant_subscribe_rule.rb +0 -6
- data/lib/twilio-ruby/rest/voice/v1/dialing_permissions.rb +1 -4
- data/lib/twilio-ruby/rest/wireless/v1/rate_plan.rb +2 -1
- data/lib/twilio-ruby/rest/wireless/v1/sim/data_session.rb +5 -19
- data/lib/twilio-ruby/version.rb +1 -1
- data/spec/framework/version_spec.rb +53 -0
- data/spec/holodeck/holodeck.rb +3 -3
- 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/bulkexports/v1/export/day_spec.rb +5 -5
- data/spec/integration/bulkexports/v1/export_configuration_spec.rb +4 -4
- data/spec/integration/bulkexports/v1/export_spec.rb +3 -3
- data/spec/integration/conversations/v1/{webhook_spec.rb → configuration/webhook_spec.rb} +12 -8
- data/spec/integration/conversations/v1/configuration_spec.rb +87 -0
- data/spec/integration/conversations/v1/conversation/message/delivery_receipt_spec.rb +4 -0
- data/spec/integration/conversations/v1/conversation/message_spec.rb +38 -0
- data/spec/integration/conversations/v1/conversation/participant_spec.rb +60 -4
- data/spec/integration/conversations/v1/conversation_spec.rb +35 -0
- data/spec/integration/conversations/v1/credential_spec.rb +219 -0
- data/spec/integration/conversations/v1/role_spec.rb +249 -0
- data/spec/integration/conversations/v1/service/binding_spec.rb +166 -0
- data/spec/integration/conversations/v1/service/configuration/notification_spec.rb +115 -0
- data/spec/integration/conversations/v1/service/configuration_spec.rb +87 -0
- data/spec/integration/conversations/v1/service/conversation/message/delivery_receipt_spec.rb +144 -0
- data/spec/integration/conversations/v1/service/conversation/message_spec.rb +429 -0
- data/spec/integration/conversations/v1/service/conversation/participant_spec.rb +407 -0
- data/spec/integration/conversations/v1/service/conversation/webhook_spec.rb +299 -0
- data/spec/integration/conversations/v1/service/conversation_spec.rb +289 -0
- data/spec/integration/conversations/v1/service/role_spec.rb +260 -0
- data/spec/integration/conversations/v1/service/user_spec.rb +230 -0
- data/spec/integration/conversations/v1/service_spec.rb +174 -0
- data/spec/integration/conversations/v1/user_spec.rb +220 -0
- data/spec/integration/events/v1/event_type_spec.rb +133 -0
- data/spec/integration/events/v1/schema/schema_version_spec.rb +126 -0
- data/spec/integration/events/v1/schema_spec.rb +46 -0
- data/spec/integration/events/v1/sink/sink_test_spec.rb +42 -0
- data/spec/integration/events/v1/sink/sink_validate_spec.rb +44 -0
- data/spec/integration/events/v1/sink_spec.rb +217 -0
- data/spec/integration/events/v1/subscription/subscribed_event_spec.rb +91 -0
- data/spec/integration/events/v1/subscription_spec.rb +243 -0
- data/spec/integration/messaging/v1/deactivation_spec.rb +40 -0
- data/spec/integration/numbers/v2/regulatory_compliance/end_user_spec.rb +27 -0
- data/spec/integration/numbers/v2/regulatory_compliance/supporting_document_spec.rb +27 -0
- data/spec/integration/studio/v1/flow/execution/execution_step_spec.rb +1 -0
- data/spec/integration/studio/v2/flow/execution/execution_step_spec.rb +1 -0
- data/spec/integration/supersim/v1/sim_spec.rb +23 -0
- data/spec/integration/supersim/v1/usage_record_spec.rb +463 -18
- data/spec/integration/trunking/v1/trunk/recording_spec.rb +79 -0
- data/spec/integration/trunking/v1/trunk_spec.rb +4 -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
- data/spec/integration/video/v1/room_spec.rb +37 -0
- data/spec/integration/wireless/v1/sim/data_session_spec.rb +2 -2
- data/spec/spec_helper.rb +1 -1
- metadata +82 -5
- data/lib/twilio-ruby/rest/conversations/v1/webhook.rb +0 -262
@@ -34,7 +34,7 @@ describe 'Participant' do
|
|
34
34
|
"account_sid": "ACaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
|
35
35
|
"conversation_sid": "CHaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
|
36
36
|
"sid": "MBaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
|
37
|
-
"identity":
|
37
|
+
"identity": null,
|
38
38
|
"attributes": "{ \\"role\\": \\"driver\\" }",
|
39
39
|
"messaging_binding": {
|
40
40
|
"type": "sms",
|
@@ -108,6 +108,62 @@ describe 'Participant' do
|
|
108
108
|
expect(actual).to_not eq(nil)
|
109
109
|
end
|
110
110
|
|
111
|
+
it "receives create_gmms_chat_no_attributes responses" do
|
112
|
+
@holodeck.mock(Twilio::Response.new(
|
113
|
+
201,
|
114
|
+
%q[
|
115
|
+
{
|
116
|
+
"account_sid": "ACaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
|
117
|
+
"conversation_sid": "CHaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
|
118
|
+
"sid": "MBaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
|
119
|
+
"identity": "IDENTITY",
|
120
|
+
"attributes": "{}",
|
121
|
+
"messaging_binding": {
|
122
|
+
"type": "sms",
|
123
|
+
"projected_address": "+15017122661"
|
124
|
+
},
|
125
|
+
"role_sid": "RLaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
|
126
|
+
"date_created": "2020-07-01T22:18:37Z",
|
127
|
+
"date_updated": "2020-07-01T22:18:37Z",
|
128
|
+
"url": "https://conversations.twilio.com/v1/Conversations/CHaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/Participants/MBaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa"
|
129
|
+
}
|
130
|
+
]
|
131
|
+
))
|
132
|
+
|
133
|
+
actual = @client.conversations.v1.conversations('CHXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX') \
|
134
|
+
.participants.create()
|
135
|
+
|
136
|
+
expect(actual).to_not eq(nil)
|
137
|
+
end
|
138
|
+
|
139
|
+
it "receives create_gmms_sms_no_attributes responses" do
|
140
|
+
@holodeck.mock(Twilio::Response.new(
|
141
|
+
201,
|
142
|
+
%q[
|
143
|
+
{
|
144
|
+
"account_sid": "ACaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
|
145
|
+
"conversation_sid": "CHaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
|
146
|
+
"sid": "MBaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
|
147
|
+
"identity": null,
|
148
|
+
"attributes": "{}",
|
149
|
+
"messaging_binding": {
|
150
|
+
"type": "sms",
|
151
|
+
"address": "+15017122661"
|
152
|
+
},
|
153
|
+
"role_sid": null,
|
154
|
+
"date_created": "2020-07-01T22:18:37Z",
|
155
|
+
"date_updated": "2020-07-01T22:18:37Z",
|
156
|
+
"url": "https://conversations.twilio.com/v1/Conversations/CHaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/Participants/MBaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa"
|
157
|
+
}
|
158
|
+
]
|
159
|
+
))
|
160
|
+
|
161
|
+
actual = @client.conversations.v1.conversations('CHXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX') \
|
162
|
+
.participants.create()
|
163
|
+
|
164
|
+
expect(actual).to_not eq(nil)
|
165
|
+
end
|
166
|
+
|
111
167
|
it "can update" do
|
112
168
|
@holodeck.mock(Twilio::Response.new(500, ''))
|
113
169
|
|
@@ -133,7 +189,7 @@ describe 'Participant' do
|
|
133
189
|
"account_sid": "ACaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
|
134
190
|
"conversation_sid": "CHaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
|
135
191
|
"sid": "MBaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
|
136
|
-
"identity":
|
192
|
+
"identity": null,
|
137
193
|
"attributes": "{ \\"role\\": \\"driver\\" }",
|
138
194
|
"messaging_binding": {
|
139
195
|
"type": "sms",
|
@@ -234,7 +290,7 @@ describe 'Participant' do
|
|
234
290
|
"account_sid": "ACaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
|
235
291
|
"conversation_sid": "CHaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
|
236
292
|
"sid": "MBaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
|
237
|
-
"identity":
|
293
|
+
"identity": null,
|
238
294
|
"attributes": "{ \\"role\\": \\"driver\\" }",
|
239
295
|
"messaging_binding": {
|
240
296
|
"type": "sms",
|
@@ -289,7 +345,7 @@ describe 'Participant' do
|
|
289
345
|
"account_sid": "ACaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
|
290
346
|
"conversation_sid": "CHaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
|
291
347
|
"sid": "MBaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
|
292
|
-
"identity":
|
348
|
+
"identity": null,
|
293
349
|
"attributes": "{ \\"role\\": \\"driver\\" }",
|
294
350
|
"messaging_binding": {
|
295
351
|
"type": "sms",
|
@@ -35,6 +35,7 @@ describe 'Conversation' do
|
|
35
35
|
"chat_service_sid": "ISaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
|
36
36
|
"messaging_service_sid": "MGaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
|
37
37
|
"friendly_name": "friendly_name",
|
38
|
+
"unique_name": "unique_name",
|
38
39
|
"attributes": "{ \\"topic\\": \\"feedback\\" }",
|
39
40
|
"date_created": "2015-12-16T22:18:37Z",
|
40
41
|
"date_updated": "2015-12-16T22:18:38Z",
|
@@ -58,6 +59,37 @@ describe 'Conversation' do
|
|
58
59
|
expect(actual).to_not eq(nil)
|
59
60
|
end
|
60
61
|
|
62
|
+
it "receives create_no_timers_no_attributes responses" do
|
63
|
+
@holodeck.mock(Twilio::Response.new(
|
64
|
+
201,
|
65
|
+
%q[
|
66
|
+
{
|
67
|
+
"sid": "CHaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
|
68
|
+
"account_sid": "ACaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
|
69
|
+
"chat_service_sid": "ISaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
|
70
|
+
"messaging_service_sid": "MGaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
|
71
|
+
"friendly_name": "friendly_name",
|
72
|
+
"unique_name": null,
|
73
|
+
"attributes": "{}",
|
74
|
+
"date_created": "2020-07-01T22:18:37Z",
|
75
|
+
"date_updated": "2020-07-01T22:18:37Z",
|
76
|
+
"state": "active",
|
77
|
+
"timers": {},
|
78
|
+
"url": "https://conversations.twilio.com/v1/Conversations/CHaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
|
79
|
+
"links": {
|
80
|
+
"participants": "https://conversations.twilio.com/v1/Conversations/CHaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/Participants",
|
81
|
+
"messages": "https://conversations.twilio.com/v1/Conversations/CHaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/Messages",
|
82
|
+
"webhooks": "https://conversations.twilio.com/v1/Conversations/CHaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/Webhooks"
|
83
|
+
}
|
84
|
+
}
|
85
|
+
]
|
86
|
+
))
|
87
|
+
|
88
|
+
actual = @client.conversations.v1.conversations.create()
|
89
|
+
|
90
|
+
expect(actual).to_not eq(nil)
|
91
|
+
end
|
92
|
+
|
61
93
|
it "can update" do
|
62
94
|
@holodeck.mock(Twilio::Response.new(500, ''))
|
63
95
|
|
@@ -84,6 +116,7 @@ describe 'Conversation' do
|
|
84
116
|
"chat_service_sid": "ISaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
|
85
117
|
"messaging_service_sid": "MGaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaab",
|
86
118
|
"friendly_name": "friendly_name",
|
119
|
+
"unique_name": null,
|
87
120
|
"attributes": "{ \\"topic\\": \\"feedback\\" }",
|
88
121
|
"date_created": "2015-12-16T22:18:37Z",
|
89
122
|
"date_updated": "2015-12-16T22:18:38Z",
|
@@ -158,6 +191,7 @@ describe 'Conversation' do
|
|
158
191
|
"chat_service_sid": "ISaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
|
159
192
|
"messaging_service_sid": "MGaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
|
160
193
|
"friendly_name": "My First Conversation",
|
194
|
+
"unique_name": "first_conversation",
|
161
195
|
"attributes": "{ \\"topic\\": \\"feedback\\" }",
|
162
196
|
"date_created": "2015-12-16T22:18:37Z",
|
163
197
|
"date_updated": "2015-12-16T22:18:38Z",
|
@@ -207,6 +241,7 @@ describe 'Conversation' do
|
|
207
241
|
"chat_service_sid": "ISaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
|
208
242
|
"messaging_service_sid": "MGaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
|
209
243
|
"friendly_name": "Home Repair Visit",
|
244
|
+
"unique_name": null,
|
210
245
|
"attributes": "{ \\"topic\\": \\"feedback\\" }",
|
211
246
|
"date_created": "2015-12-16T22:18:37Z",
|
212
247
|
"date_updated": "2015-12-16T22:18:38Z",
|
@@ -0,0 +1,219 @@
|
|
1
|
+
##
|
2
|
+
# This code was generated by
|
3
|
+
# \ / _ _ _| _ _
|
4
|
+
# | (_)\/(_)(_|\/| |(/_ v1.0.0
|
5
|
+
# / /
|
6
|
+
#
|
7
|
+
# frozen_string_literal: true
|
8
|
+
|
9
|
+
require 'spec_helper.rb'
|
10
|
+
|
11
|
+
describe 'Credential' do
|
12
|
+
it "can create" do
|
13
|
+
@holodeck.mock(Twilio::Response.new(500, ''))
|
14
|
+
|
15
|
+
expect {
|
16
|
+
@client.conversations.v1.credentials.create(type: 'apn')
|
17
|
+
}.to raise_exception(Twilio::REST::TwilioError)
|
18
|
+
|
19
|
+
values = {'Type' => 'apn', }
|
20
|
+
expect(
|
21
|
+
@holodeck.has_request?(Holodeck::Request.new(
|
22
|
+
method: 'post',
|
23
|
+
url: 'https://conversations.twilio.com/v1/Credentials',
|
24
|
+
data: values,
|
25
|
+
))).to eq(true)
|
26
|
+
end
|
27
|
+
|
28
|
+
it "receives create responses" do
|
29
|
+
@holodeck.mock(Twilio::Response.new(
|
30
|
+
201,
|
31
|
+
%q[
|
32
|
+
{
|
33
|
+
"sid": "CRaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
|
34
|
+
"account_sid": "ACaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
|
35
|
+
"friendly_name": "Test slow create",
|
36
|
+
"type": "apn",
|
37
|
+
"sandbox": "False",
|
38
|
+
"date_created": "2015-10-07T17:50:01Z",
|
39
|
+
"date_updated": "2015-10-07T17:50:01Z",
|
40
|
+
"url": "https://conversations.twilio.com/v1/Credentials/CRaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa"
|
41
|
+
}
|
42
|
+
]
|
43
|
+
))
|
44
|
+
|
45
|
+
actual = @client.conversations.v1.credentials.create(type: 'apn')
|
46
|
+
|
47
|
+
expect(actual).to_not eq(nil)
|
48
|
+
end
|
49
|
+
|
50
|
+
it "can update" do
|
51
|
+
@holodeck.mock(Twilio::Response.new(500, ''))
|
52
|
+
|
53
|
+
expect {
|
54
|
+
@client.conversations.v1.credentials('CRXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX').update()
|
55
|
+
}.to raise_exception(Twilio::REST::TwilioError)
|
56
|
+
|
57
|
+
expect(
|
58
|
+
@holodeck.has_request?(Holodeck::Request.new(
|
59
|
+
method: 'post',
|
60
|
+
url: 'https://conversations.twilio.com/v1/Credentials/CRXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX',
|
61
|
+
))).to eq(true)
|
62
|
+
end
|
63
|
+
|
64
|
+
it "receives update responses" do
|
65
|
+
@holodeck.mock(Twilio::Response.new(
|
66
|
+
200,
|
67
|
+
%q[
|
68
|
+
{
|
69
|
+
"sid": "CRaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
|
70
|
+
"account_sid": "ACaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
|
71
|
+
"friendly_name": "Test slow create",
|
72
|
+
"type": "apn",
|
73
|
+
"sandbox": "False",
|
74
|
+
"date_created": "2015-10-07T17:50:01Z",
|
75
|
+
"date_updated": "2015-10-07T17:50:01Z",
|
76
|
+
"url": "https://conversations.twilio.com/v1/Credentials/CRaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa"
|
77
|
+
}
|
78
|
+
]
|
79
|
+
))
|
80
|
+
|
81
|
+
actual = @client.conversations.v1.credentials('CRXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX').update()
|
82
|
+
|
83
|
+
expect(actual).to_not eq(nil)
|
84
|
+
end
|
85
|
+
|
86
|
+
it "can delete" do
|
87
|
+
@holodeck.mock(Twilio::Response.new(500, ''))
|
88
|
+
|
89
|
+
expect {
|
90
|
+
@client.conversations.v1.credentials('CRXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX').delete()
|
91
|
+
}.to raise_exception(Twilio::REST::TwilioError)
|
92
|
+
|
93
|
+
expect(
|
94
|
+
@holodeck.has_request?(Holodeck::Request.new(
|
95
|
+
method: 'delete',
|
96
|
+
url: 'https://conversations.twilio.com/v1/Credentials/CRXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX',
|
97
|
+
))).to eq(true)
|
98
|
+
end
|
99
|
+
|
100
|
+
it "receives delete responses" do
|
101
|
+
@holodeck.mock(Twilio::Response.new(
|
102
|
+
204,
|
103
|
+
nil,
|
104
|
+
))
|
105
|
+
|
106
|
+
actual = @client.conversations.v1.credentials('CRXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX').delete()
|
107
|
+
|
108
|
+
expect(actual).to eq(true)
|
109
|
+
end
|
110
|
+
|
111
|
+
it "can fetch" do
|
112
|
+
@holodeck.mock(Twilio::Response.new(500, ''))
|
113
|
+
|
114
|
+
expect {
|
115
|
+
@client.conversations.v1.credentials('CRXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX').fetch()
|
116
|
+
}.to raise_exception(Twilio::REST::TwilioError)
|
117
|
+
|
118
|
+
expect(
|
119
|
+
@holodeck.has_request?(Holodeck::Request.new(
|
120
|
+
method: 'get',
|
121
|
+
url: 'https://conversations.twilio.com/v1/Credentials/CRXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX',
|
122
|
+
))).to eq(true)
|
123
|
+
end
|
124
|
+
|
125
|
+
it "receives fetch responses" do
|
126
|
+
@holodeck.mock(Twilio::Response.new(
|
127
|
+
200,
|
128
|
+
%q[
|
129
|
+
{
|
130
|
+
"sid": "CRaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
|
131
|
+
"account_sid": "ACaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
|
132
|
+
"friendly_name": "Test slow create",
|
133
|
+
"type": "apn",
|
134
|
+
"sandbox": "False",
|
135
|
+
"date_created": "2015-10-07T17:50:01Z",
|
136
|
+
"date_updated": "2015-10-07T17:50:01Z",
|
137
|
+
"url": "https://conversations.twilio.com/v1/Credentials/CRaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa"
|
138
|
+
}
|
139
|
+
]
|
140
|
+
))
|
141
|
+
|
142
|
+
actual = @client.conversations.v1.credentials('CRXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX').fetch()
|
143
|
+
|
144
|
+
expect(actual).to_not eq(nil)
|
145
|
+
end
|
146
|
+
|
147
|
+
it "can read" do
|
148
|
+
@holodeck.mock(Twilio::Response.new(500, ''))
|
149
|
+
|
150
|
+
expect {
|
151
|
+
@client.conversations.v1.credentials.list()
|
152
|
+
}.to raise_exception(Twilio::REST::TwilioError)
|
153
|
+
|
154
|
+
expect(
|
155
|
+
@holodeck.has_request?(Holodeck::Request.new(
|
156
|
+
method: 'get',
|
157
|
+
url: 'https://conversations.twilio.com/v1/Credentials',
|
158
|
+
))).to eq(true)
|
159
|
+
end
|
160
|
+
|
161
|
+
it "receives read_full responses" do
|
162
|
+
@holodeck.mock(Twilio::Response.new(
|
163
|
+
200,
|
164
|
+
%q[
|
165
|
+
{
|
166
|
+
"credentials": [
|
167
|
+
{
|
168
|
+
"sid": "CRaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
|
169
|
+
"account_sid": "ACaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
|
170
|
+
"friendly_name": "Test slow create",
|
171
|
+
"type": "apn",
|
172
|
+
"sandbox": "False",
|
173
|
+
"date_created": "2015-10-07T17:50:01Z",
|
174
|
+
"date_updated": "2015-10-07T17:50:01Z",
|
175
|
+
"url": "https://conversations.twilio.com/v1/Credentials/CRaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa"
|
176
|
+
}
|
177
|
+
],
|
178
|
+
"meta": {
|
179
|
+
"page": 0,
|
180
|
+
"page_size": 50,
|
181
|
+
"first_page_url": "https://conversations.twilio.com/v1/Credentials?PageSize=50&Page=0",
|
182
|
+
"previous_page_url": null,
|
183
|
+
"url": "https://conversations.twilio.com/v1/Credentials?PageSize=50&Page=0",
|
184
|
+
"next_page_url": null,
|
185
|
+
"key": "credentials"
|
186
|
+
}
|
187
|
+
}
|
188
|
+
]
|
189
|
+
))
|
190
|
+
|
191
|
+
actual = @client.conversations.v1.credentials.list()
|
192
|
+
|
193
|
+
expect(actual).to_not eq(nil)
|
194
|
+
end
|
195
|
+
|
196
|
+
it "receives read_empty responses" do
|
197
|
+
@holodeck.mock(Twilio::Response.new(
|
198
|
+
200,
|
199
|
+
%q[
|
200
|
+
{
|
201
|
+
"credentials": [],
|
202
|
+
"meta": {
|
203
|
+
"page": 0,
|
204
|
+
"page_size": 50,
|
205
|
+
"first_page_url": "https://conversations.twilio.com/v1/Credentials?PageSize=50&Page=0",
|
206
|
+
"previous_page_url": null,
|
207
|
+
"url": "https://conversations.twilio.com/v1/Credentials?PageSize=50&Page=0",
|
208
|
+
"next_page_url": null,
|
209
|
+
"key": "credentials"
|
210
|
+
}
|
211
|
+
}
|
212
|
+
]
|
213
|
+
))
|
214
|
+
|
215
|
+
actual = @client.conversations.v1.credentials.list()
|
216
|
+
|
217
|
+
expect(actual).to_not eq(nil)
|
218
|
+
end
|
219
|
+
end
|
@@ -0,0 +1,249 @@
|
|
1
|
+
##
|
2
|
+
# This code was generated by
|
3
|
+
# \ / _ _ _| _ _
|
4
|
+
# | (_)\/(_)(_|\/| |(/_ v1.0.0
|
5
|
+
# / /
|
6
|
+
#
|
7
|
+
# frozen_string_literal: true
|
8
|
+
|
9
|
+
require 'spec_helper.rb'
|
10
|
+
|
11
|
+
describe 'Role' do
|
12
|
+
it "can create" do
|
13
|
+
@holodeck.mock(Twilio::Response.new(500, ''))
|
14
|
+
|
15
|
+
expect {
|
16
|
+
@client.conversations.v1.roles.create(friendly_name: 'friendly_name', type: 'conversation', permission: ['permission'])
|
17
|
+
}.to raise_exception(Twilio::REST::TwilioError)
|
18
|
+
|
19
|
+
values = {
|
20
|
+
'FriendlyName' => 'friendly_name',
|
21
|
+
'Type' => 'conversation',
|
22
|
+
'Permission' => Twilio.serialize_list(['permission']) { |e| e },
|
23
|
+
}
|
24
|
+
expect(
|
25
|
+
@holodeck.has_request?(Holodeck::Request.new(
|
26
|
+
method: 'post',
|
27
|
+
url: 'https://conversations.twilio.com/v1/Roles',
|
28
|
+
data: values,
|
29
|
+
))).to eq(true)
|
30
|
+
end
|
31
|
+
|
32
|
+
it "receives create responses" do
|
33
|
+
@holodeck.mock(Twilio::Response.new(
|
34
|
+
201,
|
35
|
+
%q[
|
36
|
+
{
|
37
|
+
"sid": "RLaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
|
38
|
+
"account_sid": "ACaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
|
39
|
+
"chat_service_sid": "ISaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
|
40
|
+
"friendly_name": "Conversation Role",
|
41
|
+
"type": "conversation",
|
42
|
+
"permissions": [
|
43
|
+
"sendMessage",
|
44
|
+
"leaveConversation",
|
45
|
+
"editOwnMessage",
|
46
|
+
"deleteOwnMessage"
|
47
|
+
],
|
48
|
+
"date_created": "2016-03-03T19:47:15Z",
|
49
|
+
"date_updated": "2016-03-03T19:47:15Z",
|
50
|
+
"url": "https://conversations.twilio.com/v1/Roles/RLaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa"
|
51
|
+
}
|
52
|
+
]
|
53
|
+
))
|
54
|
+
|
55
|
+
actual = @client.conversations.v1.roles.create(friendly_name: 'friendly_name', type: 'conversation', permission: ['permission'])
|
56
|
+
|
57
|
+
expect(actual).to_not eq(nil)
|
58
|
+
end
|
59
|
+
|
60
|
+
it "can update" do
|
61
|
+
@holodeck.mock(Twilio::Response.new(500, ''))
|
62
|
+
|
63
|
+
expect {
|
64
|
+
@client.conversations.v1.roles('RLXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX').update(permission: ['permission'])
|
65
|
+
}.to raise_exception(Twilio::REST::TwilioError)
|
66
|
+
|
67
|
+
values = {'Permission' => Twilio.serialize_list(['permission']) { |e| e }, }
|
68
|
+
expect(
|
69
|
+
@holodeck.has_request?(Holodeck::Request.new(
|
70
|
+
method: 'post',
|
71
|
+
url: 'https://conversations.twilio.com/v1/Roles/RLXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX',
|
72
|
+
data: values,
|
73
|
+
))).to eq(true)
|
74
|
+
end
|
75
|
+
|
76
|
+
it "receives update responses" do
|
77
|
+
@holodeck.mock(Twilio::Response.new(
|
78
|
+
200,
|
79
|
+
%q[
|
80
|
+
{
|
81
|
+
"sid": "RLaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
|
82
|
+
"account_sid": "ACaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
|
83
|
+
"chat_service_sid": "ISaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
|
84
|
+
"friendly_name": "Conversation Role",
|
85
|
+
"type": "conversation",
|
86
|
+
"permissions": [
|
87
|
+
"sendMessage",
|
88
|
+
"leaveConversation",
|
89
|
+
"editOwnMessage",
|
90
|
+
"deleteOwnMessage"
|
91
|
+
],
|
92
|
+
"date_created": "2016-03-03T19:47:15Z",
|
93
|
+
"date_updated": "2016-03-03T19:47:15Z",
|
94
|
+
"url": "https://conversations.twilio.com/v1/Roles/RLaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa"
|
95
|
+
}
|
96
|
+
]
|
97
|
+
))
|
98
|
+
|
99
|
+
actual = @client.conversations.v1.roles('RLXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX').update(permission: ['permission'])
|
100
|
+
|
101
|
+
expect(actual).to_not eq(nil)
|
102
|
+
end
|
103
|
+
|
104
|
+
it "can delete" do
|
105
|
+
@holodeck.mock(Twilio::Response.new(500, ''))
|
106
|
+
|
107
|
+
expect {
|
108
|
+
@client.conversations.v1.roles('RLXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX').delete()
|
109
|
+
}.to raise_exception(Twilio::REST::TwilioError)
|
110
|
+
|
111
|
+
expect(
|
112
|
+
@holodeck.has_request?(Holodeck::Request.new(
|
113
|
+
method: 'delete',
|
114
|
+
url: 'https://conversations.twilio.com/v1/Roles/RLXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX',
|
115
|
+
))).to eq(true)
|
116
|
+
end
|
117
|
+
|
118
|
+
it "receives delete responses" do
|
119
|
+
@holodeck.mock(Twilio::Response.new(
|
120
|
+
204,
|
121
|
+
nil,
|
122
|
+
))
|
123
|
+
|
124
|
+
actual = @client.conversations.v1.roles('RLXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX').delete()
|
125
|
+
|
126
|
+
expect(actual).to eq(true)
|
127
|
+
end
|
128
|
+
|
129
|
+
it "can fetch" do
|
130
|
+
@holodeck.mock(Twilio::Response.new(500, ''))
|
131
|
+
|
132
|
+
expect {
|
133
|
+
@client.conversations.v1.roles('RLXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX').fetch()
|
134
|
+
}.to raise_exception(Twilio::REST::TwilioError)
|
135
|
+
|
136
|
+
expect(
|
137
|
+
@holodeck.has_request?(Holodeck::Request.new(
|
138
|
+
method: 'get',
|
139
|
+
url: 'https://conversations.twilio.com/v1/Roles/RLXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX',
|
140
|
+
))).to eq(true)
|
141
|
+
end
|
142
|
+
|
143
|
+
it "receives fetch responses" do
|
144
|
+
@holodeck.mock(Twilio::Response.new(
|
145
|
+
200,
|
146
|
+
%q[
|
147
|
+
{
|
148
|
+
"sid": "RLaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
|
149
|
+
"account_sid": "ACaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
|
150
|
+
"chat_service_sid": "ISaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
|
151
|
+
"friendly_name": "Conversation Role",
|
152
|
+
"type": "conversation",
|
153
|
+
"permissions": [
|
154
|
+
"sendMessage",
|
155
|
+
"leaveConversation",
|
156
|
+
"editOwnMessage",
|
157
|
+
"deleteOwnMessage"
|
158
|
+
],
|
159
|
+
"date_created": "2016-03-03T19:47:15Z",
|
160
|
+
"date_updated": "2016-03-03T19:47:15Z",
|
161
|
+
"url": "https://conversations.twilio.com/v1/Roles/RLaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa"
|
162
|
+
}
|
163
|
+
]
|
164
|
+
))
|
165
|
+
|
166
|
+
actual = @client.conversations.v1.roles('RLXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX').fetch()
|
167
|
+
|
168
|
+
expect(actual).to_not eq(nil)
|
169
|
+
end
|
170
|
+
|
171
|
+
it "can read" do
|
172
|
+
@holodeck.mock(Twilio::Response.new(500, ''))
|
173
|
+
|
174
|
+
expect {
|
175
|
+
@client.conversations.v1.roles.list()
|
176
|
+
}.to raise_exception(Twilio::REST::TwilioError)
|
177
|
+
|
178
|
+
expect(
|
179
|
+
@holodeck.has_request?(Holodeck::Request.new(
|
180
|
+
method: 'get',
|
181
|
+
url: 'https://conversations.twilio.com/v1/Roles',
|
182
|
+
))).to eq(true)
|
183
|
+
end
|
184
|
+
|
185
|
+
it "receives read_full responses" do
|
186
|
+
@holodeck.mock(Twilio::Response.new(
|
187
|
+
200,
|
188
|
+
%q[
|
189
|
+
{
|
190
|
+
"meta": {
|
191
|
+
"page": 0,
|
192
|
+
"page_size": 50,
|
193
|
+
"first_page_url": "https://conversations.twilio.com/v1/Roles?PageSize=50&Page=0",
|
194
|
+
"previous_page_url": null,
|
195
|
+
"url": "https://conversations.twilio.com/v1/Roles?PageSize=50&Page=0",
|
196
|
+
"next_page_url": null,
|
197
|
+
"key": "roles"
|
198
|
+
},
|
199
|
+
"roles": [
|
200
|
+
{
|
201
|
+
"sid": "RLaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
|
202
|
+
"account_sid": "ACaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
|
203
|
+
"chat_service_sid": "ISaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
|
204
|
+
"friendly_name": "Conversation Role",
|
205
|
+
"type": "conversation",
|
206
|
+
"permissions": [
|
207
|
+
"sendMessage",
|
208
|
+
"leaveConversation",
|
209
|
+
"editOwnMessage",
|
210
|
+
"deleteOwnMessage"
|
211
|
+
],
|
212
|
+
"date_created": "2016-03-03T19:47:15Z",
|
213
|
+
"date_updated": "2016-03-03T19:47:15Z",
|
214
|
+
"url": "https://conversations.twilio.com/v1/Roles/RLaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa"
|
215
|
+
}
|
216
|
+
]
|
217
|
+
}
|
218
|
+
]
|
219
|
+
))
|
220
|
+
|
221
|
+
actual = @client.conversations.v1.roles.list()
|
222
|
+
|
223
|
+
expect(actual).to_not eq(nil)
|
224
|
+
end
|
225
|
+
|
226
|
+
it "receives read_empty responses" do
|
227
|
+
@holodeck.mock(Twilio::Response.new(
|
228
|
+
200,
|
229
|
+
%q[
|
230
|
+
{
|
231
|
+
"meta": {
|
232
|
+
"page": 0,
|
233
|
+
"page_size": 50,
|
234
|
+
"first_page_url": "https://conversations.twilio.com/v1/Roles?PageSize=50&Page=0",
|
235
|
+
"previous_page_url": null,
|
236
|
+
"url": "https://conversations.twilio.com/v1/Roles?PageSize=50&Page=0",
|
237
|
+
"next_page_url": null,
|
238
|
+
"key": "roles"
|
239
|
+
},
|
240
|
+
"roles": []
|
241
|
+
}
|
242
|
+
]
|
243
|
+
))
|
244
|
+
|
245
|
+
actual = @client.conversations.v1.roles.list()
|
246
|
+
|
247
|
+
expect(actual).to_not eq(nil)
|
248
|
+
end
|
249
|
+
end
|