Module: Twilio

Extended by:
SingleForwardable
Defined in:
lib/twilio-ruby/rest/api.rb,
lib/twilio-ruby.rb,
lib/twilio-ruby/util.rb,
lib/twilio-ruby/jwt/jwt.rb,
lib/twilio-ruby/version.rb,
lib/twilio-ruby/rest/fax.rb,
lib/twilio-ruby/rest/chat.rb,
lib/twilio-ruby/rest/sync.rb,
lib/twilio-ruby/rest/proxy.rb,
lib/twilio-ruby/rest/video.rb,
lib/twilio-ruby/rest/voice.rb,
lib/twilio-ruby/rest/client.rb,
lib/twilio-ruby/rest/events.rb,
lib/twilio-ruby/rest/fax/v1.rb,
lib/twilio-ruby/rest/notify.rb,
lib/twilio-ruby/rest/studio.rb,
lib/twilio-ruby/rest/verify.rb,
lib/twilio-ruby/twiml/twiml.rb,
lib/twilio-ruby/rest/chat/v1.rb,
lib/twilio-ruby/rest/chat/v2.rb,
lib/twilio-ruby/rest/lookups.rb,
lib/twilio-ruby/rest/monitor.rb,
lib/twilio-ruby/rest/numbers.rb,
lib/twilio-ruby/rest/preview.rb,
lib/twilio-ruby/rest/pricing.rb,
lib/twilio-ruby/rest/sync/v1.rb,
lib/twilio-ruby/rest/accounts.rb,
lib/twilio-ruby/rest/flex_api.rb,
lib/twilio-ruby/rest/insights.rb,
lib/twilio-ruby/rest/proxy/v1.rb,
lib/twilio-ruby/rest/supersim.rb,
lib/twilio-ruby/rest/trunking.rb,
lib/twilio-ruby/rest/video/v1.rb,
lib/twilio-ruby/rest/voice/v1.rb,
lib/twilio-ruby/rest/wireless.rb,
lib/twilio-ruby/framework/page.rb,
lib/twilio-ruby/rest/api/v2010.rb,
lib/twilio-ruby/rest/autopilot.rb,
lib/twilio-ruby/rest/events/v1.rb,
lib/twilio-ruby/rest/messaging.rb,
lib/twilio-ruby/rest/notify/v1.rb,
lib/twilio-ruby/rest/studio/v1.rb,
lib/twilio-ruby/rest/studio/v2.rb,
lib/twilio-ruby/rest/verify/v2.rb,
lib/twilio-ruby/framework/error.rb,
lib/twilio-ruby/jwt/task_router.rb,
lib/twilio-ruby/rest/fax/v1/fax.rb,
lib/twilio-ruby/rest/lookups/v1.rb,
lib/twilio-ruby/rest/monitor/v1.rb,
lib/twilio-ruby/rest/numbers/v2.rb,
lib/twilio-ruby/rest/pricing/v1.rb,
lib/twilio-ruby/rest/pricing/v2.rb,
lib/twilio-ruby/rest/serverless.rb,
lib/twilio-ruby/rest/taskrouter.rb,
lib/twilio-ruby/framework/domain.rb,
lib/twilio-ruby/framework/helper.rb,
lib/twilio-ruby/framework/values.rb,
lib/twilio-ruby/http/http_client.rb,
lib/twilio-ruby/jwt/access_token.rb,
lib/twilio-ruby/rest/accounts/v1.rb,
lib/twilio-ruby/rest/bulkexports.rb,
lib/twilio-ruby/rest/flex_api/v1.rb,
lib/twilio-ruby/rest/insights/v1.rb,
lib/twilio-ruby/rest/supersim/v1.rb,
lib/twilio-ruby/rest/trunking/v1.rb,
lib/twilio-ruby/rest/wireless/v1.rb,
lib/twilio-ruby/framework/request.rb,
lib/twilio-ruby/framework/version.rb,
lib/twilio-ruby/rest/autopilot/v1.rb,
lib/twilio-ruby/rest/ip_messaging.rb,
lib/twilio-ruby/rest/messaging/v1.rb,
lib/twilio-ruby/rest/preview/sync.rb,
lib/twilio-ruby/framework/resource.rb,
lib/twilio-ruby/framework/response.rb,
lib/twilio-ruby/rest/conversations.rb,
lib/twilio-ruby/rest/serverless/v1.rb,
lib/twilio-ruby/rest/taskrouter/v1.rb,
lib/twilio-ruby/rest/video/v1/room.rb,
lib/twilio-ruby/twiml/fax_response.rb,
lib/twilio-ruby/util/configuration.rb,
lib/twilio-ruby/framework/serialize.rb,
lib/twilio-ruby/rest/bulkexports/v1.rb,
lib/twilio-ruby/rest/events/v1/sink.rb,
lib/twilio-ruby/rest/studio/v1/flow.rb,
lib/twilio-ruby/rest/studio/v2/flow.rb,
lib/twilio-ruby/rest/verify/v2/form.rb,
lib/twilio-ruby/rest/chat/v1/service.rb,
lib/twilio-ruby/rest/chat/v2/service.rb,
lib/twilio-ruby/rest/ip_messaging/v1.rb,
lib/twilio-ruby/rest/ip_messaging/v2.rb,
lib/twilio-ruby/rest/supersim/v1/sim.rb,
lib/twilio-ruby/rest/sync/v1/service.rb,
lib/twilio-ruby/rest/wireless/v1/sim.rb,
lib/twilio-ruby/twiml/voice_response.rb,
lib/twilio-ruby/jwt/client_capability.rb,
lib/twilio-ruby/rest/conversations/v1.rb,
lib/twilio-ruby/rest/events/v1/schema.rb,
lib/twilio-ruby/rest/insights/v1/call.rb,
lib/twilio-ruby/rest/monitor/v1/alert.rb,
lib/twilio-ruby/rest/monitor/v1/event.rb,
lib/twilio-ruby/rest/preview/wireless.rb,
lib/twilio-ruby/rest/pricing/v1/voice.rb,
lib/twilio-ruby/rest/pricing/v2/voice.rb,
lib/twilio-ruby/rest/proxy/v1/service.rb,
lib/twilio-ruby/rest/api/v2010/account.rb,
lib/twilio-ruby/rest/notify/v1/service.rb,
lib/twilio-ruby/rest/supersim/v1/fleet.rb,
lib/twilio-ruby/rest/trunking/v1/trunk.rb,
lib/twilio-ruby/rest/verify/v2/service.rb,
lib/twilio-ruby/rest/chat/v1/credential.rb,
lib/twilio-ruby/rest/chat/v2/credential.rb,
lib/twilio-ruby/rest/preview/understand.rb,
lib/twilio-ruby/rest/video/v1/recording.rb,
lib/twilio-ruby/rest/voice/v1/ip_record.rb,
lib/twilio-ruby/rest/flex_api/v1/channel.rb,
lib/twilio-ruby/rest/preview/marketplace.rb,
lib/twilio-ruby/rest/supersim/v1/command.rb,
lib/twilio-ruby/rest/supersim/v1/network.rb,
lib/twilio-ruby/rest/voice/v1/byoc_trunk.rb,
lib/twilio-ruby/rest/wireless/v1/command.rb,
lib/twilio-ruby/twiml/messaging_response.rb,
lib/twilio-ruby/framework/obsolete_client.rb,
lib/twilio-ruby/framework/twilio_response.rb,
lib/twilio-ruby/rest/chat/v1/service/role.rb,
lib/twilio-ruby/rest/chat/v1/service/user.rb,
lib/twilio-ruby/rest/chat/v2/service/role.rb,
lib/twilio-ruby/rest/chat/v2/service/user.rb,
lib/twilio-ruby/rest/events/v1/event_type.rb,
lib/twilio-ruby/rest/fax/v1/fax/fax_media.rb,
lib/twilio-ruby/rest/messaging/v1/service.rb,
lib/twilio-ruby/rest/notify/v1/credential.rb,
lib/twilio-ruby/rest/preview/bulk_exports.rb,
lib/twilio-ruby/rest/preview/sync/service.rb,
lib/twilio-ruby/rest/preview/wireless/sim.rb,
lib/twilio-ruby/rest/pricing/v1/messaging.rb,
lib/twilio-ruby/rest/video/v1/composition.rb,
lib/twilio-ruby/rest/api/v2010/account/key.rb,
lib/twilio-ruby/rest/api/v2010/account/sip.rb,
lib/twilio-ruby/rest/bulkexports/v1/export.rb,
lib/twilio-ruby/rest/conversations/v1/role.rb,
lib/twilio-ruby/rest/conversations/v1/user.rb,
lib/twilio-ruby/rest/flex_api/v1/flex_flow.rb,
lib/twilio-ruby/rest/preview/trusted_comms.rb,
lib/twilio-ruby/rest/serverless/v1/service.rb,
lib/twilio-ruby/rest/wireless/v1/rate_plan.rb,
lib/twilio-ruby/security/request_validator.rb,
lib/twilio-ruby/rest/accounts/v1/credential.rb,
lib/twilio-ruby/rest/api/v2010/account/call.rb,
lib/twilio-ruby/rest/autopilot/v1/assistant.rb,
lib/twilio-ruby/rest/events/v1/subscription.rb,
lib/twilio-ruby/rest/insights/v1/call/event.rb,
lib/twilio-ruby/rest/preview/hosted_numbers.rb,
lib/twilio-ruby/rest/api/v2010/account/queue.rb,
lib/twilio-ruby/rest/api/v2010/account/token.rb,
lib/twilio-ruby/rest/api/v2010/account/usage.rb,
lib/twilio-ruby/rest/chat/v1/service/channel.rb,
lib/twilio-ruby/rest/chat/v2/service/binding.rb,
lib/twilio-ruby/rest/chat/v2/service/channel.rb,
lib/twilio-ruby/rest/flex_api/v1/web_channel.rb,
lib/twilio-ruby/rest/insights/v1/call/metric.rb,
lib/twilio-ruby/rest/ip_messaging/v1/service.rb,
lib/twilio-ruby/rest/ip_messaging/v2/service.rb,
lib/twilio-ruby/rest/lookups/v1/phone_number.rb,
lib/twilio-ruby/rest/pricing/v1/phone_number.rb,
lib/twilio-ruby/rest/pricing/v1/voice/number.rb,
lib/twilio-ruby/rest/pricing/v2/voice/number.rb,
lib/twilio-ruby/rest/studio/v2/flow_validate.rb,
lib/twilio-ruby/rest/taskrouter/v1/workspace.rb,
lib/twilio-ruby/rest/video/v1/room/recording.rb,
lib/twilio-ruby/rest/conversations/v1/service.rb,
lib/twilio-ruby/rest/events/v1/sink/sink_test.rb,
lib/twilio-ruby/rest/insights/v1/call/summary.rb,
lib/twilio-ruby/rest/preview/deployed_devices.rb,
lib/twilio-ruby/rest/preview/wireless/command.rb,
lib/twilio-ruby/rest/pricing/v1/voice/country.rb,
lib/twilio-ruby/rest/pricing/v2/voice/country.rb,
lib/twilio-ruby/rest/proxy/v1/service/session.rb,
lib/twilio-ruby/rest/studio/v1/flow/execution.rb,
lib/twilio-ruby/rest/studio/v2/flow/execution.rb,
lib/twilio-ruby/rest/studio/v2/flow/test_user.rb,
lib/twilio-ruby/rest/supersim/v1/usage_record.rb,
lib/twilio-ruby/rest/sync/v1/service/document.rb,
lib/twilio-ruby/rest/sync/v1/service/sync_map.rb,
lib/twilio-ruby/rest/verify/v2/service/entity.rb,
lib/twilio-ruby/rest/wireless/v1/usage_record.rb,
lib/twilio-ruby/rest/api/v2010/account/address.rb,
lib/twilio-ruby/rest/api/v2010/account/balance.rb,
lib/twilio-ruby/rest/api/v2010/account/message.rb,
lib/twilio-ruby/rest/api/v2010/account/new_key.rb,
lib/twilio-ruby/rest/bulkexports/v1/export/day.rb,
lib/twilio-ruby/rest/bulkexports/v1/export/job.rb,
lib/twilio-ruby/rest/flex_api/v1/configuration.rb,
lib/twilio-ruby/rest/messaging/v1/deactivation.rb,
lib/twilio-ruby/rest/notify/v1/service/binding.rb,
lib/twilio-ruby/rest/preview/trusted_comms/cps.rb,
lib/twilio-ruby/rest/studio/v1/flow/engagement.rb,
lib/twilio-ruby/rest/sync/v1/service/sync_list.rb,
lib/twilio-ruby/rest/verify/v2/service/webhook.rb,
lib/twilio-ruby/rest/video/v1/composition_hook.rb,
lib/twilio-ruby/rest/accounts/v1/credential/aws.rb,
lib/twilio-ruby/rest/ip_messaging/v1/credential.rb,
lib/twilio-ruby/rest/ip_messaging/v2/credential.rb,
lib/twilio-ruby/rest/preview/wireless/rate_plan.rb,
lib/twilio-ruby/rest/preview/wireless/sim/usage.rb,
lib/twilio-ruby/rest/voice/v1/connection_policy.rb,
lib/twilio-ruby/rest/voice/v1/source_ip_mapping.rb,
lib/twilio-ruby/rest/api/v2010/account/recording.rb,
lib/twilio-ruby/rest/autopilot/v1/assistant/task.rb,
lib/twilio-ruby/rest/conversations/v1/credential.rb,
lib/twilio-ruby/rest/preview/bulk_exports/export.rb,
lib/twilio-ruby/rest/proxy/v1/service/short_code.rb,
lib/twilio-ruby/rest/serverless/v1/service/asset.rb,
lib/twilio-ruby/rest/serverless/v1/service/build.rb,
lib/twilio-ruby/rest/sync/v1/service/sync_stream.rb,
lib/twilio-ruby/rest/trunking/v1/trunk/recording.rb,
lib/twilio-ruby/rest/video/v1/recording_settings.rb,
lib/twilio-ruby/rest/api/v2010/account/conference.rb,
lib/twilio-ruby/rest/api/v2010/account/short_code.rb,
lib/twilio-ruby/rest/api/v2010/account/sip/domain.rb,
lib/twilio-ruby/rest/autopilot/v1/assistant/query.rb,
lib/twilio-ruby/rest/events/v1/sink/sink_validate.rb,
lib/twilio-ruby/rest/ip_messaging/v1/service/role.rb,
lib/twilio-ruby/rest/ip_messaging/v1/service/user.rb,
lib/twilio-ruby/rest/ip_messaging/v2/service/role.rb,
lib/twilio-ruby/rest/ip_messaging/v2/service/user.rb,
lib/twilio-ruby/rest/preview/understand/assistant.rb,
lib/twilio-ruby/rest/pricing/v1/messaging/country.rb,
lib/twilio-ruby/rest/studio/v2/flow/flow_revision.rb,
lib/twilio-ruby/rest/taskrouter/v1/workspace/task.rb,
lib/twilio-ruby/rest/verify/v2/service/rate_limit.rb,
lib/twilio-ruby/rest/voice/v1/dialing_permissions.rb,
lib/twilio-ruby/rest/wireless/v1/sim/data_session.rb,
lib/twilio-ruby/rest/wireless/v1/sim/usage_record.rb,
lib/twilio-ruby/rest/api/v2010/account/application.rb,
lib/twilio-ruby/rest/api/v2010/account/connect_app.rb,
lib/twilio-ruby/rest/api/v2010/account/signing_key.rb,
lib/twilio-ruby/rest/conversations/v1/conversation.rb,
lib/twilio-ruby/rest/conversations/v1/service/role.rb,
lib/twilio-ruby/rest/conversations/v1/service/user.rb,
lib/twilio-ruby/rest/preview/sync/service/document.rb,
lib/twilio-ruby/rest/preview/sync/service/sync_map.rb,
lib/twilio-ruby/rest/proxy/v1/service/phone_number.rb,
lib/twilio-ruby/rest/taskrouter/v1/workspace/event.rb,
lib/twilio-ruby/rest/video/v1/composition_settings.rb,
lib/twilio-ruby/rest/api/v2010/account/call/payment.rb,
lib/twilio-ruby/rest/api/v2010/account/notification.rb,
lib/twilio-ruby/rest/api/v2010/account/queue/member.rb,
lib/twilio-ruby/rest/api/v2010/account/usage/record.rb,
lib/twilio-ruby/rest/autopilot/v1/assistant/webhook.rb,
lib/twilio-ruby/rest/autopilot/v1/restore_assistant.rb,
lib/twilio-ruby/rest/chat/v1/service/channel/invite.rb,
lib/twilio-ruby/rest/chat/v1/service/channel/member.rb,
lib/twilio-ruby/rest/chat/v2/service/channel/invite.rb,
lib/twilio-ruby/rest/chat/v2/service/channel/member.rb,
lib/twilio-ruby/rest/conversations/v1/configuration.rb,
lib/twilio-ruby/rest/notify/v1/service/notification.rb,
lib/twilio-ruby/rest/preview/deployed_devices/fleet.rb,
lib/twilio-ruby/rest/preview/sync/service/sync_list.rb,
lib/twilio-ruby/rest/preview/trusted_comms/business.rb,
lib/twilio-ruby/rest/serverless/v1/service/function.rb,
lib/twilio-ruby/rest/studio/v1/flow/engagement/step.rb,
lib/twilio-ruby/rest/taskrouter/v1/workspace/worker.rb,
lib/twilio-ruby/rest/trunking/v1/trunk/phone_number.rb,
lib/twilio-ruby/rest/verify/v2/service/access_token.rb,
lib/twilio-ruby/rest/verify/v2/service/verification.rb,
lib/twilio-ruby/rest/video/v1/room/room_participant.rb,
lib/twilio-ruby/rest/api/v2010/account/call/feedback.rb,
lib/twilio-ruby/rest/api/v2010/account/message/media.rb,
lib/twilio-ruby/rest/api/v2010/account/transcription.rb,
lib/twilio-ruby/rest/api/v2010/account/usage/trigger.rb,
lib/twilio-ruby/rest/autopilot/v1/assistant/defaults.rb,
lib/twilio-ruby/rest/autopilot/v1/assistant/dialogue.rb,
lib/twilio-ruby/rest/chat/v1/service/channel/message.rb,
lib/twilio-ruby/rest/chat/v2/service/channel/message.rb,
lib/twilio-ruby/rest/chat/v2/service/channel/webhook.rb,
lib/twilio-ruby/rest/events/v1/schema/schema_version.rb,
lib/twilio-ruby/rest/ip_messaging/v1/service/channel.rb,
lib/twilio-ruby/rest/ip_messaging/v2/service/binding.rb,
lib/twilio-ruby/rest/ip_messaging/v2/service/channel.rb,
lib/twilio-ruby/rest/messaging/v1/service/short_code.rb,
lib/twilio-ruby/rest/preview/bulk_exports/export/day.rb,
lib/twilio-ruby/rest/preview/bulk_exports/export/job.rb,
lib/twilio-ruby/rest/pricing/v1/phone_number/country.rb,
lib/twilio-ruby/rest/verify/v2/service/entity/factor.rb,
lib/twilio-ruby/rest/accounts/v1/auth_token_promotion.rb,
lib/twilio-ruby/rest/accounts/v1/secondary_auth_token.rb,
lib/twilio-ruby/rest/api/v2010/account/call/recording.rb,
lib/twilio-ruby/rest/conversations/v1/service/binding.rb,
lib/twilio-ruby/rest/numbers/v2/regulatory_compliance.rb,
lib/twilio-ruby/rest/preview/trusted_comms/phone_call.rb,
lib/twilio-ruby/rest/taskrouter/v1/workspace/activity.rb,
lib/twilio-ruby/rest/taskrouter/v1/workspace/workflow.rb,
lib/twilio-ruby/rest/accounts/v1/credential/public_key.rb,
lib/twilio-ruby/rest/api/v2010/account/new_signing_key.rb,
lib/twilio-ruby/rest/autopilot/v1/assistant/field_type.rb,
lib/twilio-ruby/rest/autopilot/v1/assistant/task/field.rb,
lib/twilio-ruby/rest/chat/v1/service/user/user_channel.rb,
lib/twilio-ruby/rest/chat/v2/service/user/user_binding.rb,
lib/twilio-ruby/rest/chat/v2/service/user/user_channel.rb,
lib/twilio-ruby/rest/messaging/v1/service/alpha_sender.rb,
lib/twilio-ruby/rest/messaging/v1/service/phone_number.rb,
lib/twilio-ruby/rest/preview/understand/assistant/task.rb,
lib/twilio-ruby/rest/serverless/v1/service/environment.rb,
lib/twilio-ruby/rest/trunking/v1/trunk/credential_list.rb,
lib/twilio-ruby/rest/trunking/v1/trunk/origination_url.rb,
lib/twilio-ruby/rest/api/v2010/account/message/feedback.rb,
lib/twilio-ruby/rest/autopilot/v1/assistant/model_build.rb,
lib/twilio-ruby/rest/autopilot/v1/assistant/style_sheet.rb,
lib/twilio-ruby/rest/autopilot/v1/assistant/task/sample.rb,
lib/twilio-ruby/rest/preview/deployed_devices/fleet/key.rb,
lib/twilio-ruby/rest/preview/trusted_comms/branded_call.rb,
lib/twilio-ruby/rest/preview/trusted_comms/current_call.rb,
lib/twilio-ruby/rest/preview/understand/assistant/query.rb,
lib/twilio-ruby/rest/supersim/v1/network_access_profile.rb,
lib/twilio-ruby/rest/taskrouter/v1/workspace/task_queue.rb,
lib/twilio-ruby/rest/verify/v2/service/entity/challenge.rb,
lib/twilio-ruby/rest/api/v2010/account/call/notification.rb,
lib/twilio-ruby/rest/bulkexports/v1/export_configuration.rb,
lib/twilio-ruby/rest/verify/v2/service/rate_limit/bucket.rb,
lib/twilio-ruby/rest/api/v2010/account/outgoing_caller_id.rb,
lib/twilio-ruby/rest/api/v2010/account/usage/record/daily.rb,
lib/twilio-ruby/rest/api/v2010/account/usage/record/today.rb,
lib/twilio-ruby/rest/api/v2010/account/validation_request.rb,
lib/twilio-ruby/rest/preview/marketplace/available_add_on.rb,
lib/twilio-ruby/rest/preview/marketplace/installed_add_on.rb,
lib/twilio-ruby/rest/proxy/v1/service/session/interaction.rb,
lib/twilio-ruby/rest/proxy/v1/service/session/participant.rb,
lib/twilio-ruby/rest/taskrouter/v1/workspace/task_channel.rb,
lib/twilio-ruby/rest/verify/v2/service/verification_check.rb,
lib/twilio-ruby/rest/voice/v1/dialing_permissions/country.rb,
lib/twilio-ruby/rest/api/v2010/account/sip/credential_list.rb,
lib/twilio-ruby/rest/api/v2010/account/usage/record/yearly.rb,
lib/twilio-ruby/rest/conversations/v1/conversation/message.rb,
lib/twilio-ruby/rest/conversations/v1/conversation/webhook.rb,
lib/twilio-ruby/rest/conversations/v1/service/conversation.rb,
lib/twilio-ruby/rest/preview/deployed_devices/fleet/device.rb,
lib/twilio-ruby/rest/preview/trusted_comms/branded_channel.rb,
lib/twilio-ruby/rest/preview/understand/assistant/dialogue.rb,
lib/twilio-ruby/rest/serverless/v1/service/environment/log.rb,
lib/twilio-ruby/rest/voice/v1/dialing_permissions/settings.rb,
lib/twilio-ruby/rest/api/v2010/account/conference/recording.rb,
lib/twilio-ruby/rest/api/v2010/account/usage/record/monthly.rb,
lib/twilio-ruby/rest/conversations/v1/configuration/webhook.rb,
lib/twilio-ruby/rest/conversations/v1/service/configuration.rb,
lib/twilio-ruby/rest/ip_messaging/v1/service/channel/invite.rb,
lib/twilio-ruby/rest/ip_messaging/v1/service/channel/member.rb,
lib/twilio-ruby/rest/ip_messaging/v2/service/channel/invite.rb,
lib/twilio-ruby/rest/ip_messaging/v2/service/channel/member.rb,
lib/twilio-ruby/rest/sync/v1/service/sync_map/sync_map_item.rb,
lib/twilio-ruby/rest/api/v2010/account/call/feedback_summary.rb,
lib/twilio-ruby/rest/api/v2010/account/incoming_phone_number.rb,
lib/twilio-ruby/rest/api/v2010/account/sip/domain/auth_types.rb,
lib/twilio-ruby/rest/api/v2010/account/usage/record/all_time.rb,
lib/twilio-ruby/rest/bulkexports/v1/export/export_custom_job.rb,
lib/twilio-ruby/rest/events/v1/subscription/subscribed_event.rb,
lib/twilio-ruby/rest/ip_messaging/v1/service/channel/message.rb,
lib/twilio-ruby/rest/ip_messaging/v2/service/channel/message.rb,
lib/twilio-ruby/rest/ip_messaging/v2/service/channel/webhook.rb,
lib/twilio-ruby/rest/numbers/v2/regulatory_compliance/bundle.rb,
lib/twilio-ruby/rest/preview/trusted_comms/business/insights.rb,
lib/twilio-ruby/rest/preview/understand/assistant/field_type.rb,
lib/twilio-ruby/rest/preview/understand/assistant/task/field.rb,
lib/twilio-ruby/rest/studio/v1/flow/execution/execution_step.rb,
lib/twilio-ruby/rest/studio/v2/flow/execution/execution_step.rb,
lib/twilio-ruby/rest/api/v2010/account/authorized_connect_app.rb,
lib/twilio-ruby/rest/api/v2010/account/available_phone_number.rb,
lib/twilio-ruby/rest/api/v2010/account/conference/participant.rb,
lib/twilio-ruby/rest/api/v2010/account/usage/record/yesterday.rb,
lib/twilio-ruby/rest/autopilot/v1/assistant/task/task_actions.rb,
lib/twilio-ruby/rest/preview/trusted_comms/brands_information.rb,
lib/twilio-ruby/rest/preview/understand/assistant/model_build.rb,
lib/twilio-ruby/rest/preview/understand/assistant/style_sheet.rb,
lib/twilio-ruby/rest/preview/understand/assistant/task/sample.rb,
lib/twilio-ruby/rest/serverless/v1/service/build/build_status.rb,
lib/twilio-ruby/rest/sync/v1/service/sync_list/sync_list_item.rb,
lib/twilio-ruby/rest/taskrouter/v1/workspace/task/reservation.rb,
lib/twilio-ruby/rest/trunking/v1/trunk/ip_access_control_list.rb,
lib/twilio-ruby/rest/api/v2010/account/recording/add_on_result.rb,
lib/twilio-ruby/rest/api/v2010/account/recording/transcription.rb,
lib/twilio-ruby/rest/api/v2010/account/usage/record/last_month.rb,
lib/twilio-ruby/rest/api/v2010/account/usage/record/this_month.rb,
lib/twilio-ruby/rest/conversations/v1/conversation/participant.rb,
lib/twilio-ruby/rest/ip_messaging/v1/service/user/user_channel.rb,
lib/twilio-ruby/rest/ip_messaging/v2/service/user/user_binding.rb,
lib/twilio-ruby/rest/ip_messaging/v2/service/user/user_channel.rb,
lib/twilio-ruby/rest/numbers/v2/regulatory_compliance/end_user.rb,
lib/twilio-ruby/rest/preview/bulk_exports/export_configuration.rb,
lib/twilio-ruby/rest/preview/deployed_devices/fleet/deployment.rb,
lib/twilio-ruby/rest/serverless/v1/service/asset/asset_version.rb,
lib/twilio-ruby/rest/verify/v2/service/messaging_configuration.rb,
lib/twilio-ruby/rest/preview/deployed_devices/fleet/certificate.rb,
lib/twilio-ruby/rest/preview/hosted_numbers/hosted_number_order.rb,
lib/twilio-ruby/rest/serverless/v1/service/environment/variable.rb,
lib/twilio-ruby/rest/studio/v1/flow/execution/execution_context.rb,
lib/twilio-ruby/rest/studio/v2/flow/execution/execution_context.rb,
lib/twilio-ruby/rest/sync/v1/service/sync_stream/stream_message.rb,
lib/twilio-ruby/rest/taskrouter/v1/workspace/worker/reservation.rb,
lib/twilio-ruby/rest/autopilot/v1/assistant/task/task_statistics.rb,
lib/twilio-ruby/rest/numbers/v2/regulatory_compliance/regulation.rb,
lib/twilio-ruby/rest/preview/sync/service/sync_map/sync_map_item.rb,
lib/twilio-ruby/rest/studio/v1/flow/engagement/step/step_context.rb,
lib/twilio-ruby/rest/api/v2010/account/sip/ip_access_control_list.rb,
lib/twilio-ruby/rest/serverless/v1/service/environment/deployment.rb,
lib/twilio-ruby/rest/studio/v1/flow/engagement/engagement_context.rb,
lib/twilio-ruby/rest/sync/v1/service/document/document_permission.rb,
lib/twilio-ruby/rest/sync/v1/service/sync_map/sync_map_permission.rb,
lib/twilio-ruby/rest/taskrouter/v1/workspace/workspace_statistics.rb,
lib/twilio-ruby/rest/api/v2010/account/available_phone_number/voip.rb,
lib/twilio-ruby/rest/api/v2010/account/incoming_phone_number/local.rb,
lib/twilio-ruby/rest/autopilot/v1/assistant/field_type/field_value.rb,
lib/twilio-ruby/rest/conversations/v1/service/conversation/message.rb,
lib/twilio-ruby/rest/conversations/v1/service/conversation/webhook.rb,
lib/twilio-ruby/rest/preview/bulk_exports/export/export_custom_job.rb,
lib/twilio-ruby/rest/preview/hosted_numbers/authorization_document.rb,
lib/twilio-ruby/rest/preview/sync/service/sync_list/sync_list_item.rb,
lib/twilio-ruby/rest/preview/trusted_comms/branded_channel/channel.rb,
lib/twilio-ruby/rest/taskrouter/v1/workspace/worker/worker_channel.rb,
lib/twilio-ruby/rest/api/v2010/account/available_phone_number/local.rb,
lib/twilio-ruby/rest/api/v2010/account/incoming_phone_number/mobile.rb,
lib/twilio-ruby/rest/numbers/v2/regulatory_compliance/end_user_type.rb,
lib/twilio-ruby/rest/preview/understand/assistant/task/task_actions.rb,
lib/twilio-ruby/rest/sync/v1/service/sync_list/sync_list_permission.rb,
lib/twilio-ruby/rest/api/v2010/account/available_phone_number/mobile.rb,
lib/twilio-ruby/rest/serverless/v1/service/function/function_version.rb,
lib/twilio-ruby/rest/api/v2010/account/address/dependent_phone_number.rb,
lib/twilio-ruby/rest/api/v2010/account/sip/credential_list/credential.rb,
lib/twilio-ruby/rest/taskrouter/v1/workspace/worker/worker_statistics.rb,
lib/twilio-ruby/rest/voice/v1/dialing_permissions/bulk_country_update.rb,
lib/twilio-ruby/rest/api/v2010/account/available_phone_number/national.rb,
lib/twilio-ruby/rest/api/v2010/account/incoming_phone_number/toll_free.rb,
lib/twilio-ruby/rest/api/v2010/account/recording/add_on_result/payload.rb,
lib/twilio-ruby/rest/conversations/v1/service/conversation/participant.rb,
lib/twilio-ruby/rest/preview/sync/service/document/document_permission.rb,
lib/twilio-ruby/rest/preview/sync/service/sync_map/sync_map_permission.rb,
lib/twilio-ruby/rest/preview/understand/assistant/task/task_statistics.rb,
lib/twilio-ruby/rest/taskrouter/v1/workspace/worker/workers_statistics.rb,
lib/twilio-ruby/rest/api/v2010/account/available_phone_number/toll_free.rb,
lib/twilio-ruby/rest/numbers/v2/regulatory_compliance/bundle/evaluation.rb,
lib/twilio-ruby/rest/conversations/v1/service/configuration/notification.rb,
lib/twilio-ruby/rest/preview/sync/service/sync_list/sync_list_permission.rb,
lib/twilio-ruby/rest/preview/understand/assistant/field_type/field_value.rb,
lib/twilio-ruby/rest/voice/v1/connection_policy/connection_policy_target.rb,
lib/twilio-ruby/rest/api/v2010/account/available_phone_number/shared_cost.rb,
lib/twilio-ruby/rest/api/v2010/account/sip/domain/credential_list_mapping.rb,
lib/twilio-ruby/rest/numbers/v2/regulatory_compliance/supporting_document.rb,
lib/twilio-ruby/rest/taskrouter/v1/workspace/workflow/workflow_statistics.rb,
lib/twilio-ruby/rest/conversations/v1/conversation/message/delivery_receipt.rb,
lib/twilio-ruby/rest/taskrouter/v1/workspace/workspace_real_time_statistics.rb,
lib/twilio-ruby/rest/api/v2010/account/incoming_phone_number/assigned_add_on.rb,
lib/twilio-ruby/rest/api/v2010/account/sip/ip_access_control_list/ip_address.rb,
lib/twilio-ruby/rest/numbers/v2/regulatory_compliance/bundle/item_assignment.rb,
lib/twilio-ruby/rest/preview/understand/assistant/assistant_fallback_actions.rb,
lib/twilio-ruby/rest/taskrouter/v1/workspace/workspace_cumulative_statistics.rb,
lib/twilio-ruby/rest/preview/trusted_comms/business/insights/impressions_rate.rb,
lib/twilio-ruby/rest/proxy/v1/service/session/participant/message_interaction.rb,
lib/twilio-ruby/rest/taskrouter/v1/workspace/task_queue/task_queue_statistics.rb,
lib/twilio-ruby/rest/numbers/v2/regulatory_compliance/supporting_document_type.rb,
lib/twilio-ruby/rest/preview/understand/assistant/assistant_initiation_actions.rb,
lib/twilio-ruby/rest/taskrouter/v1/workspace/task_queue/task_queues_statistics.rb,
lib/twilio-ruby/rest/api/v2010/account/sip/domain/auth_types/auth_calls_mapping.rb,
lib/twilio-ruby/rest/api/v2010/account/available_phone_number/machine_to_machine.rb,
lib/twilio-ruby/rest/api/v2010/account/sip/domain/ip_access_control_list_mapping.rb,
lib/twilio-ruby/rest/taskrouter/v1/workspace/worker/workers_real_time_statistics.rb,
lib/twilio-ruby/rest/taskrouter/v1/workspace/worker/workers_cumulative_statistics.rb,
lib/twilio-ruby/rest/voice/v1/dialing_permissions/country/highrisk_special_prefix.rb,
lib/twilio-ruby/rest/conversations/v1/service/conversation/message/delivery_receipt.rb,
lib/twilio-ruby/rest/studio/v1/flow/execution/execution_step/execution_step_context.rb,
lib/twilio-ruby/rest/studio/v2/flow/execution/execution_step/execution_step_context.rb,
lib/twilio-ruby/rest/taskrouter/v1/workspace/workflow/workflow_real_time_statistics.rb,
lib/twilio-ruby/rest/video/v1/room/room_participant/room_participant_subscribe_rule.rb,
lib/twilio-ruby/rest/preview/marketplace/available_add_on/available_add_on_extension.rb,
lib/twilio-ruby/rest/preview/marketplace/installed_add_on/installed_add_on_extension.rb,
lib/twilio-ruby/rest/taskrouter/v1/workspace/workflow/workflow_cumulative_statistics.rb,
lib/twilio-ruby/rest/video/v1/room/room_participant/room_participant_published_track.rb,
lib/twilio-ruby/rest/video/v1/room/room_participant/room_participant_subscribed_track.rb,
lib/twilio-ruby/rest/supersim/v1/network_access_profile/network_access_profile_network.rb,
lib/twilio-ruby/rest/api/v2010/account/sip/domain/auth_types/auth_registrations_mapping.rb,
lib/twilio-ruby/rest/taskrouter/v1/workspace/task_queue/task_queue_real_time_statistics.rb,
lib/twilio-ruby/rest/taskrouter/v1/workspace/task_queue/task_queue_cumulative_statistics.rb,
lib/twilio-ruby/rest/serverless/v1/service/function/function_version/function_version_content.rb,
lib/twilio-ruby/rest/preview/hosted_numbers/authorization_document/dependent_hosted_number_order.rb,
lib/twilio-ruby/rest/api/v2010/account/incoming_phone_number/assigned_add_on/assigned_add_on_extension.rb,
lib/twilio-ruby/rest/api/v2010/account/sip/domain/auth_types/auth_calls_mapping/auth_calls_credential_list_mapping.rb,
lib/twilio-ruby/rest/api/v2010/account/sip/domain/auth_types/auth_calls_mapping/auth_calls_ip_access_control_list_mapping.rb,
lib/twilio-ruby/rest/api/v2010/account/sip/domain/auth_types/auth_registrations_mapping/auth_registrations_credential_list_mapping.rb

Overview

This code was generated by \ / _ _ _| _ _

| (_)\/(_)(_|\/| |(/_  v1.0.0
     /       /

frozen_string_literal: true

Defined Under Namespace

Modules: HTTP, JWT, REST, Security, TwiML, Util Classes: Request, Response, TwilioResponse, Values

Constant Summary collapse

VERSION =
'5.41.0'

Class Method Summary collapse

Class Method Details

.configure {|configuration| ... } ⇒ Object

Pre-configure with account SID and auth token so that you don't need to pass them to various initializers each time.

Yields:

  • (configuration)

46
47
48
# File 'lib/twilio-ruby.rb', line 46

def self.configure(&block)
  yield configuration
end

.deserialize_iso8601_date(date) ⇒ Object


32
33
34
# File 'lib/twilio-ruby/framework/serialize.rb', line 32

def self.deserialize_iso8601_date(date)
  Date.parse(date) unless date.nil?
end

.deserialize_iso8601_datetime(date) ⇒ Object


36
37
38
# File 'lib/twilio-ruby/framework/serialize.rb', line 36

def self.deserialize_iso8601_datetime(date)
  Time.parse(date) unless date.nil?
end

.deserialize_rfc2822(date) ⇒ Object


28
29
30
# File 'lib/twilio-ruby/framework/serialize.rb', line 28

def self.deserialize_rfc2822(date)
  Time.rfc2822(date) unless date.nil?
end

.flatten(map, result = {}, previous = []) ⇒ Object


48
49
50
51
52
53
54
55
56
57
58
# File 'lib/twilio-ruby/framework/serialize.rb', line 48

def self.flatten(map, result = {}, previous = [])
  map.each do |key, value|
    if value.is_a? Hash
      self.flatten(value, result, previous + [key])
    else
      result[(previous + [key]).join('.')] = value
    end
  end

  result
end

.prefixed_collapsible_map(map, prefix) ⇒ Object


60
61
62
63
64
65
66
67
68
69
70
71
# File 'lib/twilio-ruby/framework/serialize.rb', line 60

def self.prefixed_collapsible_map(map, prefix)
  result = {}
  if map.is_a? Hash
    flattened = self.flatten(map)
    result = {}
    flattened.each do |key, value|
      result[prefix + '.' + key] = value
    end
  end

  result
end

.serialize_iso8601_date(date) ⇒ Object


4
5
6
7
8
9
10
11
12
13
14
# File 'lib/twilio-ruby/framework/serialize.rb', line 4

def self.serialize_iso8601_date(date)
  if date.eql?(:unset)
    date
  elsif date.is_a?(Date)
    date.iso8601
  elsif date.is_a?(Time)
    date.strftime('%Y-%m-%d')
  elsif date.is_a?(String)
    date
  end
end

.serialize_iso8601_datetime(date) ⇒ Object


16
17
18
19
20
21
22
23
24
25
26
# File 'lib/twilio-ruby/framework/serialize.rb', line 16

def self.serialize_iso8601_datetime(date)
  if date.eql?(:unset)
    date
  elsif date.is_a?(Date)
    Time.new(date.year, date.month, date.day).utc.iso8601
  elsif date.is_a?(Time)
    date.utc.iso8601
  elsif date.is_a?(String)
    date
  end
end

.serialize_list(input_list) ⇒ Object


73
74
75
76
77
78
79
80
# File 'lib/twilio-ruby/framework/serialize.rb', line 73

def self.serialize_list(input_list)
  return input_list unless input_list.is_a? Array
  result = []
  input_list.each do |e|
    result.push yield e
  end
  result
end

.serialize_object(object) ⇒ Object


40
41
42
43
44
45
46
# File 'lib/twilio-ruby/framework/serialize.rb', line 40

def self.serialize_object(object)
  if object.is_a?(Hash) || object.is_a?(Array)
    JSON.generate(object)
  else
    object
  end
end