twilio-ruby 5.0.0.rc26 → 5.0.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.rubocop.yml +21 -0
- data/.rubocop_todo.yml +187 -0
- data/.travis.yml +13 -0
- data/CHANGES.md +4 -0
- data/Gemfile +2 -2
- data/Makefile +8 -1
- data/Rakefile +3 -7
- data/examples/examples.rb +12 -10
- data/examples/{print-call-log.rb → print_call_log.rb} +4 -4
- data/lib/rack/twilio_webhook_authentication.rb +2 -3
- data/lib/twilio-ruby/framework/domain.rb +2 -6
- data/lib/twilio-ruby/framework/error.rb +0 -1
- data/lib/twilio-ruby/framework/helper.rb +1 -1
- data/lib/twilio-ruby/framework/page.rb +23 -25
- data/lib/twilio-ruby/framework/resource.rb +2 -2
- data/lib/twilio-ruby/framework/serialize.rb +5 -12
- data/lib/twilio-ruby/framework/twilio_response.rb +1 -1
- data/lib/twilio-ruby/framework/values.rb +2 -2
- data/lib/twilio-ruby/framework/version.rb +19 -37
- data/lib/twilio-ruby/http/http_client.rb +5 -6
- data/lib/twilio-ruby/jwt/access_token.rb +27 -41
- data/lib/twilio-ruby/jwt/client_capability.rb +11 -16
- data/lib/twilio-ruby/jwt/jwt.rb +7 -13
- data/lib/twilio-ruby/jwt/task_router.rb +40 -38
- data/lib/twilio-ruby/rest/accounts.rb +2 -0
- data/lib/twilio-ruby/rest/accounts/v1.rb +2 -0
- data/lib/twilio-ruby/rest/accounts/v1/credential.rb +2 -2
- data/lib/twilio-ruby/rest/accounts/v1/credential/public_key.rb +12 -7
- data/lib/twilio-ruby/rest/api.rb +96 -0
- data/lib/twilio-ruby/rest/api/v2010.rb +5 -0
- data/lib/twilio-ruby/rest/api/v2010/account.rb +66 -56
- data/lib/twilio-ruby/rest/api/v2010/account/address.rb +30 -13
- data/lib/twilio-ruby/rest/api/v2010/account/address/dependent_phone_number.rb +22 -8
- data/lib/twilio-ruby/rest/api/v2010/account/application.rb +40 -11
- data/lib/twilio-ruby/rest/api/v2010/account/authorized_connect_app.rb +20 -9
- data/lib/twilio-ruby/rest/api/v2010/account/available_phone_number.rb +16 -15
- data/lib/twilio-ruby/rest/api/v2010/account/available_phone_number/local.rb +26 -28
- data/lib/twilio-ruby/rest/api/v2010/account/available_phone_number/mobile.rb +26 -28
- data/lib/twilio-ruby/rest/api/v2010/account/available_phone_number/toll_free.rb +26 -28
- data/lib/twilio-ruby/rest/api/v2010/account/call.rb +64 -34
- data/lib/twilio-ruby/rest/api/v2010/account/call/feedback.rb +12 -4
- data/lib/twilio-ruby/rest/api/v2010/account/call/feedback_summary.rb +28 -3
- data/lib/twilio-ruby/rest/api/v2010/account/call/notification.rb +37 -16
- data/lib/twilio-ruby/rest/api/v2010/account/call/recording.rb +25 -15
- data/lib/twilio-ruby/rest/api/v2010/account/conference.rb +28 -27
- data/lib/twilio-ruby/rest/api/v2010/account/conference/participant.rb +28 -19
- data/lib/twilio-ruby/rest/api/v2010/account/connect_app.rb +22 -9
- data/lib/twilio-ruby/rest/api/v2010/account/incoming_phone_number.rb +62 -58
- data/lib/twilio-ruby/rest/api/v2010/account/incoming_phone_number/local.rb +52 -12
- data/lib/twilio-ruby/rest/api/v2010/account/incoming_phone_number/mobile.rb +52 -12
- data/lib/twilio-ruby/rest/api/v2010/account/incoming_phone_number/toll_free.rb +52 -12
- data/lib/twilio-ruby/rest/api/v2010/account/key.rb +8 -9
- data/lib/twilio-ruby/rest/api/v2010/account/message.rb +47 -20
- data/lib/twilio-ruby/rest/api/v2010/account/message/feedback.rb +12 -2
- data/lib/twilio-ruby/rest/api/v2010/account/message/media.rb +17 -17
- data/lib/twilio-ruby/rest/api/v2010/account/new_key.rb +10 -2
- data/lib/twilio-ruby/rest/api/v2010/account/new_signing_key.rb +10 -2
- data/lib/twilio-ruby/rest/api/v2010/account/notification.rb +37 -16
- data/lib/twilio-ruby/rest/api/v2010/account/outgoing_caller_id.rb +14 -13
- data/lib/twilio-ruby/rest/api/v2010/account/queue.rb +20 -10
- data/lib/twilio-ruby/rest/api/v2010/account/queue/member.rb +10 -10
- data/lib/twilio-ruby/rest/api/v2010/account/recording.rb +37 -21
- data/lib/twilio-ruby/rest/api/v2010/account/recording/add_on_result.rb +22 -13
- data/lib/twilio-ruby/rest/api/v2010/account/recording/add_on_result/payload.rb +22 -13
- data/lib/twilio-ruby/rest/api/v2010/account/recording/transcription.rb +26 -9
- data/lib/twilio-ruby/rest/api/v2010/account/short_code.rb +24 -13
- data/lib/twilio-ruby/rest/api/v2010/account/signing_key.rb +8 -9
- data/lib/twilio-ruby/rest/api/v2010/account/sip.rb +8 -10
- data/lib/twilio-ruby/rest/api/v2010/account/sip/credential_list.rb +16 -11
- data/lib/twilio-ruby/rest/api/v2010/account/sip/credential_list/credential.rb +14 -9
- data/lib/twilio-ruby/rest/api/v2010/account/sip/domain.rb +36 -13
- data/lib/twilio-ruby/rest/api/v2010/account/sip/domain/credential_list_mapping.rb +14 -10
- data/lib/twilio-ruby/rest/api/v2010/account/sip/domain/ip_access_control_list_mapping.rb +14 -10
- data/lib/twilio-ruby/rest/api/v2010/account/sip/ip_access_control_list.rb +16 -11
- data/lib/twilio-ruby/rest/api/v2010/account/sip/ip_access_control_list/ip_address.rb +16 -9
- data/lib/twilio-ruby/rest/api/v2010/account/token.rb +14 -2
- data/lib/twilio-ruby/rest/api/v2010/account/transcription.rb +26 -9
- data/lib/twilio-ruby/rest/api/v2010/account/usage.rb +4 -6
- data/lib/twilio-ruby/rest/api/v2010/account/usage/record.rb +44 -33
- data/lib/twilio-ruby/rest/api/v2010/account/usage/record/all_time.rb +28 -11
- data/lib/twilio-ruby/rest/api/v2010/account/usage/record/daily.rb +28 -11
- data/lib/twilio-ruby/rest/api/v2010/account/usage/record/last_month.rb +28 -11
- data/lib/twilio-ruby/rest/api/v2010/account/usage/record/monthly.rb +28 -11
- data/lib/twilio-ruby/rest/api/v2010/account/usage/record/this_month.rb +28 -11
- data/lib/twilio-ruby/rest/api/v2010/account/usage/record/today.rb +28 -11
- data/lib/twilio-ruby/rest/api/v2010/account/usage/record/yearly.rb +28 -11
- data/lib/twilio-ruby/rest/api/v2010/account/usage/record/yesterday.rb +28 -11
- data/lib/twilio-ruby/rest/api/v2010/account/usage/trigger.rb +32 -15
- data/lib/twilio-ruby/rest/api/v2010/account/validation_request.rb +10 -1
- data/lib/twilio-ruby/rest/chat.rb +8 -0
- data/lib/twilio-ruby/rest/chat/v1.rb +8 -0
- data/lib/twilio-ruby/rest/chat/v1/credential.rb +16 -7
- data/lib/twilio-ruby/rest/chat/v1/service.rb +48 -13
- data/lib/twilio-ruby/rest/chat/v1/service/channel.rb +34 -15
- data/lib/twilio-ruby/rest/chat/v1/service/channel/invite.rb +20 -10
- data/lib/twilio-ruby/rest/chat/v1/service/channel/member.rb +22 -10
- data/lib/twilio-ruby/rest/chat/v1/service/channel/message.rb +26 -10
- data/lib/twilio-ruby/rest/chat/v1/service/role.rb +18 -8
- data/lib/twilio-ruby/rest/chat/v1/service/user.rb +30 -10
- data/lib/twilio-ruby/rest/chat/v1/service/user/user_channel.rb +16 -8
- data/lib/twilio-ruby/rest/chat/v2.rb +8 -0
- data/lib/twilio-ruby/rest/chat/v2/credential.rb +16 -7
- data/lib/twilio-ruby/rest/chat/v2/service.rb +46 -13
- data/lib/twilio-ruby/rest/chat/v2/service/channel.rb +34 -15
- data/lib/twilio-ruby/rest/chat/v2/service/channel/invite.rb +20 -10
- data/lib/twilio-ruby/rest/chat/v2/service/channel/member.rb +22 -10
- data/lib/twilio-ruby/rest/chat/v2/service/channel/message.rb +26 -10
- data/lib/twilio-ruby/rest/chat/v2/service/role.rb +18 -8
- data/lib/twilio-ruby/rest/chat/v2/service/user.rb +30 -10
- data/lib/twilio-ruby/rest/chat/v2/service/user/user_channel.rb +16 -8
- data/lib/twilio-ruby/rest/client.rb +94 -45
- data/lib/twilio-ruby/rest/ip_messaging.rb +8 -0
- data/lib/twilio-ruby/rest/ip_messaging/v1.rb +8 -0
- data/lib/twilio-ruby/rest/ip_messaging/v1/credential.rb +16 -7
- data/lib/twilio-ruby/rest/ip_messaging/v1/service.rb +48 -13
- data/lib/twilio-ruby/rest/ip_messaging/v1/service/channel.rb +34 -15
- data/lib/twilio-ruby/rest/ip_messaging/v1/service/channel/invite.rb +20 -10
- data/lib/twilio-ruby/rest/ip_messaging/v1/service/channel/member.rb +22 -10
- data/lib/twilio-ruby/rest/ip_messaging/v1/service/channel/message.rb +26 -10
- data/lib/twilio-ruby/rest/ip_messaging/v1/service/role.rb +18 -8
- data/lib/twilio-ruby/rest/ip_messaging/v1/service/user.rb +30 -10
- data/lib/twilio-ruby/rest/ip_messaging/v1/service/user/user_channel.rb +16 -8
- data/lib/twilio-ruby/rest/ip_messaging/v2.rb +8 -0
- data/lib/twilio-ruby/rest/ip_messaging/v2/credential.rb +16 -7
- data/lib/twilio-ruby/rest/ip_messaging/v2/service.rb +46 -13
- data/lib/twilio-ruby/rest/ip_messaging/v2/service/channel.rb +34 -15
- data/lib/twilio-ruby/rest/ip_messaging/v2/service/channel/invite.rb +20 -10
- data/lib/twilio-ruby/rest/ip_messaging/v2/service/channel/member.rb +22 -10
- data/lib/twilio-ruby/rest/ip_messaging/v2/service/channel/message.rb +26 -10
- data/lib/twilio-ruby/rest/ip_messaging/v2/service/role.rb +18 -8
- data/lib/twilio-ruby/rest/ip_messaging/v2/service/user.rb +30 -10
- data/lib/twilio-ruby/rest/ip_messaging/v2/service/user/user_channel.rb +16 -8
- data/lib/twilio-ruby/rest/lookups.rb +4 -0
- data/lib/twilio-ruby/rest/lookups/v1.rb +9 -5
- data/lib/twilio-ruby/rest/lookups/v1/phone_number.rb +14 -1
- data/lib/twilio-ruby/rest/monitor.rb +8 -0
- data/lib/twilio-ruby/rest/monitor/v1.rb +8 -0
- data/lib/twilio-ruby/rest/monitor/v1/alert.rb +34 -10
- data/lib/twilio-ruby/rest/monitor/v1/event.rb +28 -13
- data/lib/twilio-ruby/rest/pricing.rb +6 -0
- data/lib/twilio-ruby/rest/pricing/v1.rb +6 -0
- data/lib/twilio-ruby/rest/pricing/v1/messaging.rb +8 -2
- data/lib/twilio-ruby/rest/pricing/v1/messaging/country.rb +12 -7
- data/lib/twilio-ruby/rest/pricing/v1/phone_number.rb +8 -2
- data/lib/twilio-ruby/rest/pricing/v1/phone_number/country.rb +10 -7
- data/lib/twilio-ruby/rest/pricing/v1/voice.rb +10 -4
- data/lib/twilio-ruby/rest/pricing/v1/voice/country.rb +12 -7
- data/lib/twilio-ruby/rest/pricing/v1/voice/number.rb +14 -1
- data/lib/twilio-ruby/rest/taskrouter.rb +4 -0
- data/lib/twilio-ruby/rest/taskrouter/v1.rb +4 -0
- data/lib/twilio-ruby/rest/taskrouter/v1/workspace.rb +46 -24
- data/lib/twilio-ruby/rest/taskrouter/v1/workspace/activity.rb +16 -10
- data/lib/twilio-ruby/rest/taskrouter/v1/workspace/event.rb +30 -17
- data/lib/twilio-ruby/rest/taskrouter/v1/workspace/task.rb +42 -19
- data/lib/twilio-ruby/rest/taskrouter/v1/workspace/task/reservation.rb +22 -10
- data/lib/twilio-ruby/rest/taskrouter/v1/workspace/task_channel.rb +16 -8
- data/lib/twilio-ruby/rest/taskrouter/v1/workspace/task_queue.rb +34 -15
- data/lib/twilio-ruby/rest/taskrouter/v1/workspace/task_queue/task_queue_statistics.rb +12 -3
- data/lib/twilio-ruby/rest/taskrouter/v1/workspace/task_queue/task_queues_statistics.rb +10 -11
- data/lib/twilio-ruby/rest/taskrouter/v1/workspace/worker.rb +34 -23
- data/lib/twilio-ruby/rest/taskrouter/v1/workspace/worker/reservation.rb +22 -10
- data/lib/twilio-ruby/rest/taskrouter/v1/workspace/worker/worker_channel.rb +28 -9
- data/lib/twilio-ruby/rest/taskrouter/v1/workspace/worker/worker_statistics.rb +10 -3
- data/lib/twilio-ruby/rest/taskrouter/v1/workspace/worker/workers_statistics.rb +10 -2
- data/lib/twilio-ruby/rest/taskrouter/v1/workspace/workflow.rb +28 -11
- data/lib/twilio-ruby/rest/taskrouter/v1/workspace/workflow/workflow_statistics.rb +12 -3
- data/lib/twilio-ruby/rest/taskrouter/v1/workspace/workspace_statistics.rb +10 -2
- data/lib/twilio-ruby/rest/trunking.rb +4 -0
- data/lib/twilio-ruby/rest/trunking/v1.rb +4 -0
- data/lib/twilio-ruby/rest/trunking/v1/trunk.rb +36 -15
- data/lib/twilio-ruby/rest/trunking/v1/trunk/credential_list.rb +14 -8
- data/lib/twilio-ruby/rest/trunking/v1/trunk/ip_access_control_list.rb +14 -8
- data/lib/twilio-ruby/rest/trunking/v1/trunk/origination_url.rb +22 -8
- data/lib/twilio-ruby/rest/trunking/v1/trunk/phone_number.rb +52 -8
- data/lib/twilio-ruby/rest/video.rb +8 -0
- data/lib/twilio-ruby/rest/video/v1.rb +8 -0
- data/lib/twilio-ruby/rest/video/v1/recording.rb +26 -12
- data/lib/twilio-ruby/rest/video/v1/room.rb +34 -13
- data/lib/twilio-ruby/rest/video/v1/room/recording.rb +28 -12
- data/lib/twilio-ruby/security/request_validator.rb +1 -2
- data/lib/twilio-ruby/twiml/messaging_response.rb +7 -19
- data/lib/twilio-ruby/twiml/twiml.rb +8 -14
- data/lib/twilio-ruby/twiml/voice_response.rb +157 -169
- data/lib/twilio-ruby/util.rb +1 -1
- data/lib/twilio-ruby/version.rb +1 -1
- data/spec/framework/serialize_spec.rb +17 -30
- data/spec/holodeck/holodeck.rb +6 -6
- data/spec/jwt/access_token_spec.rb +0 -6
- data/spec/jwt/client_capability_spec.rb +3 -3
- data/spec/jwt/task_router_spec.rb +16 -21
- data/spec/rack/twilio_webhook_authentication_spec.rb +12 -16
- data/spec/spec_helper.rb +2 -2
- data/spec/support/fakeweb.rb +1 -1
- data/spec/twiml/voice_response_spec.rb +33 -20
- data/twilio-ruby.gemspec +7 -3
- metadata +21 -193
- data/lib/twilio-ruby/rest/api/v2010/account/incoming_phone_number/assigned_add_on.rb +0 -420
- data/lib/twilio-ruby/rest/api/v2010/account/incoming_phone_number/assigned_add_on/assigned_add_on_extension.rb +0 -345
- data/lib/twilio-ruby/rest/fax.rb +0 -40
- data/lib/twilio-ruby/rest/fax/v1.rb +0 -37
- data/lib/twilio-ruby/rest/fax/v1/fax.rb +0 -520
- data/lib/twilio-ruby/rest/fax/v1/fax/fax_media.rb +0 -321
- data/lib/twilio-ruby/rest/messaging.rb +0 -40
- data/lib/twilio-ruby/rest/messaging/v1.rb +0 -37
- data/lib/twilio-ruby/rest/messaging/v1/service.rb +0 -604
- data/lib/twilio-ruby/rest/messaging/v1/service/alpha_sender.rb +0 -344
- data/lib/twilio-ruby/rest/messaging/v1/service/phone_number.rb +0 -349
- data/lib/twilio-ruby/rest/messaging/v1/service/short_code.rb +0 -349
- data/lib/twilio-ruby/rest/notify.rb +0 -44
- data/lib/twilio-ruby/rest/notify/v1.rb +0 -48
- data/lib/twilio-ruby/rest/notify/v1/credential.rb +0 -394
- data/lib/twilio-ruby/rest/notify/v1/service.rb +0 -611
- data/lib/twilio-ruby/rest/notify/v1/service/binding.rb +0 -414
- data/lib/twilio-ruby/rest/notify/v1/service/notification.rb +0 -249
- data/lib/twilio-ruby/rest/notify/v1/service/segment.rb +0 -219
- data/lib/twilio-ruby/rest/notify/v1/service/user.rb +0 -437
- data/lib/twilio-ruby/rest/notify/v1/service/user/segment_memberships.rb +0 -247
- data/lib/twilio-ruby/rest/notify/v1/service/user/user_binding.rb +0 -418
- data/lib/twilio-ruby/rest/preview.rb +0 -107
- data/lib/twilio-ruby/rest/preview/bulk_exports.rb +0 -48
- data/lib/twilio-ruby/rest/preview/bulk_exports/export.rb +0 -198
- data/lib/twilio-ruby/rest/preview/bulk_exports/export/day.rb +0 -209
- data/lib/twilio-ruby/rest/preview/bulk_exports/export_configuration.rb +0 -232
- data/lib/twilio-ruby/rest/preview/hosted_numbers.rb +0 -37
- data/lib/twilio-ruby/rest/preview/hosted_numbers/hosted_number_order.rb +0 -539
- data/lib/twilio-ruby/rest/preview/marketplace.rb +0 -48
- data/lib/twilio-ruby/rest/preview/marketplace/available_add_on.rb +0 -326
- data/lib/twilio-ruby/rest/preview/marketplace/available_add_on/available_add_on_extension.rb +0 -297
- data/lib/twilio-ruby/rest/preview/marketplace/installed_add_on.rb +0 -427
- data/lib/twilio-ruby/rest/preview/marketplace/installed_add_on/installed_add_on_extension.rb +0 -335
- data/lib/twilio-ruby/rest/preview/proxy.rb +0 -37
- data/lib/twilio-ruby/rest/preview/proxy/service.rb +0 -489
- data/lib/twilio-ruby/rest/preview/proxy/service/phone_number.rb +0 -349
- data/lib/twilio-ruby/rest/preview/proxy/service/session.rb +0 -525
- data/lib/twilio-ruby/rest/preview/proxy/service/session/interaction.rb +0 -406
- data/lib/twilio-ruby/rest/preview/proxy/service/session/participant.rb +0 -495
- data/lib/twilio-ruby/rest/preview/proxy/service/session/participant/message_interaction.rb +0 -422
- data/lib/twilio-ruby/rest/preview/proxy/service/short_code.rb +0 -349
- data/lib/twilio-ruby/rest/preview/sync.rb +0 -37
- data/lib/twilio-ruby/rest/preview/sync/service.rb +0 -491
- data/lib/twilio-ruby/rest/preview/sync/service/document.rb +0 -431
- data/lib/twilio-ruby/rest/preview/sync/service/document/document_permission.rb +0 -390
- data/lib/twilio-ruby/rest/preview/sync/service/sync_list.rb +0 -426
- data/lib/twilio-ruby/rest/preview/sync/service/sync_list/sync_list_item.rb +0 -422
- data/lib/twilio-ruby/rest/preview/sync/service/sync_list/sync_list_permission.rb +0 -390
- data/lib/twilio-ruby/rest/preview/sync/service/sync_map.rb +0 -426
- data/lib/twilio-ruby/rest/preview/sync/service/sync_map/sync_map_item.rb +0 -424
- data/lib/twilio-ruby/rest/preview/sync/service/sync_map/sync_map_permission.rb +0 -390
- data/lib/twilio-ruby/rest/preview/wireless.rb +0 -59
- data/lib/twilio-ruby/rest/preview/wireless/command.rb +0 -371
- data/lib/twilio-ruby/rest/preview/wireless/rate_plan.rb +0 -414
- data/lib/twilio-ruby/rest/preview/wireless/sim.rb +0 -512
- data/lib/twilio-ruby/rest/preview/wireless/sim/usage.rb +0 -220
- data/lib/twilio-ruby/rest/sync.rb +0 -40
- data/lib/twilio-ruby/rest/sync/v1.rb +0 -37
- data/lib/twilio-ruby/rest/sync/v1/service.rb +0 -491
- data/lib/twilio-ruby/rest/sync/v1/service/document.rb +0 -431
- data/lib/twilio-ruby/rest/sync/v1/service/document/document_permission.rb +0 -390
- data/lib/twilio-ruby/rest/sync/v1/service/sync_list.rb +0 -426
- data/lib/twilio-ruby/rest/sync/v1/service/sync_list/sync_list_item.rb +0 -422
- data/lib/twilio-ruby/rest/sync/v1/service/sync_list/sync_list_permission.rb +0 -390
- data/lib/twilio-ruby/rest/sync/v1/service/sync_map.rb +0 -426
- data/lib/twilio-ruby/rest/sync/v1/service/sync_map/sync_map_item.rb +0 -424
- data/lib/twilio-ruby/rest/sync/v1/service/sync_map/sync_map_permission.rb +0 -390
- data/lib/twilio-ruby/rest/wireless.rb +0 -48
- data/lib/twilio-ruby/rest/wireless/v1.rb +0 -59
- data/lib/twilio-ruby/rest/wireless/v1/command.rb +0 -357
- data/lib/twilio-ruby/rest/wireless/v1/rate_plan.rb +0 -427
- data/lib/twilio-ruby/rest/wireless/v1/sim.rb +0 -516
- data/lib/twilio-ruby/rest/wireless/v1/sim/usage_record.rb +0 -235
- data/spec/integration/api/v2010/account/incoming_phone_number/assigned_add_on/assigned_add_on_extension_spec.rb +0 -135
- data/spec/integration/api/v2010/account/incoming_phone_number/assigned_add_on_spec.rb +0 -223
- data/spec/integration/fax/v1/fax/fax_media_spec.rb +0 -126
- data/spec/integration/fax/v1/fax_spec.rb +0 -272
- data/spec/integration/messaging/v1/service/alpha_sender_spec.rb +0 -170
- data/spec/integration/messaging/v1/service/phone_number_spec.rb +0 -201
- data/spec/integration/messaging/v1/service/short_code_spec.rb +0 -173
- data/spec/integration/messaging/v1/service_spec.rb +0 -263
- data/spec/integration/notify/v1/credential_spec.rb +0 -223
- data/spec/integration/notify/v1/service/binding_spec.rb +0 -227
- data/spec/integration/notify/v1/service/notification_spec.rb +0 -97
- data/spec/integration/notify/v1/service/segment_spec.rb +0 -84
- data/spec/integration/notify/v1/service/user/segment_memberships_spec.rb +0 -118
- data/spec/integration/notify/v1/service/user/user_binding_spec.rb +0 -269
- data/spec/integration/notify/v1/service/user_spec.rb +0 -213
- data/spec/integration/notify/v1/service_spec.rb +0 -280
- data/spec/integration/preview/bulk_exports/export/day_spec.rb +0 -56
- data/spec/integration/preview/bulk_exports/export_configuration_spec.rb +0 -79
- data/spec/integration/preview/bulk_exports/export_spec.rb +0 -43
- data/spec/integration/preview/hosted_numbers/hosted_number_order_spec.rb +0 -276
- data/spec/integration/preview/marketplace/available_add_on/available_add_on_extension_spec.rb +0 -121
- data/spec/integration/preview/marketplace/available_add_on_spec.rb +0 -142
- data/spec/integration/preview/marketplace/installed_add_on/installed_add_on_extension_spec.rb +0 -164
- data/spec/integration/preview/marketplace/installed_add_on_spec.rb +0 -252
- data/spec/integration/preview/proxy/service/phone_number_spec.rb +0 -173
- data/spec/integration/preview/proxy/service/session/interaction_spec.rb +0 -104
- data/spec/integration/preview/proxy/service/session/participant/message_interaction_spec.rb +0 -164
- data/spec/integration/preview/proxy/service/session/participant_spec.rb +0 -226
- data/spec/integration/preview/proxy/service/session_spec.rb +0 -216
- data/spec/integration/preview/proxy/service/short_code_spec.rb +0 -173
- data/spec/integration/preview/proxy/service_spec.rb +0 -200
- data/spec/integration/preview/sync/service/document/document_permission_spec.rb +0 -206
- data/spec/integration/preview/sync/service/document_spec.rb +0 -254
- data/spec/integration/preview/sync/service/sync_list/sync_list_item_spec.rb +0 -256
- data/spec/integration/preview/sync/service/sync_list/sync_list_permission_spec.rb +0 -206
- data/spec/integration/preview/sync/service/sync_list_spec.rb +0 -207
- data/spec/integration/preview/sync/service/sync_map/sync_map_item_spec.rb +0 -257
- data/spec/integration/preview/sync/service/sync_map/sync_map_permission_spec.rb +0 -206
- data/spec/integration/preview/sync/service/sync_map_spec.rb +0 -207
- data/spec/integration/preview/sync/service_spec.rb +0 -244
- data/spec/integration/preview/wireless/command_spec.rb +0 -169
- data/spec/integration/preview/wireless/rate_plan_spec.rb +0 -260
- data/spec/integration/preview/wireless/sim/usage_spec.rb +0 -49
- data/spec/integration/preview/wireless/sim_spec.rb +0 -208
- data/spec/integration/sync/v1/service/document/document_permission_spec.rb +0 -206
- data/spec/integration/sync/v1/service/document_spec.rb +0 -254
- data/spec/integration/sync/v1/service/sync_list/sync_list_item_spec.rb +0 -256
- data/spec/integration/sync/v1/service/sync_list/sync_list_permission_spec.rb +0 -206
- data/spec/integration/sync/v1/service/sync_list_spec.rb +0 -207
- data/spec/integration/sync/v1/service/sync_map/sync_map_item_spec.rb +0 -257
- data/spec/integration/sync/v1/service/sync_map/sync_map_permission_spec.rb +0 -206
- data/spec/integration/sync/v1/service/sync_map_spec.rb +0 -207
- data/spec/integration/sync/v1/service_spec.rb +0 -244
- data/spec/integration/wireless/v1/command_spec.rb +0 -166
- data/spec/integration/wireless/v1/rate_plan_spec.rb +0 -268
- data/spec/integration/wireless/v1/sim/usage_record_spec.rb +0 -65
- data/spec/integration/wireless/v1/sim_spec.rb +0 -208
data/lib/twilio-ruby/jwt/jwt.rb
CHANGED
@@ -21,36 +21,30 @@ module Twilio
|
|
21
21
|
end
|
22
22
|
|
23
23
|
def _generate_payload
|
24
|
-
|
24
|
+
raise NotImplementedError
|
25
25
|
end
|
26
26
|
|
27
27
|
def headers
|
28
|
-
headers =
|
28
|
+
headers = _generate_headers.clone
|
29
29
|
headers['typ'] = 'JWT'
|
30
30
|
headers['alg'] = @algorithm
|
31
31
|
headers
|
32
32
|
end
|
33
33
|
|
34
34
|
def payload
|
35
|
-
payload =
|
35
|
+
payload = _generate_payload.clone
|
36
36
|
|
37
37
|
payload[:iss] = @issuer
|
38
38
|
payload[:nbf] = @nbf || Time.now.to_i
|
39
|
-
|
40
|
-
if @valid_until.nil?
|
41
|
-
payload[:exp] = Time.now.to_i + @ttl
|
42
|
-
else
|
43
|
-
payload[:exp] = @valid_until
|
44
|
-
end
|
45
|
-
|
39
|
+
payload[:exp] = @valid_until.nil? ? Time.now.to_i + @ttl : @valid_until
|
46
40
|
payload[:sub] = @subject unless @subject.nil?
|
41
|
+
|
47
42
|
payload
|
48
43
|
end
|
49
44
|
|
50
45
|
def to_jwt
|
51
|
-
::JWT.encode
|
46
|
+
::JWT.encode payload, @secret_key, @algorithm, headers
|
52
47
|
end
|
53
|
-
|
54
48
|
end
|
55
49
|
end
|
56
|
-
end
|
50
|
+
end
|
@@ -1,7 +1,7 @@
|
|
1
1
|
module Twilio
|
2
2
|
module JWT
|
3
3
|
class TaskRouterCapability < BaseJWT
|
4
|
-
TASK_ROUTER_VERSION = 'v1'
|
4
|
+
TASK_ROUTER_VERSION = 'v1'.freeze
|
5
5
|
def initialize(account_sid, auth_token, workspace_sid, channel_id, nbf: nil, ttl: 3600, valid_until: nil)
|
6
6
|
super(secret_key: auth_token,
|
7
7
|
issuer: account_sid,
|
@@ -25,17 +25,20 @@ module Twilio
|
|
25
25
|
end
|
26
26
|
|
27
27
|
protected
|
28
|
+
|
28
29
|
def _generate_payload
|
29
|
-
Twilio::JWT::TaskRouterCapability::TaskRouterUtils
|
30
|
-
|
30
|
+
Twilio::JWT::TaskRouterCapability::TaskRouterUtils
|
31
|
+
.web_socket_policies(@account_sid, @channel_id)
|
32
|
+
.each { |policy| add_policy(policy) }
|
33
|
+
policies = @policies.map(&:_generate_payload)
|
31
34
|
|
32
35
|
payload = {
|
33
|
-
|
34
|
-
|
35
|
-
|
36
|
-
|
37
|
-
|
38
|
-
|
36
|
+
account_sid: @account_sid,
|
37
|
+
workspace_sid: @workspace_sid,
|
38
|
+
channel: @channel_id,
|
39
|
+
version: TASK_ROUTER_VERSION,
|
40
|
+
friendly_name: @channel_id,
|
41
|
+
policies: policies
|
39
42
|
}
|
40
43
|
|
41
44
|
if @channel_id[0..1] == 'WK'
|
@@ -54,7 +57,7 @@ module Twilio
|
|
54
57
|
:post_filters,
|
55
58
|
:query_filters
|
56
59
|
|
57
|
-
def initialize(url, method, allowed, post_filters={}, query_filters={})
|
60
|
+
def initialize(url, method, allowed, post_filters = {}, query_filters = {})
|
58
61
|
@url = url
|
59
62
|
@method = method
|
60
63
|
@allowed = allowed
|
@@ -64,21 +67,20 @@ module Twilio
|
|
64
67
|
|
65
68
|
def _generate_payload
|
66
69
|
policy = {
|
67
|
-
|
68
|
-
|
69
|
-
|
70
|
-
|
71
|
-
|
70
|
+
url: @url,
|
71
|
+
method: @method,
|
72
|
+
query_filter: @query_filters,
|
73
|
+
post_filter: @post_filters,
|
74
|
+
allow: @allowed
|
72
75
|
}
|
73
76
|
policy
|
74
77
|
end
|
75
|
-
|
76
78
|
end
|
77
79
|
|
78
80
|
class TaskRouterUtils
|
79
|
-
TASK_ROUTER_VERSION = 'v1'
|
80
|
-
TASK_ROUTER_BASE_URL = 'https://taskrouter.twilio.com'
|
81
|
-
TASK_ROUTER_WEBSOCKET_BASE_URL = 'https://event-bridge.twilio.com/v1/wschannels'
|
81
|
+
TASK_ROUTER_VERSION = 'v1'.freeze
|
82
|
+
TASK_ROUTER_BASE_URL = 'https://taskrouter.twilio.com'.freeze
|
83
|
+
TASK_ROUTER_WEBSOCKET_BASE_URL = 'https://event-bridge.twilio.com/v1/wschannels'.freeze
|
82
84
|
|
83
85
|
def self.workspaces
|
84
86
|
[TASK_ROUTER_BASE_URL, TASK_ROUTER_VERSION, 'Workspaces'].join('/')
|
@@ -93,63 +95,63 @@ module Twilio
|
|
93
95
|
end
|
94
96
|
|
95
97
|
def self.tasks(workspace_sid)
|
96
|
-
[
|
98
|
+
[workspace(workspace_sid), 'Tasks'].join('/')
|
97
99
|
end
|
98
100
|
|
99
101
|
def self.task(workspace_sid, tasks_sid)
|
100
|
-
[
|
102
|
+
[workspace(workspace_sid), 'Tasks', tasks_sid].join('/')
|
101
103
|
end
|
102
104
|
|
103
105
|
def self.all_tasks(workspace_sid)
|
104
|
-
[
|
106
|
+
[workspace(workspace_sid), 'Tasks', '**'].join('/')
|
105
107
|
end
|
106
108
|
|
107
109
|
def self.task_queues(workspace_sid)
|
108
|
-
[
|
110
|
+
[workspace(workspace_sid), 'TaskQueues'].join('/')
|
109
111
|
end
|
110
112
|
|
111
113
|
def self.task_queue(workspace_sid, taskqueue_sid)
|
112
|
-
[
|
114
|
+
[workspace(workspace_sid), 'TaskQueues', taskqueue_sid].join('/')
|
113
115
|
end
|
114
116
|
|
115
117
|
def self.all_task_queues(workspace_sid)
|
116
|
-
[
|
118
|
+
[workspace(workspace_sid), 'TaskQueues', '**'].join('/')
|
117
119
|
end
|
118
120
|
|
119
121
|
def self.activities(workspace_sid)
|
120
|
-
[
|
122
|
+
[workspace(workspace_sid), 'Activities'].join('/')
|
121
123
|
end
|
122
124
|
|
123
125
|
def self.activity(workspace_sid, activity_sid)
|
124
|
-
[
|
126
|
+
[workspace(workspace_sid), 'Activities', activity_sid].join('/')
|
125
127
|
end
|
126
128
|
|
127
129
|
def self.all_activities(workspace_sid)
|
128
|
-
[
|
130
|
+
[workspace(workspace_sid), 'Activities', '**'].join('/')
|
129
131
|
end
|
130
132
|
|
131
133
|
def self.workers(workspace_sid)
|
132
|
-
[
|
134
|
+
[workspace(workspace_sid), 'Workers'].join('/')
|
133
135
|
end
|
134
136
|
|
135
137
|
def self.worker(workspace_sid, worker_sid)
|
136
|
-
[
|
138
|
+
[workspace(workspace_sid), 'Workers', worker_sid].join('/')
|
137
139
|
end
|
138
140
|
|
139
141
|
def self.all_workers(workspace_sid)
|
140
|
-
[
|
142
|
+
[workspace(workspace_sid), 'Workers', '**'].join('/')
|
141
143
|
end
|
142
144
|
|
143
145
|
def self.reservations(workspace_sid, worker_sid)
|
144
|
-
[
|
146
|
+
[worker(workspace_sid, worker_sid), 'Reservations'].join('/')
|
145
147
|
end
|
146
148
|
|
147
149
|
def self.reservation(workspace_sid, worker_sid, reservation_sid)
|
148
|
-
[
|
150
|
+
[worker(workspace_sid, worker_sid), 'Reservations', reservation_sid].join('/')
|
149
151
|
end
|
150
152
|
|
151
153
|
def self.all_reservations(workspace_sid, worker_sid)
|
152
|
-
[
|
154
|
+
[worker(workspace_sid, worker_sid), 'Reservations', '**'].join('/')
|
153
155
|
end
|
154
156
|
|
155
157
|
def self.web_socket_policies(account_sid, channel_sid)
|
@@ -161,12 +163,12 @@ module Twilio
|
|
161
163
|
|
162
164
|
def self.worker_policies(workspace_sid, worker_sid)
|
163
165
|
activities = Policy.new(self.activities(workspace_sid), 'GET', true)
|
164
|
-
tasks = Policy.new(
|
165
|
-
reservations = Policy.new(
|
166
|
-
fetch = Policy.new(
|
166
|
+
tasks = Policy.new(all_tasks(workspace_sid), 'GET', true)
|
167
|
+
reservations = Policy.new(all_reservations(workspace_sid, worker_sid), 'GET', true)
|
168
|
+
fetch = Policy.new(worker(workspace_sid, worker_sid), 'GET', true)
|
167
169
|
[activities, tasks, reservations, fetch]
|
168
170
|
end
|
169
171
|
end
|
170
172
|
end
|
171
173
|
end
|
172
|
-
end
|
174
|
+
end
|
@@ -27,8 +27,8 @@ module Twilio
|
|
27
27
|
# Access the public_key
|
28
28
|
# @param [String] sid The Credential Sid that uniquely identifies the Credential
|
29
29
|
# to fetch
|
30
|
-
# @return [PublicKeyList]
|
31
|
-
# @return [PublicKeyContext] if
|
30
|
+
# @return [PublicKeyList]
|
31
|
+
# @return [PublicKeyContext] if sid was passed.
|
32
32
|
def public_key(sid=:unset)
|
33
33
|
raise ArgumentError, 'sid cannot be nil' if sid.nil?
|
34
34
|
|
@@ -65,12 +65,6 @@ module Twilio
|
|
65
65
|
# When passed a block, yields PublicKeyInstance records from the API.
|
66
66
|
# This operation lazily loads records as efficiently as possible until the limit
|
67
67
|
# is reached.
|
68
|
-
# @param [Integer] limit Upper limit for the number of records to return. stream()
|
69
|
-
# guarantees to never return more than limit. Default is no limit
|
70
|
-
# @param [Integer] page_size Number of records to fetch per request, when not set will use
|
71
|
-
# the default value of 50 records. If no page_size is defined
|
72
|
-
# but a limit is defined, stream() will attempt to read the
|
73
|
-
# limit with the most efficient page size, i.e. min(limit, 1000)
|
74
68
|
def each
|
75
69
|
limits = @version.read_limits
|
76
70
|
|
@@ -290,7 +284,6 @@ module Twilio
|
|
290
284
|
##
|
291
285
|
# Generate an instance context for the instance, the context is capable of
|
292
286
|
# performing various actions. All instance actions are proxied to the context
|
293
|
-
# @param [Version] version Version that contains the resource
|
294
287
|
# @return [PublicKeyContext] PublicKeyContext for this PublicKeyInstance
|
295
288
|
def context
|
296
289
|
unless @instance_context
|
@@ -302,26 +295,38 @@ module Twilio
|
|
302
295
|
@instance_context
|
303
296
|
end
|
304
297
|
|
298
|
+
##
|
299
|
+
# @return [String] A 34 character string that uniquely identifies this resource.
|
305
300
|
def sid
|
306
301
|
@properties['sid']
|
307
302
|
end
|
308
303
|
|
304
|
+
##
|
305
|
+
# @return [String] AccountSid the Credential resource belongs to
|
309
306
|
def account_sid
|
310
307
|
@properties['account_sid']
|
311
308
|
end
|
312
309
|
|
310
|
+
##
|
311
|
+
# @return [String] A human readable description of this resource
|
313
312
|
def friendly_name
|
314
313
|
@properties['friendly_name']
|
315
314
|
end
|
316
315
|
|
316
|
+
##
|
317
|
+
# @return [Time] The date this resource was created
|
317
318
|
def date_created
|
318
319
|
@properties['date_created']
|
319
320
|
end
|
320
321
|
|
322
|
+
##
|
323
|
+
# @return [Time] The date this resource was last updated
|
321
324
|
def date_updated
|
322
325
|
@properties['date_updated']
|
323
326
|
end
|
324
327
|
|
328
|
+
##
|
329
|
+
# @return [String] The URI for this resource, relative to `https://accounts.twilio.com`
|
325
330
|
def url
|
326
331
|
@properties['url']
|
327
332
|
end
|
data/lib/twilio-ruby/rest/api.rb
CHANGED
@@ -32,98 +32,194 @@ module Twilio
|
|
32
32
|
self.v2010.account
|
33
33
|
end
|
34
34
|
|
35
|
+
##
|
36
|
+
# @param [String] sid A 34 character string that uniquely identifies this
|
37
|
+
# resource.
|
38
|
+
# @return [Twilio::REST::Api::V2010::AccountInstance] if sid was passed.
|
39
|
+
# @return [Twilio::REST::Api::V2010::AccountList]
|
35
40
|
def accounts(sid=:unset)
|
36
41
|
self.v2010.accounts(sid)
|
37
42
|
end
|
38
43
|
|
44
|
+
##
|
45
|
+
# @param [String] sid The sid
|
46
|
+
# @return [Twilio::REST::Api::V2010::AccountContext::AddressInstance] if sid was passed.
|
47
|
+
# @return [Twilio::REST::Api::V2010::AccountContext::AddressList]
|
39
48
|
def addresses(sid=:unset)
|
40
49
|
self.account.addresses(sid)
|
41
50
|
end
|
42
51
|
|
52
|
+
##
|
53
|
+
# @param [String] sid A 34 character string that uniquely identifies this
|
54
|
+
# resource.
|
55
|
+
# @return [Twilio::REST::Api::V2010::AccountContext::ApplicationInstance] if sid was passed.
|
56
|
+
# @return [Twilio::REST::Api::V2010::AccountContext::ApplicationList]
|
43
57
|
def applications(sid=:unset)
|
44
58
|
self.account.applications(sid)
|
45
59
|
end
|
46
60
|
|
61
|
+
##
|
62
|
+
# @param [String] connect_app_sid The unique id of the Connect App that was
|
63
|
+
# authorized.
|
64
|
+
# @return [Twilio::REST::Api::V2010::AccountContext::AuthorizedConnectAppInstance] if connect_app_sid was passed.
|
65
|
+
# @return [Twilio::REST::Api::V2010::AccountContext::AuthorizedConnectAppList]
|
47
66
|
def authorized_connect_apps(connect_app_sid=:unset)
|
48
67
|
self.account.authorized_connect_apps(connect_app_sid)
|
49
68
|
end
|
50
69
|
|
70
|
+
##
|
71
|
+
# @param [String] country_code The ISO Country code to lookup phone numbers for.
|
72
|
+
# @return [Twilio::REST::Api::V2010::AccountContext::AvailablePhoneNumberCountryInstance] if country_code was passed.
|
73
|
+
# @return [Twilio::REST::Api::V2010::AccountContext::AvailablePhoneNumberCountryList]
|
51
74
|
def available_phone_numbers(country_code=:unset)
|
52
75
|
self.account.available_phone_numbers(country_code)
|
53
76
|
end
|
54
77
|
|
78
|
+
##
|
79
|
+
# @param [String] sid A 34 character string that uniquely identifies this
|
80
|
+
# resource.
|
81
|
+
# @return [Twilio::REST::Api::V2010::AccountContext::CallInstance] if sid was passed.
|
82
|
+
# @return [Twilio::REST::Api::V2010::AccountContext::CallList]
|
55
83
|
def calls(sid=:unset)
|
56
84
|
self.account.calls(sid)
|
57
85
|
end
|
58
86
|
|
87
|
+
##
|
88
|
+
# @param [String] sid A 34 character string that uniquely identifies this
|
89
|
+
# conference.
|
90
|
+
# @return [Twilio::REST::Api::V2010::AccountContext::ConferenceInstance] if sid was passed.
|
91
|
+
# @return [Twilio::REST::Api::V2010::AccountContext::ConferenceList]
|
59
92
|
def conferences(sid=:unset)
|
60
93
|
self.account.conferences(sid)
|
61
94
|
end
|
62
95
|
|
96
|
+
##
|
97
|
+
# @param [String] sid The unique id of this Connect App.
|
98
|
+
# @return [Twilio::REST::Api::V2010::AccountContext::ConnectAppInstance] if sid was passed.
|
99
|
+
# @return [Twilio::REST::Api::V2010::AccountContext::ConnectAppList]
|
63
100
|
def connect_apps(sid=:unset)
|
64
101
|
self.account.connect_apps(sid)
|
65
102
|
end
|
66
103
|
|
104
|
+
##
|
105
|
+
# @param [String] sid A 34 character string that uniquely identifies this
|
106
|
+
# resource.
|
107
|
+
# @return [Twilio::REST::Api::V2010::AccountContext::IncomingPhoneNumberInstance] if sid was passed.
|
108
|
+
# @return [Twilio::REST::Api::V2010::AccountContext::IncomingPhoneNumberList]
|
67
109
|
def incoming_phone_numbers(sid=:unset)
|
68
110
|
self.account.incoming_phone_numbers(sid)
|
69
111
|
end
|
70
112
|
|
113
|
+
##
|
114
|
+
# @param [String] sid The sid
|
115
|
+
# @return [Twilio::REST::Api::V2010::AccountContext::KeyInstance] if sid was passed.
|
116
|
+
# @return [Twilio::REST::Api::V2010::AccountContext::KeyList]
|
71
117
|
def keys(sid=:unset)
|
72
118
|
self.account.keys(sid)
|
73
119
|
end
|
74
120
|
|
121
|
+
##
|
122
|
+
# @param [String] sid A 34 character string that uniquely identifies this
|
123
|
+
# resource.
|
124
|
+
# @return [Twilio::REST::Api::V2010::AccountContext::MessageInstance] if sid was passed.
|
125
|
+
# @return [Twilio::REST::Api::V2010::AccountContext::MessageList]
|
75
126
|
def messages(sid=:unset)
|
76
127
|
self.account.messages(sid)
|
77
128
|
end
|
78
129
|
|
130
|
+
##
|
131
|
+
# @return [Twilio::REST::Api::V2010::AccountContext::NewKeyInstance]
|
79
132
|
def new_keys
|
80
133
|
self.account.new_keys()
|
81
134
|
end
|
82
135
|
|
136
|
+
##
|
137
|
+
# @return [Twilio::REST::Api::V2010::AccountContext::NewSigningKeyInstance]
|
83
138
|
def new_signing_keys
|
84
139
|
self.account.new_signing_keys()
|
85
140
|
end
|
86
141
|
|
142
|
+
##
|
143
|
+
# @param [String] sid A 34 character string that uniquely identifies this
|
144
|
+
# resource.
|
145
|
+
# @return [Twilio::REST::Api::V2010::AccountContext::NotificationInstance] if sid was passed.
|
146
|
+
# @return [Twilio::REST::Api::V2010::AccountContext::NotificationList]
|
87
147
|
def notifications(sid=:unset)
|
88
148
|
self.account.notifications(sid)
|
89
149
|
end
|
90
150
|
|
151
|
+
##
|
152
|
+
# @param [String] sid A 34 character string that uniquely identifies this
|
153
|
+
# resource.
|
154
|
+
# @return [Twilio::REST::Api::V2010::AccountContext::OutgoingCallerIdInstance] if sid was passed.
|
155
|
+
# @return [Twilio::REST::Api::V2010::AccountContext::OutgoingCallerIdList]
|
91
156
|
def outgoing_caller_ids(sid=:unset)
|
92
157
|
self.account.outgoing_caller_ids(sid)
|
93
158
|
end
|
94
159
|
|
160
|
+
##
|
161
|
+
# @param [String] sid A 34 character string that uniquely identifies this queue.
|
162
|
+
# @return [Twilio::REST::Api::V2010::AccountContext::QueueInstance] if sid was passed.
|
163
|
+
# @return [Twilio::REST::Api::V2010::AccountContext::QueueList]
|
95
164
|
def queues(sid=:unset)
|
96
165
|
self.account.queues(sid)
|
97
166
|
end
|
98
167
|
|
168
|
+
##
|
169
|
+
# @param [String] sid A 34 character string that uniquely identifies this
|
170
|
+
# resource.
|
171
|
+
# @return [Twilio::REST::Api::V2010::AccountContext::RecordingInstance] if sid was passed.
|
172
|
+
# @return [Twilio::REST::Api::V2010::AccountContext::RecordingList]
|
99
173
|
def recordings(sid=:unset)
|
100
174
|
self.account.recordings(sid)
|
101
175
|
end
|
102
176
|
|
177
|
+
##
|
178
|
+
# @param [String] sid The sid
|
179
|
+
# @return [Twilio::REST::Api::V2010::AccountContext::SigningKeyInstance] if sid was passed.
|
180
|
+
# @return [Twilio::REST::Api::V2010::AccountContext::SigningKeyList]
|
103
181
|
def signing_keys(sid=:unset)
|
104
182
|
self.account.signing_keys(sid)
|
105
183
|
end
|
106
184
|
|
185
|
+
##
|
186
|
+
# @return [Twilio::REST::Api::V2010::AccountContext::SipInstance]
|
107
187
|
def sip
|
108
188
|
self.account.sip()
|
109
189
|
end
|
110
190
|
|
191
|
+
##
|
192
|
+
# @param [String] sid A 34 character string that uniquely identifies this
|
193
|
+
# resource.
|
194
|
+
# @return [Twilio::REST::Api::V2010::AccountContext::ShortCodeInstance] if sid was passed.
|
195
|
+
# @return [Twilio::REST::Api::V2010::AccountContext::ShortCodeList]
|
111
196
|
def short_codes(sid=:unset)
|
112
197
|
self.account.short_codes(sid)
|
113
198
|
end
|
114
199
|
|
200
|
+
##
|
201
|
+
# @return [Twilio::REST::Api::V2010::AccountContext::TokenInstance]
|
115
202
|
def tokens
|
116
203
|
self.account.tokens()
|
117
204
|
end
|
118
205
|
|
206
|
+
##
|
207
|
+
# @param [String] sid A 34 character string that uniquely identifies this
|
208
|
+
# resource.
|
209
|
+
# @return [Twilio::REST::Api::V2010::AccountContext::TranscriptionInstance] if sid was passed.
|
210
|
+
# @return [Twilio::REST::Api::V2010::AccountContext::TranscriptionList]
|
119
211
|
def transcriptions(sid=:unset)
|
120
212
|
self.account.transcriptions(sid)
|
121
213
|
end
|
122
214
|
|
215
|
+
##
|
216
|
+
# @return [Twilio::REST::Api::V2010::AccountContext::UsageInstance]
|
123
217
|
def usage
|
124
218
|
self.account.usage()
|
125
219
|
end
|
126
220
|
|
221
|
+
##
|
222
|
+
# @return [Twilio::REST::Api::V2010::AccountContext::ValidationRequestInstance]
|
127
223
|
def validation_requests
|
128
224
|
self.account.validation_requests()
|
129
225
|
end
|