twilio-ruby 7.1.0 → 7.2.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGES.md +39 -0
- data/Makefile +3 -0
- data/README.md +2 -2
- data/lib/twilio-ruby/base/client_base.rb +4 -1
- data/lib/twilio-ruby/rest/accounts/v1/auth_token_promotion.rb +2 -1
- data/lib/twilio-ruby/rest/accounts/v1/credential/aws.rb +8 -4
- data/lib/twilio-ruby/rest/accounts/v1/credential/public_key.rb +8 -4
- data/lib/twilio-ruby/rest/accounts/v1/safelist.rb +6 -3
- data/lib/twilio-ruby/rest/accounts/v1/secondary_auth_token.rb +4 -2
- data/lib/twilio-ruby/rest/api/v2010/account/address.rb +8 -4
- data/lib/twilio-ruby/rest/api/v2010/account/application.rb +8 -4
- data/lib/twilio-ruby/rest/api/v2010/account/authorized_connect_app.rb +2 -1
- data/lib/twilio-ruby/rest/api/v2010/account/available_phone_number_country.rb +2 -1
- data/lib/twilio-ruby/rest/api/v2010/account/balance.rb +2 -1
- data/lib/twilio-ruby/rest/api/v2010/account/call/notification.rb +2 -1
- data/lib/twilio-ruby/rest/api/v2010/account/call/payment.rb +4 -2
- data/lib/twilio-ruby/rest/api/v2010/account/call/recording.rb +8 -4
- data/lib/twilio-ruby/rest/api/v2010/account/call/siprec.rb +4 -2
- data/lib/twilio-ruby/rest/api/v2010/account/call/stream.rb +4 -2
- data/lib/twilio-ruby/rest/api/v2010/account/call/user_defined_message.rb +2 -1
- data/lib/twilio-ruby/rest/api/v2010/account/call/user_defined_message_subscription.rb +4 -2
- data/lib/twilio-ruby/rest/api/v2010/account/call.rb +9 -5
- data/lib/twilio-ruby/rest/api/v2010/account/conference/participant.rb +8 -4
- data/lib/twilio-ruby/rest/api/v2010/account/conference/recording.rb +6 -3
- data/lib/twilio-ruby/rest/api/v2010/account/conference.rb +4 -2
- data/lib/twilio-ruby/rest/api/v2010/account/connect_app.rb +6 -3
- data/lib/twilio-ruby/rest/api/v2010/account/incoming_phone_number/assigned_add_on/assigned_add_on_extension.rb +2 -1
- data/lib/twilio-ruby/rest/api/v2010/account/incoming_phone_number/assigned_add_on.rb +6 -3
- data/lib/twilio-ruby/rest/api/v2010/account/incoming_phone_number/local.rb +2 -1
- data/lib/twilio-ruby/rest/api/v2010/account/incoming_phone_number/mobile.rb +2 -1
- data/lib/twilio-ruby/rest/api/v2010/account/incoming_phone_number/toll_free.rb +2 -1
- data/lib/twilio-ruby/rest/api/v2010/account/incoming_phone_number.rb +8 -4
- data/lib/twilio-ruby/rest/api/v2010/account/key.rb +6 -3
- data/lib/twilio-ruby/rest/api/v2010/account/message/feedback.rb +2 -1
- data/lib/twilio-ruby/rest/api/v2010/account/message/media.rb +4 -2
- data/lib/twilio-ruby/rest/api/v2010/account/message.rb +10 -6
- data/lib/twilio-ruby/rest/api/v2010/account/new_key.rb +2 -1
- data/lib/twilio-ruby/rest/api/v2010/account/new_signing_key.rb +2 -1
- data/lib/twilio-ruby/rest/api/v2010/account/notification.rb +2 -1
- data/lib/twilio-ruby/rest/api/v2010/account/outgoing_caller_id.rb +6 -3
- data/lib/twilio-ruby/rest/api/v2010/account/queue/member.rb +4 -2
- data/lib/twilio-ruby/rest/api/v2010/account/queue.rb +8 -4
- data/lib/twilio-ruby/rest/api/v2010/account/recording/add_on_result/payload.rb +4 -2
- data/lib/twilio-ruby/rest/api/v2010/account/recording/add_on_result.rb +4 -2
- data/lib/twilio-ruby/rest/api/v2010/account/recording/transcription.rb +4 -2
- data/lib/twilio-ruby/rest/api/v2010/account/recording.rb +5 -3
- data/lib/twilio-ruby/rest/api/v2010/account/short_code.rb +4 -2
- data/lib/twilio-ruby/rest/api/v2010/account/signing_key.rb +6 -3
- data/lib/twilio-ruby/rest/api/v2010/account/sip/credential_list/credential.rb +8 -4
- data/lib/twilio-ruby/rest/api/v2010/account/sip/credential_list.rb +8 -4
- data/lib/twilio-ruby/rest/api/v2010/account/sip/domain/auth_types/auth_type_calls/auth_calls_credential_list_mapping.rb +6 -3
- data/lib/twilio-ruby/rest/api/v2010/account/sip/domain/auth_types/auth_type_calls/auth_calls_ip_access_control_list_mapping.rb +6 -3
- data/lib/twilio-ruby/rest/api/v2010/account/sip/domain/auth_types/auth_type_registrations/auth_registrations_credential_list_mapping.rb +6 -3
- data/lib/twilio-ruby/rest/api/v2010/account/sip/domain/credential_list_mapping.rb +6 -3
- data/lib/twilio-ruby/rest/api/v2010/account/sip/domain/ip_access_control_list_mapping.rb +6 -3
- data/lib/twilio-ruby/rest/api/v2010/account/sip/domain.rb +8 -4
- data/lib/twilio-ruby/rest/api/v2010/account/sip/ip_access_control_list/ip_address.rb +8 -4
- data/lib/twilio-ruby/rest/api/v2010/account/sip/ip_access_control_list.rb +8 -4
- data/lib/twilio-ruby/rest/api/v2010/account/token.rb +2 -1
- data/lib/twilio-ruby/rest/api/v2010/account/transcription.rb +4 -2
- data/lib/twilio-ruby/rest/api/v2010/account/usage/trigger.rb +8 -4
- data/lib/twilio-ruby/rest/api/v2010/account/validation_request.rb +2 -1
- data/lib/twilio-ruby/rest/api/v2010/account.rb +6 -3
- data/lib/twilio-ruby/rest/bulkexports/v1/export/day.rb +2 -1
- data/lib/twilio-ruby/rest/bulkexports/v1/export/export_custom_job.rb +2 -1
- data/lib/twilio-ruby/rest/bulkexports/v1/export/job.rb +4 -2
- data/lib/twilio-ruby/rest/bulkexports/v1/export.rb +2 -1
- data/lib/twilio-ruby/rest/bulkexports/v1/export_configuration.rb +4 -2
- data/lib/twilio-ruby/rest/chat/v1/credential.rb +8 -4
- data/lib/twilio-ruby/rest/chat/v1/service/channel/invite.rb +6 -3
- data/lib/twilio-ruby/rest/chat/v1/service/channel/member.rb +8 -4
- data/lib/twilio-ruby/rest/chat/v1/service/channel/message.rb +8 -4
- data/lib/twilio-ruby/rest/chat/v1/service/channel.rb +8 -4
- data/lib/twilio-ruby/rest/chat/v1/service/role.rb +8 -4
- data/lib/twilio-ruby/rest/chat/v1/service/user.rb +8 -4
- data/lib/twilio-ruby/rest/chat/v1/service.rb +8 -4
- data/lib/twilio-ruby/rest/chat/v2/credential.rb +8 -4
- data/lib/twilio-ruby/rest/chat/v2/service/binding.rb +4 -2
- data/lib/twilio-ruby/rest/chat/v2/service/channel/invite.rb +6 -3
- data/lib/twilio-ruby/rest/chat/v2/service/channel/member.rb +5 -4
- data/lib/twilio-ruby/rest/chat/v2/service/channel/message.rb +5 -4
- data/lib/twilio-ruby/rest/chat/v2/service/channel/webhook.rb +8 -4
- data/lib/twilio-ruby/rest/chat/v2/service/channel.rb +5 -4
- data/lib/twilio-ruby/rest/chat/v2/service/role.rb +8 -4
- data/lib/twilio-ruby/rest/chat/v2/service/user/user_binding.rb +4 -2
- data/lib/twilio-ruby/rest/chat/v2/service/user/user_channel.rb +5 -3
- data/lib/twilio-ruby/rest/chat/v2/service/user.rb +6 -4
- data/lib/twilio-ruby/rest/chat/v2/service.rb +8 -4
- data/lib/twilio-ruby/rest/chat/v3/channel.rb +1 -1
- data/lib/twilio-ruby/rest/client.rb +5 -0
- data/lib/twilio-ruby/rest/content/v1/content/approval_create.rb +3 -2
- data/lib/twilio-ruby/rest/content/v1/content/approval_fetch.rb +2 -1
- data/lib/twilio-ruby/rest/content/v1/content.rb +7 -4
- data/lib/twilio-ruby/rest/content/v2/content.rb +60 -3
- data/lib/twilio-ruby/rest/content/v2/content_and_approvals.rb +60 -3
- data/lib/twilio-ruby/rest/conversations/v1/address_configuration.rb +8 -4
- data/lib/twilio-ruby/rest/conversations/v1/configuration/webhook.rb +4 -2
- data/lib/twilio-ruby/rest/conversations/v1/configuration.rb +4 -2
- data/lib/twilio-ruby/rest/conversations/v1/conversation/message/delivery_receipt.rb +2 -1
- data/lib/twilio-ruby/rest/conversations/v1/conversation/message.rb +5 -4
- data/lib/twilio-ruby/rest/conversations/v1/conversation/participant.rb +5 -4
- data/lib/twilio-ruby/rest/conversations/v1/conversation/webhook.rb +8 -4
- data/lib/twilio-ruby/rest/conversations/v1/conversation.rb +5 -4
- data/lib/twilio-ruby/rest/conversations/v1/credential.rb +8 -4
- data/lib/twilio-ruby/rest/conversations/v1/role.rb +8 -4
- data/lib/twilio-ruby/rest/conversations/v1/service/binding.rb +4 -2
- data/lib/twilio-ruby/rest/conversations/v1/service/configuration/notification.rb +4 -2
- data/lib/twilio-ruby/rest/conversations/v1/service/configuration/webhook.rb +4 -2
- data/lib/twilio-ruby/rest/conversations/v1/service/configuration.rb +4 -2
- data/lib/twilio-ruby/rest/conversations/v1/service/conversation/message/delivery_receipt.rb +2 -1
- data/lib/twilio-ruby/rest/conversations/v1/service/conversation/message.rb +5 -4
- data/lib/twilio-ruby/rest/conversations/v1/service/conversation/participant.rb +5 -4
- data/lib/twilio-ruby/rest/conversations/v1/service/conversation/webhook.rb +8 -4
- data/lib/twilio-ruby/rest/conversations/v1/service/conversation.rb +5 -4
- data/lib/twilio-ruby/rest/conversations/v1/service/role.rb +8 -4
- data/lib/twilio-ruby/rest/conversations/v1/service/user/user_conversation.rb +6 -3
- data/lib/twilio-ruby/rest/conversations/v1/service/user.rb +5 -4
- data/lib/twilio-ruby/rest/conversations/v1/service.rb +6 -3
- data/lib/twilio-ruby/rest/conversations/v1/user/user_conversation.rb +6 -3
- data/lib/twilio-ruby/rest/conversations/v1/user.rb +5 -4
- data/lib/twilio-ruby/rest/events/v1/event_type.rb +16 -1
- data/lib/twilio-ruby/rest/events/v1/schema/schema_version.rb +2 -1
- data/lib/twilio-ruby/rest/events/v1/schema.rb +2 -1
- data/lib/twilio-ruby/rest/events/v1/sink/sink_test.rb +2 -1
- data/lib/twilio-ruby/rest/events/v1/sink/sink_validate.rb +2 -1
- data/lib/twilio-ruby/rest/events/v1/sink.rb +8 -4
- data/lib/twilio-ruby/rest/events/v1/subscription/subscribed_event.rb +8 -4
- data/lib/twilio-ruby/rest/events/v1/subscription.rb +8 -4
- data/lib/twilio-ruby/rest/flex_api/v1/assessments.rb +2 -2
- data/lib/twilio-ruby/rest/flex_api/v1/channel.rb +6 -3
- data/lib/twilio-ruby/rest/flex_api/v1/configuration.rb +5 -3
- data/lib/twilio-ruby/rest/flex_api/v1/flex_flow.rb +8 -4
- data/lib/twilio-ruby/rest/flex_api/v1/insights_assessments_comment.rb +1 -1
- data/lib/twilio-ruby/rest/flex_api/v1/insights_questionnaires.rb +4 -4
- data/lib/twilio-ruby/rest/flex_api/v1/insights_questionnaires_category.rb +3 -3
- data/lib/twilio-ruby/rest/flex_api/v1/insights_questionnaires_question.rb +3 -3
- data/lib/twilio-ruby/rest/flex_api/v1/insights_session.rb +1 -1
- data/lib/twilio-ruby/rest/flex_api/v1/insights_settings_answer_sets.rb +1 -1
- data/lib/twilio-ruby/rest/flex_api/v1/insights_settings_comment.rb +1 -1
- data/lib/twilio-ruby/rest/flex_api/v1/insights_user_roles.rb +1 -1
- data/lib/twilio-ruby/rest/flex_api/v1/interaction/interaction_channel/interaction_channel_invite.rb +2 -1
- data/lib/twilio-ruby/rest/flex_api/v1/interaction/interaction_channel/interaction_channel_participant.rb +4 -2
- data/lib/twilio-ruby/rest/flex_api/v1/interaction/interaction_channel.rb +4 -2
- data/lib/twilio-ruby/rest/flex_api/v1/interaction.rb +4 -2
- data/lib/twilio-ruby/rest/flex_api/v1/plugin/plugin_versions.rb +2 -2
- data/lib/twilio-ruby/rest/flex_api/v1/plugin.rb +3 -3
- data/lib/twilio-ruby/rest/flex_api/v1/plugin_archive.rb +1 -1
- data/lib/twilio-ruby/rest/flex_api/v1/plugin_configuration/configured_plugin.rb +1 -1
- data/lib/twilio-ruby/rest/flex_api/v1/plugin_configuration.rb +2 -2
- data/lib/twilio-ruby/rest/flex_api/v1/plugin_configuration_archive.rb +1 -1
- data/lib/twilio-ruby/rest/flex_api/v1/plugin_release.rb +2 -2
- data/lib/twilio-ruby/rest/flex_api/v1/plugin_version_archive.rb +1 -1
- data/lib/twilio-ruby/rest/flex_api/v1/provisioning_status.rb +2 -1
- data/lib/twilio-ruby/rest/flex_api/v1/web_channel.rb +8 -4
- data/lib/twilio-ruby/rest/flex_api/v2/flex_user.rb +2 -1
- data/lib/twilio-ruby/rest/flex_api/v2/web_channels.rb +1 -1
- data/lib/twilio-ruby/rest/frontline_api/v1/user.rb +4 -2
- data/lib/twilio-ruby/rest/insights/v1/call/annotation.rb +4 -2
- data/lib/twilio-ruby/rest/insights/v1/call/call_summary.rb +2 -1
- data/lib/twilio-ruby/rest/insights/v1/call.rb +2 -1
- data/lib/twilio-ruby/rest/insights/v1/conference/conference_participant.rb +2 -1
- data/lib/twilio-ruby/rest/insights/v1/conference.rb +2 -1
- data/lib/twilio-ruby/rest/insights/v1/room/participant.rb +2 -1
- data/lib/twilio-ruby/rest/insights/v1/room.rb +2 -1
- data/lib/twilio-ruby/rest/insights/v1/setting.rb +4 -2
- data/lib/twilio-ruby/rest/intelligence/v2/custom_operator.rb +7 -4
- data/lib/twilio-ruby/rest/intelligence/v2/operator.rb +2 -1
- data/lib/twilio-ruby/rest/intelligence/v2/operator_attachment.rb +4 -2
- data/lib/twilio-ruby/rest/intelligence/v2/operator_attachments.rb +2 -1
- data/lib/twilio-ruby/rest/intelligence/v2/operator_type.rb +2 -1
- data/lib/twilio-ruby/rest/intelligence/v2/prebuilt_operator.rb +2 -1
- data/lib/twilio-ruby/rest/intelligence/v2/service.rb +7 -4
- data/lib/twilio-ruby/rest/intelligence/v2/transcript/media.rb +2 -1
- data/lib/twilio-ruby/rest/intelligence/v2/transcript/operator_result.rb +2 -1
- data/lib/twilio-ruby/rest/intelligence/v2/transcript.rb +6 -3
- data/lib/twilio-ruby/rest/ip_messaging/v1/credential.rb +8 -4
- data/lib/twilio-ruby/rest/ip_messaging/v1/service/channel/invite.rb +6 -3
- data/lib/twilio-ruby/rest/ip_messaging/v1/service/channel/member.rb +8 -4
- data/lib/twilio-ruby/rest/ip_messaging/v1/service/channel/message.rb +8 -4
- data/lib/twilio-ruby/rest/ip_messaging/v1/service/channel.rb +8 -4
- data/lib/twilio-ruby/rest/ip_messaging/v1/service/role.rb +8 -4
- data/lib/twilio-ruby/rest/ip_messaging/v1/service/user.rb +8 -4
- data/lib/twilio-ruby/rest/ip_messaging/v1/service.rb +8 -4
- data/lib/twilio-ruby/rest/ip_messaging/v2/credential.rb +8 -4
- data/lib/twilio-ruby/rest/ip_messaging/v2/service/binding.rb +4 -2
- data/lib/twilio-ruby/rest/ip_messaging/v2/service/channel/invite.rb +6 -3
- data/lib/twilio-ruby/rest/ip_messaging/v2/service/channel/member.rb +5 -4
- data/lib/twilio-ruby/rest/ip_messaging/v2/service/channel/message.rb +5 -4
- data/lib/twilio-ruby/rest/ip_messaging/v2/service/channel/webhook.rb +8 -4
- data/lib/twilio-ruby/rest/ip_messaging/v2/service/channel.rb +5 -4
- data/lib/twilio-ruby/rest/ip_messaging/v2/service/role.rb +8 -4
- data/lib/twilio-ruby/rest/ip_messaging/v2/service/user/user_binding.rb +4 -2
- data/lib/twilio-ruby/rest/ip_messaging/v2/service/user/user_channel.rb +6 -3
- data/lib/twilio-ruby/rest/ip_messaging/v2/service/user.rb +6 -4
- data/lib/twilio-ruby/rest/ip_messaging/v2/service.rb +8 -4
- data/lib/twilio-ruby/rest/lookups/v1/phone_number.rb +2 -1
- data/lib/twilio-ruby/rest/lookups/v2/phone_number.rb +2 -1
- data/lib/twilio-ruby/rest/marketplace/v1/available_add_on/available_add_on_extension.rb +309 -0
- data/lib/twilio-ruby/rest/marketplace/v1/available_add_on.rb +336 -0
- data/lib/twilio-ruby/rest/marketplace/v1/installed_add_on/installed_add_on_extension.rb +352 -0
- data/lib/twilio-ruby/rest/marketplace/v1/installed_add_on/installed_add_on_usage.rb +170 -0
- data/lib/twilio-ruby/rest/marketplace/v1/installed_add_on.rb +465 -0
- data/lib/twilio-ruby/rest/marketplace/v1/module_data_management.rb +284 -0
- data/lib/twilio-ruby/rest/marketplace/v1.rb +79 -0
- data/lib/twilio-ruby/rest/marketplace.rb +6 -0
- data/lib/twilio-ruby/rest/marketplace_base.rb +38 -0
- data/lib/twilio-ruby/rest/messaging/v1/brand_registration/brand_registration_otp.rb +2 -1
- data/lib/twilio-ruby/rest/messaging/v1/brand_registration/brand_vetting.rb +4 -2
- data/lib/twilio-ruby/rest/messaging/v1/brand_registration.rb +6 -3
- data/lib/twilio-ruby/rest/messaging/v1/deactivations.rb +2 -1
- data/lib/twilio-ruby/rest/messaging/v1/domain_certs.rb +6 -3
- data/lib/twilio-ruby/rest/messaging/v1/domain_config.rb +4 -2
- data/lib/twilio-ruby/rest/messaging/v1/domain_config_messaging_service.rb +2 -1
- data/lib/twilio-ruby/rest/messaging/v1/external_campaign.rb +2 -1
- data/lib/twilio-ruby/rest/messaging/v1/linkshortening_messaging_service.rb +4 -2
- data/lib/twilio-ruby/rest/messaging/v1/linkshortening_messaging_service_domain_association.rb +2 -1
- data/lib/twilio-ruby/rest/messaging/v1/service/alpha_sender.rb +6 -3
- data/lib/twilio-ruby/rest/messaging/v1/service/channel_sender.rb +2 -1
- data/lib/twilio-ruby/rest/messaging/v1/service/phone_number.rb +6 -3
- data/lib/twilio-ruby/rest/messaging/v1/service/short_code.rb +6 -3
- data/lib/twilio-ruby/rest/messaging/v1/service/us_app_to_person.rb +8 -4
- data/lib/twilio-ruby/rest/messaging/v1/service/us_app_to_person_usecase.rb +2 -1
- data/lib/twilio-ruby/rest/messaging/v1/service.rb +8 -4
- data/lib/twilio-ruby/rest/messaging/v1/tollfree_verification.rb +23 -7
- data/lib/twilio-ruby/rest/messaging/v1/usecase.rb +2 -1
- data/lib/twilio-ruby/rest/messaging/v1.rb +1 -1
- data/lib/twilio-ruby/rest/microvisor/v1/account_config.rb +8 -4
- data/lib/twilio-ruby/rest/microvisor/v1/account_secret.rb +8 -4
- data/lib/twilio-ruby/rest/microvisor/v1/app/app_manifest.rb +2 -1
- data/lib/twilio-ruby/rest/microvisor/v1/app.rb +4 -2
- data/lib/twilio-ruby/rest/microvisor/v1/device/device_config.rb +8 -4
- data/lib/twilio-ruby/rest/microvisor/v1/device/device_secret.rb +8 -4
- data/lib/twilio-ruby/rest/microvisor/v1/device.rb +4 -2
- data/lib/twilio-ruby/rest/monitor/v1/alert.rb +2 -1
- data/lib/twilio-ruby/rest/monitor/v1/event.rb +2 -1
- data/lib/twilio-ruby/rest/notify/v1/credential.rb +8 -4
- data/lib/twilio-ruby/rest/notify/v1/service/binding.rb +6 -3
- data/lib/twilio-ruby/rest/notify/v1/service/notification.rb +2 -1
- data/lib/twilio-ruby/rest/notify/v1/service.rb +8 -4
- data/lib/twilio-ruby/rest/numbers/v1/bulk_eligibility.rb +5 -3
- data/lib/twilio-ruby/rest/numbers/v1/eligibility.rb +3 -2
- data/lib/twilio-ruby/rest/numbers/v1/porting_port_in.rb +14 -4
- data/lib/twilio-ruby/rest/numbers/v1/porting_port_in_phone_number.rb +29 -6
- data/lib/twilio-ruby/rest/numbers/v1/porting_portability.rb +2 -15
- data/lib/twilio-ruby/rest/numbers/v1/porting_webhook_configuration.rb +3 -2
- data/lib/twilio-ruby/rest/numbers/v1/porting_webhook_configuration_delete.rb +2 -1
- data/lib/twilio-ruby/rest/numbers/v1/porting_webhook_configuration_fetch.rb +2 -1
- data/lib/twilio-ruby/rest/numbers/v1/signing_request_configuration.rb +177 -0
- data/lib/twilio-ruby/rest/numbers/v1.rb +6 -0
- data/lib/twilio-ruby/rest/numbers/v2/authorization_document.rb +6 -3
- data/lib/twilio-ruby/rest/numbers/v2/bulk_hosted_number_order.rb +5 -3
- data/lib/twilio-ruby/rest/numbers/v2/hosted_number_order.rb +6 -3
- data/lib/twilio-ruby/rest/numbers/v2/regulatory_compliance/bundle/bundle_copy.rb +2 -1
- data/lib/twilio-ruby/rest/numbers/v2/regulatory_compliance/bundle/evaluation.rb +4 -2
- data/lib/twilio-ruby/rest/numbers/v2/regulatory_compliance/bundle/item_assignment.rb +6 -3
- data/lib/twilio-ruby/rest/numbers/v2/regulatory_compliance/bundle/replace_items.rb +2 -1
- data/lib/twilio-ruby/rest/numbers/v2/regulatory_compliance/bundle.rb +8 -4
- data/lib/twilio-ruby/rest/numbers/v2/regulatory_compliance/end_user.rb +8 -4
- data/lib/twilio-ruby/rest/numbers/v2/regulatory_compliance/end_user_type.rb +2 -1
- data/lib/twilio-ruby/rest/numbers/v2/regulatory_compliance/regulation.rb +2 -1
- data/lib/twilio-ruby/rest/numbers/v2/regulatory_compliance/supporting_document.rb +8 -4
- data/lib/twilio-ruby/rest/numbers/v2/regulatory_compliance/supporting_document_type.rb +2 -1
- data/lib/twilio-ruby/rest/oauth/v1/authorize.rb +2 -1
- data/lib/twilio-ruby/rest/oauth/v1/token.rb +2 -1
- data/lib/twilio-ruby/rest/preview/deployed_devices/fleet/certificate.rb +8 -4
- data/lib/twilio-ruby/rest/preview/deployed_devices/fleet/deployment.rb +8 -4
- data/lib/twilio-ruby/rest/preview/deployed_devices/fleet/device.rb +8 -4
- data/lib/twilio-ruby/rest/preview/deployed_devices/fleet/key.rb +8 -4
- data/lib/twilio-ruby/rest/preview/deployed_devices/fleet.rb +8 -4
- data/lib/twilio-ruby/rest/preview/hosted_numbers/authorization_document.rb +6 -3
- data/lib/twilio-ruby/rest/preview/hosted_numbers/hosted_number_order.rb +8 -4
- data/lib/twilio-ruby/rest/preview/marketplace/available_add_on/available_add_on_extension.rb +2 -1
- data/lib/twilio-ruby/rest/preview/marketplace/available_add_on.rb +2 -1
- data/lib/twilio-ruby/rest/preview/marketplace/installed_add_on/installed_add_on_extension.rb +4 -2
- data/lib/twilio-ruby/rest/preview/marketplace/installed_add_on.rb +8 -4
- data/lib/twilio-ruby/rest/preview/sync/service/document/document_permission.rb +6 -3
- data/lib/twilio-ruby/rest/preview/sync/service/document.rb +7 -4
- data/lib/twilio-ruby/rest/preview/sync/service/sync_list/sync_list_item.rb +6 -4
- data/lib/twilio-ruby/rest/preview/sync/service/sync_list/sync_list_permission.rb +6 -3
- data/lib/twilio-ruby/rest/preview/sync/service/sync_list.rb +6 -3
- data/lib/twilio-ruby/rest/preview/sync/service/sync_map/sync_map_item.rb +6 -4
- data/lib/twilio-ruby/rest/preview/sync/service/sync_map/sync_map_permission.rb +6 -3
- data/lib/twilio-ruby/rest/preview/sync/service/sync_map.rb +6 -3
- data/lib/twilio-ruby/rest/preview/sync/service.rb +8 -4
- data/lib/twilio-ruby/rest/preview/wireless/command.rb +4 -2
- data/lib/twilio-ruby/rest/preview/wireless/rate_plan.rb +8 -4
- data/lib/twilio-ruby/rest/preview/wireless/sim/usage.rb +2 -1
- data/lib/twilio-ruby/rest/preview/wireless/sim.rb +4 -2
- data/lib/twilio-ruby/rest/pricing/v1/messaging/country.rb +2 -1
- data/lib/twilio-ruby/rest/pricing/v1/phone_number/country.rb +2 -1
- data/lib/twilio-ruby/rest/pricing/v1/voice/country.rb +2 -1
- data/lib/twilio-ruby/rest/pricing/v1/voice/number.rb +2 -1
- data/lib/twilio-ruby/rest/pricing/v2/country.rb +2 -1
- data/lib/twilio-ruby/rest/pricing/v2/number.rb +2 -1
- data/lib/twilio-ruby/rest/pricing/v2/voice/country.rb +2 -1
- data/lib/twilio-ruby/rest/pricing/v2/voice/number.rb +2 -1
- data/lib/twilio-ruby/rest/proxy/v1/service/phone_number.rb +8 -4
- data/lib/twilio-ruby/rest/proxy/v1/service/session/interaction.rb +4 -2
- data/lib/twilio-ruby/rest/proxy/v1/service/session/participant/message_interaction.rb +4 -2
- data/lib/twilio-ruby/rest/proxy/v1/service/session/participant.rb +6 -3
- data/lib/twilio-ruby/rest/proxy/v1/service/session.rb +8 -4
- data/lib/twilio-ruby/rest/proxy/v1/service/short_code.rb +8 -4
- data/lib/twilio-ruby/rest/proxy/v1/service.rb +8 -4
- data/lib/twilio-ruby/rest/routes/v2/phone_number.rb +4 -2
- data/lib/twilio-ruby/rest/routes/v2/sip_domain.rb +4 -2
- data/lib/twilio-ruby/rest/routes/v2/trunk.rb +4 -2
- data/lib/twilio-ruby/rest/serverless/v1/service/asset/asset_version.rb +2 -1
- data/lib/twilio-ruby/rest/serverless/v1/service/asset.rb +8 -4
- data/lib/twilio-ruby/rest/serverless/v1/service/build/build_status.rb +2 -1
- data/lib/twilio-ruby/rest/serverless/v1/service/build.rb +6 -3
- data/lib/twilio-ruby/rest/serverless/v1/service/environment/deployment.rb +4 -2
- data/lib/twilio-ruby/rest/serverless/v1/service/environment/log.rb +2 -1
- data/lib/twilio-ruby/rest/serverless/v1/service/environment/variable.rb +8 -4
- data/lib/twilio-ruby/rest/serverless/v1/service/environment.rb +6 -3
- data/lib/twilio-ruby/rest/serverless/v1/service/function/function_version/function_version_content.rb +2 -1
- data/lib/twilio-ruby/rest/serverless/v1/service/function/function_version.rb +2 -1
- data/lib/twilio-ruby/rest/serverless/v1/service/function.rb +8 -4
- data/lib/twilio-ruby/rest/serverless/v1/service.rb +8 -4
- data/lib/twilio-ruby/rest/studio/v1/flow/engagement/engagement_context.rb +2 -1
- data/lib/twilio-ruby/rest/studio/v1/flow/engagement/step/step_context.rb +2 -1
- data/lib/twilio-ruby/rest/studio/v1/flow/engagement/step.rb +2 -1
- data/lib/twilio-ruby/rest/studio/v1/flow/engagement.rb +6 -3
- data/lib/twilio-ruby/rest/studio/v1/flow/execution/execution_context.rb +2 -1
- data/lib/twilio-ruby/rest/studio/v1/flow/execution/execution_step/execution_step_context.rb +2 -1
- data/lib/twilio-ruby/rest/studio/v1/flow/execution/execution_step.rb +2 -1
- data/lib/twilio-ruby/rest/studio/v1/flow/execution.rb +8 -4
- data/lib/twilio-ruby/rest/studio/v1/flow.rb +4 -2
- data/lib/twilio-ruby/rest/studio/v2/flow/execution/execution_context.rb +2 -1
- data/lib/twilio-ruby/rest/studio/v2/flow/execution/execution_step/execution_step_context.rb +2 -1
- data/lib/twilio-ruby/rest/studio/v2/flow/execution/execution_step.rb +2 -1
- data/lib/twilio-ruby/rest/studio/v2/flow/execution.rb +8 -4
- data/lib/twilio-ruby/rest/studio/v2/flow/flow_revision.rb +2 -1
- data/lib/twilio-ruby/rest/studio/v2/flow/flow_test_user.rb +4 -2
- data/lib/twilio-ruby/rest/studio/v2/flow.rb +8 -4
- data/lib/twilio-ruby/rest/studio/v2/flow_validate.rb +2 -1
- data/lib/twilio-ruby/rest/supersim/v1/esim_profile.rb +4 -2
- data/lib/twilio-ruby/rest/supersim/v1/fleet.rb +6 -3
- data/lib/twilio-ruby/rest/supersim/v1/ip_command.rb +4 -2
- data/lib/twilio-ruby/rest/supersim/v1/network.rb +2 -1
- data/lib/twilio-ruby/rest/supersim/v1/network_access_profile/network_access_profile_network.rb +6 -3
- data/lib/twilio-ruby/rest/supersim/v1/network_access_profile.rb +6 -3
- data/lib/twilio-ruby/rest/supersim/v1/sim.rb +6 -3
- data/lib/twilio-ruby/rest/supersim/v1/sms_command.rb +4 -2
- data/lib/twilio-ruby/rest/sync/v1/service/document/document_permission.rb +6 -3
- data/lib/twilio-ruby/rest/sync/v1/service/document.rb +7 -4
- data/lib/twilio-ruby/rest/sync/v1/service/sync_list/sync_list_item.rb +6 -4
- data/lib/twilio-ruby/rest/sync/v1/service/sync_list/sync_list_permission.rb +6 -3
- data/lib/twilio-ruby/rest/sync/v1/service/sync_list.rb +8 -4
- data/lib/twilio-ruby/rest/sync/v1/service/sync_map/sync_map_item.rb +6 -4
- data/lib/twilio-ruby/rest/sync/v1/service/sync_map/sync_map_permission.rb +6 -3
- data/lib/twilio-ruby/rest/sync/v1/service/sync_map.rb +8 -4
- data/lib/twilio-ruby/rest/sync/v1/service/sync_stream/stream_message.rb +2 -1
- data/lib/twilio-ruby/rest/sync/v1/service/sync_stream.rb +8 -4
- data/lib/twilio-ruby/rest/sync/v1/service.rb +8 -4
- data/lib/twilio-ruby/rest/taskrouter/v1/workspace/activity.rb +8 -4
- data/lib/twilio-ruby/rest/taskrouter/v1/workspace/event.rb +2 -1
- data/lib/twilio-ruby/rest/taskrouter/v1/workspace/task/reservation.rb +3 -2
- data/lib/twilio-ruby/rest/taskrouter/v1/workspace/task.rb +6 -4
- data/lib/twilio-ruby/rest/taskrouter/v1/workspace/task_channel.rb +8 -4
- data/lib/twilio-ruby/rest/taskrouter/v1/workspace/task_queue/task_queue_bulk_real_time_statistics.rb +3 -2
- data/lib/twilio-ruby/rest/taskrouter/v1/workspace/task_queue/task_queue_cumulative_statistics.rb +2 -1
- data/lib/twilio-ruby/rest/taskrouter/v1/workspace/task_queue/task_queue_real_time_statistics.rb +2 -1
- data/lib/twilio-ruby/rest/taskrouter/v1/workspace/task_queue/task_queue_statistics.rb +2 -1
- data/lib/twilio-ruby/rest/taskrouter/v1/workspace/task_queue.rb +8 -4
- data/lib/twilio-ruby/rest/taskrouter/v1/workspace/worker/reservation.rb +3 -2
- data/lib/twilio-ruby/rest/taskrouter/v1/workspace/worker/worker_channel.rb +4 -2
- data/lib/twilio-ruby/rest/taskrouter/v1/workspace/worker/worker_statistics.rb +2 -1
- data/lib/twilio-ruby/rest/taskrouter/v1/workspace/worker/workers_cumulative_statistics.rb +2 -1
- data/lib/twilio-ruby/rest/taskrouter/v1/workspace/worker/workers_real_time_statistics.rb +2 -1
- data/lib/twilio-ruby/rest/taskrouter/v1/workspace/worker/workers_statistics.rb +2 -1
- data/lib/twilio-ruby/rest/taskrouter/v1/workspace/worker.rb +6 -4
- data/lib/twilio-ruby/rest/taskrouter/v1/workspace/workflow/workflow_cumulative_statistics.rb +2 -1
- data/lib/twilio-ruby/rest/taskrouter/v1/workspace/workflow/workflow_real_time_statistics.rb +2 -1
- data/lib/twilio-ruby/rest/taskrouter/v1/workspace/workflow/workflow_statistics.rb +2 -1
- data/lib/twilio-ruby/rest/taskrouter/v1/workspace/workflow.rb +8 -4
- data/lib/twilio-ruby/rest/taskrouter/v1/workspace/workspace_cumulative_statistics.rb +2 -1
- data/lib/twilio-ruby/rest/taskrouter/v1/workspace/workspace_real_time_statistics.rb +2 -1
- data/lib/twilio-ruby/rest/taskrouter/v1/workspace/workspace_statistics.rb +2 -1
- data/lib/twilio-ruby/rest/taskrouter/v1/workspace.rb +8 -4
- data/lib/twilio-ruby/rest/trunking/v1/trunk/credential_list.rb +6 -3
- data/lib/twilio-ruby/rest/trunking/v1/trunk/ip_access_control_list.rb +6 -3
- data/lib/twilio-ruby/rest/trunking/v1/trunk/origination_url.rb +8 -4
- data/lib/twilio-ruby/rest/trunking/v1/trunk/phone_number.rb +6 -3
- data/lib/twilio-ruby/rest/trunking/v1/trunk/recording.rb +4 -2
- data/lib/twilio-ruby/rest/trunking/v1/trunk.rb +8 -4
- data/lib/twilio-ruby/rest/trusthub/v1/compliance_inquiries.rb +4 -2
- data/lib/twilio-ruby/rest/trusthub/v1/compliance_registration_inquiries.rb +4 -2
- data/lib/twilio-ruby/rest/trusthub/v1/compliance_tollfree_inquiries.rb +6 -2
- data/lib/twilio-ruby/rest/trusthub/v1/customer_profiles/customer_profiles_channel_endpoint_assignment.rb +6 -3
- data/lib/twilio-ruby/rest/trusthub/v1/customer_profiles/customer_profiles_entity_assignments.rb +6 -3
- data/lib/twilio-ruby/rest/trusthub/v1/customer_profiles/customer_profiles_evaluations.rb +4 -2
- data/lib/twilio-ruby/rest/trusthub/v1/customer_profiles.rb +8 -4
- data/lib/twilio-ruby/rest/trusthub/v1/end_user.rb +8 -4
- data/lib/twilio-ruby/rest/trusthub/v1/end_user_type.rb +2 -1
- data/lib/twilio-ruby/rest/trusthub/v1/policies.rb +2 -1
- data/lib/twilio-ruby/rest/trusthub/v1/supporting_document.rb +8 -4
- data/lib/twilio-ruby/rest/trusthub/v1/supporting_document_type.rb +2 -1
- data/lib/twilio-ruby/rest/trusthub/v1/trust_products/trust_products_channel_endpoint_assignment.rb +6 -3
- data/lib/twilio-ruby/rest/trusthub/v1/trust_products/trust_products_entity_assignments.rb +6 -3
- data/lib/twilio-ruby/rest/trusthub/v1/trust_products/trust_products_evaluations.rb +4 -2
- data/lib/twilio-ruby/rest/trusthub/v1/trust_products.rb +8 -4
- data/lib/twilio-ruby/rest/verify/v2/form.rb +2 -1
- data/lib/twilio-ruby/rest/verify/v2/safelist.rb +6 -3
- data/lib/twilio-ruby/rest/verify/v2/service/access_token.rb +4 -2
- data/lib/twilio-ruby/rest/verify/v2/service/entity/challenge/notification.rb +2 -1
- data/lib/twilio-ruby/rest/verify/v2/service/entity/challenge.rb +6 -3
- data/lib/twilio-ruby/rest/verify/v2/service/entity/factor.rb +6 -3
- data/lib/twilio-ruby/rest/verify/v2/service/entity/new_factor.rb +2 -1
- data/lib/twilio-ruby/rest/verify/v2/service/entity.rb +6 -3
- data/lib/twilio-ruby/rest/verify/v2/service/messaging_configuration.rb +8 -4
- data/lib/twilio-ruby/rest/verify/v2/service/rate_limit/bucket.rb +8 -4
- data/lib/twilio-ruby/rest/verify/v2/service/rate_limit.rb +8 -4
- data/lib/twilio-ruby/rest/verify/v2/service/verification.rb +6 -3
- data/lib/twilio-ruby/rest/verify/v2/service/verification_check.rb +2 -1
- data/lib/twilio-ruby/rest/verify/v2/service/webhook.rb +8 -4
- data/lib/twilio-ruby/rest/verify/v2/service.rb +8 -4
- data/lib/twilio-ruby/rest/verify/v2/verification_attempt.rb +2 -1
- data/lib/twilio-ruby/rest/verify/v2/verification_attempts_summary.rb +2 -1
- data/lib/twilio-ruby/rest/video/v1/composition.rb +6 -3
- data/lib/twilio-ruby/rest/video/v1/composition_hook.rb +8 -4
- data/lib/twilio-ruby/rest/video/v1/composition_settings.rb +4 -2
- data/lib/twilio-ruby/rest/video/v1/recording.rb +4 -2
- data/lib/twilio-ruby/rest/video/v1/recording_settings.rb +4 -2
- data/lib/twilio-ruby/rest/video/v1/room/participant/anonymize.rb +2 -1
- data/lib/twilio-ruby/rest/video/v1/room/participant/published_track.rb +2 -1
- data/lib/twilio-ruby/rest/video/v1/room/participant/subscribe_rules.rb +4 -2
- data/lib/twilio-ruby/rest/video/v1/room/participant/subscribed_track.rb +2 -1
- data/lib/twilio-ruby/rest/video/v1/room/participant.rb +4 -2
- data/lib/twilio-ruby/rest/video/v1/room/recording_rules.rb +4 -2
- data/lib/twilio-ruby/rest/video/v1/room/room_recording.rb +4 -2
- data/lib/twilio-ruby/rest/video/v1/room.rb +6 -3
- data/lib/twilio-ruby/rest/voice/v1/archived_call.rb +2 -1
- data/lib/twilio-ruby/rest/voice/v1/byoc_trunk.rb +8 -4
- data/lib/twilio-ruby/rest/voice/v1/connection_policy/connection_policy_target.rb +8 -4
- data/lib/twilio-ruby/rest/voice/v1/connection_policy.rb +8 -4
- data/lib/twilio-ruby/rest/voice/v1/dialing_permissions/bulk_country_update.rb +2 -1
- data/lib/twilio-ruby/rest/voice/v1/dialing_permissions/country.rb +2 -1
- data/lib/twilio-ruby/rest/voice/v1/dialing_permissions/settings.rb +4 -2
- data/lib/twilio-ruby/rest/voice/v1/ip_record.rb +8 -4
- data/lib/twilio-ruby/rest/voice/v1/source_ip_mapping.rb +8 -4
- data/lib/twilio-ruby/rest/wireless/v1/command.rb +6 -3
- data/lib/twilio-ruby/rest/wireless/v1/rate_plan.rb +8 -4
- data/lib/twilio-ruby/rest/wireless/v1/sim.rb +6 -3
- data/lib/twilio-ruby/version.rb +1 -1
- metadata +12 -2
@@ -152,8 +152,8 @@ module Twilio
|
|
152
152
|
x_twilio_webhook_enabled: :unset
|
153
153
|
)
|
154
154
|
|
155
|
+
headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', 'X-Twilio-Webhook-Enabled' => x_twilio_webhook_enabled, })
|
155
156
|
|
156
|
-
headers = Twilio::Values.of({ 'X-Twilio-Webhook-Enabled' => x_twilio_webhook_enabled, })
|
157
157
|
@version.delete('DELETE', @uri, headers: headers)
|
158
158
|
end
|
159
159
|
|
@@ -162,8 +162,9 @@ module Twilio
|
|
162
162
|
# @return [UserChannelInstance] Fetched UserChannelInstance
|
163
163
|
def fetch
|
164
164
|
|
165
|
+
headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', })
|
165
166
|
|
166
|
-
payload = @version.fetch('GET', @uri)
|
167
|
+
payload = @version.fetch('GET', @uri, headers: headers)
|
167
168
|
UserChannelInstance.new(
|
168
169
|
@version,
|
169
170
|
payload,
|
@@ -191,8 +192,9 @@ module Twilio
|
|
191
192
|
'LastConsumptionTimestamp' => Twilio.serialize_iso8601_datetime(last_consumption_timestamp),
|
192
193
|
})
|
193
194
|
|
195
|
+
headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', })
|
194
196
|
|
195
|
-
payload = @version.update('POST', @uri, data: data)
|
197
|
+
payload = @version.update('POST', @uri, data: data, headers: headers)
|
196
198
|
UserChannelInstance.new(
|
197
199
|
@version,
|
198
200
|
payload,
|
@@ -55,8 +55,8 @@ module Twilio
|
|
55
55
|
'FriendlyName' => friendly_name,
|
56
56
|
})
|
57
57
|
|
58
|
+
headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', 'X-Twilio-Webhook-Enabled' => x_twilio_webhook_enabled, })
|
58
59
|
|
59
|
-
headers = Twilio::Values.of({ 'X-Twilio-Webhook-Enabled' => x_twilio_webhook_enabled, })
|
60
60
|
payload = @version.create('POST', @uri, data: data, headers: headers)
|
61
61
|
UserInstance.new(
|
62
62
|
@version,
|
@@ -182,8 +182,9 @@ module Twilio
|
|
182
182
|
# @return [Boolean] True if delete succeeds, false otherwise
|
183
183
|
def delete
|
184
184
|
|
185
|
+
headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', })
|
185
186
|
|
186
|
-
@version.delete('DELETE', @uri)
|
187
|
+
@version.delete('DELETE', @uri, headers: headers)
|
187
188
|
end
|
188
189
|
|
189
190
|
##
|
@@ -191,8 +192,9 @@ module Twilio
|
|
191
192
|
# @return [UserInstance] Fetched UserInstance
|
192
193
|
def fetch
|
193
194
|
|
195
|
+
headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', })
|
194
196
|
|
195
|
-
payload = @version.fetch('GET', @uri)
|
197
|
+
payload = @version.fetch('GET', @uri, headers: headers)
|
196
198
|
UserInstance.new(
|
197
199
|
@version,
|
198
200
|
payload,
|
@@ -221,8 +223,8 @@ module Twilio
|
|
221
223
|
'FriendlyName' => friendly_name,
|
222
224
|
})
|
223
225
|
|
226
|
+
headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', 'X-Twilio-Webhook-Enabled' => x_twilio_webhook_enabled, })
|
224
227
|
|
225
|
-
headers = Twilio::Values.of({ 'X-Twilio-Webhook-Enabled' => x_twilio_webhook_enabled, })
|
226
228
|
payload = @version.update('POST', @uri, data: data, headers: headers)
|
227
229
|
UserInstance.new(
|
228
230
|
@version,
|
@@ -42,8 +42,9 @@ module Twilio
|
|
42
42
|
'FriendlyName' => friendly_name,
|
43
43
|
})
|
44
44
|
|
45
|
+
headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', })
|
45
46
|
|
46
|
-
payload = @version.create('POST', @uri, data: data)
|
47
|
+
payload = @version.create('POST', @uri, data: data, headers: headers)
|
47
48
|
ServiceInstance.new(
|
48
49
|
@version,
|
49
50
|
payload,
|
@@ -168,8 +169,9 @@ module Twilio
|
|
168
169
|
# @return [Boolean] True if delete succeeds, false otherwise
|
169
170
|
def delete
|
170
171
|
|
172
|
+
headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', })
|
171
173
|
|
172
|
-
@version.delete('DELETE', @uri)
|
174
|
+
@version.delete('DELETE', @uri, headers: headers)
|
173
175
|
end
|
174
176
|
|
175
177
|
##
|
@@ -177,8 +179,9 @@ module Twilio
|
|
177
179
|
# @return [ServiceInstance] Fetched ServiceInstance
|
178
180
|
def fetch
|
179
181
|
|
182
|
+
headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', })
|
180
183
|
|
181
|
-
payload = @version.fetch('GET', @uri)
|
184
|
+
payload = @version.fetch('GET', @uri, headers: headers)
|
182
185
|
ServiceInstance.new(
|
183
186
|
@version,
|
184
187
|
payload,
|
@@ -288,8 +291,9 @@ module Twilio
|
|
288
291
|
'Notifications.LogEnabled' => notifications_log_enabled,
|
289
292
|
})
|
290
293
|
|
294
|
+
headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', })
|
291
295
|
|
292
|
-
payload = @version.update('POST', @uri, data: data)
|
296
|
+
payload = @version.update('POST', @uri, data: data, headers: headers)
|
293
297
|
ServiceInstance.new(
|
294
298
|
@version,
|
295
299
|
payload,
|
@@ -73,8 +73,8 @@ module Twilio
|
|
73
73
|
'MessagingServiceSid' => messaging_service_sid,
|
74
74
|
})
|
75
75
|
|
76
|
+
headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', 'X-Twilio-Webhook-Enabled' => x_twilio_webhook_enabled, })
|
76
77
|
|
77
|
-
headers = Twilio::Values.of({ 'X-Twilio-Webhook-Enabled' => x_twilio_webhook_enabled, })
|
78
78
|
payload = @version.update('POST', @uri, data: data, headers: headers)
|
79
79
|
ChannelInstance.new(
|
80
80
|
@version,
|
@@ -82,6 +82,11 @@ module Twilio
|
|
82
82
|
@lookups ||= Lookups.new self
|
83
83
|
end
|
84
84
|
##
|
85
|
+
# Access the Marketplace Twilio Domain
|
86
|
+
def marketplace
|
87
|
+
@marketplace ||= Marketplace.new self
|
88
|
+
end
|
89
|
+
##
|
85
90
|
# Access the Messaging Twilio Domain
|
86
91
|
def messaging
|
87
92
|
@messaging ||= Messaging.new self
|
@@ -55,8 +55,9 @@ module Twilio
|
|
55
55
|
def create(content_approval_request: nil
|
56
56
|
)
|
57
57
|
|
58
|
-
headers = Twilio::Values.of({
|
59
|
-
|
58
|
+
headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', })
|
59
|
+
headers['Content-Type'] = 'application/json'
|
60
|
+
payload = @version.create('POST', @uri, headers: headers, data: content_approval_request.to_json)
|
60
61
|
ApprovalCreateInstance.new(
|
61
62
|
@version,
|
62
63
|
payload,
|
@@ -62,8 +62,9 @@ module Twilio
|
|
62
62
|
# @return [ApprovalFetchInstance] Fetched ApprovalFetchInstance
|
63
63
|
def fetch
|
64
64
|
|
65
|
+
headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', })
|
65
66
|
|
66
|
-
payload = @version.fetch('GET', @uri)
|
67
|
+
payload = @version.fetch('GET', @uri, headers: headers)
|
67
68
|
ApprovalFetchInstance.new(
|
68
69
|
@version,
|
69
70
|
payload,
|
@@ -424,8 +424,9 @@ module Twilio
|
|
424
424
|
def create(content_create_request: nil
|
425
425
|
)
|
426
426
|
|
427
|
-
headers = Twilio::Values.of({
|
428
|
-
|
427
|
+
headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', })
|
428
|
+
headers['Content-Type'] = 'application/json'
|
429
|
+
payload = @version.create('POST', @uri, headers: headers, data: content_create_request.to_json)
|
429
430
|
ContentInstance.new(
|
430
431
|
@version,
|
431
432
|
payload,
|
@@ -548,8 +549,9 @@ module Twilio
|
|
548
549
|
# @return [Boolean] True if delete succeeds, false otherwise
|
549
550
|
def delete
|
550
551
|
|
552
|
+
headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', })
|
551
553
|
|
552
|
-
@version.delete('DELETE', @uri)
|
554
|
+
@version.delete('DELETE', @uri, headers: headers)
|
553
555
|
end
|
554
556
|
|
555
557
|
##
|
@@ -557,8 +559,9 @@ module Twilio
|
|
557
559
|
# @return [ContentInstance] Fetched ContentInstance
|
558
560
|
def fetch
|
559
561
|
|
562
|
+
headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', })
|
560
563
|
|
561
|
-
payload = @version.fetch('GET', @uri)
|
564
|
+
payload = @version.fetch('GET', @uri, headers: headers)
|
562
565
|
ContentInstance.new(
|
563
566
|
@version,
|
564
567
|
payload,
|
@@ -35,6 +35,15 @@ module Twilio
|
|
35
35
|
# Lists ContentInstance records from the API as a list.
|
36
36
|
# Unlike stream(), this operation is eager and will load `limit` records into
|
37
37
|
# memory before returning.
|
38
|
+
# @param [String] sort_by_date Whether to sort by ascending or descending date updated
|
39
|
+
# @param [String] sort_by_content_name Whether to sort by ascending or descending content name
|
40
|
+
# @param [Time] date_created_after Filter by >=[date-time]
|
41
|
+
# @param [Time] date_created_before Filter by <=[date-time]
|
42
|
+
# @param [String] content_name Filter by Regex Pattern in content name
|
43
|
+
# @param [String] content Filter by Regex Pattern in template content
|
44
|
+
# @param [Array[String]] language Filter by array of valid language(s)
|
45
|
+
# @param [Array[String]] content_type Filter by array of contentType(s)
|
46
|
+
# @param [Array[String]] channel_eligibility Filter by array of ChannelEligibility(s), where ChannelEligibility=<channel>:<status>
|
38
47
|
# @param [Integer] limit Upper limit for the number of records to return. stream()
|
39
48
|
# guarantees to never return more than limit. Default is no limit
|
40
49
|
# @param [Integer] page_size Number of records to fetch per request, when
|
@@ -42,8 +51,17 @@ module Twilio
|
|
42
51
|
# but a limit is defined, stream() will attempt to read the limit with the most
|
43
52
|
# efficient page size, i.e. min(limit, 1000)
|
44
53
|
# @return [Array] Array of up to limit results
|
45
|
-
def list(limit: nil, page_size: nil)
|
54
|
+
def list(sort_by_date: :unset, sort_by_content_name: :unset, date_created_after: :unset, date_created_before: :unset, content_name: :unset, content: :unset, language: :unset, content_type: :unset, channel_eligibility: :unset, limit: nil, page_size: nil)
|
46
55
|
self.stream(
|
56
|
+
sort_by_date: sort_by_date,
|
57
|
+
sort_by_content_name: sort_by_content_name,
|
58
|
+
date_created_after: date_created_after,
|
59
|
+
date_created_before: date_created_before,
|
60
|
+
content_name: content_name,
|
61
|
+
content: content,
|
62
|
+
language: language,
|
63
|
+
content_type: content_type,
|
64
|
+
channel_eligibility: channel_eligibility,
|
47
65
|
limit: limit,
|
48
66
|
page_size: page_size
|
49
67
|
).entries
|
@@ -53,6 +71,15 @@ module Twilio
|
|
53
71
|
# Streams Instance records from the API as an Enumerable.
|
54
72
|
# This operation lazily loads records as efficiently as possible until the limit
|
55
73
|
# is reached.
|
74
|
+
# @param [String] sort_by_date Whether to sort by ascending or descending date updated
|
75
|
+
# @param [String] sort_by_content_name Whether to sort by ascending or descending content name
|
76
|
+
# @param [Time] date_created_after Filter by >=[date-time]
|
77
|
+
# @param [Time] date_created_before Filter by <=[date-time]
|
78
|
+
# @param [String] content_name Filter by Regex Pattern in content name
|
79
|
+
# @param [String] content Filter by Regex Pattern in template content
|
80
|
+
# @param [Array[String]] language Filter by array of valid language(s)
|
81
|
+
# @param [Array[String]] content_type Filter by array of contentType(s)
|
82
|
+
# @param [Array[String]] channel_eligibility Filter by array of ChannelEligibility(s), where ChannelEligibility=<channel>:<status>
|
56
83
|
# @param [Integer] limit Upper limit for the number of records to return. stream()
|
57
84
|
# guarantees to never return more than limit. Default is no limit
|
58
85
|
# @param [Integer] page_size Number of records to fetch per request, when
|
@@ -60,10 +87,19 @@ module Twilio
|
|
60
87
|
# but a limit is defined, stream() will attempt to read the limit with the most
|
61
88
|
# efficient page size, i.e. min(limit, 1000)
|
62
89
|
# @return [Enumerable] Enumerable that will yield up to limit results
|
63
|
-
def stream(limit: nil, page_size: nil)
|
90
|
+
def stream(sort_by_date: :unset, sort_by_content_name: :unset, date_created_after: :unset, date_created_before: :unset, content_name: :unset, content: :unset, language: :unset, content_type: :unset, channel_eligibility: :unset, limit: nil, page_size: nil)
|
64
91
|
limits = @version.read_limits(limit, page_size)
|
65
92
|
|
66
93
|
page = self.page(
|
94
|
+
sort_by_date: sort_by_date,
|
95
|
+
sort_by_content_name: sort_by_content_name,
|
96
|
+
date_created_after: date_created_after,
|
97
|
+
date_created_before: date_created_before,
|
98
|
+
content_name: content_name,
|
99
|
+
content: content,
|
100
|
+
language: language,
|
101
|
+
content_type: content_type,
|
102
|
+
channel_eligibility: channel_eligibility,
|
67
103
|
page_size: limits[:page_size], )
|
68
104
|
|
69
105
|
@version.stream(page, limit: limits[:limit], page_limit: limits[:page_limit])
|
@@ -86,12 +122,33 @@ module Twilio
|
|
86
122
|
##
|
87
123
|
# Retrieve a single page of ContentInstance records from the API.
|
88
124
|
# Request is executed immediately.
|
125
|
+
# @param [String] sort_by_date Whether to sort by ascending or descending date updated
|
126
|
+
# @param [String] sort_by_content_name Whether to sort by ascending or descending content name
|
127
|
+
# @param [Time] date_created_after Filter by >=[date-time]
|
128
|
+
# @param [Time] date_created_before Filter by <=[date-time]
|
129
|
+
# @param [String] content_name Filter by Regex Pattern in content name
|
130
|
+
# @param [String] content Filter by Regex Pattern in template content
|
131
|
+
# @param [Array[String]] language Filter by array of valid language(s)
|
132
|
+
# @param [Array[String]] content_type Filter by array of contentType(s)
|
133
|
+
# @param [Array[String]] channel_eligibility Filter by array of ChannelEligibility(s), where ChannelEligibility=<channel>:<status>
|
89
134
|
# @param [String] page_token PageToken provided by the API
|
90
135
|
# @param [Integer] page_number Page Number, this value is simply for client state
|
91
136
|
# @param [Integer] page_size Number of records to return, defaults to 50
|
92
137
|
# @return [Page] Page of ContentInstance
|
93
|
-
def page(page_token: :unset, page_number: :unset, page_size: :unset)
|
138
|
+
def page(sort_by_date: :unset, sort_by_content_name: :unset, date_created_after: :unset, date_created_before: :unset, content_name: :unset, content: :unset, language: :unset, content_type: :unset, channel_eligibility: :unset, page_token: :unset, page_number: :unset, page_size: :unset)
|
94
139
|
params = Twilio::Values.of({
|
140
|
+
'SortByDate' => sort_by_date,
|
141
|
+
'SortByContentName' => sort_by_content_name,
|
142
|
+
'DateCreatedAfter' => Twilio.serialize_iso8601_datetime(date_created_after),
|
143
|
+
'DateCreatedBefore' => Twilio.serialize_iso8601_datetime(date_created_before),
|
144
|
+
'ContentName' => content_name,
|
145
|
+
'Content' => content,
|
146
|
+
|
147
|
+
'Language' => Twilio.serialize_list(language) { |e| e },
|
148
|
+
|
149
|
+
'ContentType' => Twilio.serialize_list(content_type) { |e| e },
|
150
|
+
|
151
|
+
'ChannelEligibility' => Twilio.serialize_list(channel_eligibility) { |e| e },
|
95
152
|
'PageToken' => page_token,
|
96
153
|
'Page' => page_number,
|
97
154
|
'PageSize' => page_size,
|
@@ -35,6 +35,15 @@ module Twilio
|
|
35
35
|
# Lists ContentAndApprovalsInstance records from the API as a list.
|
36
36
|
# Unlike stream(), this operation is eager and will load `limit` records into
|
37
37
|
# memory before returning.
|
38
|
+
# @param [String] sort_by_date Whether to sort by ascending or descending date updated
|
39
|
+
# @param [String] sort_by_content_name Whether to sort by ascending or descending content name
|
40
|
+
# @param [Time] date_created_after Filter by >=[date-time]
|
41
|
+
# @param [Time] date_created_before Filter by <=[date-time]
|
42
|
+
# @param [String] content_name Filter by Regex Pattern in content name
|
43
|
+
# @param [String] content Filter by Regex Pattern in template content
|
44
|
+
# @param [Array[String]] language Filter by array of valid language(s)
|
45
|
+
# @param [Array[String]] content_type Filter by array of contentType(s)
|
46
|
+
# @param [Array[String]] channel_eligibility Filter by array of ChannelEligibility(s), where ChannelEligibility=<channel>:<status>
|
38
47
|
# @param [Integer] limit Upper limit for the number of records to return. stream()
|
39
48
|
# guarantees to never return more than limit. Default is no limit
|
40
49
|
# @param [Integer] page_size Number of records to fetch per request, when
|
@@ -42,8 +51,17 @@ module Twilio
|
|
42
51
|
# but a limit is defined, stream() will attempt to read the limit with the most
|
43
52
|
# efficient page size, i.e. min(limit, 1000)
|
44
53
|
# @return [Array] Array of up to limit results
|
45
|
-
def list(limit: nil, page_size: nil)
|
54
|
+
def list(sort_by_date: :unset, sort_by_content_name: :unset, date_created_after: :unset, date_created_before: :unset, content_name: :unset, content: :unset, language: :unset, content_type: :unset, channel_eligibility: :unset, limit: nil, page_size: nil)
|
46
55
|
self.stream(
|
56
|
+
sort_by_date: sort_by_date,
|
57
|
+
sort_by_content_name: sort_by_content_name,
|
58
|
+
date_created_after: date_created_after,
|
59
|
+
date_created_before: date_created_before,
|
60
|
+
content_name: content_name,
|
61
|
+
content: content,
|
62
|
+
language: language,
|
63
|
+
content_type: content_type,
|
64
|
+
channel_eligibility: channel_eligibility,
|
47
65
|
limit: limit,
|
48
66
|
page_size: page_size
|
49
67
|
).entries
|
@@ -53,6 +71,15 @@ module Twilio
|
|
53
71
|
# Streams Instance records from the API as an Enumerable.
|
54
72
|
# This operation lazily loads records as efficiently as possible until the limit
|
55
73
|
# is reached.
|
74
|
+
# @param [String] sort_by_date Whether to sort by ascending or descending date updated
|
75
|
+
# @param [String] sort_by_content_name Whether to sort by ascending or descending content name
|
76
|
+
# @param [Time] date_created_after Filter by >=[date-time]
|
77
|
+
# @param [Time] date_created_before Filter by <=[date-time]
|
78
|
+
# @param [String] content_name Filter by Regex Pattern in content name
|
79
|
+
# @param [String] content Filter by Regex Pattern in template content
|
80
|
+
# @param [Array[String]] language Filter by array of valid language(s)
|
81
|
+
# @param [Array[String]] content_type Filter by array of contentType(s)
|
82
|
+
# @param [Array[String]] channel_eligibility Filter by array of ChannelEligibility(s), where ChannelEligibility=<channel>:<status>
|
56
83
|
# @param [Integer] limit Upper limit for the number of records to return. stream()
|
57
84
|
# guarantees to never return more than limit. Default is no limit
|
58
85
|
# @param [Integer] page_size Number of records to fetch per request, when
|
@@ -60,10 +87,19 @@ module Twilio
|
|
60
87
|
# but a limit is defined, stream() will attempt to read the limit with the most
|
61
88
|
# efficient page size, i.e. min(limit, 1000)
|
62
89
|
# @return [Enumerable] Enumerable that will yield up to limit results
|
63
|
-
def stream(limit: nil, page_size: nil)
|
90
|
+
def stream(sort_by_date: :unset, sort_by_content_name: :unset, date_created_after: :unset, date_created_before: :unset, content_name: :unset, content: :unset, language: :unset, content_type: :unset, channel_eligibility: :unset, limit: nil, page_size: nil)
|
64
91
|
limits = @version.read_limits(limit, page_size)
|
65
92
|
|
66
93
|
page = self.page(
|
94
|
+
sort_by_date: sort_by_date,
|
95
|
+
sort_by_content_name: sort_by_content_name,
|
96
|
+
date_created_after: date_created_after,
|
97
|
+
date_created_before: date_created_before,
|
98
|
+
content_name: content_name,
|
99
|
+
content: content,
|
100
|
+
language: language,
|
101
|
+
content_type: content_type,
|
102
|
+
channel_eligibility: channel_eligibility,
|
67
103
|
page_size: limits[:page_size], )
|
68
104
|
|
69
105
|
@version.stream(page, limit: limits[:limit], page_limit: limits[:page_limit])
|
@@ -86,12 +122,33 @@ module Twilio
|
|
86
122
|
##
|
87
123
|
# Retrieve a single page of ContentAndApprovalsInstance records from the API.
|
88
124
|
# Request is executed immediately.
|
125
|
+
# @param [String] sort_by_date Whether to sort by ascending or descending date updated
|
126
|
+
# @param [String] sort_by_content_name Whether to sort by ascending or descending content name
|
127
|
+
# @param [Time] date_created_after Filter by >=[date-time]
|
128
|
+
# @param [Time] date_created_before Filter by <=[date-time]
|
129
|
+
# @param [String] content_name Filter by Regex Pattern in content name
|
130
|
+
# @param [String] content Filter by Regex Pattern in template content
|
131
|
+
# @param [Array[String]] language Filter by array of valid language(s)
|
132
|
+
# @param [Array[String]] content_type Filter by array of contentType(s)
|
133
|
+
# @param [Array[String]] channel_eligibility Filter by array of ChannelEligibility(s), where ChannelEligibility=<channel>:<status>
|
89
134
|
# @param [String] page_token PageToken provided by the API
|
90
135
|
# @param [Integer] page_number Page Number, this value is simply for client state
|
91
136
|
# @param [Integer] page_size Number of records to return, defaults to 50
|
92
137
|
# @return [Page] Page of ContentAndApprovalsInstance
|
93
|
-
def page(page_token: :unset, page_number: :unset, page_size: :unset)
|
138
|
+
def page(sort_by_date: :unset, sort_by_content_name: :unset, date_created_after: :unset, date_created_before: :unset, content_name: :unset, content: :unset, language: :unset, content_type: :unset, channel_eligibility: :unset, page_token: :unset, page_number: :unset, page_size: :unset)
|
94
139
|
params = Twilio::Values.of({
|
140
|
+
'SortByDate' => sort_by_date,
|
141
|
+
'SortByContentName' => sort_by_content_name,
|
142
|
+
'DateCreatedAfter' => Twilio.serialize_iso8601_datetime(date_created_after),
|
143
|
+
'DateCreatedBefore' => Twilio.serialize_iso8601_datetime(date_created_before),
|
144
|
+
'ContentName' => content_name,
|
145
|
+
'Content' => content,
|
146
|
+
|
147
|
+
'Language' => Twilio.serialize_list(language) { |e| e },
|
148
|
+
|
149
|
+
'ContentType' => Twilio.serialize_list(content_type) { |e| e },
|
150
|
+
|
151
|
+
'ChannelEligibility' => Twilio.serialize_list(channel_eligibility) { |e| e },
|
95
152
|
'PageToken' => page_token,
|
96
153
|
'Page' => page_number,
|
97
154
|
'PageSize' => page_size,
|
@@ -75,8 +75,9 @@ module Twilio
|
|
75
75
|
'AddressCountry' => address_country,
|
76
76
|
})
|
77
77
|
|
78
|
+
headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', })
|
78
79
|
|
79
|
-
payload = @version.create('POST', @uri, data: data)
|
80
|
+
payload = @version.create('POST', @uri, data: data, headers: headers)
|
80
81
|
AddressConfigurationInstance.new(
|
81
82
|
@version,
|
82
83
|
payload,
|
@@ -203,8 +204,9 @@ module Twilio
|
|
203
204
|
# @return [Boolean] True if delete succeeds, false otherwise
|
204
205
|
def delete
|
205
206
|
|
207
|
+
headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', })
|
206
208
|
|
207
|
-
@version.delete('DELETE', @uri)
|
209
|
+
@version.delete('DELETE', @uri, headers: headers)
|
208
210
|
end
|
209
211
|
|
210
212
|
##
|
@@ -212,8 +214,9 @@ module Twilio
|
|
212
214
|
# @return [AddressConfigurationInstance] Fetched AddressConfigurationInstance
|
213
215
|
def fetch
|
214
216
|
|
217
|
+
headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', })
|
215
218
|
|
216
|
-
payload = @version.fetch('GET', @uri)
|
219
|
+
payload = @version.fetch('GET', @uri, headers: headers)
|
217
220
|
AddressConfigurationInstance.new(
|
218
221
|
@version,
|
219
222
|
payload,
|
@@ -257,8 +260,9 @@ module Twilio
|
|
257
260
|
'AutoCreation.StudioRetryCount' => auto_creation_studio_retry_count,
|
258
261
|
})
|
259
262
|
|
263
|
+
headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', })
|
260
264
|
|
261
|
-
payload = @version.update('POST', @uri, data: data)
|
265
|
+
payload = @version.update('POST', @uri, data: data, headers: headers)
|
262
266
|
AddressConfigurationInstance.new(
|
263
267
|
@version,
|
264
268
|
payload,
|
@@ -61,8 +61,9 @@ module Twilio
|
|
61
61
|
# @return [WebhookInstance] Fetched WebhookInstance
|
62
62
|
def fetch
|
63
63
|
|
64
|
+
headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', })
|
64
65
|
|
65
|
-
payload = @version.fetch('GET', @uri)
|
66
|
+
payload = @version.fetch('GET', @uri, headers: headers)
|
66
67
|
WebhookInstance.new(
|
67
68
|
@version,
|
68
69
|
payload,
|
@@ -93,8 +94,9 @@ module Twilio
|
|
93
94
|
'Target' => target,
|
94
95
|
})
|
95
96
|
|
97
|
+
headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', })
|
96
98
|
|
97
|
-
payload = @version.update('POST', @uri, data: data)
|
99
|
+
payload = @version.update('POST', @uri, data: data, headers: headers)
|
98
100
|
WebhookInstance.new(
|
99
101
|
@version,
|
100
102
|
payload,
|
@@ -60,8 +60,9 @@ module Twilio
|
|
60
60
|
# @return [ConfigurationInstance] Fetched ConfigurationInstance
|
61
61
|
def fetch
|
62
62
|
|
63
|
+
headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', })
|
63
64
|
|
64
|
-
payload = @version.fetch('GET', @uri)
|
65
|
+
payload = @version.fetch('GET', @uri, headers: headers)
|
65
66
|
ConfigurationInstance.new(
|
66
67
|
@version,
|
67
68
|
payload,
|
@@ -89,8 +90,9 @@ module Twilio
|
|
89
90
|
'DefaultClosedTimer' => default_closed_timer,
|
90
91
|
})
|
91
92
|
|
93
|
+
headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', })
|
92
94
|
|
93
|
-
payload = @version.update('POST', @uri, data: data)
|
95
|
+
payload = @version.update('POST', @uri, data: data, headers: headers)
|
94
96
|
ConfigurationInstance.new(
|
95
97
|
@version,
|
96
98
|
payload,
|
@@ -149,8 +149,9 @@ module Twilio
|
|
149
149
|
# @return [DeliveryReceiptInstance] Fetched DeliveryReceiptInstance
|
150
150
|
def fetch
|
151
151
|
|
152
|
+
headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', })
|
152
153
|
|
153
|
-
payload = @version.fetch('GET', @uri)
|
154
|
+
payload = @version.fetch('GET', @uri, headers: headers)
|
154
155
|
DeliveryReceiptInstance.new(
|
155
156
|
@version,
|
156
157
|
payload,
|
@@ -70,8 +70,8 @@ module Twilio
|
|
70
70
|
'Subject' => subject,
|
71
71
|
})
|
72
72
|
|
73
|
+
headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', 'X-Twilio-Webhook-Enabled' => x_twilio_webhook_enabled, })
|
73
74
|
|
74
|
-
headers = Twilio::Values.of({ 'X-Twilio-Webhook-Enabled' => x_twilio_webhook_enabled, })
|
75
75
|
payload = @version.create('POST', @uri, data: data, headers: headers)
|
76
76
|
MessageInstance.new(
|
77
77
|
@version,
|
@@ -205,8 +205,8 @@ module Twilio
|
|
205
205
|
x_twilio_webhook_enabled: :unset
|
206
206
|
)
|
207
207
|
|
208
|
+
headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', 'X-Twilio-Webhook-Enabled' => x_twilio_webhook_enabled, })
|
208
209
|
|
209
|
-
headers = Twilio::Values.of({ 'X-Twilio-Webhook-Enabled' => x_twilio_webhook_enabled, })
|
210
210
|
@version.delete('DELETE', @uri, headers: headers)
|
211
211
|
end
|
212
212
|
|
@@ -215,8 +215,9 @@ module Twilio
|
|
215
215
|
# @return [MessageInstance] Fetched MessageInstance
|
216
216
|
def fetch
|
217
217
|
|
218
|
+
headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', })
|
218
219
|
|
219
|
-
payload = @version.fetch('GET', @uri)
|
220
|
+
payload = @version.fetch('GET', @uri, headers: headers)
|
220
221
|
MessageInstance.new(
|
221
222
|
@version,
|
222
223
|
payload,
|
@@ -254,8 +255,8 @@ module Twilio
|
|
254
255
|
'Subject' => subject,
|
255
256
|
})
|
256
257
|
|
258
|
+
headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', 'X-Twilio-Webhook-Enabled' => x_twilio_webhook_enabled, })
|
257
259
|
|
258
|
-
headers = Twilio::Values.of({ 'X-Twilio-Webhook-Enabled' => x_twilio_webhook_enabled, })
|
259
260
|
payload = @version.update('POST', @uri, data: data, headers: headers)
|
260
261
|
MessageInstance.new(
|
261
262
|
@version,
|
@@ -67,8 +67,8 @@ module Twilio
|
|
67
67
|
'RoleSid' => role_sid,
|
68
68
|
})
|
69
69
|
|
70
|
+
headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', 'X-Twilio-Webhook-Enabled' => x_twilio_webhook_enabled, })
|
70
71
|
|
71
|
-
headers = Twilio::Values.of({ 'X-Twilio-Webhook-Enabled' => x_twilio_webhook_enabled, })
|
72
72
|
payload = @version.create('POST', @uri, data: data, headers: headers)
|
73
73
|
ParticipantInstance.new(
|
74
74
|
@version,
|
@@ -195,8 +195,8 @@ module Twilio
|
|
195
195
|
x_twilio_webhook_enabled: :unset
|
196
196
|
)
|
197
197
|
|
198
|
+
headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', 'X-Twilio-Webhook-Enabled' => x_twilio_webhook_enabled, })
|
198
199
|
|
199
|
-
headers = Twilio::Values.of({ 'X-Twilio-Webhook-Enabled' => x_twilio_webhook_enabled, })
|
200
200
|
@version.delete('DELETE', @uri, headers: headers)
|
201
201
|
end
|
202
202
|
|
@@ -205,8 +205,9 @@ module Twilio
|
|
205
205
|
# @return [ParticipantInstance] Fetched ParticipantInstance
|
206
206
|
def fetch
|
207
207
|
|
208
|
+
headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', })
|
208
209
|
|
209
|
-
payload = @version.fetch('GET', @uri)
|
210
|
+
payload = @version.fetch('GET', @uri, headers: headers)
|
210
211
|
ParticipantInstance.new(
|
211
212
|
@version,
|
212
213
|
payload,
|
@@ -253,8 +254,8 @@ module Twilio
|
|
253
254
|
'LastReadTimestamp' => last_read_timestamp,
|
254
255
|
})
|
255
256
|
|
257
|
+
headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', 'X-Twilio-Webhook-Enabled' => x_twilio_webhook_enabled, })
|
256
258
|
|
257
|
-
headers = Twilio::Values.of({ 'X-Twilio-Webhook-Enabled' => x_twilio_webhook_enabled, })
|
258
259
|
payload = @version.update('POST', @uri, data: data, headers: headers)
|
259
260
|
ParticipantInstance.new(
|
260
261
|
@version,
|