twilio-ruby 5.7.2 → 5.8.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.travis.yml +4 -0
- data/CHANGES.md +19 -0
- data/README.md +2 -2
- data/lib/twilio-ruby/framework/error.rb +20 -6
- data/lib/twilio-ruby/framework/version.rb +1 -10
- data/lib/twilio-ruby/jwt/access_token.rb +3 -1
- data/lib/twilio-ruby/rest/lookups/v1/phone_number.rb +0 -7
- data/lib/twilio-ruby/rest/preview.rb +11 -3
- data/lib/twilio-ruby/rest/preview/understand.rb +6 -6
- data/lib/twilio-ruby/rest/preview/understand/{service.rb → assistant.rb} +94 -55
- data/lib/twilio-ruby/rest/preview/understand/{service → assistant}/field_type.rb +33 -23
- data/lib/twilio-ruby/rest/preview/understand/{service → assistant}/field_type/field_value.rb +30 -22
- data/lib/twilio-ruby/rest/preview/understand/{service → assistant}/intent.rb +39 -25
- data/lib/twilio-ruby/rest/preview/understand/{service → assistant}/intent/field.rb +20 -20
- data/lib/twilio-ruby/rest/preview/understand/{service → assistant}/intent/sample.rb +45 -27
- data/lib/twilio-ruby/rest/preview/understand/{service → assistant}/model_build.rb +21 -21
- data/lib/twilio-ruby/rest/preview/understand/{service → assistant}/query.rb +31 -26
- data/lib/twilio-ruby/rest/studio/v1/flow/engagement.rb +6 -2
- data/lib/twilio-ruby/rest/video/v1/recording.rb +1 -1
- data/lib/twilio-ruby/version.rb +1 -1
- data/spec/integration/accounts/v1/credential/aws_spec.rb +9 -9
- data/spec/integration/accounts/v1/credential/public_key_spec.rb +9 -9
- data/spec/integration/api/v2010/account/address/dependent_phone_number_spec.rb +7 -7
- data/spec/integration/api/v2010/account/address_spec.rb +22 -22
- data/spec/integration/api/v2010/account/application_spec.rb +22 -22
- data/spec/integration/api/v2010/account/authorized_connect_app_spec.rb +9 -9
- data/spec/integration/api/v2010/account/available_phone_number/local_spec.rb +4 -4
- data/spec/integration/api/v2010/account/available_phone_number/machine_to_machine_spec.rb +4 -4
- data/spec/integration/api/v2010/account/available_phone_number/mobile_spec.rb +4 -4
- data/spec/integration/api/v2010/account/available_phone_number/national_spec.rb +4 -4
- data/spec/integration/api/v2010/account/available_phone_number/shared_cost_spec.rb +4 -4
- data/spec/integration/api/v2010/account/available_phone_number/toll_free_spec.rb +4 -4
- data/spec/integration/api/v2010/account/available_phone_number/voip_spec.rb +4 -4
- data/spec/integration/api/v2010/account/available_phone_number_spec.rb +7 -7
- data/spec/integration/api/v2010/account/call/feedback_spec.rb +15 -15
- data/spec/integration/api/v2010/account/call/feedback_summary_spec.rb +13 -13
- data/spec/integration/api/v2010/account/call/notification_spec.rb +21 -21
- data/spec/integration/api/v2010/account/call/recording_spec.rb +21 -21
- data/spec/integration/api/v2010/account/call_spec.rb +22 -22
- data/spec/integration/api/v2010/account/conference/participant_spec.rb +35 -35
- data/spec/integration/api/v2010/account/conference_spec.rb +14 -14
- data/spec/integration/api/v2010/account/connect_app_spec.rb +14 -14
- data/spec/integration/api/v2010/account/incoming_phone_number/assigned_add_on/assigned_add_on_extension_spec.rb +19 -19
- data/spec/integration/api/v2010/account/incoming_phone_number/assigned_add_on_spec.rb +29 -29
- data/spec/integration/api/v2010/account/incoming_phone_number/local_spec.rb +7 -7
- data/spec/integration/api/v2010/account/incoming_phone_number/mobile_spec.rb +7 -7
- data/spec/integration/api/v2010/account/incoming_phone_number/toll_free_spec.rb +7 -7
- data/spec/integration/api/v2010/account/incoming_phone_number_spec.rb +22 -22
- data/spec/integration/api/v2010/account/key_spec.rb +19 -19
- data/spec/integration/api/v2010/account/message/feedback_spec.rb +5 -5
- data/spec/integration/api/v2010/account/message/media_spec.rb +21 -21
- data/spec/integration/api/v2010/account/message_spec.rb +22 -22
- data/spec/integration/api/v2010/account/new_key_spec.rb +3 -3
- data/spec/integration/api/v2010/account/new_signing_key_spec.rb +3 -3
- data/spec/integration/api/v2010/account/notification_spec.rb +14 -14
- data/spec/integration/api/v2010/account/outgoing_caller_id_spec.rb +19 -19
- data/spec/integration/api/v2010/account/queue/member_spec.rb +21 -21
- data/spec/integration/api/v2010/account/queue_spec.rb +22 -22
- data/spec/integration/api/v2010/account/recording/add_on_result/payload_spec.rb +28 -28
- data/spec/integration/api/v2010/account/recording/add_on_result_spec.rb +21 -21
- data/spec/integration/api/v2010/account/recording/transcription_spec.rb +21 -21
- data/spec/integration/api/v2010/account/recording_spec.rb +14 -14
- data/spec/integration/api/v2010/account/short_code_spec.rb +14 -14
- data/spec/integration/api/v2010/account/signing_key_spec.rb +19 -19
- data/spec/integration/api/v2010/account/sip/credential_list/credential_spec.rb +33 -33
- data/spec/integration/api/v2010/account/sip/credential_list_spec.rb +22 -22
- data/spec/integration/api/v2010/account/sip/domain/credential_list_mapping_spec.rb +29 -29
- data/spec/integration/api/v2010/account/sip/domain/ip_access_control_list_mapping_spec.rb +29 -29
- data/spec/integration/api/v2010/account/sip/domain_spec.rb +22 -22
- data/spec/integration/api/v2010/account/sip/ip_access_control_list/ip_address_spec.rb +33 -33
- data/spec/integration/api/v2010/account/sip/ip_access_control_list_spec.rb +22 -22
- data/spec/integration/api/v2010/account/token_spec.rb +3 -3
- data/spec/integration/api/v2010/account/transcription_spec.rb +14 -14
- data/spec/integration/api/v2010/account/usage/record/all_time_spec.rb +4 -4
- data/spec/integration/api/v2010/account/usage/record/daily_spec.rb +4 -4
- data/spec/integration/api/v2010/account/usage/record/last_month_spec.rb +4 -4
- data/spec/integration/api/v2010/account/usage/record/monthly_spec.rb +4 -4
- data/spec/integration/api/v2010/account/usage/record/this_month_spec.rb +4 -4
- data/spec/integration/api/v2010/account/usage/record/today_spec.rb +4 -4
- data/spec/integration/api/v2010/account/usage/record/yearly_spec.rb +4 -4
- data/spec/integration/api/v2010/account/usage/record/yesterday_spec.rb +4 -4
- data/spec/integration/api/v2010/account/usage/record_spec.rb +4 -4
- data/spec/integration/api/v2010/account/usage/trigger_spec.rb +22 -22
- data/spec/integration/api/v2010/account/validation_request_spec.rb +3 -3
- data/spec/integration/api/v2010/account_spec.rb +84 -68
- data/spec/integration/chat/v1/credential_spec.rb +9 -9
- data/spec/integration/chat/v1/service/channel/invite_spec.rb +26 -26
- data/spec/integration/chat/v1/service/channel/member_spec.rb +36 -36
- data/spec/integration/chat/v1/service/channel/message_spec.rb +35 -35
- data/spec/integration/chat/v1/service/channel_spec.rb +22 -22
- data/spec/integration/chat/v1/service/role_spec.rb +22 -22
- data/spec/integration/chat/v1/service/user/user_channel_spec.rb +7 -7
- data/spec/integration/chat/v1/service/user_spec.rb +22 -22
- data/spec/integration/chat/v1/service_spec.rb +9 -9
- data/spec/integration/chat/v2/credential_spec.rb +9 -9
- data/spec/integration/chat/v2/service/binding_spec.rb +14 -14
- data/spec/integration/chat/v2/service/channel/invite_spec.rb +26 -26
- data/spec/integration/chat/v2/service/channel/member_spec.rb +33 -33
- data/spec/integration/chat/v2/service/channel/message_spec.rb +40 -40
- data/spec/integration/chat/v2/service/channel_spec.rb +22 -22
- data/spec/integration/chat/v2/service/role_spec.rb +22 -22
- data/spec/integration/chat/v2/service/user/user_binding_spec.rb +21 -21
- data/spec/integration/chat/v2/service/user/user_channel_spec.rb +7 -7
- data/spec/integration/chat/v2/service/user_spec.rb +22 -22
- data/spec/integration/chat/v2/service_spec.rb +9 -9
- data/spec/integration/fax/v1/fax/fax_media_spec.rb +13 -13
- data/spec/integration/fax/v1/fax_spec.rb +9 -9
- data/spec/integration/ip_messaging/v1/credential_spec.rb +9 -9
- data/spec/integration/ip_messaging/v1/service/channel/invite_spec.rb +26 -26
- data/spec/integration/ip_messaging/v1/service/channel/member_spec.rb +36 -36
- data/spec/integration/ip_messaging/v1/service/channel/message_spec.rb +35 -35
- data/spec/integration/ip_messaging/v1/service/channel_spec.rb +22 -22
- data/spec/integration/ip_messaging/v1/service/role_spec.rb +22 -22
- data/spec/integration/ip_messaging/v1/service/user/user_channel_spec.rb +7 -7
- data/spec/integration/ip_messaging/v1/service/user_spec.rb +22 -22
- data/spec/integration/ip_messaging/v1/service_spec.rb +9 -9
- data/spec/integration/ip_messaging/v2/credential_spec.rb +9 -9
- data/spec/integration/ip_messaging/v2/service/binding_spec.rb +14 -14
- data/spec/integration/ip_messaging/v2/service/channel/invite_spec.rb +26 -26
- data/spec/integration/ip_messaging/v2/service/channel/member_spec.rb +33 -33
- data/spec/integration/ip_messaging/v2/service/channel/message_spec.rb +40 -40
- data/spec/integration/ip_messaging/v2/service/channel_spec.rb +22 -22
- data/spec/integration/ip_messaging/v2/service/role_spec.rb +22 -22
- data/spec/integration/ip_messaging/v2/service/user/user_binding_spec.rb +21 -21
- data/spec/integration/ip_messaging/v2/service/user/user_channel_spec.rb +7 -7
- data/spec/integration/ip_messaging/v2/service/user_spec.rb +22 -22
- data/spec/integration/ip_messaging/v2/service_spec.rb +9 -9
- data/spec/integration/lookups/v1/phone_number_spec.rb +0 -10
- data/spec/integration/messaging/v1/service/alpha_sender_spec.rb +16 -16
- data/spec/integration/messaging/v1/service/phone_number_spec.rb +21 -21
- data/spec/integration/messaging/v1/service/short_code_spec.rb +19 -19
- data/spec/integration/messaging/v1/service_spec.rb +9 -9
- data/spec/integration/monitor/v1/alert_spec.rb +6 -6
- data/spec/integration/monitor/v1/event_spec.rb +3 -3
- data/spec/integration/notify/v1/credential_spec.rb +9 -9
- data/spec/integration/notify/v1/service/binding_spec.rb +17 -17
- data/spec/integration/notify/v1/service/notification_spec.rb +4 -4
- data/spec/integration/notify/v1/service/segment_spec.rb +4 -4
- data/spec/integration/notify/v1/service/user/segment_memberships_spec.rb +15 -15
- data/spec/integration/notify/v1/service/user/user_binding_spec.rb +28 -28
- data/spec/integration/notify/v1/service/user_spec.rb +17 -17
- data/spec/integration/notify/v1/service_spec.rb +9 -9
- data/spec/integration/preview/acc_security/service/verification_check_spec.rb +3 -3
- data/spec/integration/preview/acc_security/service/verification_spec.rb +3 -3
- data/spec/integration/preview/acc_security/service_spec.rb +6 -6
- data/spec/integration/preview/deployed_devices/fleet/certificate_spec.rb +22 -22
- data/spec/integration/preview/deployed_devices/fleet/deployment_spec.rb +22 -22
- data/spec/integration/preview/deployed_devices/fleet/device_spec.rb +22 -22
- data/spec/integration/preview/deployed_devices/fleet/key_spec.rb +22 -22
- data/spec/integration/preview/deployed_devices/fleet_spec.rb +9 -9
- data/spec/integration/preview/hosted_numbers/authorization_document/dependent_hosted_number_order_spec.rb +4 -4
- data/spec/integration/preview/hosted_numbers/authorization_document_spec.rb +9 -9
- data/spec/integration/preview/hosted_numbers/hosted_number_order_spec.rb +9 -9
- data/spec/integration/preview/marketplace/available_add_on/available_add_on_extension_spec.rb +9 -9
- data/spec/integration/preview/marketplace/available_add_on_spec.rb +3 -3
- data/spec/integration/preview/marketplace/installed_add_on/installed_add_on_extension_spec.rb +14 -14
- data/spec/integration/preview/marketplace/installed_add_on_spec.rb +12 -12
- data/spec/integration/preview/proxy/service/phone_number_spec.rb +19 -19
- data/spec/integration/preview/proxy/service/session/interaction_spec.rb +12 -12
- data/spec/integration/preview/proxy/service/session/participant/message_interaction_spec.rb +23 -23
- data/spec/integration/preview/proxy/service/session/participant_spec.rb +31 -31
- data/spec/integration/preview/proxy/service/session_spec.rb +21 -21
- data/spec/integration/preview/proxy/service/short_code_spec.rb +19 -19
- data/spec/integration/preview/proxy/service_spec.rb +9 -9
- data/spec/integration/preview/studio/flow/engagement/step_spec.rb +12 -12
- data/spec/integration/preview/studio/flow/engagement_spec.rb +11 -11
- data/spec/integration/preview/studio/flow_spec.rb +6 -6
- data/spec/integration/preview/sync/service/document/document_permission_spec.rb +22 -22
- data/spec/integration/preview/sync/service/document_spec.rb +23 -23
- data/spec/integration/preview/sync/service/sync_list/sync_list_item_spec.rb +33 -33
- data/spec/integration/preview/sync/service/sync_list/sync_list_permission_spec.rb +22 -22
- data/spec/integration/preview/sync/service/sync_list_spec.rb +17 -17
- data/spec/integration/preview/sync/service/sync_map/sync_map_item_spec.rb +33 -33
- data/spec/integration/preview/sync/service/sync_map/sync_map_permission_spec.rb +22 -22
- data/spec/integration/preview/sync/service/sync_map_spec.rb +17 -17
- data/spec/integration/preview/sync/service_spec.rb +9 -9
- data/spec/integration/preview/understand/assistant/field_type/field_value_spec.rb +208 -0
- data/spec/integration/preview/understand/{service → assistant}/field_type_spec.rb +38 -38
- data/spec/integration/preview/understand/{service → assistant}/intent/field_spec.rb +36 -36
- data/spec/integration/preview/understand/assistant/intent/sample_spec.rb +251 -0
- data/spec/integration/preview/understand/{service → assistant}/intent_spec.rb +42 -46
- data/spec/integration/preview/understand/{service → assistant}/model_build_spec.rb +34 -34
- data/spec/integration/preview/understand/{service → assistant}/query_spec.rb +42 -38
- data/spec/integration/preview/understand/{service_spec.rb → assistant_spec.rb} +57 -49
- data/spec/integration/preview/wireless/command_spec.rb +3 -3
- data/spec/integration/preview/wireless/rate_plan_spec.rb +9 -9
- data/spec/integration/preview/wireless/sim/usage_spec.rb +3 -3
- data/spec/integration/preview/wireless/sim_spec.rb +6 -6
- data/spec/integration/proxy/v1/service/phone_number_spec.rb +16 -16
- data/spec/integration/proxy/v1/service/session/interaction_spec.rb +19 -19
- data/spec/integration/proxy/v1/service/session/participant/message_interaction_spec.rb +23 -23
- data/spec/integration/proxy/v1/service/session/participant_spec.rb +31 -31
- data/spec/integration/proxy/v1/service/session_spec.rb +21 -21
- data/spec/integration/proxy/v1/service/short_code_spec.rb +19 -19
- data/spec/integration/proxy/v1/service_spec.rb +9 -9
- data/spec/integration/studio/v1/flow/engagement/engagement_context_spec.rb +5 -5
- data/spec/integration/studio/v1/flow/engagement/step/step_context_spec.rb +7 -7
- data/spec/integration/studio/v1/flow/engagement/step_spec.rb +12 -12
- data/spec/integration/studio/v1/flow/engagement_spec.rb +11 -11
- data/spec/integration/studio/v1/flow_spec.rb +6 -6
- data/spec/integration/sync/v1/service/document/document_permission_spec.rb +22 -22
- data/spec/integration/sync/v1/service/document_spec.rb +22 -22
- data/spec/integration/sync/v1/service/sync_list/sync_list_item_spec.rb +30 -30
- data/spec/integration/sync/v1/service/sync_list/sync_list_permission_spec.rb +22 -22
- data/spec/integration/sync/v1/service/sync_list_spec.rb +22 -22
- data/spec/integration/sync/v1/service/sync_map/sync_map_item_spec.rb +30 -30
- data/spec/integration/sync/v1/service/sync_map/sync_map_permission_spec.rb +22 -22
- data/spec/integration/sync/v1/service/sync_map_spec.rb +22 -22
- data/spec/integration/sync/v1/service/sync_stream/stream_message_spec.rb +8 -8
- data/spec/integration/sync/v1/service/sync_stream_spec.rb +22 -22
- data/spec/integration/sync/v1/service_spec.rb +9 -9
- data/spec/integration/taskrouter/v1/workspace/activity_spec.rb +22 -22
- data/spec/integration/taskrouter/v1/workspace/event_spec.rb +9 -9
- data/spec/integration/taskrouter/v1/workspace/task/reservation_spec.rb +21 -21
- data/spec/integration/taskrouter/v1/workspace/task_channel_spec.rb +9 -9
- data/spec/integration/taskrouter/v1/workspace/task_queue/task_queue_cumulative_statistics_spec.rb +5 -5
- data/spec/integration/taskrouter/v1/workspace/task_queue/task_queue_real_time_statistics_spec.rb +5 -5
- data/spec/integration/taskrouter/v1/workspace/task_queue/task_queue_statistics_spec.rb +5 -5
- data/spec/integration/taskrouter/v1/workspace/task_queue/task_queues_statistics_spec.rb +4 -4
- data/spec/integration/taskrouter/v1/workspace/task_queue_spec.rb +26 -26
- data/spec/integration/taskrouter/v1/workspace/task_spec.rb +23 -23
- data/spec/integration/taskrouter/v1/workspace/worker/reservation_spec.rb +21 -21
- data/spec/integration/taskrouter/v1/workspace/worker/worker_channel_spec.rb +21 -21
- data/spec/integration/taskrouter/v1/workspace/worker/worker_statistics_spec.rb +5 -5
- data/spec/integration/taskrouter/v1/workspace/worker/workers_cumulative_statistics_spec.rb +5 -5
- data/spec/integration/taskrouter/v1/workspace/worker/workers_real_time_statistics_spec.rb +5 -5
- data/spec/integration/taskrouter/v1/workspace/worker/workers_statistics_spec.rb +3 -3
- data/spec/integration/taskrouter/v1/workspace/worker_spec.rb +22 -22
- data/spec/integration/taskrouter/v1/workspace/workflow/workflow_cumulative_statistics_spec.rb +5 -5
- data/spec/integration/taskrouter/v1/workspace/workflow/workflow_real_time_statistics_spec.rb +5 -5
- data/spec/integration/taskrouter/v1/workspace/workflow/workflow_statistics_spec.rb +5 -5
- data/spec/integration/taskrouter/v1/workspace/workflow_spec.rb +22 -22
- data/spec/integration/taskrouter/v1/workspace/workspace_cumulative_statistics_spec.rb +3 -3
- data/spec/integration/taskrouter/v1/workspace/workspace_real_time_statistics_spec.rb +3 -3
- data/spec/integration/taskrouter/v1/workspace/workspace_statistics_spec.rb +3 -3
- data/spec/integration/taskrouter/v1/workspace_spec.rb +9 -9
- data/spec/integration/trunking/v1/trunk/credential_list_spec.rb +20 -20
- data/spec/integration/trunking/v1/trunk/ip_access_control_list_spec.rb +20 -20
- data/spec/integration/trunking/v1/trunk/origination_url_spec.rb +22 -22
- data/spec/integration/trunking/v1/trunk/phone_number_spec.rb +20 -20
- data/spec/integration/trunking/v1/trunk_spec.rb +9 -9
- data/spec/integration/video/v1/composition_spec.rb +6 -6
- data/spec/integration/video/v1/recording_spec.rb +10 -6
- data/spec/integration/video/v1/room/recording_spec.rb +9 -9
- data/spec/integration/video/v1/room/room_participant/room_participant_published_track_spec.rb +12 -12
- data/spec/integration/video/v1/room/room_participant/room_participant_subscribed_track_spec.rb +12 -12
- data/spec/integration/video/v1/room/room_participant_spec.rb +14 -14
- data/spec/integration/video/v1/room_spec.rb +6 -6
- data/spec/integration/wireless/v1/command_spec.rb +3 -3
- data/spec/integration/wireless/v1/rate_plan_spec.rb +9 -9
- data/spec/integration/wireless/v1/sim/data_session_spec.rb +3 -3
- data/spec/integration/wireless/v1/sim/usage_record_spec.rb +3 -3
- data/spec/integration/wireless/v1/sim_spec.rb +6 -6
- data/spec/jwt/access_token_spec.rb +2 -0
- metadata +26 -26
- data/spec/integration/preview/understand/service/field_type/field_value_spec.rb +0 -205
- data/spec/integration/preview/understand/service/intent/sample_spec.rb +0 -247
@@ -11,16 +11,16 @@ describe 'Member' do
|
|
11
11
|
@holodeck.mock(Twilio::Response.new(500, ''))
|
12
12
|
|
13
13
|
expect {
|
14
|
-
@client.ip_messaging.v2.services('
|
15
|
-
.channels('
|
16
|
-
.members('
|
14
|
+
@client.ip_messaging.v2.services('ISXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX') \
|
15
|
+
.channels('CHXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX') \
|
16
|
+
.members('MBXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX').fetch()
|
17
17
|
}.to raise_exception(Twilio::REST::TwilioError)
|
18
18
|
|
19
19
|
values = {}
|
20
20
|
expect(
|
21
21
|
@holodeck.has_request?(Holodeck::Request.new(
|
22
22
|
method: 'get',
|
23
|
-
url: 'https://ip-messaging.twilio.com/v2/Services/
|
23
|
+
url: 'https://ip-messaging.twilio.com/v2/Services/ISXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX/Channels/CHXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX/Members/MBXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX',
|
24
24
|
))).to eq(true)
|
25
25
|
end
|
26
26
|
|
@@ -44,9 +44,9 @@ describe 'Member' do
|
|
44
44
|
]
|
45
45
|
))
|
46
46
|
|
47
|
-
actual = @client.ip_messaging.v2.services('
|
48
|
-
.channels('
|
49
|
-
.members('
|
47
|
+
actual = @client.ip_messaging.v2.services('ISXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX') \
|
48
|
+
.channels('CHXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX') \
|
49
|
+
.members('MBXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX').fetch()
|
50
50
|
|
51
51
|
expect(actual).to_not eq(nil)
|
52
52
|
end
|
@@ -55,8 +55,8 @@ describe 'Member' do
|
|
55
55
|
@holodeck.mock(Twilio::Response.new(500, ''))
|
56
56
|
|
57
57
|
expect {
|
58
|
-
@client.ip_messaging.v2.services('
|
59
|
-
.channels('
|
58
|
+
@client.ip_messaging.v2.services('ISXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX') \
|
59
|
+
.channels('CHXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX') \
|
60
60
|
.members.create(identity: 'identity')
|
61
61
|
}.to raise_exception(Twilio::REST::TwilioError)
|
62
62
|
|
@@ -64,7 +64,7 @@ describe 'Member' do
|
|
64
64
|
expect(
|
65
65
|
@holodeck.has_request?(Holodeck::Request.new(
|
66
66
|
method: 'post',
|
67
|
-
url: 'https://ip-messaging.twilio.com/v2/Services/
|
67
|
+
url: 'https://ip-messaging.twilio.com/v2/Services/ISXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX/Channels/CHXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX/Members',
|
68
68
|
data: values,
|
69
69
|
))).to eq(true)
|
70
70
|
end
|
@@ -89,8 +89,8 @@ describe 'Member' do
|
|
89
89
|
]
|
90
90
|
))
|
91
91
|
|
92
|
-
actual = @client.ip_messaging.v2.services('
|
93
|
-
.channels('
|
92
|
+
actual = @client.ip_messaging.v2.services('ISXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX') \
|
93
|
+
.channels('CHXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX') \
|
94
94
|
.members.create(identity: 'identity')
|
95
95
|
|
96
96
|
expect(actual).to_not eq(nil)
|
@@ -100,8 +100,8 @@ describe 'Member' do
|
|
100
100
|
@holodeck.mock(Twilio::Response.new(500, ''))
|
101
101
|
|
102
102
|
expect {
|
103
|
-
@client.ip_messaging.v2.services('
|
104
|
-
.channels('
|
103
|
+
@client.ip_messaging.v2.services('ISXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX') \
|
104
|
+
.channels('CHXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX') \
|
105
105
|
.members.list()
|
106
106
|
}.to raise_exception(Twilio::REST::TwilioError)
|
107
107
|
|
@@ -109,7 +109,7 @@ describe 'Member' do
|
|
109
109
|
expect(
|
110
110
|
@holodeck.has_request?(Holodeck::Request.new(
|
111
111
|
method: 'get',
|
112
|
-
url: 'https://ip-messaging.twilio.com/v2/Services/
|
112
|
+
url: 'https://ip-messaging.twilio.com/v2/Services/ISXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX/Channels/CHXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX/Members',
|
113
113
|
))).to eq(true)
|
114
114
|
end
|
115
115
|
|
@@ -146,8 +146,8 @@ describe 'Member' do
|
|
146
146
|
]
|
147
147
|
))
|
148
148
|
|
149
|
-
actual = @client.ip_messaging.v2.services('
|
150
|
-
.channels('
|
149
|
+
actual = @client.ip_messaging.v2.services('ISXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX') \
|
150
|
+
.channels('CHXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX') \
|
151
151
|
.members.list()
|
152
152
|
|
153
153
|
expect(actual).to_not eq(nil)
|
@@ -172,8 +172,8 @@ describe 'Member' do
|
|
172
172
|
]
|
173
173
|
))
|
174
174
|
|
175
|
-
actual = @client.ip_messaging.v2.services('
|
176
|
-
.channels('
|
175
|
+
actual = @client.ip_messaging.v2.services('ISXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX') \
|
176
|
+
.channels('CHXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX') \
|
177
177
|
.members.list()
|
178
178
|
|
179
179
|
expect(actual).to_not eq(nil)
|
@@ -183,16 +183,16 @@ describe 'Member' do
|
|
183
183
|
@holodeck.mock(Twilio::Response.new(500, ''))
|
184
184
|
|
185
185
|
expect {
|
186
|
-
@client.ip_messaging.v2.services('
|
187
|
-
.channels('
|
188
|
-
.members('
|
186
|
+
@client.ip_messaging.v2.services('ISXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX') \
|
187
|
+
.channels('CHXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX') \
|
188
|
+
.members('MBXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX').delete()
|
189
189
|
}.to raise_exception(Twilio::REST::TwilioError)
|
190
190
|
|
191
191
|
values = {}
|
192
192
|
expect(
|
193
193
|
@holodeck.has_request?(Holodeck::Request.new(
|
194
194
|
method: 'delete',
|
195
|
-
url: 'https://ip-messaging.twilio.com/v2/Services/
|
195
|
+
url: 'https://ip-messaging.twilio.com/v2/Services/ISXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX/Channels/CHXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX/Members/MBXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX',
|
196
196
|
))).to eq(true)
|
197
197
|
end
|
198
198
|
|
@@ -202,9 +202,9 @@ describe 'Member' do
|
|
202
202
|
nil,
|
203
203
|
))
|
204
204
|
|
205
|
-
actual = @client.ip_messaging.v2.services('
|
206
|
-
.channels('
|
207
|
-
.members('
|
205
|
+
actual = @client.ip_messaging.v2.services('ISXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX') \
|
206
|
+
.channels('CHXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX') \
|
207
|
+
.members('MBXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX').delete()
|
208
208
|
|
209
209
|
expect(actual).to eq(true)
|
210
210
|
end
|
@@ -213,16 +213,16 @@ describe 'Member' do
|
|
213
213
|
@holodeck.mock(Twilio::Response.new(500, ''))
|
214
214
|
|
215
215
|
expect {
|
216
|
-
@client.ip_messaging.v2.services('
|
217
|
-
.channels('
|
218
|
-
.members('
|
216
|
+
@client.ip_messaging.v2.services('ISXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX') \
|
217
|
+
.channels('CHXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX') \
|
218
|
+
.members('MBXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX').update()
|
219
219
|
}.to raise_exception(Twilio::REST::TwilioError)
|
220
220
|
|
221
221
|
values = {}
|
222
222
|
expect(
|
223
223
|
@holodeck.has_request?(Holodeck::Request.new(
|
224
224
|
method: 'post',
|
225
|
-
url: 'https://ip-messaging.twilio.com/v2/Services/
|
225
|
+
url: 'https://ip-messaging.twilio.com/v2/Services/ISXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX/Channels/CHXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX/Members/MBXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX',
|
226
226
|
))).to eq(true)
|
227
227
|
end
|
228
228
|
|
@@ -246,9 +246,9 @@ describe 'Member' do
|
|
246
246
|
]
|
247
247
|
))
|
248
248
|
|
249
|
-
actual = @client.ip_messaging.v2.services('
|
250
|
-
.channels('
|
251
|
-
.members('
|
249
|
+
actual = @client.ip_messaging.v2.services('ISXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX') \
|
250
|
+
.channels('CHXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX') \
|
251
|
+
.members('MBXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX').update()
|
252
252
|
|
253
253
|
expect(actual).to_not eq(nil)
|
254
254
|
end
|
@@ -11,16 +11,16 @@ describe 'Message' do
|
|
11
11
|
@holodeck.mock(Twilio::Response.new(500, ''))
|
12
12
|
|
13
13
|
expect {
|
14
|
-
@client.ip_messaging.v2.services('
|
15
|
-
.channels('
|
16
|
-
.messages('
|
14
|
+
@client.ip_messaging.v2.services('ISXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX') \
|
15
|
+
.channels('CHXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX') \
|
16
|
+
.messages('IMXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX').fetch()
|
17
17
|
}.to raise_exception(Twilio::REST::TwilioError)
|
18
18
|
|
19
19
|
values = {}
|
20
20
|
expect(
|
21
21
|
@holodeck.has_request?(Holodeck::Request.new(
|
22
22
|
method: 'get',
|
23
|
-
url: 'https://ip-messaging.twilio.com/v2/Services/
|
23
|
+
url: 'https://ip-messaging.twilio.com/v2/Services/ISXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX/Channels/CHXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX/Messages/IMXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX',
|
24
24
|
))).to eq(true)
|
25
25
|
end
|
26
26
|
|
@@ -49,9 +49,9 @@ describe 'Message' do
|
|
49
49
|
]
|
50
50
|
))
|
51
51
|
|
52
|
-
actual = @client.ip_messaging.v2.services('
|
53
|
-
.channels('
|
54
|
-
.messages('
|
52
|
+
actual = @client.ip_messaging.v2.services('ISXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX') \
|
53
|
+
.channels('CHXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX') \
|
54
|
+
.messages('IMXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX').fetch()
|
55
55
|
|
56
56
|
expect(actual).to_not eq(nil)
|
57
57
|
end
|
@@ -86,9 +86,9 @@ describe 'Message' do
|
|
86
86
|
]
|
87
87
|
))
|
88
88
|
|
89
|
-
actual = @client.ip_messaging.v2.services('
|
90
|
-
.channels('
|
91
|
-
.messages('
|
89
|
+
actual = @client.ip_messaging.v2.services('ISXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX') \
|
90
|
+
.channels('CHXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX') \
|
91
|
+
.messages('IMXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX').fetch()
|
92
92
|
|
93
93
|
expect(actual).to_not eq(nil)
|
94
94
|
end
|
@@ -97,8 +97,8 @@ describe 'Message' do
|
|
97
97
|
@holodeck.mock(Twilio::Response.new(500, ''))
|
98
98
|
|
99
99
|
expect {
|
100
|
-
@client.ip_messaging.v2.services('
|
101
|
-
.channels('
|
100
|
+
@client.ip_messaging.v2.services('ISXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX') \
|
101
|
+
.channels('CHXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX') \
|
102
102
|
.messages.create()
|
103
103
|
}.to raise_exception(Twilio::REST::TwilioError)
|
104
104
|
|
@@ -106,7 +106,7 @@ describe 'Message' do
|
|
106
106
|
expect(
|
107
107
|
@holodeck.has_request?(Holodeck::Request.new(
|
108
108
|
method: 'post',
|
109
|
-
url: 'https://ip-messaging.twilio.com/v2/Services/
|
109
|
+
url: 'https://ip-messaging.twilio.com/v2/Services/ISXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX/Channels/CHXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX/Messages',
|
110
110
|
))).to eq(true)
|
111
111
|
end
|
112
112
|
|
@@ -135,8 +135,8 @@ describe 'Message' do
|
|
135
135
|
]
|
136
136
|
))
|
137
137
|
|
138
|
-
actual = @client.ip_messaging.v2.services('
|
139
|
-
.channels('
|
138
|
+
actual = @client.ip_messaging.v2.services('ISXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX') \
|
139
|
+
.channels('CHXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX') \
|
140
140
|
.messages.create()
|
141
141
|
|
142
142
|
expect(actual).to_not eq(nil)
|
@@ -167,8 +167,8 @@ describe 'Message' do
|
|
167
167
|
]
|
168
168
|
))
|
169
169
|
|
170
|
-
actual = @client.ip_messaging.v2.services('
|
171
|
-
.channels('
|
170
|
+
actual = @client.ip_messaging.v2.services('ISXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX') \
|
171
|
+
.channels('CHXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX') \
|
172
172
|
.messages.create()
|
173
173
|
|
174
174
|
expect(actual).to_not eq(nil)
|
@@ -204,8 +204,8 @@ describe 'Message' do
|
|
204
204
|
]
|
205
205
|
))
|
206
206
|
|
207
|
-
actual = @client.ip_messaging.v2.services('
|
208
|
-
.channels('
|
207
|
+
actual = @client.ip_messaging.v2.services('ISXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX') \
|
208
|
+
.channels('CHXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX') \
|
209
209
|
.messages.create()
|
210
210
|
|
211
211
|
expect(actual).to_not eq(nil)
|
@@ -215,8 +215,8 @@ describe 'Message' do
|
|
215
215
|
@holodeck.mock(Twilio::Response.new(500, ''))
|
216
216
|
|
217
217
|
expect {
|
218
|
-
@client.ip_messaging.v2.services('
|
219
|
-
.channels('
|
218
|
+
@client.ip_messaging.v2.services('ISXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX') \
|
219
|
+
.channels('CHXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX') \
|
220
220
|
.messages.list()
|
221
221
|
}.to raise_exception(Twilio::REST::TwilioError)
|
222
222
|
|
@@ -224,7 +224,7 @@ describe 'Message' do
|
|
224
224
|
expect(
|
225
225
|
@holodeck.has_request?(Holodeck::Request.new(
|
226
226
|
method: 'get',
|
227
|
-
url: 'https://ip-messaging.twilio.com/v2/Services/
|
227
|
+
url: 'https://ip-messaging.twilio.com/v2/Services/ISXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX/Channels/CHXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX/Messages',
|
228
228
|
))).to eq(true)
|
229
229
|
end
|
230
230
|
|
@@ -289,8 +289,8 @@ describe 'Message' do
|
|
289
289
|
]
|
290
290
|
))
|
291
291
|
|
292
|
-
actual = @client.ip_messaging.v2.services('
|
293
|
-
.channels('
|
292
|
+
actual = @client.ip_messaging.v2.services('ISXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX') \
|
293
|
+
.channels('CHXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX') \
|
294
294
|
.messages.list()
|
295
295
|
|
296
296
|
expect(actual).to_not eq(nil)
|
@@ -315,8 +315,8 @@ describe 'Message' do
|
|
315
315
|
]
|
316
316
|
))
|
317
317
|
|
318
|
-
actual = @client.ip_messaging.v2.services('
|
319
|
-
.channels('
|
318
|
+
actual = @client.ip_messaging.v2.services('ISXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX') \
|
319
|
+
.channels('CHXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX') \
|
320
320
|
.messages.list()
|
321
321
|
|
322
322
|
expect(actual).to_not eq(nil)
|
@@ -326,16 +326,16 @@ describe 'Message' do
|
|
326
326
|
@holodeck.mock(Twilio::Response.new(500, ''))
|
327
327
|
|
328
328
|
expect {
|
329
|
-
@client.ip_messaging.v2.services('
|
330
|
-
.channels('
|
331
|
-
.messages('
|
329
|
+
@client.ip_messaging.v2.services('ISXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX') \
|
330
|
+
.channels('CHXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX') \
|
331
|
+
.messages('IMXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX').delete()
|
332
332
|
}.to raise_exception(Twilio::REST::TwilioError)
|
333
333
|
|
334
334
|
values = {}
|
335
335
|
expect(
|
336
336
|
@holodeck.has_request?(Holodeck::Request.new(
|
337
337
|
method: 'delete',
|
338
|
-
url: 'https://ip-messaging.twilio.com/v2/Services/
|
338
|
+
url: 'https://ip-messaging.twilio.com/v2/Services/ISXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX/Channels/CHXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX/Messages/IMXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX',
|
339
339
|
))).to eq(true)
|
340
340
|
end
|
341
341
|
|
@@ -345,9 +345,9 @@ describe 'Message' do
|
|
345
345
|
nil,
|
346
346
|
))
|
347
347
|
|
348
|
-
actual = @client.ip_messaging.v2.services('
|
349
|
-
.channels('
|
350
|
-
.messages('
|
348
|
+
actual = @client.ip_messaging.v2.services('ISXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX') \
|
349
|
+
.channels('CHXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX') \
|
350
|
+
.messages('IMXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX').delete()
|
351
351
|
|
352
352
|
expect(actual).to eq(true)
|
353
353
|
end
|
@@ -356,16 +356,16 @@ describe 'Message' do
|
|
356
356
|
@holodeck.mock(Twilio::Response.new(500, ''))
|
357
357
|
|
358
358
|
expect {
|
359
|
-
@client.ip_messaging.v2.services('
|
360
|
-
.channels('
|
361
|
-
.messages('
|
359
|
+
@client.ip_messaging.v2.services('ISXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX') \
|
360
|
+
.channels('CHXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX') \
|
361
|
+
.messages('IMXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX').update()
|
362
362
|
}.to raise_exception(Twilio::REST::TwilioError)
|
363
363
|
|
364
364
|
values = {}
|
365
365
|
expect(
|
366
366
|
@holodeck.has_request?(Holodeck::Request.new(
|
367
367
|
method: 'post',
|
368
|
-
url: 'https://ip-messaging.twilio.com/v2/Services/
|
368
|
+
url: 'https://ip-messaging.twilio.com/v2/Services/ISXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX/Channels/CHXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX/Messages/IMXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX',
|
369
369
|
))).to eq(true)
|
370
370
|
end
|
371
371
|
|
@@ -394,9 +394,9 @@ describe 'Message' do
|
|
394
394
|
]
|
395
395
|
))
|
396
396
|
|
397
|
-
actual = @client.ip_messaging.v2.services('
|
398
|
-
.channels('
|
399
|
-
.messages('
|
397
|
+
actual = @client.ip_messaging.v2.services('ISXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX') \
|
398
|
+
.channels('CHXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX') \
|
399
|
+
.messages('IMXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX').update()
|
400
400
|
|
401
401
|
expect(actual).to_not eq(nil)
|
402
402
|
end
|
@@ -11,15 +11,15 @@ describe 'Channel' do
|
|
11
11
|
@holodeck.mock(Twilio::Response.new(500, ''))
|
12
12
|
|
13
13
|
expect {
|
14
|
-
@client.ip_messaging.v2.services('
|
15
|
-
.channels('
|
14
|
+
@client.ip_messaging.v2.services('ISXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX') \
|
15
|
+
.channels('CHXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX').fetch()
|
16
16
|
}.to raise_exception(Twilio::REST::TwilioError)
|
17
17
|
|
18
18
|
values = {}
|
19
19
|
expect(
|
20
20
|
@holodeck.has_request?(Holodeck::Request.new(
|
21
21
|
method: 'get',
|
22
|
-
url: 'https://ip-messaging.twilio.com/v2/Services/
|
22
|
+
url: 'https://ip-messaging.twilio.com/v2/Services/ISXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX/Channels/CHXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX',
|
23
23
|
))).to eq(true)
|
24
24
|
end
|
25
25
|
|
@@ -51,8 +51,8 @@ describe 'Channel' do
|
|
51
51
|
]
|
52
52
|
))
|
53
53
|
|
54
|
-
actual = @client.ip_messaging.v2.services('
|
55
|
-
.channels('
|
54
|
+
actual = @client.ip_messaging.v2.services('ISXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX') \
|
55
|
+
.channels('CHXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX').fetch()
|
56
56
|
|
57
57
|
expect(actual).to_not eq(nil)
|
58
58
|
end
|
@@ -61,15 +61,15 @@ describe 'Channel' do
|
|
61
61
|
@holodeck.mock(Twilio::Response.new(500, ''))
|
62
62
|
|
63
63
|
expect {
|
64
|
-
@client.ip_messaging.v2.services('
|
65
|
-
.channels('
|
64
|
+
@client.ip_messaging.v2.services('ISXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX') \
|
65
|
+
.channels('CHXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX').delete()
|
66
66
|
}.to raise_exception(Twilio::REST::TwilioError)
|
67
67
|
|
68
68
|
values = {}
|
69
69
|
expect(
|
70
70
|
@holodeck.has_request?(Holodeck::Request.new(
|
71
71
|
method: 'delete',
|
72
|
-
url: 'https://ip-messaging.twilio.com/v2/Services/
|
72
|
+
url: 'https://ip-messaging.twilio.com/v2/Services/ISXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX/Channels/CHXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX',
|
73
73
|
))).to eq(true)
|
74
74
|
end
|
75
75
|
|
@@ -79,8 +79,8 @@ describe 'Channel' do
|
|
79
79
|
nil,
|
80
80
|
))
|
81
81
|
|
82
|
-
actual = @client.ip_messaging.v2.services('
|
83
|
-
.channels('
|
82
|
+
actual = @client.ip_messaging.v2.services('ISXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX') \
|
83
|
+
.channels('CHXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX').delete()
|
84
84
|
|
85
85
|
expect(actual).to eq(true)
|
86
86
|
end
|
@@ -89,7 +89,7 @@ describe 'Channel' do
|
|
89
89
|
@holodeck.mock(Twilio::Response.new(500, ''))
|
90
90
|
|
91
91
|
expect {
|
92
|
-
@client.ip_messaging.v2.services('
|
92
|
+
@client.ip_messaging.v2.services('ISXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX') \
|
93
93
|
.channels.create()
|
94
94
|
}.to raise_exception(Twilio::REST::TwilioError)
|
95
95
|
|
@@ -97,7 +97,7 @@ describe 'Channel' do
|
|
97
97
|
expect(
|
98
98
|
@holodeck.has_request?(Holodeck::Request.new(
|
99
99
|
method: 'post',
|
100
|
-
url: 'https://ip-messaging.twilio.com/v2/Services/
|
100
|
+
url: 'https://ip-messaging.twilio.com/v2/Services/ISXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX/Channels',
|
101
101
|
))).to eq(true)
|
102
102
|
end
|
103
103
|
|
@@ -129,7 +129,7 @@ describe 'Channel' do
|
|
129
129
|
]
|
130
130
|
))
|
131
131
|
|
132
|
-
actual = @client.ip_messaging.v2.services('
|
132
|
+
actual = @client.ip_messaging.v2.services('ISXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX') \
|
133
133
|
.channels.create()
|
134
134
|
|
135
135
|
expect(actual).to_not eq(nil)
|
@@ -139,7 +139,7 @@ describe 'Channel' do
|
|
139
139
|
@holodeck.mock(Twilio::Response.new(500, ''))
|
140
140
|
|
141
141
|
expect {
|
142
|
-
@client.ip_messaging.v2.services('
|
142
|
+
@client.ip_messaging.v2.services('ISXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX') \
|
143
143
|
.channels.list()
|
144
144
|
}.to raise_exception(Twilio::REST::TwilioError)
|
145
145
|
|
@@ -147,7 +147,7 @@ describe 'Channel' do
|
|
147
147
|
expect(
|
148
148
|
@holodeck.has_request?(Holodeck::Request.new(
|
149
149
|
method: 'get',
|
150
|
-
url: 'https://ip-messaging.twilio.com/v2/Services/
|
150
|
+
url: 'https://ip-messaging.twilio.com/v2/Services/ISXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX/Channels',
|
151
151
|
))).to eq(true)
|
152
152
|
end
|
153
153
|
|
@@ -192,7 +192,7 @@ describe 'Channel' do
|
|
192
192
|
]
|
193
193
|
))
|
194
194
|
|
195
|
-
actual = @client.ip_messaging.v2.services('
|
195
|
+
actual = @client.ip_messaging.v2.services('ISXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX') \
|
196
196
|
.channels.list()
|
197
197
|
|
198
198
|
expect(actual).to_not eq(nil)
|
@@ -217,7 +217,7 @@ describe 'Channel' do
|
|
217
217
|
]
|
218
218
|
))
|
219
219
|
|
220
|
-
actual = @client.ip_messaging.v2.services('
|
220
|
+
actual = @client.ip_messaging.v2.services('ISXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX') \
|
221
221
|
.channels.list()
|
222
222
|
|
223
223
|
expect(actual).to_not eq(nil)
|
@@ -227,15 +227,15 @@ describe 'Channel' do
|
|
227
227
|
@holodeck.mock(Twilio::Response.new(500, ''))
|
228
228
|
|
229
229
|
expect {
|
230
|
-
@client.ip_messaging.v2.services('
|
231
|
-
.channels('
|
230
|
+
@client.ip_messaging.v2.services('ISXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX') \
|
231
|
+
.channels('CHXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX').update()
|
232
232
|
}.to raise_exception(Twilio::REST::TwilioError)
|
233
233
|
|
234
234
|
values = {}
|
235
235
|
expect(
|
236
236
|
@holodeck.has_request?(Holodeck::Request.new(
|
237
237
|
method: 'post',
|
238
|
-
url: 'https://ip-messaging.twilio.com/v2/Services/
|
238
|
+
url: 'https://ip-messaging.twilio.com/v2/Services/ISXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX/Channels/CHXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX',
|
239
239
|
))).to eq(true)
|
240
240
|
end
|
241
241
|
|
@@ -267,8 +267,8 @@ describe 'Channel' do
|
|
267
267
|
]
|
268
268
|
))
|
269
269
|
|
270
|
-
actual = @client.ip_messaging.v2.services('
|
271
|
-
.channels('
|
270
|
+
actual = @client.ip_messaging.v2.services('ISXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX') \
|
271
|
+
.channels('CHXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX').update()
|
272
272
|
|
273
273
|
expect(actual).to_not eq(nil)
|
274
274
|
end
|