twilio-ruby 5.6.3 → 5.6.4
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/CHANGES.md +18 -0
- data/README.md +2 -2
- data/examples/print_call_log.rb +1 -1
- data/lib/twilio-ruby/jwt/client_capability.rb +1 -1
- data/lib/twilio-ruby/rest/api/v2010/account.rb +6 -1
- data/lib/twilio-ruby/rest/api/v2010/account/application.rb +12 -2
- data/lib/twilio-ruby/rest/api/v2010/account/conference.rb +12 -2
- data/lib/twilio-ruby/rest/api/v2010/account/connect_app.rb +12 -2
- data/lib/twilio-ruby/rest/api/v2010/account/notification.rb +6 -1
- data/lib/twilio-ruby/rest/api/v2010/account/queue.rb +5 -1
- data/lib/twilio-ruby/rest/api/v2010/account/short_code.rb +5 -1
- data/lib/twilio-ruby/rest/api/v2010/account/signing_key.rb +12 -2
- data/lib/twilio-ruby/rest/api/v2010/account/sip/domain.rb +6 -1
- data/lib/twilio-ruby/rest/chat/v2/service/binding.rb +6 -1
- data/lib/twilio-ruby/rest/ip_messaging/v2/service/binding.rb +6 -1
- data/lib/twilio-ruby/rest/lookups/v1/phone_number.rb +7 -0
- data/lib/twilio-ruby/rest/messaging/v1/service/alpha_sender.rb +6 -1
- data/lib/twilio-ruby/rest/messaging/v1/service/phone_number.rb +6 -1
- data/lib/twilio-ruby/rest/notify/v1/service/user.rb +6 -1
- data/lib/twilio-ruby/rest/notify/v1/service/user/user_binding.rb +6 -1
- data/lib/twilio-ruby/rest/preview/proxy/service/phone_number.rb +6 -1
- data/lib/twilio-ruby/rest/preview/understand/service/intent.rb +5 -1
- data/lib/twilio-ruby/rest/preview/understand/service/model_build.rb +12 -2
- data/lib/twilio-ruby/rest/proxy/v1/service/phone_number.rb +6 -1
- data/lib/twilio-ruby/rest/sync/v1/service/sync_stream.rb +12 -2
- data/lib/twilio-ruby/rest/taskrouter/v1/workspace/activity.rb +12 -2
- data/lib/twilio-ruby/rest/taskrouter/v1/workspace/worker.rb +12 -2
- data/lib/twilio-ruby/rest/taskrouter/v1/workspace/worker/worker_statistics.rb +6 -1
- data/lib/twilio-ruby/rest/taskrouter/v1/workspace/worker/workers_cumulative_statistics.rb +6 -1
- data/lib/twilio-ruby/rest/taskrouter/v1/workspace/workflow.rb +12 -2
- data/lib/twilio-ruby/rest/taskrouter/v1/workspace/workspace_cumulative_statistics.rb +10 -2
- data/lib/twilio-ruby/rest/trunking/v1/trunk/credential_list.rb +6 -1
- data/lib/twilio-ruby/rest/trunking/v1/trunk/origination_url.rb +12 -2
- data/lib/twilio-ruby/rest/video/v1/composition.rb +5 -1
- data/lib/twilio-ruby/rest/wireless/v1/command.rb +7 -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 +6 -6
- data/spec/integration/api/v2010/account/address_spec.rb +25 -25
- data/spec/integration/api/v2010/account/application_spec.rb +20 -20
- data/spec/integration/api/v2010/account/authorized_connect_app_spec.rb +7 -7
- data/spec/integration/api/v2010/account/available_phone_number/local_spec.rb +6 -6
- data/spec/integration/api/v2010/account/available_phone_number/machine_to_machine_spec.rb +6 -6
- data/spec/integration/api/v2010/account/available_phone_number/mobile_spec.rb +6 -6
- data/spec/integration/api/v2010/account/available_phone_number/national_spec.rb +6 -6
- data/spec/integration/api/v2010/account/available_phone_number/shared_cost_spec.rb +6 -6
- data/spec/integration/api/v2010/account/available_phone_number/toll_free_spec.rb +6 -6
- data/spec/integration/api/v2010/account/available_phone_number/voip_spec.rb +6 -6
- data/spec/integration/api/v2010/account/available_phone_number_spec.rb +7 -7
- data/spec/integration/api/v2010/account/call/feedback_spec.rb +12 -12
- data/spec/integration/api/v2010/account/call/feedback_summary_spec.rb +10 -10
- data/spec/integration/api/v2010/account/call/notification_spec.rb +18 -18
- data/spec/integration/api/v2010/account/call/recording_spec.rb +18 -18
- data/spec/integration/api/v2010/account/call_spec.rb +20 -20
- data/spec/integration/api/v2010/account/conference/participant_spec.rb +34 -34
- data/spec/integration/api/v2010/account/conference_spec.rb +11 -11
- data/spec/integration/api/v2010/account/connect_app_spec.rb +11 -11
- data/spec/integration/api/v2010/account/incoming_phone_number/assigned_add_on/assigned_add_on_extension_spec.rb +17 -17
- data/spec/integration/api/v2010/account/incoming_phone_number/assigned_add_on_spec.rb +25 -25
- data/spec/integration/api/v2010/account/incoming_phone_number/local_spec.rb +8 -8
- data/spec/integration/api/v2010/account/incoming_phone_number/mobile_spec.rb +8 -8
- data/spec/integration/api/v2010/account/incoming_phone_number/toll_free_spec.rb +8 -8
- data/spec/integration/api/v2010/account/incoming_phone_number_spec.rb +17 -17
- data/spec/integration/api/v2010/account/key_spec.rb +15 -15
- data/spec/integration/api/v2010/account/message/feedback_spec.rb +4 -4
- data/spec/integration/api/v2010/account/message/media_spec.rb +18 -18
- data/spec/integration/api/v2010/account/message_spec.rb +21 -21
- data/spec/integration/api/v2010/account/new_key_spec.rb +2 -2
- data/spec/integration/api/v2010/account/new_signing_key_spec.rb +2 -2
- data/spec/integration/api/v2010/account/notification_spec.rb +11 -11
- data/spec/integration/api/v2010/account/outgoing_caller_id_spec.rb +15 -15
- data/spec/integration/api/v2010/account/queue/member_spec.rb +19 -19
- data/spec/integration/api/v2010/account/queue_spec.rb +20 -20
- data/spec/integration/api/v2010/account/recording/add_on_result/payload_spec.rb +25 -25
- data/spec/integration/api/v2010/account/recording/add_on_result_spec.rb +18 -18
- data/spec/integration/api/v2010/account/recording/transcription_spec.rb +18 -18
- data/spec/integration/api/v2010/account/recording_spec.rb +11 -11
- data/spec/integration/api/v2010/account/short_code_spec.rb +11 -11
- data/spec/integration/api/v2010/account/signing_key_spec.rb +15 -15
- data/spec/integration/api/v2010/account/sip/credential_list/credential_spec.rb +31 -31
- data/spec/integration/api/v2010/account/sip/credential_list_spec.rb +21 -21
- data/spec/integration/api/v2010/account/sip/domain/credential_list_mapping_spec.rb +25 -25
- data/spec/integration/api/v2010/account/sip/domain/ip_access_control_list_mapping_spec.rb +25 -25
- data/spec/integration/api/v2010/account/sip/domain_spec.rb +20 -20
- data/spec/integration/api/v2010/account/sip/ip_access_control_list/ip_address_spec.rb +31 -31
- data/spec/integration/api/v2010/account/sip/ip_access_control_list_spec.rb +21 -21
- data/spec/integration/api/v2010/account/token_spec.rb +2 -2
- data/spec/integration/api/v2010/account/transcription_spec.rb +11 -11
- data/spec/integration/api/v2010/account/usage/record/all_time_spec.rb +3 -3
- data/spec/integration/api/v2010/account/usage/record/daily_spec.rb +3 -3
- data/spec/integration/api/v2010/account/usage/record/last_month_spec.rb +3 -3
- data/spec/integration/api/v2010/account/usage/record/monthly_spec.rb +3 -3
- data/spec/integration/api/v2010/account/usage/record/this_month_spec.rb +3 -3
- data/spec/integration/api/v2010/account/usage/record/today_spec.rb +3 -3
- data/spec/integration/api/v2010/account/usage/record/yearly_spec.rb +3 -3
- data/spec/integration/api/v2010/account/usage/record/yesterday_spec.rb +3 -3
- data/spec/integration/api/v2010/account/usage/record_spec.rb +3 -3
- data/spec/integration/api/v2010/account/usage/trigger_spec.rb +22 -22
- data/spec/integration/api/v2010/account/validation_request_spec.rb +5 -5
- data/spec/integration/api/v2010/account_spec.rb +4 -4
- data/spec/integration/chat/v1/credential_spec.rb +9 -9
- data/spec/integration/chat/v1/service/channel/invite_spec.rb +25 -25
- data/spec/integration/chat/v1/service/channel/member_spec.rb +34 -34
- data/spec/integration/chat/v1/service/channel/message_spec.rb +34 -34
- data/spec/integration/chat/v1/service/channel_spec.rb +17 -17
- data/spec/integration/chat/v1/service/role_spec.rb +21 -21
- data/spec/integration/chat/v1/service/user/user_channel_spec.rb +6 -6
- data/spec/integration/chat/v1/service/user_spec.rb +20 -20
- 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 +11 -11
- data/spec/integration/chat/v2/service/channel/invite_spec.rb +25 -25
- data/spec/integration/chat/v2/service/channel/member_spec.rb +31 -31
- data/spec/integration/chat/v2/service/channel/message_spec.rb +35 -35
- data/spec/integration/chat/v2/service/channel_spec.rb +17 -17
- data/spec/integration/chat/v2/service/role_spec.rb +21 -21
- data/spec/integration/chat/v2/service/user/user_binding_spec.rb +18 -18
- data/spec/integration/chat/v2/service/user/user_channel_spec.rb +6 -6
- data/spec/integration/chat/v2/service/user_spec.rb +20 -20
- data/spec/integration/chat/v2/service_spec.rb +9 -9
- data/spec/integration/fax/v1/fax/fax_media_spec.rb +10 -10
- 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 +25 -25
- data/spec/integration/ip_messaging/v1/service/channel/member_spec.rb +34 -34
- data/spec/integration/ip_messaging/v1/service/channel/message_spec.rb +34 -34
- data/spec/integration/ip_messaging/v1/service/channel_spec.rb +17 -17
- data/spec/integration/ip_messaging/v1/service/role_spec.rb +21 -21
- data/spec/integration/ip_messaging/v1/service/user/user_channel_spec.rb +6 -6
- data/spec/integration/ip_messaging/v1/service/user_spec.rb +20 -20
- 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 +11 -11
- data/spec/integration/ip_messaging/v2/service/channel/invite_spec.rb +25 -25
- data/spec/integration/ip_messaging/v2/service/channel/member_spec.rb +31 -31
- data/spec/integration/ip_messaging/v2/service/channel/message_spec.rb +35 -35
- data/spec/integration/ip_messaging/v2/service/channel_spec.rb +17 -17
- data/spec/integration/ip_messaging/v2/service/role_spec.rb +21 -21
- data/spec/integration/ip_messaging/v2/service/user/user_binding_spec.rb +18 -18
- data/spec/integration/ip_messaging/v2/service/user/user_channel_spec.rb +6 -6
- data/spec/integration/ip_messaging/v2/service/user_spec.rb +20 -20
- data/spec/integration/ip_messaging/v2/service_spec.rb +9 -9
- data/spec/integration/lookups/v1/phone_number_spec.rb +12 -2
- data/spec/integration/messaging/v1/service/alpha_sender_spec.rb +15 -15
- data/spec/integration/messaging/v1/service/phone_number_spec.rb +17 -17
- data/spec/integration/messaging/v1/service/short_code_spec.rb +15 -15
- data/spec/integration/messaging/v1/service_spec.rb +9 -9
- data/spec/integration/monitor/v1/alert_spec.rb +4 -4
- data/spec/integration/monitor/v1/event_spec.rb +2 -2
- data/spec/integration/notify/v1/credential_spec.rb +9 -9
- data/spec/integration/notify/v1/service/binding_spec.rb +16 -16
- data/spec/integration/notify/v1/service/notification_spec.rb +3 -3
- data/spec/integration/notify/v1/service/segment_spec.rb +3 -3
- data/spec/integration/notify/v1/service/user/segment_memberships_spec.rb +19 -19
- data/spec/integration/notify/v1/service/user/user_binding_spec.rb +28 -28
- data/spec/integration/notify/v1/service/user_spec.rb +16 -16
- data/spec/integration/notify/v1/service_spec.rb +6 -6
- data/spec/integration/preview/acc_security/service/verification_check_spec.rb +5 -5
- data/spec/integration/preview/acc_security/service/verification_spec.rb +5 -5
- data/spec/integration/preview/acc_security/service_spec.rb +7 -7
- data/spec/integration/preview/bulk_exports/export/day_spec.rb +2 -2
- data/spec/integration/preview/bulk_exports/export_configuration_spec.rb +4 -4
- data/spec/integration/preview/bulk_exports/export_spec.rb +2 -2
- data/spec/integration/preview/deployed_devices/fleet/certificate_spec.rb +20 -20
- data/spec/integration/preview/deployed_devices/fleet/deployment_spec.rb +17 -17
- data/spec/integration/preview/deployed_devices/fleet/device_spec.rb +17 -17
- data/spec/integration/preview/deployed_devices/fleet/key_spec.rb +17 -17
- data/spec/integration/preview/deployed_devices/fleet_spec.rb +6 -6
- data/spec/integration/preview/hosted_numbers/authorization_document/dependent_hosted_number_order_spec.rb +3 -3
- data/spec/integration/preview/hosted_numbers/authorization_document_spec.rb +8 -8
- data/spec/integration/preview/hosted_numbers/hosted_number_order_spec.rb +11 -11
- data/spec/integration/preview/marketplace/available_add_on/available_add_on_extension_spec.rb +7 -7
- data/spec/integration/preview/marketplace/available_add_on_spec.rb +2 -2
- data/spec/integration/preview/marketplace/installed_add_on/installed_add_on_extension_spec.rb +11 -11
- data/spec/integration/preview/marketplace/installed_add_on_spec.rb +9 -9
- data/spec/integration/preview/proxy/service/phone_number_spec.rb +15 -15
- data/spec/integration/preview/proxy/service/session/interaction_spec.rb +10 -10
- data/spec/integration/preview/proxy/service/session/participant/message_interaction_spec.rb +20 -20
- data/spec/integration/preview/proxy/service/session/participant_spec.rb +29 -29
- data/spec/integration/preview/proxy/service/session_spec.rb +16 -16
- data/spec/integration/preview/proxy/service/short_code_spec.rb +15 -15
- data/spec/integration/preview/proxy/service_spec.rb +6 -6
- data/spec/integration/preview/studio/flow/engagement/step_spec.rb +10 -10
- data/spec/integration/preview/studio/flow/engagement_spec.rb +11 -11
- data/spec/integration/preview/studio/flow_spec.rb +4 -4
- data/spec/integration/preview/sync/service/document/document_permission_spec.rb +24 -24
- data/spec/integration/preview/sync/service/document_spec.rb +18 -18
- data/spec/integration/preview/sync/service/sync_list/sync_list_item_spec.rb +28 -28
- data/spec/integration/preview/sync/service/sync_list/sync_list_permission_spec.rb +24 -24
- data/spec/integration/preview/sync/service/sync_list_spec.rb +13 -13
- data/spec/integration/preview/sync/service/sync_map/sync_map_item_spec.rb +32 -32
- data/spec/integration/preview/sync/service/sync_map/sync_map_permission_spec.rb +24 -24
- data/spec/integration/preview/sync/service/sync_map_spec.rb +13 -13
- data/spec/integration/preview/sync/service_spec.rb +6 -6
- data/spec/integration/preview/understand/service/field_type/field_value_spec.rb +25 -25
- data/spec/integration/preview/understand/service/field_type_spec.rb +20 -20
- data/spec/integration/preview/understand/service/intent/field_spec.rb +25 -25
- data/spec/integration/preview/understand/service/intent/sample_spec.rb +31 -31
- data/spec/integration/preview/understand/service/intent_spec.rb +20 -20
- data/spec/integration/preview/understand/service/model_build_spec.rb +17 -17
- data/spec/integration/preview/understand/service/query_spec.rb +20 -20
- data/spec/integration/preview/understand/service_spec.rb +6 -6
- data/spec/integration/preview/wireless/command_spec.rb +5 -5
- data/spec/integration/preview/wireless/rate_plan_spec.rb +6 -6
- data/spec/integration/preview/wireless/sim/usage_spec.rb +2 -2
- data/spec/integration/preview/wireless/sim_spec.rb +4 -4
- data/spec/integration/pricing/v1/messaging/country_spec.rb +2 -2
- data/spec/integration/pricing/v1/phone_number/country_spec.rb +2 -2
- data/spec/integration/pricing/v1/voice/country_spec.rb +2 -2
- data/spec/integration/pricing/v1/voice/number_spec.rb +2 -2
- data/spec/integration/proxy/v1/service/phone_number_spec.rb +12 -12
- data/spec/integration/proxy/v1/service/session/interaction_spec.rb +16 -16
- data/spec/integration/proxy/v1/service/session/participant/message_interaction_spec.rb +20 -20
- data/spec/integration/proxy/v1/service/session/participant_spec.rb +29 -29
- data/spec/integration/proxy/v1/service/session_spec.rb +16 -16
- data/spec/integration/proxy/v1/service/short_code_spec.rb +15 -15
- data/spec/integration/proxy/v1/service_spec.rb +9 -9
- data/spec/integration/studio/v1/flow/engagement/step_spec.rb +10 -10
- data/spec/integration/studio/v1/flow/engagement_spec.rb +11 -11
- data/spec/integration/studio/v1/flow_spec.rb +4 -4
- data/spec/integration/sync/v1/service/document/document_permission_spec.rb +24 -24
- data/spec/integration/sync/v1/service/document_spec.rb +17 -17
- data/spec/integration/sync/v1/service/sync_list/sync_list_item_spec.rb +25 -25
- data/spec/integration/sync/v1/service/sync_list/sync_list_permission_spec.rb +24 -24
- data/spec/integration/sync/v1/service/sync_list_spec.rb +17 -17
- data/spec/integration/sync/v1/service/sync_map/sync_map_item_spec.rb +31 -31
- data/spec/integration/sync/v1/service/sync_map/sync_map_permission_spec.rb +24 -24
- data/spec/integration/sync/v1/service/sync_map_spec.rb +17 -17
- data/spec/integration/sync/v1/service/sync_stream/stream_message_spec.rb +7 -7
- data/spec/integration/sync/v1/service/sync_stream_spec.rb +17 -17
- data/spec/integration/sync/v1/service_spec.rb +6 -6
- data/spec/integration/taskrouter/v1/workspace/activity_spec.rb +20 -20
- data/spec/integration/taskrouter/v1/workspace/event_spec.rb +7 -7
- data/spec/integration/taskrouter/v1/workspace/task/reservation_spec.rb +18 -18
- data/spec/integration/taskrouter/v1/workspace/task_channel_spec.rb +7 -7
- data/spec/integration/taskrouter/v1/workspace/task_queue/task_queue_cumulative_statistics_spec.rb +4 -4
- data/spec/integration/taskrouter/v1/workspace/task_queue/task_queue_real_time_statistics_spec.rb +4 -4
- data/spec/integration/taskrouter/v1/workspace/task_queue/task_queue_statistics_spec.rb +4 -4
- data/spec/integration/taskrouter/v1/workspace/task_queue/task_queues_statistics_spec.rb +3 -3
- data/spec/integration/taskrouter/v1/workspace/task_queue_spec.rb +22 -22
- data/spec/integration/taskrouter/v1/workspace/task_spec.rb +18 -18
- data/spec/integration/taskrouter/v1/workspace/worker/reservation_spec.rb +18 -18
- data/spec/integration/taskrouter/v1/workspace/worker/worker_channel_spec.rb +18 -18
- data/spec/integration/taskrouter/v1/workspace/worker/worker_statistics_spec.rb +4 -4
- data/spec/integration/taskrouter/v1/workspace/worker/workers_cumulative_statistics_spec.rb +4 -4
- data/spec/integration/taskrouter/v1/workspace/worker/workers_real_time_statistics_spec.rb +4 -4
- data/spec/integration/taskrouter/v1/workspace/worker/workers_statistics_spec.rb +2 -2
- data/spec/integration/taskrouter/v1/workspace/worker_spec.rb +20 -20
- data/spec/integration/taskrouter/v1/workspace/workflow/workflow_cumulative_statistics_spec.rb +4 -4
- data/spec/integration/taskrouter/v1/workspace/workflow/workflow_real_time_statistics_spec.rb +4 -4
- data/spec/integration/taskrouter/v1/workspace/workflow/workflow_statistics_spec.rb +4 -4
- data/spec/integration/taskrouter/v1/workspace/workflow_spec.rb +20 -20
- data/spec/integration/taskrouter/v1/workspace/workspace_cumulative_statistics_spec.rb +2 -2
- data/spec/integration/taskrouter/v1/workspace/workspace_real_time_statistics_spec.rb +2 -2
- data/spec/integration/taskrouter/v1/workspace/workspace_statistics_spec.rb +2 -2
- data/spec/integration/taskrouter/v1/workspace_spec.rb +9 -9
- data/spec/integration/trunking/v1/trunk/credential_list_spec.rb +16 -16
- data/spec/integration/trunking/v1/trunk/ip_access_control_list_spec.rb +16 -16
- data/spec/integration/trunking/v1/trunk/origination_url_spec.rb +21 -21
- data/spec/integration/trunking/v1/trunk/phone_number_spec.rb +16 -16
- data/spec/integration/trunking/v1/trunk_spec.rb +6 -6
- data/spec/integration/video/v1/composition_spec.rb +4 -4
- data/spec/integration/video/v1/recording_spec.rb +4 -4
- data/spec/integration/video/v1/room/recording_spec.rb +7 -7
- data/spec/integration/video/v1/room/room_participant/room_participant_published_track_spec.rb +10 -10
- data/spec/integration/video/v1/room/room_participant/room_participant_subscribed_track_spec.rb +10 -10
- data/spec/integration/video/v1/room/room_participant_spec.rb +11 -11
- data/spec/integration/video/v1/room_spec.rb +5 -5
- data/spec/integration/wireless/v1/command_spec.rb +5 -5
- data/spec/integration/wireless/v1/rate_plan_spec.rb +6 -6
- data/spec/integration/wireless/v1/sim/data_session_spec.rb +2 -2
- data/spec/integration/wireless/v1/sim/usage_record_spec.rb +2 -2
- data/spec/integration/wireless/v1/sim_spec.rb +4 -4
- metadata +2 -2
|
@@ -11,7 +11,7 @@ describe 'Service' do
|
|
|
11
11
|
@holodeck.mock(Twilio::Response.new(500, ''))
|
|
12
12
|
|
|
13
13
|
expect {
|
|
14
|
-
@client.proxy.v1.services(
|
|
14
|
+
@client.proxy.v1.services('KSaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa').fetch()
|
|
15
15
|
}.to raise_exception(Twilio::REST::TwilioError)
|
|
16
16
|
|
|
17
17
|
values = {}
|
|
@@ -48,7 +48,7 @@ describe 'Service' do
|
|
|
48
48
|
]
|
|
49
49
|
))
|
|
50
50
|
|
|
51
|
-
actual = @client.proxy.v1.services(
|
|
51
|
+
actual = @client.proxy.v1.services('KSaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa').fetch()
|
|
52
52
|
|
|
53
53
|
expect(actual).to_not eq(nil)
|
|
54
54
|
end
|
|
@@ -96,10 +96,10 @@ describe 'Service' do
|
|
|
96
96
|
@holodeck.mock(Twilio::Response.new(500, ''))
|
|
97
97
|
|
|
98
98
|
expect {
|
|
99
|
-
@client.proxy.v1.services.create(unique_name:
|
|
99
|
+
@client.proxy.v1.services.create(unique_name: 'unique_name')
|
|
100
100
|
}.to raise_exception(Twilio::REST::TwilioError)
|
|
101
101
|
|
|
102
|
-
values = {'UniqueName' =>
|
|
102
|
+
values = {'UniqueName' => 'unique_name', }
|
|
103
103
|
expect(
|
|
104
104
|
@holodeck.has_request?(Holodeck::Request.new(
|
|
105
105
|
method: 'post',
|
|
@@ -134,7 +134,7 @@ describe 'Service' do
|
|
|
134
134
|
]
|
|
135
135
|
))
|
|
136
136
|
|
|
137
|
-
actual = @client.proxy.v1.services.create(unique_name:
|
|
137
|
+
actual = @client.proxy.v1.services.create(unique_name: 'unique_name')
|
|
138
138
|
|
|
139
139
|
expect(actual).to_not eq(nil)
|
|
140
140
|
end
|
|
@@ -143,7 +143,7 @@ describe 'Service' do
|
|
|
143
143
|
@holodeck.mock(Twilio::Response.new(500, ''))
|
|
144
144
|
|
|
145
145
|
expect {
|
|
146
|
-
@client.proxy.v1.services(
|
|
146
|
+
@client.proxy.v1.services('KSaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa').delete()
|
|
147
147
|
}.to raise_exception(Twilio::REST::TwilioError)
|
|
148
148
|
|
|
149
149
|
values = {}
|
|
@@ -160,7 +160,7 @@ describe 'Service' do
|
|
|
160
160
|
nil,
|
|
161
161
|
))
|
|
162
162
|
|
|
163
|
-
actual = @client.proxy.v1.services(
|
|
163
|
+
actual = @client.proxy.v1.services('KSaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa').delete()
|
|
164
164
|
|
|
165
165
|
expect(actual).to eq(true)
|
|
166
166
|
end
|
|
@@ -169,7 +169,7 @@ describe 'Service' do
|
|
|
169
169
|
@holodeck.mock(Twilio::Response.new(500, ''))
|
|
170
170
|
|
|
171
171
|
expect {
|
|
172
|
-
@client.proxy.v1.services(
|
|
172
|
+
@client.proxy.v1.services('KSaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa').update()
|
|
173
173
|
}.to raise_exception(Twilio::REST::TwilioError)
|
|
174
174
|
|
|
175
175
|
values = {}
|
|
@@ -206,7 +206,7 @@ describe 'Service' do
|
|
|
206
206
|
]
|
|
207
207
|
))
|
|
208
208
|
|
|
209
|
-
actual = @client.proxy.v1.services(
|
|
209
|
+
actual = @client.proxy.v1.services('KSaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa').update()
|
|
210
210
|
|
|
211
211
|
expect(actual).to_not eq(nil)
|
|
212
212
|
end
|
|
@@ -11,8 +11,8 @@ describe 'Step' do
|
|
|
11
11
|
@holodeck.mock(Twilio::Response.new(500, ''))
|
|
12
12
|
|
|
13
13
|
expect {
|
|
14
|
-
@client.studio.v1.flows(
|
|
15
|
-
.engagements(
|
|
14
|
+
@client.studio.v1.flows('FWaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa') \
|
|
15
|
+
.engagements('FNaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa') \
|
|
16
16
|
.steps.list()
|
|
17
17
|
}.to raise_exception(Twilio::REST::TwilioError)
|
|
18
18
|
|
|
@@ -43,8 +43,8 @@ describe 'Step' do
|
|
|
43
43
|
]
|
|
44
44
|
))
|
|
45
45
|
|
|
46
|
-
actual = @client.studio.v1.flows(
|
|
47
|
-
.engagements(
|
|
46
|
+
actual = @client.studio.v1.flows('FWaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa') \
|
|
47
|
+
.engagements('FNaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa') \
|
|
48
48
|
.steps.list()
|
|
49
49
|
|
|
50
50
|
expect(actual).to_not eq(nil)
|
|
@@ -54,9 +54,9 @@ describe 'Step' do
|
|
|
54
54
|
@holodeck.mock(Twilio::Response.new(500, ''))
|
|
55
55
|
|
|
56
56
|
expect {
|
|
57
|
-
@client.studio.v1.flows(
|
|
58
|
-
.engagements(
|
|
59
|
-
.steps(
|
|
57
|
+
@client.studio.v1.flows('FWaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa') \
|
|
58
|
+
.engagements('FNaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa') \
|
|
59
|
+
.steps('FTaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa').fetch()
|
|
60
60
|
}.to raise_exception(Twilio::REST::TwilioError)
|
|
61
61
|
|
|
62
62
|
values = {}
|
|
@@ -87,9 +87,9 @@ describe 'Step' do
|
|
|
87
87
|
]
|
|
88
88
|
))
|
|
89
89
|
|
|
90
|
-
actual = @client.studio.v1.flows(
|
|
91
|
-
.engagements(
|
|
92
|
-
.steps(
|
|
90
|
+
actual = @client.studio.v1.flows('FWaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa') \
|
|
91
|
+
.engagements('FNaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa') \
|
|
92
|
+
.steps('FTaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa').fetch()
|
|
93
93
|
|
|
94
94
|
expect(actual).to_not eq(nil)
|
|
95
95
|
end
|
|
@@ -11,7 +11,7 @@ describe 'Engagement' do
|
|
|
11
11
|
@holodeck.mock(Twilio::Response.new(500, ''))
|
|
12
12
|
|
|
13
13
|
expect {
|
|
14
|
-
@client.studio.v1.flows(
|
|
14
|
+
@client.studio.v1.flows('FWaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa') \
|
|
15
15
|
.engagements.list()
|
|
16
16
|
}.to raise_exception(Twilio::REST::TwilioError)
|
|
17
17
|
|
|
@@ -42,7 +42,7 @@ describe 'Engagement' do
|
|
|
42
42
|
]
|
|
43
43
|
))
|
|
44
44
|
|
|
45
|
-
actual = @client.studio.v1.flows(
|
|
45
|
+
actual = @client.studio.v1.flows('FWaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa') \
|
|
46
46
|
.engagements.list()
|
|
47
47
|
|
|
48
48
|
expect(actual).to_not eq(nil)
|
|
@@ -52,8 +52,8 @@ describe 'Engagement' do
|
|
|
52
52
|
@holodeck.mock(Twilio::Response.new(500, ''))
|
|
53
53
|
|
|
54
54
|
expect {
|
|
55
|
-
@client.studio.v1.flows(
|
|
56
|
-
.engagements(
|
|
55
|
+
@client.studio.v1.flows('FWaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa') \
|
|
56
|
+
.engagements('FNaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa').fetch()
|
|
57
57
|
}.to raise_exception(Twilio::REST::TwilioError)
|
|
58
58
|
|
|
59
59
|
values = {}
|
|
@@ -86,8 +86,8 @@ describe 'Engagement' do
|
|
|
86
86
|
]
|
|
87
87
|
))
|
|
88
88
|
|
|
89
|
-
actual = @client.studio.v1.flows(
|
|
90
|
-
.engagements(
|
|
89
|
+
actual = @client.studio.v1.flows('FWaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa') \
|
|
90
|
+
.engagements('FNaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa').fetch()
|
|
91
91
|
|
|
92
92
|
expect(actual).to_not eq(nil)
|
|
93
93
|
end
|
|
@@ -96,11 +96,11 @@ describe 'Engagement' do
|
|
|
96
96
|
@holodeck.mock(Twilio::Response.new(500, ''))
|
|
97
97
|
|
|
98
98
|
expect {
|
|
99
|
-
@client.studio.v1.flows(
|
|
100
|
-
.engagements.create(to:
|
|
99
|
+
@client.studio.v1.flows('FWaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa') \
|
|
100
|
+
.engagements.create(to: '+15558675310', from: '+15017122661')
|
|
101
101
|
}.to raise_exception(Twilio::REST::TwilioError)
|
|
102
102
|
|
|
103
|
-
values = {'To' =>
|
|
103
|
+
values = {'To' => '+15558675310', 'From' => '+15017122661', }
|
|
104
104
|
expect(
|
|
105
105
|
@holodeck.has_request?(Holodeck::Request.new(
|
|
106
106
|
method: 'post',
|
|
@@ -135,8 +135,8 @@ describe 'Engagement' do
|
|
|
135
135
|
]
|
|
136
136
|
))
|
|
137
137
|
|
|
138
|
-
actual = @client.studio.v1.flows(
|
|
139
|
-
.engagements.create(to:
|
|
138
|
+
actual = @client.studio.v1.flows('FWaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa') \
|
|
139
|
+
.engagements.create(to: '+15558675310', from: '+15017122661')
|
|
140
140
|
|
|
141
141
|
expect(actual).to_not eq(nil)
|
|
142
142
|
end
|
|
@@ -50,7 +50,7 @@ describe 'Flow' do
|
|
|
50
50
|
@holodeck.mock(Twilio::Response.new(500, ''))
|
|
51
51
|
|
|
52
52
|
expect {
|
|
53
|
-
@client.studio.v1.flows(
|
|
53
|
+
@client.studio.v1.flows('FWaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa').fetch()
|
|
54
54
|
}.to raise_exception(Twilio::REST::TwilioError)
|
|
55
55
|
|
|
56
56
|
values = {}
|
|
@@ -81,7 +81,7 @@ describe 'Flow' do
|
|
|
81
81
|
]
|
|
82
82
|
))
|
|
83
83
|
|
|
84
|
-
actual = @client.studio.v1.flows(
|
|
84
|
+
actual = @client.studio.v1.flows('FWaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa').fetch()
|
|
85
85
|
|
|
86
86
|
expect(actual).to_not eq(nil)
|
|
87
87
|
end
|
|
@@ -90,7 +90,7 @@ describe 'Flow' do
|
|
|
90
90
|
@holodeck.mock(Twilio::Response.new(500, ''))
|
|
91
91
|
|
|
92
92
|
expect {
|
|
93
|
-
@client.studio.v1.flows(
|
|
93
|
+
@client.studio.v1.flows('FWaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa').delete()
|
|
94
94
|
}.to raise_exception(Twilio::REST::TwilioError)
|
|
95
95
|
|
|
96
96
|
values = {}
|
|
@@ -107,7 +107,7 @@ describe 'Flow' do
|
|
|
107
107
|
nil,
|
|
108
108
|
))
|
|
109
109
|
|
|
110
|
-
actual = @client.studio.v1.flows(
|
|
110
|
+
actual = @client.studio.v1.flows('FWaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa').delete()
|
|
111
111
|
|
|
112
112
|
expect(actual).to eq(true)
|
|
113
113
|
end
|
|
@@ -11,9 +11,9 @@ describe 'DocumentPermission' do
|
|
|
11
11
|
@holodeck.mock(Twilio::Response.new(500, ''))
|
|
12
12
|
|
|
13
13
|
expect {
|
|
14
|
-
@client.sync.v1.services(
|
|
15
|
-
.documents(
|
|
16
|
-
.document_permissions(
|
|
14
|
+
@client.sync.v1.services('ISaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa') \
|
|
15
|
+
.documents('ETaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa') \
|
|
16
|
+
.document_permissions('identity').fetch()
|
|
17
17
|
}.to raise_exception(Twilio::REST::TwilioError)
|
|
18
18
|
|
|
19
19
|
values = {}
|
|
@@ -41,9 +41,9 @@ describe 'DocumentPermission' do
|
|
|
41
41
|
]
|
|
42
42
|
))
|
|
43
43
|
|
|
44
|
-
actual = @client.sync.v1.services(
|
|
45
|
-
.documents(
|
|
46
|
-
.document_permissions(
|
|
44
|
+
actual = @client.sync.v1.services('ISaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa') \
|
|
45
|
+
.documents('ETaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa') \
|
|
46
|
+
.document_permissions('identity').fetch()
|
|
47
47
|
|
|
48
48
|
expect(actual).to_not eq(nil)
|
|
49
49
|
end
|
|
@@ -52,9 +52,9 @@ describe 'DocumentPermission' do
|
|
|
52
52
|
@holodeck.mock(Twilio::Response.new(500, ''))
|
|
53
53
|
|
|
54
54
|
expect {
|
|
55
|
-
@client.sync.v1.services(
|
|
56
|
-
.documents(
|
|
57
|
-
.document_permissions(
|
|
55
|
+
@client.sync.v1.services('ISaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa') \
|
|
56
|
+
.documents('ETaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa') \
|
|
57
|
+
.document_permissions('identity').delete()
|
|
58
58
|
}.to raise_exception(Twilio::REST::TwilioError)
|
|
59
59
|
|
|
60
60
|
values = {}
|
|
@@ -71,9 +71,9 @@ describe 'DocumentPermission' do
|
|
|
71
71
|
nil,
|
|
72
72
|
))
|
|
73
73
|
|
|
74
|
-
actual = @client.sync.v1.services(
|
|
75
|
-
.documents(
|
|
76
|
-
.document_permissions(
|
|
74
|
+
actual = @client.sync.v1.services('ISaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa') \
|
|
75
|
+
.documents('ETaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa') \
|
|
76
|
+
.document_permissions('identity').delete()
|
|
77
77
|
|
|
78
78
|
expect(actual).to eq(true)
|
|
79
79
|
end
|
|
@@ -82,8 +82,8 @@ describe 'DocumentPermission' do
|
|
|
82
82
|
@holodeck.mock(Twilio::Response.new(500, ''))
|
|
83
83
|
|
|
84
84
|
expect {
|
|
85
|
-
@client.sync.v1.services(
|
|
86
|
-
.documents(
|
|
85
|
+
@client.sync.v1.services('ISaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa') \
|
|
86
|
+
.documents('ETaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa') \
|
|
87
87
|
.document_permissions.list()
|
|
88
88
|
}.to raise_exception(Twilio::REST::TwilioError)
|
|
89
89
|
|
|
@@ -114,8 +114,8 @@ describe 'DocumentPermission' do
|
|
|
114
114
|
]
|
|
115
115
|
))
|
|
116
116
|
|
|
117
|
-
actual = @client.sync.v1.services(
|
|
118
|
-
.documents(
|
|
117
|
+
actual = @client.sync.v1.services('ISaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa') \
|
|
118
|
+
.documents('ETaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa') \
|
|
119
119
|
.document_permissions.list()
|
|
120
120
|
|
|
121
121
|
expect(actual).to_not eq(nil)
|
|
@@ -151,8 +151,8 @@ describe 'DocumentPermission' do
|
|
|
151
151
|
]
|
|
152
152
|
))
|
|
153
153
|
|
|
154
|
-
actual = @client.sync.v1.services(
|
|
155
|
-
.documents(
|
|
154
|
+
actual = @client.sync.v1.services('ISaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa') \
|
|
155
|
+
.documents('ETaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa') \
|
|
156
156
|
.document_permissions.list()
|
|
157
157
|
|
|
158
158
|
expect(actual).to_not eq(nil)
|
|
@@ -162,9 +162,9 @@ describe 'DocumentPermission' do
|
|
|
162
162
|
@holodeck.mock(Twilio::Response.new(500, ''))
|
|
163
163
|
|
|
164
164
|
expect {
|
|
165
|
-
@client.sync.v1.services(
|
|
166
|
-
.documents(
|
|
167
|
-
.document_permissions(
|
|
165
|
+
@client.sync.v1.services('ISaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa') \
|
|
166
|
+
.documents('ETaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa') \
|
|
167
|
+
.document_permissions('identity').update(read: true, write: true, manage: true)
|
|
168
168
|
}.to raise_exception(Twilio::REST::TwilioError)
|
|
169
169
|
|
|
170
170
|
values = {'Read' => true, 'Write' => true, 'Manage' => true, }
|
|
@@ -193,9 +193,9 @@ describe 'DocumentPermission' do
|
|
|
193
193
|
]
|
|
194
194
|
))
|
|
195
195
|
|
|
196
|
-
actual = @client.sync.v1.services(
|
|
197
|
-
.documents(
|
|
198
|
-
.document_permissions(
|
|
196
|
+
actual = @client.sync.v1.services('ISaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa') \
|
|
197
|
+
.documents('ETaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa') \
|
|
198
|
+
.document_permissions('identity').update(read: true, write: true, manage: true)
|
|
199
199
|
|
|
200
200
|
expect(actual).to_not eq(nil)
|
|
201
201
|
end
|
|
@@ -11,8 +11,8 @@ describe 'Document' do
|
|
|
11
11
|
@holodeck.mock(Twilio::Response.new(500, ''))
|
|
12
12
|
|
|
13
13
|
expect {
|
|
14
|
-
@client.sync.v1.services(
|
|
15
|
-
.documents(
|
|
14
|
+
@client.sync.v1.services('ISaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa') \
|
|
15
|
+
.documents('ETaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa').fetch()
|
|
16
16
|
}.to raise_exception(Twilio::REST::TwilioError)
|
|
17
17
|
|
|
18
18
|
values = {}
|
|
@@ -46,8 +46,8 @@ describe 'Document' do
|
|
|
46
46
|
]
|
|
47
47
|
))
|
|
48
48
|
|
|
49
|
-
actual = @client.sync.v1.services(
|
|
50
|
-
.documents(
|
|
49
|
+
actual = @client.sync.v1.services('ISaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa') \
|
|
50
|
+
.documents('ETaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa').fetch()
|
|
51
51
|
|
|
52
52
|
expect(actual).to_not eq(nil)
|
|
53
53
|
end
|
|
@@ -56,8 +56,8 @@ describe 'Document' do
|
|
|
56
56
|
@holodeck.mock(Twilio::Response.new(500, ''))
|
|
57
57
|
|
|
58
58
|
expect {
|
|
59
|
-
@client.sync.v1.services(
|
|
60
|
-
.documents(
|
|
59
|
+
@client.sync.v1.services('ISaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa') \
|
|
60
|
+
.documents('ETaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa').delete()
|
|
61
61
|
}.to raise_exception(Twilio::REST::TwilioError)
|
|
62
62
|
|
|
63
63
|
values = {}
|
|
@@ -74,8 +74,8 @@ describe 'Document' do
|
|
|
74
74
|
nil,
|
|
75
75
|
))
|
|
76
76
|
|
|
77
|
-
actual = @client.sync.v1.services(
|
|
78
|
-
.documents(
|
|
77
|
+
actual = @client.sync.v1.services('ISaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa') \
|
|
78
|
+
.documents('ETaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa').delete()
|
|
79
79
|
|
|
80
80
|
expect(actual).to eq(true)
|
|
81
81
|
end
|
|
@@ -84,7 +84,7 @@ describe 'Document' do
|
|
|
84
84
|
@holodeck.mock(Twilio::Response.new(500, ''))
|
|
85
85
|
|
|
86
86
|
expect {
|
|
87
|
-
@client.sync.v1.services(
|
|
87
|
+
@client.sync.v1.services('ISaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa') \
|
|
88
88
|
.documents.create()
|
|
89
89
|
}.to raise_exception(Twilio::REST::TwilioError)
|
|
90
90
|
|
|
@@ -119,7 +119,7 @@ describe 'Document' do
|
|
|
119
119
|
]
|
|
120
120
|
))
|
|
121
121
|
|
|
122
|
-
actual = @client.sync.v1.services(
|
|
122
|
+
actual = @client.sync.v1.services('ISaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa') \
|
|
123
123
|
.documents.create()
|
|
124
124
|
|
|
125
125
|
expect(actual).to_not eq(nil)
|
|
@@ -129,7 +129,7 @@ describe 'Document' do
|
|
|
129
129
|
@holodeck.mock(Twilio::Response.new(500, ''))
|
|
130
130
|
|
|
131
131
|
expect {
|
|
132
|
-
@client.sync.v1.services(
|
|
132
|
+
@client.sync.v1.services('ISaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa') \
|
|
133
133
|
.documents.list()
|
|
134
134
|
}.to raise_exception(Twilio::REST::TwilioError)
|
|
135
135
|
|
|
@@ -160,7 +160,7 @@ describe 'Document' do
|
|
|
160
160
|
]
|
|
161
161
|
))
|
|
162
162
|
|
|
163
|
-
actual = @client.sync.v1.services(
|
|
163
|
+
actual = @client.sync.v1.services('ISaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa') \
|
|
164
164
|
.documents.list()
|
|
165
165
|
|
|
166
166
|
expect(actual).to_not eq(nil)
|
|
@@ -202,7 +202,7 @@ describe 'Document' do
|
|
|
202
202
|
]
|
|
203
203
|
))
|
|
204
204
|
|
|
205
|
-
actual = @client.sync.v1.services(
|
|
205
|
+
actual = @client.sync.v1.services('ISaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa') \
|
|
206
206
|
.documents.list()
|
|
207
207
|
|
|
208
208
|
expect(actual).to_not eq(nil)
|
|
@@ -212,8 +212,8 @@ describe 'Document' do
|
|
|
212
212
|
@holodeck.mock(Twilio::Response.new(500, ''))
|
|
213
213
|
|
|
214
214
|
expect {
|
|
215
|
-
@client.sync.v1.services(
|
|
216
|
-
.documents(
|
|
215
|
+
@client.sync.v1.services('ISaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa') \
|
|
216
|
+
.documents('ETaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa').update()
|
|
217
217
|
}.to raise_exception(Twilio::REST::TwilioError)
|
|
218
218
|
|
|
219
219
|
values = {}
|
|
@@ -247,8 +247,8 @@ describe 'Document' do
|
|
|
247
247
|
]
|
|
248
248
|
))
|
|
249
249
|
|
|
250
|
-
actual = @client.sync.v1.services(
|
|
251
|
-
.documents(
|
|
250
|
+
actual = @client.sync.v1.services('ISaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa') \
|
|
251
|
+
.documents('ETaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa').update()
|
|
252
252
|
|
|
253
253
|
expect(actual).to_not eq(nil)
|
|
254
254
|
end
|
|
@@ -11,8 +11,8 @@ describe 'SyncListItem' do
|
|
|
11
11
|
@holodeck.mock(Twilio::Response.new(500, ''))
|
|
12
12
|
|
|
13
13
|
expect {
|
|
14
|
-
@client.sync.v1.services(
|
|
15
|
-
.sync_lists(
|
|
14
|
+
@client.sync.v1.services('ISaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa') \
|
|
15
|
+
.sync_lists('ESaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa') \
|
|
16
16
|
.sync_list_items(1).fetch()
|
|
17
17
|
}.to raise_exception(Twilio::REST::TwilioError)
|
|
18
18
|
|
|
@@ -44,8 +44,8 @@ describe 'SyncListItem' do
|
|
|
44
44
|
]
|
|
45
45
|
))
|
|
46
46
|
|
|
47
|
-
actual = @client.sync.v1.services(
|
|
48
|
-
.sync_lists(
|
|
47
|
+
actual = @client.sync.v1.services('ISaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa') \
|
|
48
|
+
.sync_lists('ESaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa') \
|
|
49
49
|
.sync_list_items(1).fetch()
|
|
50
50
|
|
|
51
51
|
expect(actual).to_not eq(nil)
|
|
@@ -55,8 +55,8 @@ describe 'SyncListItem' do
|
|
|
55
55
|
@holodeck.mock(Twilio::Response.new(500, ''))
|
|
56
56
|
|
|
57
57
|
expect {
|
|
58
|
-
@client.sync.v1.services(
|
|
59
|
-
.sync_lists(
|
|
58
|
+
@client.sync.v1.services('ISaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa') \
|
|
59
|
+
.sync_lists('ESaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa') \
|
|
60
60
|
.sync_list_items(1).delete()
|
|
61
61
|
}.to raise_exception(Twilio::REST::TwilioError)
|
|
62
62
|
|
|
@@ -74,8 +74,8 @@ describe 'SyncListItem' do
|
|
|
74
74
|
nil,
|
|
75
75
|
))
|
|
76
76
|
|
|
77
|
-
actual = @client.sync.v1.services(
|
|
78
|
-
.sync_lists(
|
|
77
|
+
actual = @client.sync.v1.services('ISaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa') \
|
|
78
|
+
.sync_lists('ESaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa') \
|
|
79
79
|
.sync_list_items(1).delete()
|
|
80
80
|
|
|
81
81
|
expect(actual).to eq(true)
|
|
@@ -85,12 +85,12 @@ describe 'SyncListItem' do
|
|
|
85
85
|
@holodeck.mock(Twilio::Response.new(500, ''))
|
|
86
86
|
|
|
87
87
|
expect {
|
|
88
|
-
@client.sync.v1.services(
|
|
89
|
-
.sync_lists(
|
|
90
|
-
.sync_list_items.create(data:
|
|
88
|
+
@client.sync.v1.services('ISaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa') \
|
|
89
|
+
.sync_lists('ESaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa') \
|
|
90
|
+
.sync_list_items.create(data: {})
|
|
91
91
|
}.to raise_exception(Twilio::REST::TwilioError)
|
|
92
92
|
|
|
93
|
-
values = {'Data' => Twilio.serialize_object(
|
|
93
|
+
values = {'Data' => Twilio.serialize_object({}), }
|
|
94
94
|
expect(
|
|
95
95
|
@holodeck.has_request?(Holodeck::Request.new(
|
|
96
96
|
method: 'post',
|
|
@@ -119,9 +119,9 @@ describe 'SyncListItem' do
|
|
|
119
119
|
]
|
|
120
120
|
))
|
|
121
121
|
|
|
122
|
-
actual = @client.sync.v1.services(
|
|
123
|
-
.sync_lists(
|
|
124
|
-
.sync_list_items.create(data:
|
|
122
|
+
actual = @client.sync.v1.services('ISaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa') \
|
|
123
|
+
.sync_lists('ESaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa') \
|
|
124
|
+
.sync_list_items.create(data: {})
|
|
125
125
|
|
|
126
126
|
expect(actual).to_not eq(nil)
|
|
127
127
|
end
|
|
@@ -130,8 +130,8 @@ describe 'SyncListItem' do
|
|
|
130
130
|
@holodeck.mock(Twilio::Response.new(500, ''))
|
|
131
131
|
|
|
132
132
|
expect {
|
|
133
|
-
@client.sync.v1.services(
|
|
134
|
-
.sync_lists(
|
|
133
|
+
@client.sync.v1.services('ISaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa') \
|
|
134
|
+
.sync_lists('ESaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa') \
|
|
135
135
|
.sync_list_items.list()
|
|
136
136
|
}.to raise_exception(Twilio::REST::TwilioError)
|
|
137
137
|
|
|
@@ -162,8 +162,8 @@ describe 'SyncListItem' do
|
|
|
162
162
|
]
|
|
163
163
|
))
|
|
164
164
|
|
|
165
|
-
actual = @client.sync.v1.services(
|
|
166
|
-
.sync_lists(
|
|
165
|
+
actual = @client.sync.v1.services('ISaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa') \
|
|
166
|
+
.sync_lists('ESaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa') \
|
|
167
167
|
.sync_list_items.list()
|
|
168
168
|
|
|
169
169
|
expect(actual).to_not eq(nil)
|
|
@@ -202,8 +202,8 @@ describe 'SyncListItem' do
|
|
|
202
202
|
]
|
|
203
203
|
))
|
|
204
204
|
|
|
205
|
-
actual = @client.sync.v1.services(
|
|
206
|
-
.sync_lists(
|
|
205
|
+
actual = @client.sync.v1.services('ISaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa') \
|
|
206
|
+
.sync_lists('ESaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa') \
|
|
207
207
|
.sync_list_items.list()
|
|
208
208
|
|
|
209
209
|
expect(actual).to_not eq(nil)
|
|
@@ -213,8 +213,8 @@ describe 'SyncListItem' do
|
|
|
213
213
|
@holodeck.mock(Twilio::Response.new(500, ''))
|
|
214
214
|
|
|
215
215
|
expect {
|
|
216
|
-
@client.sync.v1.services(
|
|
217
|
-
.sync_lists(
|
|
216
|
+
@client.sync.v1.services('ISaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa') \
|
|
217
|
+
.sync_lists('ESaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa') \
|
|
218
218
|
.sync_list_items(1).update()
|
|
219
219
|
}.to raise_exception(Twilio::REST::TwilioError)
|
|
220
220
|
|
|
@@ -246,8 +246,8 @@ describe 'SyncListItem' do
|
|
|
246
246
|
]
|
|
247
247
|
))
|
|
248
248
|
|
|
249
|
-
actual = @client.sync.v1.services(
|
|
250
|
-
.sync_lists(
|
|
249
|
+
actual = @client.sync.v1.services('ISaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa') \
|
|
250
|
+
.sync_lists('ESaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa') \
|
|
251
251
|
.sync_list_items(1).update()
|
|
252
252
|
|
|
253
253
|
expect(actual).to_not eq(nil)
|