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
@@ -62,8 +62,9 @@ module Twilio
|
|
62
62
|
'Configuration.ReplayAfter' => configuration_replay_after,
|
63
63
|
})
|
64
64
|
|
65
|
+
headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', })
|
65
66
|
|
66
|
-
payload = @version.create('POST', @uri, data: data)
|
67
|
+
payload = @version.create('POST', @uri, data: data, headers: headers)
|
67
68
|
WebhookInstance.new(
|
68
69
|
@version,
|
69
70
|
payload,
|
@@ -186,8 +187,9 @@ module Twilio
|
|
186
187
|
# @return [Boolean] True if delete succeeds, false otherwise
|
187
188
|
def delete
|
188
189
|
|
190
|
+
headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', })
|
189
191
|
|
190
|
-
@version.delete('DELETE', @uri)
|
192
|
+
@version.delete('DELETE', @uri, headers: headers)
|
191
193
|
end
|
192
194
|
|
193
195
|
##
|
@@ -195,8 +197,9 @@ module Twilio
|
|
195
197
|
# @return [WebhookInstance] Fetched WebhookInstance
|
196
198
|
def fetch
|
197
199
|
|
200
|
+
headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', })
|
198
201
|
|
199
|
-
payload = @version.fetch('GET', @uri)
|
202
|
+
payload = @version.fetch('GET', @uri, headers: headers)
|
200
203
|
WebhookInstance.new(
|
201
204
|
@version,
|
202
205
|
payload,
|
@@ -229,8 +232,9 @@ module Twilio
|
|
229
232
|
'Configuration.FlowSid' => configuration_flow_sid,
|
230
233
|
})
|
231
234
|
|
235
|
+
headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', })
|
232
236
|
|
233
|
-
payload = @version.update('POST', @uri, data: data)
|
237
|
+
payload = @version.update('POST', @uri, data: data, headers: headers)
|
234
238
|
WebhookInstance.new(
|
235
239
|
@version,
|
236
240
|
payload,
|
@@ -74,8 +74,8 @@ module Twilio
|
|
74
74
|
'Bindings.Email.Name' => bindings_email_name,
|
75
75
|
})
|
76
76
|
|
77
|
+
headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', 'X-Twilio-Webhook-Enabled' => x_twilio_webhook_enabled, })
|
77
78
|
|
78
|
-
headers = Twilio::Values.of({ 'X-Twilio-Webhook-Enabled' => x_twilio_webhook_enabled, })
|
79
79
|
payload = @version.create('POST', @uri, data: data, headers: headers)
|
80
80
|
ConversationInstance.new(
|
81
81
|
@version,
|
@@ -221,8 +221,8 @@ module Twilio
|
|
221
221
|
x_twilio_webhook_enabled: :unset
|
222
222
|
)
|
223
223
|
|
224
|
+
headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', 'X-Twilio-Webhook-Enabled' => x_twilio_webhook_enabled, })
|
224
225
|
|
225
|
-
headers = Twilio::Values.of({ 'X-Twilio-Webhook-Enabled' => x_twilio_webhook_enabled, })
|
226
226
|
@version.delete('DELETE', @uri, headers: headers)
|
227
227
|
end
|
228
228
|
|
@@ -231,8 +231,9 @@ module Twilio
|
|
231
231
|
# @return [ConversationInstance] Fetched ConversationInstance
|
232
232
|
def fetch
|
233
233
|
|
234
|
+
headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', })
|
234
235
|
|
235
|
-
payload = @version.fetch('GET', @uri)
|
236
|
+
payload = @version.fetch('GET', @uri, headers: headers)
|
236
237
|
ConversationInstance.new(
|
237
238
|
@version,
|
238
239
|
payload,
|
@@ -284,8 +285,8 @@ module Twilio
|
|
284
285
|
'Bindings.Email.Name' => bindings_email_name,
|
285
286
|
})
|
286
287
|
|
288
|
+
headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', 'X-Twilio-Webhook-Enabled' => x_twilio_webhook_enabled, })
|
287
289
|
|
288
|
-
headers = Twilio::Values.of({ 'X-Twilio-Webhook-Enabled' => x_twilio_webhook_enabled, })
|
289
290
|
payload = @version.update('POST', @uri, data: data, headers: headers)
|
290
291
|
ConversationInstance.new(
|
291
292
|
@version,
|
@@ -60,8 +60,9 @@ module Twilio
|
|
60
60
|
'Secret' => secret,
|
61
61
|
})
|
62
62
|
|
63
|
+
headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', })
|
63
64
|
|
64
|
-
payload = @version.create('POST', @uri, data: data)
|
65
|
+
payload = @version.create('POST', @uri, data: data, headers: headers)
|
65
66
|
CredentialInstance.new(
|
66
67
|
@version,
|
67
68
|
payload,
|
@@ -182,8 +183,9 @@ module Twilio
|
|
182
183
|
# @return [Boolean] True if delete succeeds, false otherwise
|
183
184
|
def delete
|
184
185
|
|
186
|
+
headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', })
|
185
187
|
|
186
|
-
@version.delete('DELETE', @uri)
|
188
|
+
@version.delete('DELETE', @uri, headers: headers)
|
187
189
|
end
|
188
190
|
|
189
191
|
##
|
@@ -191,8 +193,9 @@ module Twilio
|
|
191
193
|
# @return [CredentialInstance] Fetched CredentialInstance
|
192
194
|
def fetch
|
193
195
|
|
196
|
+
headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', })
|
194
197
|
|
195
|
-
payload = @version.fetch('GET', @uri)
|
198
|
+
payload = @version.fetch('GET', @uri, headers: headers)
|
196
199
|
CredentialInstance.new(
|
197
200
|
@version,
|
198
201
|
payload,
|
@@ -230,8 +233,9 @@ module Twilio
|
|
230
233
|
'Secret' => secret,
|
231
234
|
})
|
232
235
|
|
236
|
+
headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', })
|
233
237
|
|
234
|
-
payload = @version.update('POST', @uri, data: data)
|
238
|
+
payload = @version.update('POST', @uri, data: data, headers: headers)
|
235
239
|
CredentialInstance.new(
|
236
240
|
@version,
|
237
241
|
payload,
|
@@ -48,8 +48,9 @@ module Twilio
|
|
48
48
|
'Permission' => Twilio.serialize_list(permission) { |e| e },
|
49
49
|
})
|
50
50
|
|
51
|
+
headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', })
|
51
52
|
|
52
|
-
payload = @version.create('POST', @uri, data: data)
|
53
|
+
payload = @version.create('POST', @uri, data: data, headers: headers)
|
53
54
|
RoleInstance.new(
|
54
55
|
@version,
|
55
56
|
payload,
|
@@ -170,8 +171,9 @@ module Twilio
|
|
170
171
|
# @return [Boolean] True if delete succeeds, false otherwise
|
171
172
|
def delete
|
172
173
|
|
174
|
+
headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', })
|
173
175
|
|
174
|
-
@version.delete('DELETE', @uri)
|
176
|
+
@version.delete('DELETE', @uri, headers: headers)
|
175
177
|
end
|
176
178
|
|
177
179
|
##
|
@@ -179,8 +181,9 @@ module Twilio
|
|
179
181
|
# @return [RoleInstance] Fetched RoleInstance
|
180
182
|
def fetch
|
181
183
|
|
184
|
+
headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', })
|
182
185
|
|
183
|
-
payload = @version.fetch('GET', @uri)
|
186
|
+
payload = @version.fetch('GET', @uri, headers: headers)
|
184
187
|
RoleInstance.new(
|
185
188
|
@version,
|
186
189
|
payload,
|
@@ -200,8 +203,9 @@ module Twilio
|
|
200
203
|
'Permission' => Twilio.serialize_list(permission) { |e| e },
|
201
204
|
})
|
202
205
|
|
206
|
+
headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', })
|
203
207
|
|
204
|
-
payload = @version.update('POST', @uri, data: data)
|
208
|
+
payload = @version.update('POST', @uri, data: data, headers: headers)
|
205
209
|
RoleInstance.new(
|
206
210
|
@version,
|
207
211
|
payload,
|
@@ -161,8 +161,9 @@ module Twilio
|
|
161
161
|
# @return [Boolean] True if delete succeeds, false otherwise
|
162
162
|
def delete
|
163
163
|
|
164
|
+
headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', })
|
164
165
|
|
165
|
-
@version.delete('DELETE', @uri)
|
166
|
+
@version.delete('DELETE', @uri, headers: headers)
|
166
167
|
end
|
167
168
|
|
168
169
|
##
|
@@ -170,8 +171,9 @@ module Twilio
|
|
170
171
|
# @return [BindingInstance] Fetched BindingInstance
|
171
172
|
def fetch
|
172
173
|
|
174
|
+
headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', })
|
173
175
|
|
174
|
-
payload = @version.fetch('GET', @uri)
|
176
|
+
payload = @version.fetch('GET', @uri, headers: headers)
|
175
177
|
BindingInstance.new(
|
176
178
|
@version,
|
177
179
|
payload,
|
@@ -63,8 +63,9 @@ module Twilio
|
|
63
63
|
# @return [NotificationInstance] Fetched NotificationInstance
|
64
64
|
def fetch
|
65
65
|
|
66
|
+
headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', })
|
66
67
|
|
67
|
-
payload = @version.fetch('GET', @uri)
|
68
|
+
payload = @version.fetch('GET', @uri, headers: headers)
|
68
69
|
NotificationInstance.new(
|
69
70
|
@version,
|
70
71
|
payload,
|
@@ -120,8 +121,9 @@ module Twilio
|
|
120
121
|
'NewMessage.WithMedia.Template' => new_message_with_media_template,
|
121
122
|
})
|
122
123
|
|
124
|
+
headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', })
|
123
125
|
|
124
|
-
payload = @version.update('POST', @uri, data: data)
|
126
|
+
payload = @version.update('POST', @uri, data: data, headers: headers)
|
125
127
|
NotificationInstance.new(
|
126
128
|
@version,
|
127
129
|
payload,
|
@@ -63,8 +63,9 @@ module Twilio
|
|
63
63
|
# @return [WebhookInstance] Fetched WebhookInstance
|
64
64
|
def fetch
|
65
65
|
|
66
|
+
headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', })
|
66
67
|
|
67
|
-
payload = @version.fetch('GET', @uri)
|
68
|
+
payload = @version.fetch('GET', @uri, headers: headers)
|
68
69
|
WebhookInstance.new(
|
69
70
|
@version,
|
70
71
|
payload,
|
@@ -93,8 +94,9 @@ module Twilio
|
|
93
94
|
'Method' => method,
|
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,
|
@@ -64,8 +64,9 @@ module Twilio
|
|
64
64
|
# @return [ConfigurationInstance] Fetched ConfigurationInstance
|
65
65
|
def fetch
|
66
66
|
|
67
|
+
headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', })
|
67
68
|
|
68
|
-
payload = @version.fetch('GET', @uri)
|
69
|
+
payload = @version.fetch('GET', @uri, headers: headers)
|
69
70
|
ConfigurationInstance.new(
|
70
71
|
@version,
|
71
72
|
payload,
|
@@ -94,8 +95,9 @@ module Twilio
|
|
94
95
|
'ReachabilityEnabled' => reachability_enabled,
|
95
96
|
})
|
96
97
|
|
98
|
+
headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', })
|
97
99
|
|
98
|
-
payload = @version.update('POST', @uri, data: data)
|
100
|
+
payload = @version.update('POST', @uri, data: data, headers: headers)
|
99
101
|
ConfigurationInstance.new(
|
100
102
|
@version,
|
101
103
|
payload,
|
@@ -151,8 +151,9 @@ module Twilio
|
|
151
151
|
# @return [DeliveryReceiptInstance] Fetched DeliveryReceiptInstance
|
152
152
|
def fetch
|
153
153
|
|
154
|
+
headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', })
|
154
155
|
|
155
|
-
payload = @version.fetch('GET', @uri)
|
156
|
+
payload = @version.fetch('GET', @uri, headers: headers)
|
156
157
|
DeliveryReceiptInstance.new(
|
157
158
|
@version,
|
158
159
|
payload,
|
@@ -71,8 +71,8 @@ module Twilio
|
|
71
71
|
'Subject' => subject,
|
72
72
|
})
|
73
73
|
|
74
|
+
headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', 'X-Twilio-Webhook-Enabled' => x_twilio_webhook_enabled, })
|
74
75
|
|
75
|
-
headers = Twilio::Values.of({ 'X-Twilio-Webhook-Enabled' => x_twilio_webhook_enabled, })
|
76
76
|
payload = @version.create('POST', @uri, data: data, headers: headers)
|
77
77
|
MessageInstance.new(
|
78
78
|
@version,
|
@@ -208,8 +208,8 @@ module Twilio
|
|
208
208
|
x_twilio_webhook_enabled: :unset
|
209
209
|
)
|
210
210
|
|
211
|
+
headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', 'X-Twilio-Webhook-Enabled' => x_twilio_webhook_enabled, })
|
211
212
|
|
212
|
-
headers = Twilio::Values.of({ 'X-Twilio-Webhook-Enabled' => x_twilio_webhook_enabled, })
|
213
213
|
@version.delete('DELETE', @uri, headers: headers)
|
214
214
|
end
|
215
215
|
|
@@ -218,8 +218,9 @@ module Twilio
|
|
218
218
|
# @return [MessageInstance] Fetched MessageInstance
|
219
219
|
def fetch
|
220
220
|
|
221
|
+
headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', })
|
221
222
|
|
222
|
-
payload = @version.fetch('GET', @uri)
|
223
|
+
payload = @version.fetch('GET', @uri, headers: headers)
|
223
224
|
MessageInstance.new(
|
224
225
|
@version,
|
225
226
|
payload,
|
@@ -258,8 +259,8 @@ module Twilio
|
|
258
259
|
'Subject' => subject,
|
259
260
|
})
|
260
261
|
|
262
|
+
headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', 'X-Twilio-Webhook-Enabled' => x_twilio_webhook_enabled, })
|
261
263
|
|
262
|
-
headers = Twilio::Values.of({ 'X-Twilio-Webhook-Enabled' => x_twilio_webhook_enabled, })
|
263
264
|
payload = @version.update('POST', @uri, data: data, headers: headers)
|
264
265
|
MessageInstance.new(
|
265
266
|
@version,
|
@@ -68,8 +68,8 @@ module Twilio
|
|
68
68
|
'RoleSid' => role_sid,
|
69
69
|
})
|
70
70
|
|
71
|
+
headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', 'X-Twilio-Webhook-Enabled' => x_twilio_webhook_enabled, })
|
71
72
|
|
72
|
-
headers = Twilio::Values.of({ 'X-Twilio-Webhook-Enabled' => x_twilio_webhook_enabled, })
|
73
73
|
payload = @version.create('POST', @uri, data: data, headers: headers)
|
74
74
|
ParticipantInstance.new(
|
75
75
|
@version,
|
@@ -198,8 +198,8 @@ module Twilio
|
|
198
198
|
x_twilio_webhook_enabled: :unset
|
199
199
|
)
|
200
200
|
|
201
|
+
headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', 'X-Twilio-Webhook-Enabled' => x_twilio_webhook_enabled, })
|
201
202
|
|
202
|
-
headers = Twilio::Values.of({ 'X-Twilio-Webhook-Enabled' => x_twilio_webhook_enabled, })
|
203
203
|
@version.delete('DELETE', @uri, headers: headers)
|
204
204
|
end
|
205
205
|
|
@@ -208,8 +208,9 @@ module Twilio
|
|
208
208
|
# @return [ParticipantInstance] Fetched ParticipantInstance
|
209
209
|
def fetch
|
210
210
|
|
211
|
+
headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', })
|
211
212
|
|
212
|
-
payload = @version.fetch('GET', @uri)
|
213
|
+
payload = @version.fetch('GET', @uri, headers: headers)
|
213
214
|
ParticipantInstance.new(
|
214
215
|
@version,
|
215
216
|
payload,
|
@@ -257,8 +258,8 @@ module Twilio
|
|
257
258
|
'LastReadTimestamp' => last_read_timestamp,
|
258
259
|
})
|
259
260
|
|
261
|
+
headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', 'X-Twilio-Webhook-Enabled' => x_twilio_webhook_enabled, })
|
260
262
|
|
261
|
-
headers = Twilio::Values.of({ 'X-Twilio-Webhook-Enabled' => x_twilio_webhook_enabled, })
|
262
263
|
payload = @version.update('POST', @uri, data: data, headers: headers)
|
263
264
|
ParticipantInstance.new(
|
264
265
|
@version,
|
@@ -63,8 +63,9 @@ module Twilio
|
|
63
63
|
'Configuration.ReplayAfter' => configuration_replay_after,
|
64
64
|
})
|
65
65
|
|
66
|
+
headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', })
|
66
67
|
|
67
|
-
payload = @version.create('POST', @uri, data: data)
|
68
|
+
payload = @version.create('POST', @uri, data: data, headers: headers)
|
68
69
|
WebhookInstance.new(
|
69
70
|
@version,
|
70
71
|
payload,
|
@@ -189,8 +190,9 @@ module Twilio
|
|
189
190
|
# @return [Boolean] True if delete succeeds, false otherwise
|
190
191
|
def delete
|
191
192
|
|
193
|
+
headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', })
|
192
194
|
|
193
|
-
@version.delete('DELETE', @uri)
|
195
|
+
@version.delete('DELETE', @uri, headers: headers)
|
194
196
|
end
|
195
197
|
|
196
198
|
##
|
@@ -198,8 +200,9 @@ module Twilio
|
|
198
200
|
# @return [WebhookInstance] Fetched WebhookInstance
|
199
201
|
def fetch
|
200
202
|
|
203
|
+
headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', })
|
201
204
|
|
202
|
-
payload = @version.fetch('GET', @uri)
|
205
|
+
payload = @version.fetch('GET', @uri, headers: headers)
|
203
206
|
WebhookInstance.new(
|
204
207
|
@version,
|
205
208
|
payload,
|
@@ -233,8 +236,9 @@ module Twilio
|
|
233
236
|
'Configuration.FlowSid' => configuration_flow_sid,
|
234
237
|
})
|
235
238
|
|
239
|
+
headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', })
|
236
240
|
|
237
|
-
payload = @version.update('POST', @uri, data: data)
|
241
|
+
payload = @version.update('POST', @uri, data: data, headers: headers)
|
238
242
|
WebhookInstance.new(
|
239
243
|
@version,
|
240
244
|
payload,
|
@@ -76,8 +76,8 @@ module Twilio
|
|
76
76
|
'Bindings.Email.Name' => bindings_email_name,
|
77
77
|
})
|
78
78
|
|
79
|
+
headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', 'X-Twilio-Webhook-Enabled' => x_twilio_webhook_enabled, })
|
79
80
|
|
80
|
-
headers = Twilio::Values.of({ 'X-Twilio-Webhook-Enabled' => x_twilio_webhook_enabled, })
|
81
81
|
payload = @version.create('POST', @uri, data: data, headers: headers)
|
82
82
|
ConversationInstance.new(
|
83
83
|
@version,
|
@@ -225,8 +225,8 @@ module Twilio
|
|
225
225
|
x_twilio_webhook_enabled: :unset
|
226
226
|
)
|
227
227
|
|
228
|
+
headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', 'X-Twilio-Webhook-Enabled' => x_twilio_webhook_enabled, })
|
228
229
|
|
229
|
-
headers = Twilio::Values.of({ 'X-Twilio-Webhook-Enabled' => x_twilio_webhook_enabled, })
|
230
230
|
@version.delete('DELETE', @uri, headers: headers)
|
231
231
|
end
|
232
232
|
|
@@ -235,8 +235,9 @@ module Twilio
|
|
235
235
|
# @return [ConversationInstance] Fetched ConversationInstance
|
236
236
|
def fetch
|
237
237
|
|
238
|
+
headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', })
|
238
239
|
|
239
|
-
payload = @version.fetch('GET', @uri)
|
240
|
+
payload = @version.fetch('GET', @uri, headers: headers)
|
240
241
|
ConversationInstance.new(
|
241
242
|
@version,
|
242
243
|
payload,
|
@@ -289,8 +290,8 @@ module Twilio
|
|
289
290
|
'Bindings.Email.Name' => bindings_email_name,
|
290
291
|
})
|
291
292
|
|
293
|
+
headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', 'X-Twilio-Webhook-Enabled' => x_twilio_webhook_enabled, })
|
292
294
|
|
293
|
-
headers = Twilio::Values.of({ 'X-Twilio-Webhook-Enabled' => x_twilio_webhook_enabled, })
|
294
295
|
payload = @version.update('POST', @uri, data: data, headers: headers)
|
295
296
|
ConversationInstance.new(
|
296
297
|
@version,
|
@@ -50,8 +50,9 @@ module Twilio
|
|
50
50
|
'Permission' => Twilio.serialize_list(permission) { |e| e },
|
51
51
|
})
|
52
52
|
|
53
|
+
headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', })
|
53
54
|
|
54
|
-
payload = @version.create('POST', @uri, data: data)
|
55
|
+
payload = @version.create('POST', @uri, data: data, headers: headers)
|
55
56
|
RoleInstance.new(
|
56
57
|
@version,
|
57
58
|
payload,
|
@@ -174,8 +175,9 @@ module Twilio
|
|
174
175
|
# @return [Boolean] True if delete succeeds, false otherwise
|
175
176
|
def delete
|
176
177
|
|
178
|
+
headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', })
|
177
179
|
|
178
|
-
@version.delete('DELETE', @uri)
|
180
|
+
@version.delete('DELETE', @uri, headers: headers)
|
179
181
|
end
|
180
182
|
|
181
183
|
##
|
@@ -183,8 +185,9 @@ module Twilio
|
|
183
185
|
# @return [RoleInstance] Fetched RoleInstance
|
184
186
|
def fetch
|
185
187
|
|
188
|
+
headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', })
|
186
189
|
|
187
|
-
payload = @version.fetch('GET', @uri)
|
190
|
+
payload = @version.fetch('GET', @uri, headers: headers)
|
188
191
|
RoleInstance.new(
|
189
192
|
@version,
|
190
193
|
payload,
|
@@ -205,8 +208,9 @@ module Twilio
|
|
205
208
|
'Permission' => Twilio.serialize_list(permission) { |e| e },
|
206
209
|
})
|
207
210
|
|
211
|
+
headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', })
|
208
212
|
|
209
|
-
payload = @version.update('POST', @uri, data: data)
|
213
|
+
payload = @version.update('POST', @uri, data: data, headers: headers)
|
210
214
|
RoleInstance.new(
|
211
215
|
@version,
|
212
216
|
payload,
|
@@ -149,8 +149,9 @@ module Twilio
|
|
149
149
|
# @return [Boolean] True if delete succeeds, false otherwise
|
150
150
|
def delete
|
151
151
|
|
152
|
+
headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', })
|
152
153
|
|
153
|
-
@version.delete('DELETE', @uri)
|
154
|
+
@version.delete('DELETE', @uri, headers: headers)
|
154
155
|
end
|
155
156
|
|
156
157
|
##
|
@@ -158,8 +159,9 @@ module Twilio
|
|
158
159
|
# @return [UserConversationInstance] Fetched UserConversationInstance
|
159
160
|
def fetch
|
160
161
|
|
162
|
+
headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', })
|
161
163
|
|
162
|
-
payload = @version.fetch('GET', @uri)
|
164
|
+
payload = @version.fetch('GET', @uri, headers: headers)
|
163
165
|
UserConversationInstance.new(
|
164
166
|
@version,
|
165
167
|
payload,
|
@@ -187,8 +189,9 @@ module Twilio
|
|
187
189
|
'LastReadMessageIndex' => last_read_message_index,
|
188
190
|
})
|
189
191
|
|
192
|
+
headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', })
|
190
193
|
|
191
|
-
payload = @version.update('POST', @uri, data: data)
|
194
|
+
payload = @version.update('POST', @uri, data: data, headers: headers)
|
192
195
|
UserConversationInstance.new(
|
193
196
|
@version,
|
194
197
|
payload,
|
@@ -55,8 +55,8 @@ module Twilio
|
|
55
55
|
'RoleSid' => role_sid,
|
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,
|
@@ -184,8 +184,8 @@ module Twilio
|
|
184
184
|
x_twilio_webhook_enabled: :unset
|
185
185
|
)
|
186
186
|
|
187
|
+
headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', 'X-Twilio-Webhook-Enabled' => x_twilio_webhook_enabled, })
|
187
188
|
|
188
|
-
headers = Twilio::Values.of({ 'X-Twilio-Webhook-Enabled' => x_twilio_webhook_enabled, })
|
189
189
|
@version.delete('DELETE', @uri, headers: headers)
|
190
190
|
end
|
191
191
|
|
@@ -194,8 +194,9 @@ module Twilio
|
|
194
194
|
# @return [UserInstance] Fetched UserInstance
|
195
195
|
def fetch
|
196
196
|
|
197
|
+
headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', })
|
197
198
|
|
198
|
-
payload = @version.fetch('GET', @uri)
|
199
|
+
payload = @version.fetch('GET', @uri, headers: headers)
|
199
200
|
UserInstance.new(
|
200
201
|
@version,
|
201
202
|
payload,
|
@@ -224,8 +225,8 @@ module Twilio
|
|
224
225
|
'RoleSid' => role_sid,
|
225
226
|
})
|
226
227
|
|
228
|
+
headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', 'X-Twilio-Webhook-Enabled' => x_twilio_webhook_enabled, })
|
227
229
|
|
228
|
-
headers = Twilio::Values.of({ 'X-Twilio-Webhook-Enabled' => x_twilio_webhook_enabled, })
|
229
230
|
payload = @version.update('POST', @uri, data: data, headers: headers)
|
230
231
|
UserInstance.new(
|
231
232
|
@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,
|
@@ -170,8 +171,9 @@ module Twilio
|
|
170
171
|
# @return [Boolean] True if delete succeeds, false otherwise
|
171
172
|
def delete
|
172
173
|
|
174
|
+
headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', })
|
173
175
|
|
174
|
-
@version.delete('DELETE', @uri)
|
176
|
+
@version.delete('DELETE', @uri, headers: headers)
|
175
177
|
end
|
176
178
|
|
177
179
|
##
|
@@ -179,8 +181,9 @@ module Twilio
|
|
179
181
|
# @return [ServiceInstance] Fetched ServiceInstance
|
180
182
|
def fetch
|
181
183
|
|
184
|
+
headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', })
|
182
185
|
|
183
|
-
payload = @version.fetch('GET', @uri)
|
186
|
+
payload = @version.fetch('GET', @uri, headers: headers)
|
184
187
|
ServiceInstance.new(
|
185
188
|
@version,
|
186
189
|
payload,
|
@@ -147,8 +147,9 @@ module Twilio
|
|
147
147
|
# @return [Boolean] True if delete succeeds, false otherwise
|
148
148
|
def delete
|
149
149
|
|
150
|
+
headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', })
|
150
151
|
|
151
|
-
@version.delete('DELETE', @uri)
|
152
|
+
@version.delete('DELETE', @uri, headers: headers)
|
152
153
|
end
|
153
154
|
|
154
155
|
##
|
@@ -156,8 +157,9 @@ module Twilio
|
|
156
157
|
# @return [UserConversationInstance] Fetched UserConversationInstance
|
157
158
|
def fetch
|
158
159
|
|
160
|
+
headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', })
|
159
161
|
|
160
|
-
payload = @version.fetch('GET', @uri)
|
162
|
+
payload = @version.fetch('GET', @uri, headers: headers)
|
161
163
|
UserConversationInstance.new(
|
162
164
|
@version,
|
163
165
|
payload,
|
@@ -184,8 +186,9 @@ module Twilio
|
|
184
186
|
'LastReadMessageIndex' => last_read_message_index,
|
185
187
|
})
|
186
188
|
|
189
|
+
headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', })
|
187
190
|
|
188
|
-
payload = @version.update('POST', @uri, data: data)
|
191
|
+
payload = @version.update('POST', @uri, data: data, headers: headers)
|
189
192
|
UserConversationInstance.new(
|
190
193
|
@version,
|
191
194
|
payload,
|