twilio-ruby 5.7.2 → 5.8.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/.travis.yml +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 'AvailablePhoneNumberCountry' 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
|
.available_phone_numbers.list()
|
|
16
16
|
}.to raise_exception(Twilio::REST::TwilioError)
|
|
17
17
|
|
|
@@ -19,7 +19,7 @@ describe 'AvailablePhoneNumberCountry' do
|
|
|
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/AvailablePhoneNumbers.json',
|
|
23
23
|
))).to eq(true)
|
|
24
24
|
end
|
|
25
25
|
|
|
@@ -54,7 +54,7 @@ describe 'AvailablePhoneNumberCountry' do
|
|
|
54
54
|
]
|
|
55
55
|
))
|
|
56
56
|
|
|
57
|
-
actual = @client.api.v2010.accounts('
|
|
57
|
+
actual = @client.api.v2010.accounts('ACXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX') \
|
|
58
58
|
.available_phone_numbers.list()
|
|
59
59
|
|
|
60
60
|
expect(actual).to_not eq(nil)
|
|
@@ -81,7 +81,7 @@ describe 'AvailablePhoneNumberCountry' do
|
|
|
81
81
|
]
|
|
82
82
|
))
|
|
83
83
|
|
|
84
|
-
actual = @client.api.v2010.accounts('
|
|
84
|
+
actual = @client.api.v2010.accounts('ACXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX') \
|
|
85
85
|
.available_phone_numbers.list()
|
|
86
86
|
|
|
87
87
|
expect(actual).to_not eq(nil)
|
|
@@ -91,7 +91,7 @@ describe 'AvailablePhoneNumberCountry' do
|
|
|
91
91
|
@holodeck.mock(Twilio::Response.new(500, ''))
|
|
92
92
|
|
|
93
93
|
expect {
|
|
94
|
-
@client.api.v2010.accounts('
|
|
94
|
+
@client.api.v2010.accounts('ACXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX') \
|
|
95
95
|
.available_phone_numbers('US').fetch()
|
|
96
96
|
}.to raise_exception(Twilio::REST::TwilioError)
|
|
97
97
|
|
|
@@ -99,7 +99,7 @@ describe 'AvailablePhoneNumberCountry' do
|
|
|
99
99
|
expect(
|
|
100
100
|
@holodeck.has_request?(Holodeck::Request.new(
|
|
101
101
|
method: 'get',
|
|
102
|
-
url: 'https://api.twilio.com/2010-04-01/Accounts/
|
|
102
|
+
url: 'https://api.twilio.com/2010-04-01/Accounts/ACXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX/AvailablePhoneNumbers/US.json',
|
|
103
103
|
))).to eq(true)
|
|
104
104
|
end
|
|
105
105
|
|
|
@@ -120,7 +120,7 @@ describe 'AvailablePhoneNumberCountry' do
|
|
|
120
120
|
]
|
|
121
121
|
))
|
|
122
122
|
|
|
123
|
-
actual = @client.api.v2010.accounts('
|
|
123
|
+
actual = @client.api.v2010.accounts('ACXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX') \
|
|
124
124
|
.available_phone_numbers('US').fetch()
|
|
125
125
|
|
|
126
126
|
expect(actual).to_not eq(nil)
|
|
@@ -11,8 +11,8 @@ describe 'Feedback' do
|
|
|
11
11
|
@holodeck.mock(Twilio::Response.new(500, ''))
|
|
12
12
|
|
|
13
13
|
expect {
|
|
14
|
-
@client.api.v2010.accounts('
|
|
15
|
-
.calls('
|
|
14
|
+
@client.api.v2010.accounts('ACXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX') \
|
|
15
|
+
.calls('CAXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX') \
|
|
16
16
|
.feedback().create(quality_score: 1)
|
|
17
17
|
}.to raise_exception(Twilio::REST::TwilioError)
|
|
18
18
|
|
|
@@ -20,7 +20,7 @@ describe 'Feedback' do
|
|
|
20
20
|
expect(
|
|
21
21
|
@holodeck.has_request?(Holodeck::Request.new(
|
|
22
22
|
method: 'post',
|
|
23
|
-
url: 'https://api.twilio.com/2010-04-01/Accounts/
|
|
23
|
+
url: 'https://api.twilio.com/2010-04-01/Accounts/ACXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX/Calls/CAXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX/Feedback.json',
|
|
24
24
|
data: values,
|
|
25
25
|
))).to eq(true)
|
|
26
26
|
end
|
|
@@ -43,8 +43,8 @@ describe 'Feedback' do
|
|
|
43
43
|
]
|
|
44
44
|
))
|
|
45
45
|
|
|
46
|
-
actual = @client.api.v2010.accounts('
|
|
47
|
-
.calls('
|
|
46
|
+
actual = @client.api.v2010.accounts('ACXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX') \
|
|
47
|
+
.calls('CAXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX') \
|
|
48
48
|
.feedback().create(quality_score: 1)
|
|
49
49
|
|
|
50
50
|
expect(actual).to_not eq(nil)
|
|
@@ -54,8 +54,8 @@ describe 'Feedback' do
|
|
|
54
54
|
@holodeck.mock(Twilio::Response.new(500, ''))
|
|
55
55
|
|
|
56
56
|
expect {
|
|
57
|
-
@client.api.v2010.accounts('
|
|
58
|
-
.calls('
|
|
57
|
+
@client.api.v2010.accounts('ACXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX') \
|
|
58
|
+
.calls('CAXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX') \
|
|
59
59
|
.feedback().fetch()
|
|
60
60
|
}.to raise_exception(Twilio::REST::TwilioError)
|
|
61
61
|
|
|
@@ -63,7 +63,7 @@ describe 'Feedback' 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/Calls/CAXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX/Feedback.json',
|
|
67
67
|
))).to eq(true)
|
|
68
68
|
end
|
|
69
69
|
|
|
@@ -85,8 +85,8 @@ describe 'Feedback' do
|
|
|
85
85
|
]
|
|
86
86
|
))
|
|
87
87
|
|
|
88
|
-
actual = @client.api.v2010.accounts('
|
|
89
|
-
.calls('
|
|
88
|
+
actual = @client.api.v2010.accounts('ACXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX') \
|
|
89
|
+
.calls('CAXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX') \
|
|
90
90
|
.feedback().fetch()
|
|
91
91
|
|
|
92
92
|
expect(actual).to_not eq(nil)
|
|
@@ -96,8 +96,8 @@ describe 'Feedback' do
|
|
|
96
96
|
@holodeck.mock(Twilio::Response.new(500, ''))
|
|
97
97
|
|
|
98
98
|
expect {
|
|
99
|
-
@client.api.v2010.accounts('
|
|
100
|
-
.calls('
|
|
99
|
+
@client.api.v2010.accounts('ACXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX') \
|
|
100
|
+
.calls('CAXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX') \
|
|
101
101
|
.feedback().update(quality_score: 1)
|
|
102
102
|
}.to raise_exception(Twilio::REST::TwilioError)
|
|
103
103
|
|
|
@@ -105,7 +105,7 @@ describe 'Feedback' do
|
|
|
105
105
|
expect(
|
|
106
106
|
@holodeck.has_request?(Holodeck::Request.new(
|
|
107
107
|
method: 'post',
|
|
108
|
-
url: 'https://api.twilio.com/2010-04-01/Accounts/
|
|
108
|
+
url: 'https://api.twilio.com/2010-04-01/Accounts/ACXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX/Calls/CAXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX/Feedback.json',
|
|
109
109
|
data: values,
|
|
110
110
|
))).to eq(true)
|
|
111
111
|
end
|
|
@@ -128,8 +128,8 @@ describe 'Feedback' do
|
|
|
128
128
|
]
|
|
129
129
|
))
|
|
130
130
|
|
|
131
|
-
actual = @client.api.v2010.accounts('
|
|
132
|
-
.calls('
|
|
131
|
+
actual = @client.api.v2010.accounts('ACXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX') \
|
|
132
|
+
.calls('CAXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX') \
|
|
133
133
|
.feedback().update(quality_score: 1)
|
|
134
134
|
|
|
135
135
|
expect(actual).to_not eq(nil)
|
|
@@ -11,7 +11,7 @@ describe 'FeedbackSummary' 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 \
|
|
16
16
|
.feedback_summaries.create(start_date: Date.new(2008, 1, 2), end_date: Date.new(2008, 1, 2))
|
|
17
17
|
}.to raise_exception(Twilio::REST::TwilioError)
|
|
@@ -23,7 +23,7 @@ describe 'FeedbackSummary' do
|
|
|
23
23
|
expect(
|
|
24
24
|
@holodeck.has_request?(Holodeck::Request.new(
|
|
25
25
|
method: 'post',
|
|
26
|
-
url: 'https://api.twilio.com/2010-04-01/Accounts/
|
|
26
|
+
url: 'https://api.twilio.com/2010-04-01/Accounts/ACXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX/Calls/FeedbackSummary.json',
|
|
27
27
|
data: values,
|
|
28
28
|
))).to eq(true)
|
|
29
29
|
end
|
|
@@ -57,7 +57,7 @@ describe 'FeedbackSummary' do
|
|
|
57
57
|
]
|
|
58
58
|
))
|
|
59
59
|
|
|
60
|
-
actual = @client.api.v2010.accounts('
|
|
60
|
+
actual = @client.api.v2010.accounts('ACXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX') \
|
|
61
61
|
.calls \
|
|
62
62
|
.feedback_summaries.create(start_date: Date.new(2008, 1, 2), end_date: Date.new(2008, 1, 2))
|
|
63
63
|
|
|
@@ -68,16 +68,16 @@ describe 'FeedbackSummary' do
|
|
|
68
68
|
@holodeck.mock(Twilio::Response.new(500, ''))
|
|
69
69
|
|
|
70
70
|
expect {
|
|
71
|
-
@client.api.v2010.accounts('
|
|
71
|
+
@client.api.v2010.accounts('ACXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX') \
|
|
72
72
|
.calls \
|
|
73
|
-
.feedback_summaries('
|
|
73
|
+
.feedback_summaries('FSXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX').fetch()
|
|
74
74
|
}.to raise_exception(Twilio::REST::TwilioError)
|
|
75
75
|
|
|
76
76
|
values = {}
|
|
77
77
|
expect(
|
|
78
78
|
@holodeck.has_request?(Holodeck::Request.new(
|
|
79
79
|
method: 'get',
|
|
80
|
-
url: 'https://api.twilio.com/2010-04-01/Accounts/
|
|
80
|
+
url: 'https://api.twilio.com/2010-04-01/Accounts/ACXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX/Calls/FeedbackSummary/FSXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX.json',
|
|
81
81
|
))).to eq(true)
|
|
82
82
|
end
|
|
83
83
|
|
|
@@ -110,9 +110,9 @@ describe 'FeedbackSummary' do
|
|
|
110
110
|
]
|
|
111
111
|
))
|
|
112
112
|
|
|
113
|
-
actual = @client.api.v2010.accounts('
|
|
113
|
+
actual = @client.api.v2010.accounts('ACXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX') \
|
|
114
114
|
.calls \
|
|
115
|
-
.feedback_summaries('
|
|
115
|
+
.feedback_summaries('FSXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX').fetch()
|
|
116
116
|
|
|
117
117
|
expect(actual).to_not eq(nil)
|
|
118
118
|
end
|
|
@@ -121,16 +121,16 @@ describe 'FeedbackSummary' do
|
|
|
121
121
|
@holodeck.mock(Twilio::Response.new(500, ''))
|
|
122
122
|
|
|
123
123
|
expect {
|
|
124
|
-
@client.api.v2010.accounts('
|
|
124
|
+
@client.api.v2010.accounts('ACXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX') \
|
|
125
125
|
.calls \
|
|
126
|
-
.feedback_summaries('
|
|
126
|
+
.feedback_summaries('FSXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX').delete()
|
|
127
127
|
}.to raise_exception(Twilio::REST::TwilioError)
|
|
128
128
|
|
|
129
129
|
values = {}
|
|
130
130
|
expect(
|
|
131
131
|
@holodeck.has_request?(Holodeck::Request.new(
|
|
132
132
|
method: 'delete',
|
|
133
|
-
url: 'https://api.twilio.com/2010-04-01/Accounts/
|
|
133
|
+
url: 'https://api.twilio.com/2010-04-01/Accounts/ACXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX/Calls/FeedbackSummary/FSXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX.json',
|
|
134
134
|
))).to eq(true)
|
|
135
135
|
end
|
|
136
136
|
|
|
@@ -140,9 +140,9 @@ describe 'FeedbackSummary' do
|
|
|
140
140
|
nil,
|
|
141
141
|
))
|
|
142
142
|
|
|
143
|
-
actual = @client.api.v2010.accounts('
|
|
143
|
+
actual = @client.api.v2010.accounts('ACXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX') \
|
|
144
144
|
.calls \
|
|
145
|
-
.feedback_summaries('
|
|
145
|
+
.feedback_summaries('FSXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX').delete()
|
|
146
146
|
|
|
147
147
|
expect(actual).to eq(true)
|
|
148
148
|
end
|
|
@@ -11,16 +11,16 @@ describe 'Notification' do
|
|
|
11
11
|
@holodeck.mock(Twilio::Response.new(500, ''))
|
|
12
12
|
|
|
13
13
|
expect {
|
|
14
|
-
@client.api.v2010.accounts('
|
|
15
|
-
.calls('
|
|
16
|
-
.notifications('
|
|
14
|
+
@client.api.v2010.accounts('ACXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX') \
|
|
15
|
+
.calls('CAXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX') \
|
|
16
|
+
.notifications('NOXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX').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/Calls/CAXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX/Notifications/NOXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX.json',
|
|
24
24
|
))).to eq(true)
|
|
25
25
|
end
|
|
26
26
|
|
|
@@ -50,9 +50,9 @@ describe 'Notification' do
|
|
|
50
50
|
]
|
|
51
51
|
))
|
|
52
52
|
|
|
53
|
-
actual = @client.api.v2010.accounts('
|
|
54
|
-
.calls('
|
|
55
|
-
.notifications('
|
|
53
|
+
actual = @client.api.v2010.accounts('ACXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX') \
|
|
54
|
+
.calls('CAXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX') \
|
|
55
|
+
.notifications('NOXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX').fetch()
|
|
56
56
|
|
|
57
57
|
expect(actual).to_not eq(nil)
|
|
58
58
|
end
|
|
@@ -61,16 +61,16 @@ describe 'Notification' do
|
|
|
61
61
|
@holodeck.mock(Twilio::Response.new(500, ''))
|
|
62
62
|
|
|
63
63
|
expect {
|
|
64
|
-
@client.api.v2010.accounts('
|
|
65
|
-
.calls('
|
|
66
|
-
.notifications('
|
|
64
|
+
@client.api.v2010.accounts('ACXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX') \
|
|
65
|
+
.calls('CAXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX') \
|
|
66
|
+
.notifications('NOXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX').delete()
|
|
67
67
|
}.to raise_exception(Twilio::REST::TwilioError)
|
|
68
68
|
|
|
69
69
|
values = {}
|
|
70
70
|
expect(
|
|
71
71
|
@holodeck.has_request?(Holodeck::Request.new(
|
|
72
72
|
method: 'delete',
|
|
73
|
-
url: 'https://api.twilio.com/2010-04-01/Accounts/
|
|
73
|
+
url: 'https://api.twilio.com/2010-04-01/Accounts/ACXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX/Calls/CAXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX/Notifications/NOXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX.json',
|
|
74
74
|
))).to eq(true)
|
|
75
75
|
end
|
|
76
76
|
|
|
@@ -80,9 +80,9 @@ describe 'Notification' do
|
|
|
80
80
|
nil,
|
|
81
81
|
))
|
|
82
82
|
|
|
83
|
-
actual = @client.api.v2010.accounts('
|
|
84
|
-
.calls('
|
|
85
|
-
.notifications('
|
|
83
|
+
actual = @client.api.v2010.accounts('ACXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX') \
|
|
84
|
+
.calls('CAXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX') \
|
|
85
|
+
.notifications('NOXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX').delete()
|
|
86
86
|
|
|
87
87
|
expect(actual).to eq(true)
|
|
88
88
|
end
|
|
@@ -91,8 +91,8 @@ describe 'Notification' do
|
|
|
91
91
|
@holodeck.mock(Twilio::Response.new(500, ''))
|
|
92
92
|
|
|
93
93
|
expect {
|
|
94
|
-
@client.api.v2010.accounts('
|
|
95
|
-
.calls('
|
|
94
|
+
@client.api.v2010.accounts('ACXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX') \
|
|
95
|
+
.calls('CAXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX') \
|
|
96
96
|
.notifications.list()
|
|
97
97
|
}.to raise_exception(Twilio::REST::TwilioError)
|
|
98
98
|
|
|
@@ -100,7 +100,7 @@ describe 'Notification' do
|
|
|
100
100
|
expect(
|
|
101
101
|
@holodeck.has_request?(Holodeck::Request.new(
|
|
102
102
|
method: 'get',
|
|
103
|
-
url: 'https://api.twilio.com/2010-04-01/Accounts/
|
|
103
|
+
url: 'https://api.twilio.com/2010-04-01/Accounts/ACXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX/Calls/CAXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX/Notifications.json',
|
|
104
104
|
))).to eq(true)
|
|
105
105
|
end
|
|
106
106
|
|
|
@@ -142,8 +142,8 @@ describe 'Notification' do
|
|
|
142
142
|
]
|
|
143
143
|
))
|
|
144
144
|
|
|
145
|
-
actual = @client.api.v2010.accounts('
|
|
146
|
-
.calls('
|
|
145
|
+
actual = @client.api.v2010.accounts('ACXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX') \
|
|
146
|
+
.calls('CAXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX') \
|
|
147
147
|
.notifications.list()
|
|
148
148
|
|
|
149
149
|
expect(actual).to_not eq(nil)
|
|
@@ -170,8 +170,8 @@ describe 'Notification' do
|
|
|
170
170
|
]
|
|
171
171
|
))
|
|
172
172
|
|
|
173
|
-
actual = @client.api.v2010.accounts('
|
|
174
|
-
.calls('
|
|
173
|
+
actual = @client.api.v2010.accounts('ACXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX') \
|
|
174
|
+
.calls('CAXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX') \
|
|
175
175
|
.notifications.list()
|
|
176
176
|
|
|
177
177
|
expect(actual).to_not eq(nil)
|
|
@@ -11,16 +11,16 @@ describe 'Recording' do
|
|
|
11
11
|
@holodeck.mock(Twilio::Response.new(500, ''))
|
|
12
12
|
|
|
13
13
|
expect {
|
|
14
|
-
@client.api.v2010.accounts('
|
|
15
|
-
.calls('
|
|
16
|
-
.recordings('
|
|
14
|
+
@client.api.v2010.accounts('ACXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX') \
|
|
15
|
+
.calls('CAXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX') \
|
|
16
|
+
.recordings('REXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX').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/Calls/CAXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX/Recordings/REXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX.json',
|
|
24
24
|
))).to eq(true)
|
|
25
25
|
end
|
|
26
26
|
|
|
@@ -55,9 +55,9 @@ describe 'Recording' do
|
|
|
55
55
|
]
|
|
56
56
|
))
|
|
57
57
|
|
|
58
|
-
actual = @client.api.v2010.accounts('
|
|
59
|
-
.calls('
|
|
60
|
-
.recordings('
|
|
58
|
+
actual = @client.api.v2010.accounts('ACXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX') \
|
|
59
|
+
.calls('CAXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX') \
|
|
60
|
+
.recordings('REXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX').fetch()
|
|
61
61
|
|
|
62
62
|
expect(actual).to_not eq(nil)
|
|
63
63
|
end
|
|
@@ -66,16 +66,16 @@ describe 'Recording' do
|
|
|
66
66
|
@holodeck.mock(Twilio::Response.new(500, ''))
|
|
67
67
|
|
|
68
68
|
expect {
|
|
69
|
-
@client.api.v2010.accounts('
|
|
70
|
-
.calls('
|
|
71
|
-
.recordings('
|
|
69
|
+
@client.api.v2010.accounts('ACXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX') \
|
|
70
|
+
.calls('CAXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX') \
|
|
71
|
+
.recordings('REXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX').delete()
|
|
72
72
|
}.to raise_exception(Twilio::REST::TwilioError)
|
|
73
73
|
|
|
74
74
|
values = {}
|
|
75
75
|
expect(
|
|
76
76
|
@holodeck.has_request?(Holodeck::Request.new(
|
|
77
77
|
method: 'delete',
|
|
78
|
-
url: 'https://api.twilio.com/2010-04-01/Accounts/
|
|
78
|
+
url: 'https://api.twilio.com/2010-04-01/Accounts/ACXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX/Calls/CAXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX/Recordings/REXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX.json',
|
|
79
79
|
))).to eq(true)
|
|
80
80
|
end
|
|
81
81
|
|
|
@@ -85,9 +85,9 @@ describe 'Recording' do
|
|
|
85
85
|
nil,
|
|
86
86
|
))
|
|
87
87
|
|
|
88
|
-
actual = @client.api.v2010.accounts('
|
|
89
|
-
.calls('
|
|
90
|
-
.recordings('
|
|
88
|
+
actual = @client.api.v2010.accounts('ACXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX') \
|
|
89
|
+
.calls('CAXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX') \
|
|
90
|
+
.recordings('REXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX').delete()
|
|
91
91
|
|
|
92
92
|
expect(actual).to eq(true)
|
|
93
93
|
end
|
|
@@ -96,8 +96,8 @@ describe 'Recording' do
|
|
|
96
96
|
@holodeck.mock(Twilio::Response.new(500, ''))
|
|
97
97
|
|
|
98
98
|
expect {
|
|
99
|
-
@client.api.v2010.accounts('
|
|
100
|
-
.calls('
|
|
99
|
+
@client.api.v2010.accounts('ACXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX') \
|
|
100
|
+
.calls('CAXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX') \
|
|
101
101
|
.recordings.list()
|
|
102
102
|
}.to raise_exception(Twilio::REST::TwilioError)
|
|
103
103
|
|
|
@@ -105,7 +105,7 @@ describe 'Recording' do
|
|
|
105
105
|
expect(
|
|
106
106
|
@holodeck.has_request?(Holodeck::Request.new(
|
|
107
107
|
method: 'get',
|
|
108
|
-
url: 'https://api.twilio.com/2010-04-01/Accounts/
|
|
108
|
+
url: 'https://api.twilio.com/2010-04-01/Accounts/ACXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX/Calls/CAXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX/Recordings.json',
|
|
109
109
|
))).to eq(true)
|
|
110
110
|
end
|
|
111
111
|
|
|
@@ -152,8 +152,8 @@ describe 'Recording' do
|
|
|
152
152
|
]
|
|
153
153
|
))
|
|
154
154
|
|
|
155
|
-
actual = @client.api.v2010.accounts('
|
|
156
|
-
.calls('
|
|
155
|
+
actual = @client.api.v2010.accounts('ACXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX') \
|
|
156
|
+
.calls('CAXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX') \
|
|
157
157
|
.recordings.list()
|
|
158
158
|
|
|
159
159
|
expect(actual).to_not eq(nil)
|
|
@@ -177,8 +177,8 @@ describe 'Recording' do
|
|
|
177
177
|
]
|
|
178
178
|
))
|
|
179
179
|
|
|
180
|
-
actual = @client.api.v2010.accounts('
|
|
181
|
-
.calls('
|
|
180
|
+
actual = @client.api.v2010.accounts('ACXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX') \
|
|
181
|
+
.calls('CAXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX') \
|
|
182
182
|
.recordings.list()
|
|
183
183
|
|
|
184
184
|
expect(actual).to_not eq(nil)
|