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,17 +11,17 @@ describe 'Payload' do
|
|
11
11
|
@holodeck.mock(Twilio::Response.new(500, ''))
|
12
12
|
|
13
13
|
expect {
|
14
|
-
@client.api.v2010.accounts('
|
15
|
-
.recordings('
|
16
|
-
.add_on_results('
|
17
|
-
.payloads('
|
14
|
+
@client.api.v2010.accounts('ACXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX') \
|
15
|
+
.recordings('REXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX') \
|
16
|
+
.add_on_results('XRXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX') \
|
17
|
+
.payloads('XHXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX').fetch()
|
18
18
|
}.to raise_exception(Twilio::REST::TwilioError)
|
19
19
|
|
20
20
|
values = {}
|
21
21
|
expect(
|
22
22
|
@holodeck.has_request?(Holodeck::Request.new(
|
23
23
|
method: 'get',
|
24
|
-
url: 'https://api.twilio.com/2010-04-01/Accounts/
|
24
|
+
url: 'https://api.twilio.com/2010-04-01/Accounts/ACXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX/Recordings/REXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX/AddOnResults/XRXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX/Payloads/XHXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX.json',
|
25
25
|
))).to eq(true)
|
26
26
|
end
|
27
27
|
|
@@ -47,10 +47,10 @@ describe 'Payload' do
|
|
47
47
|
]
|
48
48
|
))
|
49
49
|
|
50
|
-
actual = @client.api.v2010.accounts('
|
51
|
-
.recordings('
|
52
|
-
.add_on_results('
|
53
|
-
.payloads('
|
50
|
+
actual = @client.api.v2010.accounts('ACXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX') \
|
51
|
+
.recordings('REXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX') \
|
52
|
+
.add_on_results('XRXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX') \
|
53
|
+
.payloads('XHXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX').fetch()
|
54
54
|
|
55
55
|
expect(actual).to_not eq(nil)
|
56
56
|
end
|
@@ -59,9 +59,9 @@ describe 'Payload' do
|
|
59
59
|
@holodeck.mock(Twilio::Response.new(500, ''))
|
60
60
|
|
61
61
|
expect {
|
62
|
-
@client.api.v2010.accounts('
|
63
|
-
.recordings('
|
64
|
-
.add_on_results('
|
62
|
+
@client.api.v2010.accounts('ACXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX') \
|
63
|
+
.recordings('REXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX') \
|
64
|
+
.add_on_results('XRXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX') \
|
65
65
|
.payloads.list()
|
66
66
|
}.to raise_exception(Twilio::REST::TwilioError)
|
67
67
|
|
@@ -69,7 +69,7 @@ describe 'Payload' do
|
|
69
69
|
expect(
|
70
70
|
@holodeck.has_request?(Holodeck::Request.new(
|
71
71
|
method: 'get',
|
72
|
-
url: 'https://api.twilio.com/2010-04-01/Accounts/
|
72
|
+
url: 'https://api.twilio.com/2010-04-01/Accounts/ACXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX/Recordings/REXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX/AddOnResults/XRXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX/Payloads.json',
|
73
73
|
))).to eq(true)
|
74
74
|
end
|
75
75
|
|
@@ -107,9 +107,9 @@ describe 'Payload' do
|
|
107
107
|
]
|
108
108
|
))
|
109
109
|
|
110
|
-
actual = @client.api.v2010.accounts('
|
111
|
-
.recordings('
|
112
|
-
.add_on_results('
|
110
|
+
actual = @client.api.v2010.accounts('ACXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX') \
|
111
|
+
.recordings('REXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX') \
|
112
|
+
.add_on_results('XRXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX') \
|
113
113
|
.payloads.list()
|
114
114
|
|
115
115
|
expect(actual).to_not eq(nil)
|
@@ -133,9 +133,9 @@ describe 'Payload' do
|
|
133
133
|
]
|
134
134
|
))
|
135
135
|
|
136
|
-
actual = @client.api.v2010.accounts('
|
137
|
-
.recordings('
|
138
|
-
.add_on_results('
|
136
|
+
actual = @client.api.v2010.accounts('ACXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX') \
|
137
|
+
.recordings('REXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX') \
|
138
|
+
.add_on_results('XRXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX') \
|
139
139
|
.payloads.list()
|
140
140
|
|
141
141
|
expect(actual).to_not eq(nil)
|
@@ -145,17 +145,17 @@ describe 'Payload' do
|
|
145
145
|
@holodeck.mock(Twilio::Response.new(500, ''))
|
146
146
|
|
147
147
|
expect {
|
148
|
-
@client.api.v2010.accounts('
|
149
|
-
.recordings('
|
150
|
-
.add_on_results('
|
151
|
-
.payloads('
|
148
|
+
@client.api.v2010.accounts('ACXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX') \
|
149
|
+
.recordings('REXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX') \
|
150
|
+
.add_on_results('XRXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX') \
|
151
|
+
.payloads('XHXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX').delete()
|
152
152
|
}.to raise_exception(Twilio::REST::TwilioError)
|
153
153
|
|
154
154
|
values = {}
|
155
155
|
expect(
|
156
156
|
@holodeck.has_request?(Holodeck::Request.new(
|
157
157
|
method: 'delete',
|
158
|
-
url: 'https://api.twilio.com/2010-04-01/Accounts/
|
158
|
+
url: 'https://api.twilio.com/2010-04-01/Accounts/ACXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX/Recordings/REXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX/AddOnResults/XRXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX/Payloads/XHXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX.json',
|
159
159
|
))).to eq(true)
|
160
160
|
end
|
161
161
|
|
@@ -165,10 +165,10 @@ describe 'Payload' do
|
|
165
165
|
nil,
|
166
166
|
))
|
167
167
|
|
168
|
-
actual = @client.api.v2010.accounts('
|
169
|
-
.recordings('
|
170
|
-
.add_on_results('
|
171
|
-
.payloads('
|
168
|
+
actual = @client.api.v2010.accounts('ACXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX') \
|
169
|
+
.recordings('REXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX') \
|
170
|
+
.add_on_results('XRXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX') \
|
171
|
+
.payloads('XHXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX').delete()
|
172
172
|
|
173
173
|
expect(actual).to eq(true)
|
174
174
|
end
|
@@ -11,16 +11,16 @@ describe 'AddOnResult' do
|
|
11
11
|
@holodeck.mock(Twilio::Response.new(500, ''))
|
12
12
|
|
13
13
|
expect {
|
14
|
-
@client.api.v2010.accounts('
|
15
|
-
.recordings('
|
16
|
-
.add_on_results('
|
14
|
+
@client.api.v2010.accounts('ACXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX') \
|
15
|
+
.recordings('REXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX') \
|
16
|
+
.add_on_results('XRXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX').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/Recordings/REXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX/AddOnResults/XRXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX.json',
|
24
24
|
))).to eq(true)
|
25
25
|
end
|
26
26
|
|
@@ -45,9 +45,9 @@ describe 'AddOnResult' do
|
|
45
45
|
]
|
46
46
|
))
|
47
47
|
|
48
|
-
actual = @client.api.v2010.accounts('
|
49
|
-
.recordings('
|
50
|
-
.add_on_results('
|
48
|
+
actual = @client.api.v2010.accounts('ACXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX') \
|
49
|
+
.recordings('REXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX') \
|
50
|
+
.add_on_results('XRXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX').fetch()
|
51
51
|
|
52
52
|
expect(actual).to_not eq(nil)
|
53
53
|
end
|
@@ -56,8 +56,8 @@ describe 'AddOnResult' do
|
|
56
56
|
@holodeck.mock(Twilio::Response.new(500, ''))
|
57
57
|
|
58
58
|
expect {
|
59
|
-
@client.api.v2010.accounts('
|
60
|
-
.recordings('
|
59
|
+
@client.api.v2010.accounts('ACXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX') \
|
60
|
+
.recordings('REXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX') \
|
61
61
|
.add_on_results.list()
|
62
62
|
}.to raise_exception(Twilio::REST::TwilioError)
|
63
63
|
|
@@ -65,7 +65,7 @@ describe 'AddOnResult' do
|
|
65
65
|
expect(
|
66
66
|
@holodeck.has_request?(Holodeck::Request.new(
|
67
67
|
method: 'get',
|
68
|
-
url: 'https://api.twilio.com/2010-04-01/Accounts/
|
68
|
+
url: 'https://api.twilio.com/2010-04-01/Accounts/ACXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX/Recordings/REXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX/AddOnResults.json',
|
69
69
|
))).to eq(true)
|
70
70
|
end
|
71
71
|
|
@@ -102,8 +102,8 @@ describe 'AddOnResult' do
|
|
102
102
|
]
|
103
103
|
))
|
104
104
|
|
105
|
-
actual = @client.api.v2010.accounts('
|
106
|
-
.recordings('
|
105
|
+
actual = @client.api.v2010.accounts('ACXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX') \
|
106
|
+
.recordings('REXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX') \
|
107
107
|
.add_on_results.list()
|
108
108
|
|
109
109
|
expect(actual).to_not eq(nil)
|
@@ -127,8 +127,8 @@ describe 'AddOnResult' do
|
|
127
127
|
]
|
128
128
|
))
|
129
129
|
|
130
|
-
actual = @client.api.v2010.accounts('
|
131
|
-
.recordings('
|
130
|
+
actual = @client.api.v2010.accounts('ACXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX') \
|
131
|
+
.recordings('REXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX') \
|
132
132
|
.add_on_results.list()
|
133
133
|
|
134
134
|
expect(actual).to_not eq(nil)
|
@@ -138,16 +138,16 @@ describe 'AddOnResult' do
|
|
138
138
|
@holodeck.mock(Twilio::Response.new(500, ''))
|
139
139
|
|
140
140
|
expect {
|
141
|
-
@client.api.v2010.accounts('
|
142
|
-
.recordings('
|
143
|
-
.add_on_results('
|
141
|
+
@client.api.v2010.accounts('ACXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX') \
|
142
|
+
.recordings('REXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX') \
|
143
|
+
.add_on_results('XRXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX').delete()
|
144
144
|
}.to raise_exception(Twilio::REST::TwilioError)
|
145
145
|
|
146
146
|
values = {}
|
147
147
|
expect(
|
148
148
|
@holodeck.has_request?(Holodeck::Request.new(
|
149
149
|
method: 'delete',
|
150
|
-
url: 'https://api.twilio.com/2010-04-01/Accounts/
|
150
|
+
url: 'https://api.twilio.com/2010-04-01/Accounts/ACXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX/Recordings/REXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX/AddOnResults/XRXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX.json',
|
151
151
|
))).to eq(true)
|
152
152
|
end
|
153
153
|
|
@@ -157,9 +157,9 @@ describe 'AddOnResult' do
|
|
157
157
|
nil,
|
158
158
|
))
|
159
159
|
|
160
|
-
actual = @client.api.v2010.accounts('
|
161
|
-
.recordings('
|
162
|
-
.add_on_results('
|
160
|
+
actual = @client.api.v2010.accounts('ACXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX') \
|
161
|
+
.recordings('REXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX') \
|
162
|
+
.add_on_results('XRXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX').delete()
|
163
163
|
|
164
164
|
expect(actual).to eq(true)
|
165
165
|
end
|
@@ -11,16 +11,16 @@ describe 'Transcription' do
|
|
11
11
|
@holodeck.mock(Twilio::Response.new(500, ''))
|
12
12
|
|
13
13
|
expect {
|
14
|
-
@client.api.v2010.accounts('
|
15
|
-
.recordings('
|
16
|
-
.transcriptions('
|
14
|
+
@client.api.v2010.accounts('ACXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX') \
|
15
|
+
.recordings('REXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX') \
|
16
|
+
.transcriptions('TRXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX').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/Recordings/REXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX/Transcriptions/TRXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX.json',
|
24
24
|
))).to eq(true)
|
25
25
|
end
|
26
26
|
|
@@ -46,9 +46,9 @@ describe 'Transcription' do
|
|
46
46
|
]
|
47
47
|
))
|
48
48
|
|
49
|
-
actual = @client.api.v2010.accounts('
|
50
|
-
.recordings('
|
51
|
-
.transcriptions('
|
49
|
+
actual = @client.api.v2010.accounts('ACXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX') \
|
50
|
+
.recordings('REXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX') \
|
51
|
+
.transcriptions('TRXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX').fetch()
|
52
52
|
|
53
53
|
expect(actual).to_not eq(nil)
|
54
54
|
end
|
@@ -57,16 +57,16 @@ describe 'Transcription' do
|
|
57
57
|
@holodeck.mock(Twilio::Response.new(500, ''))
|
58
58
|
|
59
59
|
expect {
|
60
|
-
@client.api.v2010.accounts('
|
61
|
-
.recordings('
|
62
|
-
.transcriptions('
|
60
|
+
@client.api.v2010.accounts('ACXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX') \
|
61
|
+
.recordings('REXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX') \
|
62
|
+
.transcriptions('TRXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX').delete()
|
63
63
|
}.to raise_exception(Twilio::REST::TwilioError)
|
64
64
|
|
65
65
|
values = {}
|
66
66
|
expect(
|
67
67
|
@holodeck.has_request?(Holodeck::Request.new(
|
68
68
|
method: 'delete',
|
69
|
-
url: 'https://api.twilio.com/2010-04-01/Accounts/
|
69
|
+
url: 'https://api.twilio.com/2010-04-01/Accounts/ACXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX/Recordings/REXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX/Transcriptions/TRXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX.json',
|
70
70
|
))).to eq(true)
|
71
71
|
end
|
72
72
|
|
@@ -76,9 +76,9 @@ describe 'Transcription' do
|
|
76
76
|
nil,
|
77
77
|
))
|
78
78
|
|
79
|
-
actual = @client.api.v2010.accounts('
|
80
|
-
.recordings('
|
81
|
-
.transcriptions('
|
79
|
+
actual = @client.api.v2010.accounts('ACXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX') \
|
80
|
+
.recordings('REXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX') \
|
81
|
+
.transcriptions('TRXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX').delete()
|
82
82
|
|
83
83
|
expect(actual).to eq(true)
|
84
84
|
end
|
@@ -87,8 +87,8 @@ describe 'Transcription' do
|
|
87
87
|
@holodeck.mock(Twilio::Response.new(500, ''))
|
88
88
|
|
89
89
|
expect {
|
90
|
-
@client.api.v2010.accounts('
|
91
|
-
.recordings('
|
90
|
+
@client.api.v2010.accounts('ACXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX') \
|
91
|
+
.recordings('REXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX') \
|
92
92
|
.transcriptions.list()
|
93
93
|
}.to raise_exception(Twilio::REST::TwilioError)
|
94
94
|
|
@@ -96,7 +96,7 @@ describe 'Transcription' do
|
|
96
96
|
expect(
|
97
97
|
@holodeck.has_request?(Holodeck::Request.new(
|
98
98
|
method: 'get',
|
99
|
-
url: 'https://api.twilio.com/2010-04-01/Accounts/
|
99
|
+
url: 'https://api.twilio.com/2010-04-01/Accounts/ACXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX/Recordings/REXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX/Transcriptions.json',
|
100
100
|
))).to eq(true)
|
101
101
|
end
|
102
102
|
|
@@ -137,8 +137,8 @@ describe 'Transcription' do
|
|
137
137
|
]
|
138
138
|
))
|
139
139
|
|
140
|
-
actual = @client.api.v2010.accounts('
|
141
|
-
.recordings('
|
140
|
+
actual = @client.api.v2010.accounts('ACXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX') \
|
141
|
+
.recordings('REXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX') \
|
142
142
|
.transcriptions.list()
|
143
143
|
|
144
144
|
expect(actual).to_not eq(nil)
|
@@ -165,8 +165,8 @@ describe 'Transcription' do
|
|
165
165
|
]
|
166
166
|
))
|
167
167
|
|
168
|
-
actual = @client.api.v2010.accounts('
|
169
|
-
.recordings('
|
168
|
+
actual = @client.api.v2010.accounts('ACXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX') \
|
169
|
+
.recordings('REXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX') \
|
170
170
|
.transcriptions.list()
|
171
171
|
|
172
172
|
expect(actual).to_not eq(nil)
|
@@ -11,15 +11,15 @@ describe 'Recording' do
|
|
11
11
|
@holodeck.mock(Twilio::Response.new(500, ''))
|
12
12
|
|
13
13
|
expect {
|
14
|
-
@client.api.v2010.accounts('
|
15
|
-
.recordings('
|
14
|
+
@client.api.v2010.accounts('ACXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX') \
|
15
|
+
.recordings('REXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX').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/Recordings/REXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX.json',
|
23
23
|
))).to eq(true)
|
24
24
|
end
|
25
25
|
|
@@ -58,8 +58,8 @@ describe 'Recording' do
|
|
58
58
|
]
|
59
59
|
))
|
60
60
|
|
61
|
-
actual = @client.api.v2010.accounts('
|
62
|
-
.recordings('
|
61
|
+
actual = @client.api.v2010.accounts('ACXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX') \
|
62
|
+
.recordings('REXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX').fetch()
|
63
63
|
|
64
64
|
expect(actual).to_not eq(nil)
|
65
65
|
end
|
@@ -68,15 +68,15 @@ describe 'Recording' do
|
|
68
68
|
@holodeck.mock(Twilio::Response.new(500, ''))
|
69
69
|
|
70
70
|
expect {
|
71
|
-
@client.api.v2010.accounts('
|
72
|
-
.recordings('
|
71
|
+
@client.api.v2010.accounts('ACXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX') \
|
72
|
+
.recordings('REXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX').delete()
|
73
73
|
}.to raise_exception(Twilio::REST::TwilioError)
|
74
74
|
|
75
75
|
values = {}
|
76
76
|
expect(
|
77
77
|
@holodeck.has_request?(Holodeck::Request.new(
|
78
78
|
method: 'delete',
|
79
|
-
url: 'https://api.twilio.com/2010-04-01/Accounts/
|
79
|
+
url: 'https://api.twilio.com/2010-04-01/Accounts/ACXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX/Recordings/REXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX.json',
|
80
80
|
))).to eq(true)
|
81
81
|
end
|
82
82
|
|
@@ -86,8 +86,8 @@ describe 'Recording' do
|
|
86
86
|
nil,
|
87
87
|
))
|
88
88
|
|
89
|
-
actual = @client.api.v2010.accounts('
|
90
|
-
.recordings('
|
89
|
+
actual = @client.api.v2010.accounts('ACXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX') \
|
90
|
+
.recordings('REXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX').delete()
|
91
91
|
|
92
92
|
expect(actual).to eq(true)
|
93
93
|
end
|
@@ -96,7 +96,7 @@ describe 'Recording' do
|
|
96
96
|
@holodeck.mock(Twilio::Response.new(500, ''))
|
97
97
|
|
98
98
|
expect {
|
99
|
-
@client.api.v2010.accounts('
|
99
|
+
@client.api.v2010.accounts('ACXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX') \
|
100
100
|
.recordings.list()
|
101
101
|
}.to raise_exception(Twilio::REST::TwilioError)
|
102
102
|
|
@@ -104,7 +104,7 @@ describe 'Recording' do
|
|
104
104
|
expect(
|
105
105
|
@holodeck.has_request?(Holodeck::Request.new(
|
106
106
|
method: 'get',
|
107
|
-
url: 'https://api.twilio.com/2010-04-01/Accounts/
|
107
|
+
url: 'https://api.twilio.com/2010-04-01/Accounts/ACXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX/Recordings.json',
|
108
108
|
))).to eq(true)
|
109
109
|
end
|
110
110
|
|
@@ -155,7 +155,7 @@ describe 'Recording' do
|
|
155
155
|
]
|
156
156
|
))
|
157
157
|
|
158
|
-
actual = @client.api.v2010.accounts('
|
158
|
+
actual = @client.api.v2010.accounts('ACXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX') \
|
159
159
|
.recordings.list()
|
160
160
|
|
161
161
|
expect(actual).to_not eq(nil)
|
@@ -179,7 +179,7 @@ describe 'Recording' do
|
|
179
179
|
]
|
180
180
|
))
|
181
181
|
|
182
|
-
actual = @client.api.v2010.accounts('
|
182
|
+
actual = @client.api.v2010.accounts('ACXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX') \
|
183
183
|
.recordings.list()
|
184
184
|
|
185
185
|
expect(actual).to_not eq(nil)
|
@@ -11,15 +11,15 @@ describe 'ShortCode' do
|
|
11
11
|
@holodeck.mock(Twilio::Response.new(500, ''))
|
12
12
|
|
13
13
|
expect {
|
14
|
-
@client.api.v2010.accounts('
|
15
|
-
.short_codes('
|
14
|
+
@client.api.v2010.accounts('ACXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX') \
|
15
|
+
.short_codes('SCXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX').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/SMS/ShortCodes/SCXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX.json',
|
23
23
|
))).to eq(true)
|
24
24
|
end
|
25
25
|
|
@@ -44,8 +44,8 @@ describe 'ShortCode' do
|
|
44
44
|
]
|
45
45
|
))
|
46
46
|
|
47
|
-
actual = @client.api.v2010.accounts('
|
48
|
-
.short_codes('
|
47
|
+
actual = @client.api.v2010.accounts('ACXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX') \
|
48
|
+
.short_codes('SCXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX').fetch()
|
49
49
|
|
50
50
|
expect(actual).to_not eq(nil)
|
51
51
|
end
|
@@ -54,15 +54,15 @@ describe 'ShortCode' do
|
|
54
54
|
@holodeck.mock(Twilio::Response.new(500, ''))
|
55
55
|
|
56
56
|
expect {
|
57
|
-
@client.api.v2010.accounts('
|
58
|
-
.short_codes('
|
57
|
+
@client.api.v2010.accounts('ACXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX') \
|
58
|
+
.short_codes('SCXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX').update()
|
59
59
|
}.to raise_exception(Twilio::REST::TwilioError)
|
60
60
|
|
61
61
|
values = {}
|
62
62
|
expect(
|
63
63
|
@holodeck.has_request?(Holodeck::Request.new(
|
64
64
|
method: 'post',
|
65
|
-
url: 'https://api.twilio.com/2010-04-01/Accounts/
|
65
|
+
url: 'https://api.twilio.com/2010-04-01/Accounts/ACXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX/SMS/ShortCodes/SCXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX.json',
|
66
66
|
))).to eq(true)
|
67
67
|
end
|
68
68
|
|
@@ -87,8 +87,8 @@ describe 'ShortCode' do
|
|
87
87
|
]
|
88
88
|
))
|
89
89
|
|
90
|
-
actual = @client.api.v2010.accounts('
|
91
|
-
.short_codes('
|
90
|
+
actual = @client.api.v2010.accounts('ACXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX') \
|
91
|
+
.short_codes('SCXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX').update()
|
92
92
|
|
93
93
|
expect(actual).to_not eq(nil)
|
94
94
|
end
|
@@ -97,7 +97,7 @@ describe 'ShortCode' do
|
|
97
97
|
@holodeck.mock(Twilio::Response.new(500, ''))
|
98
98
|
|
99
99
|
expect {
|
100
|
-
@client.api.v2010.accounts('
|
100
|
+
@client.api.v2010.accounts('ACXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX') \
|
101
101
|
.short_codes.list()
|
102
102
|
}.to raise_exception(Twilio::REST::TwilioError)
|
103
103
|
|
@@ -105,7 +105,7 @@ describe 'ShortCode' 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/SMS/ShortCodes.json',
|
109
109
|
))).to eq(true)
|
110
110
|
end
|
111
111
|
|
@@ -145,7 +145,7 @@ describe 'ShortCode' do
|
|
145
145
|
]
|
146
146
|
))
|
147
147
|
|
148
|
-
actual = @client.api.v2010.accounts('
|
148
|
+
actual = @client.api.v2010.accounts('ACXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX') \
|
149
149
|
.short_codes.list()
|
150
150
|
|
151
151
|
expect(actual).to_not eq(nil)
|
@@ -172,7 +172,7 @@ describe 'ShortCode' do
|
|
172
172
|
]
|
173
173
|
))
|
174
174
|
|
175
|
-
actual = @client.api.v2010.accounts('
|
175
|
+
actual = @client.api.v2010.accounts('ACXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX') \
|
176
176
|
.short_codes.list()
|
177
177
|
|
178
178
|
expect(actual).to_not eq(nil)
|