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,7 +11,7 @@ describe 'Call' do
|
|
11
11
|
@holodeck.mock(Twilio::Response.new(500, ''))
|
12
12
|
|
13
13
|
expect {
|
14
|
-
@client.api.v2010.accounts('
|
14
|
+
@client.api.v2010.accounts('ACXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX') \
|
15
15
|
.calls.create(to: '+15558675310', from: '+15017122661')
|
16
16
|
}.to raise_exception(Twilio::REST::TwilioError)
|
17
17
|
|
@@ -19,7 +19,7 @@ describe 'Call' do
|
|
19
19
|
expect(
|
20
20
|
@holodeck.has_request?(Holodeck::Request.new(
|
21
21
|
method: 'post',
|
22
|
-
url: 'https://api.twilio.com/2010-04-01/Accounts/
|
22
|
+
url: 'https://api.twilio.com/2010-04-01/Accounts/ACXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX/Calls.json',
|
23
23
|
data: values,
|
24
24
|
))).to eq(true)
|
25
25
|
end
|
@@ -63,7 +63,7 @@ describe 'Call' do
|
|
63
63
|
]
|
64
64
|
))
|
65
65
|
|
66
|
-
actual = @client.api.v2010.accounts('
|
66
|
+
actual = @client.api.v2010.accounts('ACXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX') \
|
67
67
|
.calls.create(to: '+15558675310', from: '+15017122661')
|
68
68
|
|
69
69
|
expect(actual).to_not eq(nil)
|
@@ -73,15 +73,15 @@ describe 'Call' do
|
|
73
73
|
@holodeck.mock(Twilio::Response.new(500, ''))
|
74
74
|
|
75
75
|
expect {
|
76
|
-
@client.api.v2010.accounts('
|
77
|
-
.calls('
|
76
|
+
@client.api.v2010.accounts('ACXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX') \
|
77
|
+
.calls('CAXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX').delete()
|
78
78
|
}.to raise_exception(Twilio::REST::TwilioError)
|
79
79
|
|
80
80
|
values = {}
|
81
81
|
expect(
|
82
82
|
@holodeck.has_request?(Holodeck::Request.new(
|
83
83
|
method: 'delete',
|
84
|
-
url: 'https://api.twilio.com/2010-04-01/Accounts/
|
84
|
+
url: 'https://api.twilio.com/2010-04-01/Accounts/ACXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX/Calls/CAXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX.json',
|
85
85
|
))).to eq(true)
|
86
86
|
end
|
87
87
|
|
@@ -91,8 +91,8 @@ describe 'Call' do
|
|
91
91
|
nil,
|
92
92
|
))
|
93
93
|
|
94
|
-
actual = @client.api.v2010.accounts('
|
95
|
-
.calls('
|
94
|
+
actual = @client.api.v2010.accounts('ACXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX') \
|
95
|
+
.calls('CAXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX').delete()
|
96
96
|
|
97
97
|
expect(actual).to eq(true)
|
98
98
|
end
|
@@ -101,15 +101,15 @@ describe 'Call' do
|
|
101
101
|
@holodeck.mock(Twilio::Response.new(500, ''))
|
102
102
|
|
103
103
|
expect {
|
104
|
-
@client.api.v2010.accounts('
|
105
|
-
.calls('
|
104
|
+
@client.api.v2010.accounts('ACXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX') \
|
105
|
+
.calls('CAXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX').fetch()
|
106
106
|
}.to raise_exception(Twilio::REST::TwilioError)
|
107
107
|
|
108
108
|
values = {}
|
109
109
|
expect(
|
110
110
|
@holodeck.has_request?(Holodeck::Request.new(
|
111
111
|
method: 'get',
|
112
|
-
url: 'https://api.twilio.com/2010-04-01/Accounts/
|
112
|
+
url: 'https://api.twilio.com/2010-04-01/Accounts/ACXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX/Calls/CAXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX.json',
|
113
113
|
))).to eq(true)
|
114
114
|
end
|
115
115
|
|
@@ -150,8 +150,8 @@ describe 'Call' do
|
|
150
150
|
]
|
151
151
|
))
|
152
152
|
|
153
|
-
actual = @client.api.v2010.accounts('
|
154
|
-
.calls('
|
153
|
+
actual = @client.api.v2010.accounts('ACXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX') \
|
154
|
+
.calls('CAXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX').fetch()
|
155
155
|
|
156
156
|
expect(actual).to_not eq(nil)
|
157
157
|
end
|
@@ -160,7 +160,7 @@ describe 'Call' do
|
|
160
160
|
@holodeck.mock(Twilio::Response.new(500, ''))
|
161
161
|
|
162
162
|
expect {
|
163
|
-
@client.api.v2010.accounts('
|
163
|
+
@client.api.v2010.accounts('ACXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX') \
|
164
164
|
.calls.list()
|
165
165
|
}.to raise_exception(Twilio::REST::TwilioError)
|
166
166
|
|
@@ -168,7 +168,7 @@ describe 'Call' do
|
|
168
168
|
expect(
|
169
169
|
@holodeck.has_request?(Holodeck::Request.new(
|
170
170
|
method: 'get',
|
171
|
-
url: 'https://api.twilio.com/2010-04-01/Accounts/
|
171
|
+
url: 'https://api.twilio.com/2010-04-01/Accounts/ACXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX/Calls.json',
|
172
172
|
))).to eq(true)
|
173
173
|
end
|
174
174
|
|
@@ -221,7 +221,7 @@ describe 'Call' do
|
|
221
221
|
]
|
222
222
|
))
|
223
223
|
|
224
|
-
actual = @client.api.v2010.accounts('
|
224
|
+
actual = @client.api.v2010.accounts('ACXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX') \
|
225
225
|
.calls.list()
|
226
226
|
|
227
227
|
expect(actual).to_not eq(nil)
|
@@ -245,7 +245,7 @@ describe 'Call' do
|
|
245
245
|
]
|
246
246
|
))
|
247
247
|
|
248
|
-
actual = @client.api.v2010.accounts('
|
248
|
+
actual = @client.api.v2010.accounts('ACXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX') \
|
249
249
|
.calls.list()
|
250
250
|
|
251
251
|
expect(actual).to_not eq(nil)
|
@@ -255,15 +255,15 @@ describe 'Call' do
|
|
255
255
|
@holodeck.mock(Twilio::Response.new(500, ''))
|
256
256
|
|
257
257
|
expect {
|
258
|
-
@client.api.v2010.accounts('
|
259
|
-
.calls('
|
258
|
+
@client.api.v2010.accounts('ACXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX') \
|
259
|
+
.calls('CAXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX').update()
|
260
260
|
}.to raise_exception(Twilio::REST::TwilioError)
|
261
261
|
|
262
262
|
values = {}
|
263
263
|
expect(
|
264
264
|
@holodeck.has_request?(Holodeck::Request.new(
|
265
265
|
method: 'post',
|
266
|
-
url: 'https://api.twilio.com/2010-04-01/Accounts/
|
266
|
+
url: 'https://api.twilio.com/2010-04-01/Accounts/ACXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX/Calls/CAXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX.json',
|
267
267
|
))).to eq(true)
|
268
268
|
end
|
269
269
|
|
@@ -304,8 +304,8 @@ describe 'Call' do
|
|
304
304
|
]
|
305
305
|
))
|
306
306
|
|
307
|
-
actual = @client.api.v2010.accounts('
|
308
|
-
.calls('
|
307
|
+
actual = @client.api.v2010.accounts('ACXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX') \
|
308
|
+
.calls('CAXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX').update()
|
309
309
|
|
310
310
|
expect(actual).to_not eq(nil)
|
311
311
|
end
|
@@ -11,16 +11,16 @@ describe 'Participant' do
|
|
11
11
|
@holodeck.mock(Twilio::Response.new(500, ''))
|
12
12
|
|
13
13
|
expect {
|
14
|
-
@client.api.v2010.accounts('
|
15
|
-
.conferences('
|
16
|
-
.participants('
|
14
|
+
@client.api.v2010.accounts('ACXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX') \
|
15
|
+
.conferences('CFXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX') \
|
16
|
+
.participants('CAXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX').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://api.twilio.com/2010-04-01/Accounts/
|
23
|
+
url: 'https://api.twilio.com/2010-04-01/Accounts/ACXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX/Conferences/CFXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX/Participants/CAXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX.json',
|
24
24
|
))).to eq(true)
|
25
25
|
end
|
26
26
|
|
@@ -44,9 +44,9 @@ describe 'Participant' do
|
|
44
44
|
]
|
45
45
|
))
|
46
46
|
|
47
|
-
actual = @client.api.v2010.accounts('
|
48
|
-
.conferences('
|
49
|
-
.participants('
|
47
|
+
actual = @client.api.v2010.accounts('ACXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX') \
|
48
|
+
.conferences('CFXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX') \
|
49
|
+
.participants('CAXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX').fetch()
|
50
50
|
|
51
51
|
expect(actual).to_not eq(nil)
|
52
52
|
end
|
@@ -55,16 +55,16 @@ describe 'Participant' do
|
|
55
55
|
@holodeck.mock(Twilio::Response.new(500, ''))
|
56
56
|
|
57
57
|
expect {
|
58
|
-
@client.api.v2010.accounts('
|
59
|
-
.conferences('
|
60
|
-
.participants('
|
58
|
+
@client.api.v2010.accounts('ACXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX') \
|
59
|
+
.conferences('CFXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX') \
|
60
|
+
.participants('CAXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX').update()
|
61
61
|
}.to raise_exception(Twilio::REST::TwilioError)
|
62
62
|
|
63
63
|
values = {}
|
64
64
|
expect(
|
65
65
|
@holodeck.has_request?(Holodeck::Request.new(
|
66
66
|
method: 'post',
|
67
|
-
url: 'https://api.twilio.com/2010-04-01/Accounts/
|
67
|
+
url: 'https://api.twilio.com/2010-04-01/Accounts/ACXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX/Conferences/CFXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX/Participants/CAXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX.json',
|
68
68
|
))).to eq(true)
|
69
69
|
end
|
70
70
|
|
@@ -88,9 +88,9 @@ describe 'Participant' do
|
|
88
88
|
]
|
89
89
|
))
|
90
90
|
|
91
|
-
actual = @client.api.v2010.accounts('
|
92
|
-
.conferences('
|
93
|
-
.participants('
|
91
|
+
actual = @client.api.v2010.accounts('ACXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX') \
|
92
|
+
.conferences('CFXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX') \
|
93
|
+
.participants('CAXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX').update()
|
94
94
|
|
95
95
|
expect(actual).to_not eq(nil)
|
96
96
|
end
|
@@ -99,8 +99,8 @@ describe 'Participant' do
|
|
99
99
|
@holodeck.mock(Twilio::Response.new(500, ''))
|
100
100
|
|
101
101
|
expect {
|
102
|
-
@client.api.v2010.accounts('
|
103
|
-
.conferences('
|
102
|
+
@client.api.v2010.accounts('ACXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX') \
|
103
|
+
.conferences('CFXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX') \
|
104
104
|
.participants.create(from: '+15017122661', to: '+15558675310')
|
105
105
|
}.to raise_exception(Twilio::REST::TwilioError)
|
106
106
|
|
@@ -108,7 +108,7 @@ describe 'Participant' do
|
|
108
108
|
expect(
|
109
109
|
@holodeck.has_request?(Holodeck::Request.new(
|
110
110
|
method: 'post',
|
111
|
-
url: 'https://api.twilio.com/2010-04-01/Accounts/
|
111
|
+
url: 'https://api.twilio.com/2010-04-01/Accounts/ACXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX/Conferences/CFXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX/Participants.json',
|
112
112
|
data: values,
|
113
113
|
))).to eq(true)
|
114
114
|
end
|
@@ -133,8 +133,8 @@ describe 'Participant' do
|
|
133
133
|
]
|
134
134
|
))
|
135
135
|
|
136
|
-
actual = @client.api.v2010.accounts('
|
137
|
-
.conferences('
|
136
|
+
actual = @client.api.v2010.accounts('ACXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX') \
|
137
|
+
.conferences('CFXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX') \
|
138
138
|
.participants.create(from: '+15017122661', to: '+15558675310')
|
139
139
|
|
140
140
|
expect(actual).to_not eq(nil)
|
@@ -160,8 +160,8 @@ describe 'Participant' do
|
|
160
160
|
]
|
161
161
|
))
|
162
162
|
|
163
|
-
actual = @client.api.v2010.accounts('
|
164
|
-
.conferences('
|
163
|
+
actual = @client.api.v2010.accounts('ACXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX') \
|
164
|
+
.conferences('CFXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX') \
|
165
165
|
.participants.create(from: '+15017122661', to: '+15558675310')
|
166
166
|
|
167
167
|
expect(actual).to_not eq(nil)
|
@@ -171,16 +171,16 @@ describe 'Participant' do
|
|
171
171
|
@holodeck.mock(Twilio::Response.new(500, ''))
|
172
172
|
|
173
173
|
expect {
|
174
|
-
@client.api.v2010.accounts('
|
175
|
-
.conferences('
|
176
|
-
.participants('
|
174
|
+
@client.api.v2010.accounts('ACXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX') \
|
175
|
+
.conferences('CFXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX') \
|
176
|
+
.participants('CAXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX').delete()
|
177
177
|
}.to raise_exception(Twilio::REST::TwilioError)
|
178
178
|
|
179
179
|
values = {}
|
180
180
|
expect(
|
181
181
|
@holodeck.has_request?(Holodeck::Request.new(
|
182
182
|
method: 'delete',
|
183
|
-
url: 'https://api.twilio.com/2010-04-01/Accounts/
|
183
|
+
url: 'https://api.twilio.com/2010-04-01/Accounts/ACXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX/Conferences/CFXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX/Participants/CAXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX.json',
|
184
184
|
))).to eq(true)
|
185
185
|
end
|
186
186
|
|
@@ -190,9 +190,9 @@ describe 'Participant' do
|
|
190
190
|
nil,
|
191
191
|
))
|
192
192
|
|
193
|
-
actual = @client.api.v2010.accounts('
|
194
|
-
.conferences('
|
195
|
-
.participants('
|
193
|
+
actual = @client.api.v2010.accounts('ACXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX') \
|
194
|
+
.conferences('CFXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX') \
|
195
|
+
.participants('CAXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX').delete()
|
196
196
|
|
197
197
|
expect(actual).to eq(true)
|
198
198
|
end
|
@@ -201,8 +201,8 @@ describe 'Participant' do
|
|
201
201
|
@holodeck.mock(Twilio::Response.new(500, ''))
|
202
202
|
|
203
203
|
expect {
|
204
|
-
@client.api.v2010.accounts('
|
205
|
-
.conferences('
|
204
|
+
@client.api.v2010.accounts('ACXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX') \
|
205
|
+
.conferences('CFXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX') \
|
206
206
|
.participants.list()
|
207
207
|
}.to raise_exception(Twilio::REST::TwilioError)
|
208
208
|
|
@@ -210,7 +210,7 @@ describe 'Participant' do
|
|
210
210
|
expect(
|
211
211
|
@holodeck.has_request?(Holodeck::Request.new(
|
212
212
|
method: 'get',
|
213
|
-
url: 'https://api.twilio.com/2010-04-01/Accounts/
|
213
|
+
url: 'https://api.twilio.com/2010-04-01/Accounts/ACXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX/Conferences/CFXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX/Participants.json',
|
214
214
|
))).to eq(true)
|
215
215
|
end
|
216
216
|
|
@@ -246,8 +246,8 @@ describe 'Participant' do
|
|
246
246
|
]
|
247
247
|
))
|
248
248
|
|
249
|
-
actual = @client.api.v2010.accounts('
|
250
|
-
.conferences('
|
249
|
+
actual = @client.api.v2010.accounts('ACXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX') \
|
250
|
+
.conferences('CFXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX') \
|
251
251
|
.participants.list()
|
252
252
|
|
253
253
|
expect(actual).to_not eq(nil)
|
@@ -271,8 +271,8 @@ describe 'Participant' do
|
|
271
271
|
]
|
272
272
|
))
|
273
273
|
|
274
|
-
actual = @client.api.v2010.accounts('
|
275
|
-
.conferences('
|
274
|
+
actual = @client.api.v2010.accounts('ACXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX') \
|
275
|
+
.conferences('CFXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX') \
|
276
276
|
.participants.list()
|
277
277
|
|
278
278
|
expect(actual).to_not eq(nil)
|
@@ -11,15 +11,15 @@ describe 'Conference' do
|
|
11
11
|
@holodeck.mock(Twilio::Response.new(500, ''))
|
12
12
|
|
13
13
|
expect {
|
14
|
-
@client.api.v2010.accounts('
|
15
|
-
.conferences('
|
14
|
+
@client.api.v2010.accounts('ACXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX') \
|
15
|
+
.conferences('CFXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX').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://api.twilio.com/2010-04-01/Accounts/
|
22
|
+
url: 'https://api.twilio.com/2010-04-01/Accounts/ACXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX/Conferences/CFXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX.json',
|
23
23
|
))).to eq(true)
|
24
24
|
end
|
25
25
|
|
@@ -45,8 +45,8 @@ describe 'Conference' do
|
|
45
45
|
]
|
46
46
|
))
|
47
47
|
|
48
|
-
actual = @client.api.v2010.accounts('
|
49
|
-
.conferences('
|
48
|
+
actual = @client.api.v2010.accounts('ACXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX') \
|
49
|
+
.conferences('CFXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX').fetch()
|
50
50
|
|
51
51
|
expect(actual).to_not eq(nil)
|
52
52
|
end
|
@@ -55,7 +55,7 @@ describe 'Conference' do
|
|
55
55
|
@holodeck.mock(Twilio::Response.new(500, ''))
|
56
56
|
|
57
57
|
expect {
|
58
|
-
@client.api.v2010.accounts('
|
58
|
+
@client.api.v2010.accounts('ACXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX') \
|
59
59
|
.conferences.list()
|
60
60
|
}.to raise_exception(Twilio::REST::TwilioError)
|
61
61
|
|
@@ -63,7 +63,7 @@ describe 'Conference' do
|
|
63
63
|
expect(
|
64
64
|
@holodeck.has_request?(Holodeck::Request.new(
|
65
65
|
method: 'get',
|
66
|
-
url: 'https://api.twilio.com/2010-04-01/Accounts/
|
66
|
+
url: 'https://api.twilio.com/2010-04-01/Accounts/ACXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX/Conferences.json',
|
67
67
|
))).to eq(true)
|
68
68
|
end
|
69
69
|
|
@@ -101,7 +101,7 @@ describe 'Conference' do
|
|
101
101
|
]
|
102
102
|
))
|
103
103
|
|
104
|
-
actual = @client.api.v2010.accounts('
|
104
|
+
actual = @client.api.v2010.accounts('ACXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX') \
|
105
105
|
.conferences.list()
|
106
106
|
|
107
107
|
expect(actual).to_not eq(nil)
|
@@ -125,7 +125,7 @@ describe 'Conference' do
|
|
125
125
|
]
|
126
126
|
))
|
127
127
|
|
128
|
-
actual = @client.api.v2010.accounts('
|
128
|
+
actual = @client.api.v2010.accounts('ACXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX') \
|
129
129
|
.conferences.list()
|
130
130
|
|
131
131
|
expect(actual).to_not eq(nil)
|
@@ -135,15 +135,15 @@ describe 'Conference' do
|
|
135
135
|
@holodeck.mock(Twilio::Response.new(500, ''))
|
136
136
|
|
137
137
|
expect {
|
138
|
-
@client.api.v2010.accounts('
|
139
|
-
.conferences('
|
138
|
+
@client.api.v2010.accounts('ACXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX') \
|
139
|
+
.conferences('CFXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX').update()
|
140
140
|
}.to raise_exception(Twilio::REST::TwilioError)
|
141
141
|
|
142
142
|
values = {}
|
143
143
|
expect(
|
144
144
|
@holodeck.has_request?(Holodeck::Request.new(
|
145
145
|
method: 'post',
|
146
|
-
url: 'https://api.twilio.com/2010-04-01/Accounts/
|
146
|
+
url: 'https://api.twilio.com/2010-04-01/Accounts/ACXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX/Conferences/CFXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX.json',
|
147
147
|
))).to eq(true)
|
148
148
|
end
|
149
149
|
|
@@ -169,8 +169,8 @@ describe 'Conference' do
|
|
169
169
|
]
|
170
170
|
))
|
171
171
|
|
172
|
-
actual = @client.api.v2010.accounts('
|
173
|
-
.conferences('
|
172
|
+
actual = @client.api.v2010.accounts('ACXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX') \
|
173
|
+
.conferences('CFXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX').update()
|
174
174
|
|
175
175
|
expect(actual).to_not eq(nil)
|
176
176
|
end
|
@@ -11,15 +11,15 @@ describe 'ConnectApp' do
|
|
11
11
|
@holodeck.mock(Twilio::Response.new(500, ''))
|
12
12
|
|
13
13
|
expect {
|
14
|
-
@client.api.v2010.accounts('
|
15
|
-
.connect_apps('
|
14
|
+
@client.api.v2010.accounts('ACXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX') \
|
15
|
+
.connect_apps('CNXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX').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://api.twilio.com/2010-04-01/Accounts/
|
22
|
+
url: 'https://api.twilio.com/2010-04-01/Accounts/ACXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX/ConnectApps/CNXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX.json',
|
23
23
|
))).to eq(true)
|
24
24
|
end
|
25
25
|
|
@@ -43,8 +43,8 @@ describe 'ConnectApp' do
|
|
43
43
|
]
|
44
44
|
))
|
45
45
|
|
46
|
-
actual = @client.api.v2010.accounts('
|
47
|
-
.connect_apps('
|
46
|
+
actual = @client.api.v2010.accounts('ACXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX') \
|
47
|
+
.connect_apps('CNXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX').fetch()
|
48
48
|
|
49
49
|
expect(actual).to_not eq(nil)
|
50
50
|
end
|
@@ -53,15 +53,15 @@ describe 'ConnectApp' do
|
|
53
53
|
@holodeck.mock(Twilio::Response.new(500, ''))
|
54
54
|
|
55
55
|
expect {
|
56
|
-
@client.api.v2010.accounts('
|
57
|
-
.connect_apps('
|
56
|
+
@client.api.v2010.accounts('ACXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX') \
|
57
|
+
.connect_apps('CNXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX').update()
|
58
58
|
}.to raise_exception(Twilio::REST::TwilioError)
|
59
59
|
|
60
60
|
values = {}
|
61
61
|
expect(
|
62
62
|
@holodeck.has_request?(Holodeck::Request.new(
|
63
63
|
method: 'post',
|
64
|
-
url: 'https://api.twilio.com/2010-04-01/Accounts/
|
64
|
+
url: 'https://api.twilio.com/2010-04-01/Accounts/ACXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX/ConnectApps/CNXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX.json',
|
65
65
|
))).to eq(true)
|
66
66
|
end
|
67
67
|
|
@@ -85,8 +85,8 @@ describe 'ConnectApp' do
|
|
85
85
|
]
|
86
86
|
))
|
87
87
|
|
88
|
-
actual = @client.api.v2010.accounts('
|
89
|
-
.connect_apps('
|
88
|
+
actual = @client.api.v2010.accounts('ACXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX') \
|
89
|
+
.connect_apps('CNXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX').update()
|
90
90
|
|
91
91
|
expect(actual).to_not eq(nil)
|
92
92
|
end
|
@@ -95,7 +95,7 @@ describe 'ConnectApp' do
|
|
95
95
|
@holodeck.mock(Twilio::Response.new(500, ''))
|
96
96
|
|
97
97
|
expect {
|
98
|
-
@client.api.v2010.accounts('
|
98
|
+
@client.api.v2010.accounts('ACXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX') \
|
99
99
|
.connect_apps.list()
|
100
100
|
}.to raise_exception(Twilio::REST::TwilioError)
|
101
101
|
|
@@ -103,7 +103,7 @@ describe 'ConnectApp' do
|
|
103
103
|
expect(
|
104
104
|
@holodeck.has_request?(Holodeck::Request.new(
|
105
105
|
method: 'get',
|
106
|
-
url: 'https://api.twilio.com/2010-04-01/Accounts/
|
106
|
+
url: 'https://api.twilio.com/2010-04-01/Accounts/ACXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX/ConnectApps.json',
|
107
107
|
))).to eq(true)
|
108
108
|
end
|
109
109
|
|
@@ -142,7 +142,7 @@ describe 'ConnectApp' do
|
|
142
142
|
]
|
143
143
|
))
|
144
144
|
|
145
|
-
actual = @client.api.v2010.accounts('
|
145
|
+
actual = @client.api.v2010.accounts('ACXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX') \
|
146
146
|
.connect_apps.list()
|
147
147
|
|
148
148
|
expect(actual).to_not eq(nil)
|
@@ -169,7 +169,7 @@ describe 'ConnectApp' do
|
|
169
169
|
]
|
170
170
|
))
|
171
171
|
|
172
|
-
actual = @client.api.v2010.accounts('
|
172
|
+
actual = @client.api.v2010.accounts('ACXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX') \
|
173
173
|
.connect_apps.list()
|
174
174
|
|
175
175
|
expect(actual).to_not eq(nil)
|