twilio-ruby 7.1.1 → 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 +24 -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 +8 -4
- 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/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/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 +2 -1
- data/lib/twilio-ruby/rest/marketplace/v1/available_add_on.rb +2 -1
- data/lib/twilio-ruby/rest/marketplace/v1/installed_add_on/installed_add_on_extension.rb +4 -2
- data/lib/twilio-ruby/rest/marketplace/v1/installed_add_on/installed_add_on_usage.rb +3 -2
- data/lib/twilio-ruby/rest/marketplace/v1/installed_add_on.rb +8 -4
- data/lib/twilio-ruby/rest/marketplace/v1/module_data_management.rb +4 -2
- 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 +8 -4
- data/lib/twilio-ruby/rest/messaging/v1/usecase.rb +2 -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 +3 -2
- 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 +2 -2
@@ -57,8 +57,9 @@ module Twilio
|
|
57
57
|
'CollectionTtl' => collection_ttl,
|
58
58
|
})
|
59
59
|
|
60
|
+
headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', })
|
60
61
|
|
61
|
-
payload = @version.create('POST', @uri, data: data)
|
62
|
+
payload = @version.create('POST', @uri, data: data, headers: headers)
|
62
63
|
SyncMapItemInstance.new(
|
63
64
|
@version,
|
64
65
|
payload,
|
@@ -204,8 +205,8 @@ module Twilio
|
|
204
205
|
if_match: :unset
|
205
206
|
)
|
206
207
|
|
208
|
+
headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', 'If-Match' => if_match, })
|
207
209
|
|
208
|
-
headers = Twilio::Values.of({ 'If-Match' => if_match, })
|
209
210
|
@version.delete('DELETE', @uri, headers: headers)
|
210
211
|
end
|
211
212
|
|
@@ -214,8 +215,9 @@ module Twilio
|
|
214
215
|
# @return [SyncMapItemInstance] Fetched SyncMapItemInstance
|
215
216
|
def fetch
|
216
217
|
|
218
|
+
headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', })
|
217
219
|
|
218
|
-
payload = @version.fetch('GET', @uri)
|
220
|
+
payload = @version.fetch('GET', @uri, headers: headers)
|
219
221
|
SyncMapItemInstance.new(
|
220
222
|
@version,
|
221
223
|
payload,
|
@@ -248,8 +250,8 @@ module Twilio
|
|
248
250
|
'CollectionTtl' => collection_ttl,
|
249
251
|
})
|
250
252
|
|
253
|
+
headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', 'If-Match' => if_match, })
|
251
254
|
|
252
|
-
headers = Twilio::Values.of({ 'If-Match' => if_match, })
|
253
255
|
payload = @version.update('POST', @uri, data: data, headers: headers)
|
254
256
|
SyncMapItemInstance.new(
|
255
257
|
@version,
|
@@ -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 [SyncMapPermissionInstance] Fetched SyncMapPermissionInstance
|
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
|
SyncMapPermissionInstance.new(
|
164
166
|
@version,
|
165
167
|
payload,
|
@@ -187,8 +189,9 @@ module Twilio
|
|
187
189
|
'Manage' => manage,
|
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
|
SyncMapPermissionInstance.new(
|
193
196
|
@version,
|
194
197
|
payload,
|
@@ -50,8 +50,9 @@ module Twilio
|
|
50
50
|
'CollectionTtl' => collection_ttl,
|
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
|
SyncMapInstance.new(
|
56
57
|
@version,
|
57
58
|
payload,
|
@@ -176,8 +177,9 @@ module Twilio
|
|
176
177
|
# @return [Boolean] True if delete succeeds, false otherwise
|
177
178
|
def delete
|
178
179
|
|
180
|
+
headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', })
|
179
181
|
|
180
|
-
@version.delete('DELETE', @uri)
|
182
|
+
@version.delete('DELETE', @uri, headers: headers)
|
181
183
|
end
|
182
184
|
|
183
185
|
##
|
@@ -185,8 +187,9 @@ module Twilio
|
|
185
187
|
# @return [SyncMapInstance] Fetched SyncMapInstance
|
186
188
|
def fetch
|
187
189
|
|
190
|
+
headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', })
|
188
191
|
|
189
|
-
payload = @version.fetch('GET', @uri)
|
192
|
+
payload = @version.fetch('GET', @uri, headers: headers)
|
190
193
|
SyncMapInstance.new(
|
191
194
|
@version,
|
192
195
|
payload,
|
@@ -210,8 +213,9 @@ module Twilio
|
|
210
213
|
'CollectionTtl' => collection_ttl,
|
211
214
|
})
|
212
215
|
|
216
|
+
headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', })
|
213
217
|
|
214
|
-
payload = @version.update('POST', @uri, data: data)
|
218
|
+
payload = @version.update('POST', @uri, data: data, headers: headers)
|
215
219
|
SyncMapInstance.new(
|
216
220
|
@version,
|
217
221
|
payload,
|
@@ -45,8 +45,9 @@ module Twilio
|
|
45
45
|
'Data' => Twilio.serialize_object(data),
|
46
46
|
})
|
47
47
|
|
48
|
+
headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', })
|
48
49
|
|
49
|
-
payload = @version.create('POST', @uri, data: data)
|
50
|
+
payload = @version.create('POST', @uri, data: data, headers: headers)
|
50
51
|
StreamMessageInstance.new(
|
51
52
|
@version,
|
52
53
|
payload,
|
@@ -47,8 +47,9 @@ module Twilio
|
|
47
47
|
'Ttl' => ttl,
|
48
48
|
})
|
49
49
|
|
50
|
+
headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', })
|
50
51
|
|
51
|
-
payload = @version.create('POST', @uri, data: data)
|
52
|
+
payload = @version.create('POST', @uri, data: data, headers: headers)
|
52
53
|
SyncStreamInstance.new(
|
53
54
|
@version,
|
54
55
|
payload,
|
@@ -172,8 +173,9 @@ module Twilio
|
|
172
173
|
# @return [Boolean] True if delete succeeds, false otherwise
|
173
174
|
def delete
|
174
175
|
|
176
|
+
headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', })
|
175
177
|
|
176
|
-
@version.delete('DELETE', @uri)
|
178
|
+
@version.delete('DELETE', @uri, headers: headers)
|
177
179
|
end
|
178
180
|
|
179
181
|
##
|
@@ -181,8 +183,9 @@ module Twilio
|
|
181
183
|
# @return [SyncStreamInstance] Fetched SyncStreamInstance
|
182
184
|
def fetch
|
183
185
|
|
186
|
+
headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', })
|
184
187
|
|
185
|
-
payload = @version.fetch('GET', @uri)
|
188
|
+
payload = @version.fetch('GET', @uri, headers: headers)
|
186
189
|
SyncStreamInstance.new(
|
187
190
|
@version,
|
188
191
|
payload,
|
@@ -203,8 +206,9 @@ module Twilio
|
|
203
206
|
'Ttl' => ttl,
|
204
207
|
})
|
205
208
|
|
209
|
+
headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', })
|
206
210
|
|
207
|
-
payload = @version.update('POST', @uri, data: data)
|
211
|
+
payload = @version.update('POST', @uri, data: data, headers: headers)
|
208
212
|
SyncStreamInstance.new(
|
209
213
|
@version,
|
210
214
|
payload,
|
@@ -60,8 +60,9 @@ module Twilio
|
|
60
60
|
'WebhooksFromRestEnabled' => webhooks_from_rest_enabled,
|
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
|
ServiceInstance.new(
|
66
67
|
@version,
|
67
68
|
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 [ServiceInstance] Fetched ServiceInstance
|
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
|
ServiceInstance.new(
|
201
204
|
@version,
|
202
205
|
payload,
|
@@ -234,8 +237,9 @@ module Twilio
|
|
234
237
|
'WebhooksFromRestEnabled' => webhooks_from_rest_enabled,
|
235
238
|
})
|
236
239
|
|
240
|
+
headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', })
|
237
241
|
|
238
|
-
payload = @version.update('POST', @uri, data: data)
|
242
|
+
payload = @version.update('POST', @uri, data: data, headers: headers)
|
239
243
|
ServiceInstance.new(
|
240
244
|
@version,
|
241
245
|
payload,
|
@@ -47,8 +47,9 @@ module Twilio
|
|
47
47
|
'Available' => available,
|
48
48
|
})
|
49
49
|
|
50
|
+
headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', })
|
50
51
|
|
51
|
-
payload = @version.create('POST', @uri, data: data)
|
52
|
+
payload = @version.create('POST', @uri, data: data, headers: headers)
|
52
53
|
ActivityInstance.new(
|
53
54
|
@version,
|
54
55
|
payload,
|
@@ -183,8 +184,9 @@ module Twilio
|
|
183
184
|
# @return [Boolean] True if delete succeeds, false otherwise
|
184
185
|
def delete
|
185
186
|
|
187
|
+
headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', })
|
186
188
|
|
187
|
-
@version.delete('DELETE', @uri)
|
189
|
+
@version.delete('DELETE', @uri, headers: headers)
|
188
190
|
end
|
189
191
|
|
190
192
|
##
|
@@ -192,8 +194,9 @@ module Twilio
|
|
192
194
|
# @return [ActivityInstance] Fetched ActivityInstance
|
193
195
|
def fetch
|
194
196
|
|
197
|
+
headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', })
|
195
198
|
|
196
|
-
payload = @version.fetch('GET', @uri)
|
199
|
+
payload = @version.fetch('GET', @uri, headers: headers)
|
197
200
|
ActivityInstance.new(
|
198
201
|
@version,
|
199
202
|
payload,
|
@@ -214,8 +217,9 @@ module Twilio
|
|
214
217
|
'FriendlyName' => friendly_name,
|
215
218
|
})
|
216
219
|
|
220
|
+
headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', })
|
217
221
|
|
218
|
-
payload = @version.update('POST', @uri, data: data)
|
222
|
+
payload = @version.update('POST', @uri, data: data, headers: headers)
|
219
223
|
ActivityInstance.new(
|
220
224
|
@version,
|
221
225
|
payload,
|
@@ -213,8 +213,9 @@ module Twilio
|
|
213
213
|
# @return [EventInstance] Fetched EventInstance
|
214
214
|
def fetch
|
215
215
|
|
216
|
+
headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', })
|
216
217
|
|
217
|
-
payload = @version.fetch('GET', @uri)
|
218
|
+
payload = @version.fetch('GET', @uri, headers: headers)
|
218
219
|
EventInstance.new(
|
219
220
|
@version,
|
220
221
|
payload,
|
@@ -161,8 +161,9 @@ module Twilio
|
|
161
161
|
# @return [ReservationInstance] Fetched ReservationInstance
|
162
162
|
def fetch
|
163
163
|
|
164
|
+
headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', })
|
164
165
|
|
165
|
-
payload = @version.fetch('GET', @uri)
|
166
|
+
payload = @version.fetch('GET', @uri, headers: headers)
|
166
167
|
ReservationInstance.new(
|
167
168
|
@version,
|
168
169
|
payload,
|
@@ -345,8 +346,8 @@ module Twilio
|
|
345
346
|
'JitterBufferSize' => jitter_buffer_size,
|
346
347
|
})
|
347
348
|
|
349
|
+
headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', 'If-Match' => if_match, })
|
348
350
|
|
349
|
-
headers = Twilio::Values.of({ 'If-Match' => if_match, })
|
350
351
|
payload = @version.update('POST', @uri, data: data, headers: headers)
|
351
352
|
ReservationInstance.new(
|
352
353
|
@version,
|
@@ -68,8 +68,9 @@ module Twilio
|
|
68
68
|
'TaskQueueSid' => task_queue_sid,
|
69
69
|
})
|
70
70
|
|
71
|
+
headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', })
|
71
72
|
|
72
|
-
payload = @version.create('POST', @uri, data: data)
|
73
|
+
payload = @version.create('POST', @uri, data: data, headers: headers)
|
73
74
|
TaskInstance.new(
|
74
75
|
@version,
|
75
76
|
payload,
|
@@ -257,8 +258,8 @@ module Twilio
|
|
257
258
|
if_match: :unset
|
258
259
|
)
|
259
260
|
|
261
|
+
headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', 'If-Match' => if_match, })
|
260
262
|
|
261
|
-
headers = Twilio::Values.of({ 'If-Match' => if_match, })
|
262
263
|
@version.delete('DELETE', @uri, headers: headers)
|
263
264
|
end
|
264
265
|
|
@@ -267,8 +268,9 @@ module Twilio
|
|
267
268
|
# @return [TaskInstance] Fetched TaskInstance
|
268
269
|
def fetch
|
269
270
|
|
271
|
+
headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', })
|
270
272
|
|
271
|
-
payload = @version.fetch('GET', @uri)
|
273
|
+
payload = @version.fetch('GET', @uri, headers: headers)
|
272
274
|
TaskInstance.new(
|
273
275
|
@version,
|
274
276
|
payload,
|
@@ -306,8 +308,8 @@ module Twilio
|
|
306
308
|
'VirtualStartTime' => Twilio.serialize_iso8601_datetime(virtual_start_time),
|
307
309
|
})
|
308
310
|
|
311
|
+
headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', 'If-Match' => if_match, })
|
309
312
|
|
310
|
-
headers = Twilio::Values.of({ 'If-Match' => if_match, })
|
311
313
|
payload = @version.update('POST', @uri, data: data, headers: headers)
|
312
314
|
TaskInstance.new(
|
313
315
|
@version,
|
@@ -50,8 +50,9 @@ module Twilio
|
|
50
50
|
'ChannelOptimizedRouting' => channel_optimized_routing,
|
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
|
TaskChannelInstance.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 [TaskChannelInstance] Fetched TaskChannelInstance
|
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
|
TaskChannelInstance.new(
|
189
192
|
@version,
|
190
193
|
payload,
|
@@ -208,8 +211,9 @@ module Twilio
|
|
208
211
|
'ChannelOptimizedRouting' => channel_optimized_routing,
|
209
212
|
})
|
210
213
|
|
214
|
+
headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', })
|
211
215
|
|
212
|
-
payload = @version.update('POST', @uri, data: data)
|
216
|
+
payload = @version.update('POST', @uri, data: data, headers: headers)
|
213
217
|
TaskChannelInstance.new(
|
214
218
|
@version,
|
215
219
|
payload,
|
data/lib/twilio-ruby/rest/taskrouter/v1/workspace/task_queue/task_queue_bulk_real_time_statistics.rb
CHANGED
@@ -40,8 +40,9 @@ module Twilio
|
|
40
40
|
def create(body: :unset
|
41
41
|
)
|
42
42
|
|
43
|
-
headers = Twilio::Values.of({
|
44
|
-
|
43
|
+
headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', })
|
44
|
+
headers['Content-Type'] = 'application/json'
|
45
|
+
payload = @version.create('POST', @uri, headers: headers, data: body.to_json)
|
45
46
|
TaskQueueBulkRealTimeStatisticsInstance.new(
|
46
47
|
@version,
|
47
48
|
payload,
|
data/lib/twilio-ruby/rest/taskrouter/v1/workspace/task_queue/task_queue_cumulative_statistics.rb
CHANGED
@@ -82,8 +82,9 @@ module Twilio
|
|
82
82
|
'TaskChannel' => task_channel,
|
83
83
|
'SplitByWaitTime' => split_by_wait_time,
|
84
84
|
})
|
85
|
+
headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', })
|
85
86
|
|
86
|
-
payload = @version.fetch('GET', @uri, params: params)
|
87
|
+
payload = @version.fetch('GET', @uri, params: params, headers: headers)
|
87
88
|
TaskQueueCumulativeStatisticsInstance.new(
|
88
89
|
@version,
|
89
90
|
payload,
|
data/lib/twilio-ruby/rest/taskrouter/v1/workspace/task_queue/task_queue_real_time_statistics.rb
CHANGED
@@ -70,8 +70,9 @@ module Twilio
|
|
70
70
|
params = Twilio::Values.of({
|
71
71
|
'TaskChannel' => task_channel,
|
72
72
|
})
|
73
|
+
headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', })
|
73
74
|
|
74
|
-
payload = @version.fetch('GET', @uri, params: params)
|
75
|
+
payload = @version.fetch('GET', @uri, params: params, headers: headers)
|
75
76
|
TaskQueueRealTimeStatisticsInstance.new(
|
76
77
|
@version,
|
77
78
|
payload,
|
@@ -82,8 +82,9 @@ module Twilio
|
|
82
82
|
'TaskChannel' => task_channel,
|
83
83
|
'SplitByWaitTime' => split_by_wait_time,
|
84
84
|
})
|
85
|
+
headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', })
|
85
86
|
|
86
|
-
payload = @version.fetch('GET', @uri, params: params)
|
87
|
+
payload = @version.fetch('GET', @uri, params: params, headers: headers)
|
87
88
|
TaskQueueStatisticsInstance.new(
|
88
89
|
@version,
|
89
90
|
payload,
|
@@ -61,8 +61,9 @@ module Twilio
|
|
61
61
|
'AssignmentActivitySid' => assignment_activity_sid,
|
62
62
|
})
|
63
63
|
|
64
|
+
headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', })
|
64
65
|
|
65
|
-
payload = @version.create('POST', @uri, data: data)
|
66
|
+
payload = @version.create('POST', @uri, data: data, headers: headers)
|
66
67
|
TaskQueueInstance.new(
|
67
68
|
@version,
|
68
69
|
payload,
|
@@ -226,8 +227,9 @@ module Twilio
|
|
226
227
|
# @return [Boolean] True if delete succeeds, false otherwise
|
227
228
|
def delete
|
228
229
|
|
230
|
+
headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', })
|
229
231
|
|
230
|
-
@version.delete('DELETE', @uri)
|
232
|
+
@version.delete('DELETE', @uri, headers: headers)
|
231
233
|
end
|
232
234
|
|
233
235
|
##
|
@@ -235,8 +237,9 @@ module Twilio
|
|
235
237
|
# @return [TaskQueueInstance] Fetched TaskQueueInstance
|
236
238
|
def fetch
|
237
239
|
|
240
|
+
headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', })
|
238
241
|
|
239
|
-
payload = @version.fetch('GET', @uri)
|
242
|
+
payload = @version.fetch('GET', @uri, headers: headers)
|
240
243
|
TaskQueueInstance.new(
|
241
244
|
@version,
|
242
245
|
payload,
|
@@ -272,8 +275,9 @@ module Twilio
|
|
272
275
|
'TaskOrder' => task_order,
|
273
276
|
})
|
274
277
|
|
278
|
+
headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', })
|
275
279
|
|
276
|
-
payload = @version.update('POST', @uri, data: data)
|
280
|
+
payload = @version.update('POST', @uri, data: data, headers: headers)
|
277
281
|
TaskQueueInstance.new(
|
278
282
|
@version,
|
279
283
|
payload,
|
@@ -155,8 +155,9 @@ module Twilio
|
|
155
155
|
# @return [ReservationInstance] Fetched ReservationInstance
|
156
156
|
def fetch
|
157
157
|
|
158
|
+
headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', })
|
158
159
|
|
159
|
-
payload = @version.fetch('GET', @uri)
|
160
|
+
payload = @version.fetch('GET', @uri, headers: headers)
|
160
161
|
ReservationInstance.new(
|
161
162
|
@version,
|
162
163
|
payload,
|
@@ -333,8 +334,8 @@ module Twilio
|
|
333
334
|
'JitterBufferSize' => jitter_buffer_size,
|
334
335
|
})
|
335
336
|
|
337
|
+
headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', 'If-Match' => if_match, })
|
336
338
|
|
337
|
-
headers = Twilio::Values.of({ 'If-Match' => if_match, })
|
338
339
|
payload = @version.update('POST', @uri, data: data, headers: headers)
|
339
340
|
ReservationInstance.new(
|
340
341
|
@version,
|
@@ -149,8 +149,9 @@ module Twilio
|
|
149
149
|
# @return [WorkerChannelInstance] Fetched WorkerChannelInstance
|
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
|
WorkerChannelInstance.new(
|
155
156
|
@version,
|
156
157
|
payload,
|
@@ -175,8 +176,9 @@ module Twilio
|
|
175
176
|
'Available' => available,
|
176
177
|
})
|
177
178
|
|
179
|
+
headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', })
|
178
180
|
|
179
|
-
payload = @version.update('POST', @uri, data: data)
|
181
|
+
payload = @version.update('POST', @uri, data: data, headers: headers)
|
180
182
|
WorkerChannelInstance.new(
|
181
183
|
@version,
|
182
184
|
payload,
|
@@ -79,8 +79,9 @@ module Twilio
|
|
79
79
|
'EndDate' => Twilio.serialize_iso8601_datetime(end_date),
|
80
80
|
'TaskChannel' => task_channel,
|
81
81
|
})
|
82
|
+
headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', })
|
82
83
|
|
83
|
-
payload = @version.fetch('GET', @uri, params: params)
|
84
|
+
payload = @version.fetch('GET', @uri, params: params, headers: headers)
|
84
85
|
WorkerStatisticsInstance.new(
|
85
86
|
@version,
|
86
87
|
payload,
|
@@ -78,8 +78,9 @@ module Twilio
|
|
78
78
|
'StartDate' => Twilio.serialize_iso8601_datetime(start_date),
|
79
79
|
'TaskChannel' => task_channel,
|
80
80
|
})
|
81
|
+
headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', })
|
81
82
|
|
82
|
-
payload = @version.fetch('GET', @uri, params: params)
|
83
|
+
payload = @version.fetch('GET', @uri, params: params, headers: headers)
|
83
84
|
WorkersCumulativeStatisticsInstance.new(
|
84
85
|
@version,
|
85
86
|
payload,
|
@@ -69,8 +69,9 @@ module Twilio
|
|
69
69
|
params = Twilio::Values.of({
|
70
70
|
'TaskChannel' => task_channel,
|
71
71
|
})
|
72
|
+
headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', })
|
72
73
|
|
73
|
-
payload = @version.fetch('GET', @uri, params: params)
|
74
|
+
payload = @version.fetch('GET', @uri, params: params, headers: headers)
|
74
75
|
WorkersRealTimeStatisticsInstance.new(
|
75
76
|
@version,
|
76
77
|
payload,
|
@@ -87,8 +87,9 @@ module Twilio
|
|
87
87
|
'FriendlyName' => friendly_name,
|
88
88
|
'TaskChannel' => task_channel,
|
89
89
|
})
|
90
|
+
headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', })
|
90
91
|
|
91
|
-
payload = @version.fetch('GET', @uri, params: params)
|
92
|
+
payload = @version.fetch('GET', @uri, params: params, headers: headers)
|
92
93
|
WorkersStatisticsInstance.new(
|
93
94
|
@version,
|
94
95
|
payload,
|
@@ -51,8 +51,9 @@ module Twilio
|
|
51
51
|
'Attributes' => attributes,
|
52
52
|
})
|
53
53
|
|
54
|
+
headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', })
|
54
55
|
|
55
|
-
payload = @version.create('POST', @uri, data: data)
|
56
|
+
payload = @version.create('POST', @uri, data: data, headers: headers)
|
56
57
|
WorkerInstance.new(
|
57
58
|
@version,
|
58
59
|
payload,
|
@@ -237,8 +238,8 @@ module Twilio
|
|
237
238
|
if_match: :unset
|
238
239
|
)
|
239
240
|
|
241
|
+
headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', 'If-Match' => if_match, })
|
240
242
|
|
241
|
-
headers = Twilio::Values.of({ 'If-Match' => if_match, })
|
242
243
|
@version.delete('DELETE', @uri, headers: headers)
|
243
244
|
end
|
244
245
|
|
@@ -247,8 +248,9 @@ module Twilio
|
|
247
248
|
# @return [WorkerInstance] Fetched WorkerInstance
|
248
249
|
def fetch
|
249
250
|
|
251
|
+
headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', })
|
250
252
|
|
251
|
-
payload = @version.fetch('GET', @uri)
|
253
|
+
payload = @version.fetch('GET', @uri, headers: headers)
|
252
254
|
WorkerInstance.new(
|
253
255
|
@version,
|
254
256
|
payload,
|
@@ -280,8 +282,8 @@ module Twilio
|
|
280
282
|
'RejectPendingReservations' => reject_pending_reservations,
|
281
283
|
})
|
282
284
|
|
285
|
+
headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', 'If-Match' => if_match, })
|
283
286
|
|
284
|
-
headers = Twilio::Values.of({ 'If-Match' => if_match, })
|
285
287
|
payload = @version.update('POST', @uri, data: data, headers: headers)
|
286
288
|
WorkerInstance.new(
|
287
289
|
@version,
|
data/lib/twilio-ruby/rest/taskrouter/v1/workspace/workflow/workflow_cumulative_statistics.rb
CHANGED
@@ -82,8 +82,9 @@ module Twilio
|
|
82
82
|
'TaskChannel' => task_channel,
|
83
83
|
'SplitByWaitTime' => split_by_wait_time,
|
84
84
|
})
|
85
|
+
headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', })
|
85
86
|
|
86
|
-
payload = @version.fetch('GET', @uri, params: params)
|
87
|
+
payload = @version.fetch('GET', @uri, params: params, headers: headers)
|
87
88
|
WorkflowCumulativeStatisticsInstance.new(
|
88
89
|
@version,
|
89
90
|
payload,
|
@@ -70,8 +70,9 @@ module Twilio
|
|
70
70
|
params = Twilio::Values.of({
|
71
71
|
'TaskChannel' => task_channel,
|
72
72
|
})
|
73
|
+
headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', })
|
73
74
|
|
74
|
-
payload = @version.fetch('GET', @uri, params: params)
|
75
|
+
payload = @version.fetch('GET', @uri, params: params, headers: headers)
|
75
76
|
WorkflowRealTimeStatisticsInstance.new(
|
76
77
|
@version,
|
77
78
|
payload,
|