twilio-ruby 6.2.0 → 6.8.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/CHANGES.md +205 -0
- data/CONTRIBUTING.md +1 -1
- data/LICENSE +1 -1
- data/README.md +2 -2
- data/lib/twilio-ruby/base/client_base.rb +4 -7
- data/lib/twilio-ruby/rest/accounts/v1/credential/aws.rb +0 -1
- data/lib/twilio-ruby/rest/accounts/v1/credential/public_key.rb +0 -1
- data/lib/twilio-ruby/rest/accounts/v1/safelist.rb +169 -0
- data/lib/twilio-ruby/rest/accounts/v1.rb +6 -0
- data/lib/twilio-ruby/rest/api/v2010/account/address/dependent_phone_number.rb +0 -1
- data/lib/twilio-ruby/rest/api/v2010/account/address.rb +1 -5
- data/lib/twilio-ruby/rest/api/v2010/account/application.rb +0 -2
- data/lib/twilio-ruby/rest/api/v2010/account/authorized_connect_app.rb +0 -1
- data/lib/twilio-ruby/rest/api/v2010/account/available_phone_number_country/local.rb +0 -19
- data/lib/twilio-ruby/rest/api/v2010/account/available_phone_number_country/machine_to_machine.rb +0 -19
- data/lib/twilio-ruby/rest/api/v2010/account/available_phone_number_country/mobile.rb +0 -19
- data/lib/twilio-ruby/rest/api/v2010/account/available_phone_number_country/national.rb +0 -19
- data/lib/twilio-ruby/rest/api/v2010/account/available_phone_number_country/shared_cost.rb +0 -19
- data/lib/twilio-ruby/rest/api/v2010/account/available_phone_number_country/toll_free.rb +0 -19
- data/lib/twilio-ruby/rest/api/v2010/account/available_phone_number_country/voip.rb +0 -19
- data/lib/twilio-ruby/rest/api/v2010/account/available_phone_number_country.rb +7 -8
- data/lib/twilio-ruby/rest/api/v2010/account/call/event.rb +0 -1
- data/lib/twilio-ruby/rest/api/v2010/account/call/notification.rb +0 -5
- data/lib/twilio-ruby/rest/api/v2010/account/call/recording.rb +0 -4
- data/lib/twilio-ruby/rest/api/v2010/account/call.rb +8 -19
- data/lib/twilio-ruby/rest/api/v2010/account/conference/participant.rb +5 -6
- data/lib/twilio-ruby/rest/api/v2010/account/conference/recording.rb +0 -4
- data/lib/twilio-ruby/rest/api/v2010/account/conference.rb +2 -11
- data/lib/twilio-ruby/rest/api/v2010/account/connect_app.rb +0 -1
- data/lib/twilio-ruby/rest/api/v2010/account/incoming_phone_number/assigned_add_on/assigned_add_on_extension.rb +0 -1
- data/lib/twilio-ruby/rest/api/v2010/account/incoming_phone_number/assigned_add_on.rb +1 -2
- data/lib/twilio-ruby/rest/api/v2010/account/incoming_phone_number/local.rb +0 -5
- data/lib/twilio-ruby/rest/api/v2010/account/incoming_phone_number/mobile.rb +0 -5
- data/lib/twilio-ruby/rest/api/v2010/account/incoming_phone_number/toll_free.rb +0 -5
- data/lib/twilio-ruby/rest/api/v2010/account/incoming_phone_number.rb +1 -6
- data/lib/twilio-ruby/rest/api/v2010/account/key.rb +0 -1
- data/lib/twilio-ruby/rest/api/v2010/account/message/feedback.rb +4 -4
- data/lib/twilio-ruby/rest/api/v2010/account/message/media.rb +19 -23
- data/lib/twilio-ruby/rest/api/v2010/account/message.rb +55 -58
- data/lib/twilio-ruby/rest/api/v2010/account/notification.rb +0 -5
- data/lib/twilio-ruby/rest/api/v2010/account/outgoing_caller_id.rb +0 -3
- data/lib/twilio-ruby/rest/api/v2010/account/queue/member.rb +0 -1
- data/lib/twilio-ruby/rest/api/v2010/account/queue.rb +1 -2
- data/lib/twilio-ruby/rest/api/v2010/account/recording/add_on_result/payload.rb +0 -1
- data/lib/twilio-ruby/rest/api/v2010/account/recording/add_on_result.rb +1 -2
- data/lib/twilio-ruby/rest/api/v2010/account/recording/transcription.rb +0 -1
- data/lib/twilio-ruby/rest/api/v2010/account/recording.rb +2 -9
- data/lib/twilio-ruby/rest/api/v2010/account/short_code.rb +0 -3
- data/lib/twilio-ruby/rest/api/v2010/account/signing_key.rb +0 -1
- data/lib/twilio-ruby/rest/api/v2010/account/sip/credential_list/credential.rb +0 -1
- data/lib/twilio-ruby/rest/api/v2010/account/sip/credential_list.rb +1 -2
- data/lib/twilio-ruby/rest/api/v2010/account/sip/domain/auth_types/auth_type_calls/auth_calls_credential_list_mapping.rb +0 -1
- data/lib/twilio-ruby/rest/api/v2010/account/sip/domain/auth_types/auth_type_calls/auth_calls_ip_access_control_list_mapping.rb +0 -1
- data/lib/twilio-ruby/rest/api/v2010/account/sip/domain/auth_types/auth_type_registrations/auth_registrations_credential_list_mapping.rb +0 -1
- data/lib/twilio-ruby/rest/api/v2010/account/sip/domain/credential_list_mapping.rb +0 -1
- data/lib/twilio-ruby/rest/api/v2010/account/sip/domain/ip_access_control_list_mapping.rb +0 -1
- data/lib/twilio-ruby/rest/api/v2010/account/sip/domain.rb +3 -4
- data/lib/twilio-ruby/rest/api/v2010/account/sip/ip_access_control_list/ip_address.rb +0 -1
- data/lib/twilio-ruby/rest/api/v2010/account/sip/ip_access_control_list.rb +1 -2
- data/lib/twilio-ruby/rest/api/v2010/account/transcription.rb +0 -1
- data/lib/twilio-ruby/rest/api/v2010/account/usage/record/all_time.rb +0 -5
- data/lib/twilio-ruby/rest/api/v2010/account/usage/record/daily.rb +0 -5
- data/lib/twilio-ruby/rest/api/v2010/account/usage/record/last_month.rb +0 -5
- data/lib/twilio-ruby/rest/api/v2010/account/usage/record/monthly.rb +0 -5
- data/lib/twilio-ruby/rest/api/v2010/account/usage/record/this_month.rb +0 -5
- data/lib/twilio-ruby/rest/api/v2010/account/usage/record/today.rb +0 -5
- data/lib/twilio-ruby/rest/api/v2010/account/usage/record/yearly.rb +0 -5
- data/lib/twilio-ruby/rest/api/v2010/account/usage/record/yesterday.rb +0 -5
- data/lib/twilio-ruby/rest/api/v2010/account/usage/record.rb +0 -5
- data/lib/twilio-ruby/rest/api/v2010/account/usage/trigger.rb +0 -4
- data/lib/twilio-ruby/rest/api/v2010/account.rb +0 -3
- data/lib/twilio-ruby/rest/autopilot/v1/assistant/field_type/field_value.rb +0 -2
- data/lib/twilio-ruby/rest/autopilot/v1/assistant/field_type.rb +1 -2
- data/lib/twilio-ruby/rest/autopilot/v1/assistant/model_build.rb +0 -1
- data/lib/twilio-ruby/rest/autopilot/v1/assistant/query.rb +0 -5
- data/lib/twilio-ruby/rest/autopilot/v1/assistant/task/field.rb +0 -1
- data/lib/twilio-ruby/rest/autopilot/v1/assistant/task/sample.rb +0 -2
- data/lib/twilio-ruby/rest/autopilot/v1/assistant/task.rb +2 -3
- data/lib/twilio-ruby/rest/autopilot/v1/assistant/webhook.rb +0 -1
- data/lib/twilio-ruby/rest/autopilot/v1/assistant.rb +0 -1
- data/lib/twilio-ruby/rest/bulkexports/v1/export/day.rb +0 -1
- data/lib/twilio-ruby/rest/bulkexports/v1/export/export_custom_job.rb +0 -1
- data/lib/twilio-ruby/rest/chat/v1/credential.rb +0 -1
- data/lib/twilio-ruby/rest/chat/v1/service/channel/invite.rb +1 -2
- data/lib/twilio-ruby/rest/chat/v1/service/channel/member.rb +1 -2
- data/lib/twilio-ruby/rest/chat/v1/service/channel/message.rb +0 -2
- data/lib/twilio-ruby/rest/chat/v1/service/channel.rb +4 -5
- data/lib/twilio-ruby/rest/chat/v1/service/role.rb +0 -1
- data/lib/twilio-ruby/rest/chat/v1/service/user/user_channel.rb +0 -1
- data/lib/twilio-ruby/rest/chat/v1/service/user.rb +1 -2
- data/lib/twilio-ruby/rest/chat/v1/service.rb +0 -1
- data/lib/twilio-ruby/rest/chat/v2/credential.rb +0 -1
- data/lib/twilio-ruby/rest/chat/v2/service/binding.rb +2 -3
- data/lib/twilio-ruby/rest/chat/v2/service/channel/invite.rb +1 -2
- data/lib/twilio-ruby/rest/chat/v2/service/channel/member.rb +1 -2
- data/lib/twilio-ruby/rest/chat/v2/service/channel/message.rb +0 -2
- data/lib/twilio-ruby/rest/chat/v2/service/channel/webhook.rb +0 -1
- data/lib/twilio-ruby/rest/chat/v2/service/channel.rb +5 -6
- data/lib/twilio-ruby/rest/chat/v2/service/role.rb +0 -1
- data/lib/twilio-ruby/rest/chat/v2/service/user/user_binding.rb +1 -2
- data/lib/twilio-ruby/rest/chat/v2/service/user/user_channel.rb +0 -1
- data/lib/twilio-ruby/rest/chat/v2/service/user.rb +2 -3
- data/lib/twilio-ruby/rest/chat/v2/service.rb +0 -1
- data/lib/twilio-ruby/rest/chat/v3/channel.rb +3 -3
- data/lib/twilio-ruby/rest/client.rb +1 -6
- data/lib/twilio-ruby/rest/content/v1/content.rb +1 -2
- data/lib/twilio-ruby/rest/content/v1/content_and_approvals.rb +1 -2
- data/lib/twilio-ruby/rest/content/v1/legacy_content.rb +1 -2
- data/lib/twilio-ruby/rest/conversations/v1/address_configuration.rb +0 -2
- data/lib/twilio-ruby/rest/conversations/v1/configuration.rb +3 -3
- data/lib/twilio-ruby/rest/conversations/v1/conversation/message/delivery_receipt.rb +0 -1
- data/lib/twilio-ruby/rest/conversations/v1/conversation/message.rb +12 -5
- data/lib/twilio-ruby/rest/conversations/v1/conversation/participant.rb +0 -1
- data/lib/twilio-ruby/rest/conversations/v1/conversation/webhook.rb +0 -1
- data/lib/twilio-ruby/rest/conversations/v1/conversation.rb +22 -8
- data/lib/twilio-ruby/rest/conversations/v1/credential.rb +0 -1
- data/lib/twilio-ruby/rest/conversations/v1/participant_conversation.rb +0 -3
- data/lib/twilio-ruby/rest/conversations/v1/role.rb +0 -1
- data/lib/twilio-ruby/rest/conversations/v1/service/binding.rb +2 -3
- data/lib/twilio-ruby/rest/conversations/v1/service/configuration.rb +12 -12
- data/lib/twilio-ruby/rest/conversations/v1/service/conversation/message/delivery_receipt.rb +0 -1
- data/lib/twilio-ruby/rest/conversations/v1/service/conversation/message.rb +12 -5
- data/lib/twilio-ruby/rest/conversations/v1/service/conversation/participant.rb +19 -20
- data/lib/twilio-ruby/rest/conversations/v1/service/conversation/webhook.rb +0 -1
- data/lib/twilio-ruby/rest/conversations/v1/service/conversation.rb +25 -11
- data/lib/twilio-ruby/rest/conversations/v1/service/participant_conversation.rb +0 -3
- data/lib/twilio-ruby/rest/conversations/v1/service/role.rb +0 -1
- data/lib/twilio-ruby/rest/conversations/v1/service/user/user_conversation.rb +0 -1
- data/lib/twilio-ruby/rest/conversations/v1/service/user.rb +1 -2
- data/lib/twilio-ruby/rest/conversations/v1/service.rb +0 -1
- data/lib/twilio-ruby/rest/conversations/v1/user/user_conversation.rb +0 -1
- data/lib/twilio-ruby/rest/conversations/v1/user.rb +0 -1
- data/lib/twilio-ruby/rest/events/v1/event_type.rb +0 -2
- data/lib/twilio-ruby/rest/events/v1/schema/schema_version.rb +0 -1
- data/lib/twilio-ruby/rest/events/v1/sink.rb +0 -3
- data/lib/twilio-ruby/rest/events/v1/subscription/subscribed_event.rb +0 -1
- data/lib/twilio-ruby/rest/events/v1/subscription.rb +0 -2
- data/lib/twilio-ruby/rest/flex_api/v1/assessments.rb +0 -3
- data/lib/twilio-ruby/rest/flex_api/v1/channel.rb +0 -1
- data/lib/twilio-ruby/rest/flex_api/v1/configuration.rb +21 -0
- data/lib/twilio-ruby/rest/flex_api/v1/flex_flow.rb +0 -2
- data/lib/twilio-ruby/rest/flex_api/v1/insights_assessments_comment.rb +0 -4
- data/lib/twilio-ruby/rest/flex_api/v1/insights_conversations.rb +0 -3
- data/lib/twilio-ruby/rest/flex_api/v1/insights_questionnaires.rb +0 -3
- data/lib/twilio-ruby/rest/flex_api/v1/insights_questionnaires_category.rb +0 -2
- data/lib/twilio-ruby/rest/flex_api/v1/insights_questionnaires_question.rb +1 -3
- data/lib/twilio-ruby/rest/flex_api/v1/insights_segments.rb +1 -4
- data/lib/twilio-ruby/rest/flex_api/v1/interaction/interaction_channel/interaction_channel_invite.rb +0 -1
- data/lib/twilio-ruby/rest/flex_api/v1/interaction/interaction_channel/interaction_channel_participant.rb +0 -1
- data/lib/twilio-ruby/rest/flex_api/v1/interaction/interaction_channel.rb +6 -7
- data/lib/twilio-ruby/rest/flex_api/v1/interaction.rb +11 -1
- data/lib/twilio-ruby/rest/{oauth/v1/oauth.rb → flex_api/v1/provisioning_status.rb} +39 -37
- data/lib/twilio-ruby/rest/flex_api/v1/web_channel.rb +0 -1
- data/lib/twilio-ruby/rest/flex_api/v1.rb +6 -0
- data/lib/twilio-ruby/rest/insights/v1/call/annotation.rb +1 -1
- data/lib/twilio-ruby/rest/insights/v1/call/event.rb +0 -2
- data/lib/twilio-ruby/rest/insights/v1/call/metric.rb +0 -3
- data/lib/twilio-ruby/rest/insights/v1/call_summaries.rb +33 -51
- data/lib/twilio-ruby/rest/insights/v1/conference/conference_participant.rb +0 -4
- data/lib/twilio-ruby/rest/insights/v1/conference.rb +0 -11
- data/lib/twilio-ruby/rest/insights/v1/room/participant.rb +3 -4
- data/lib/twilio-ruby/rest/insights/v1/room.rb +2 -6
- data/lib/twilio-ruby/rest/intelligence/v2/service.rb +4 -5
- data/lib/twilio-ruby/rest/intelligence/v2/transcript/media.rb +2 -2
- data/lib/twilio-ruby/rest/intelligence/v2/transcript/operator_result.rb +12 -7
- data/lib/twilio-ruby/rest/intelligence/v2/transcript/sentence.rb +3 -5
- data/lib/twilio-ruby/rest/intelligence/v2/transcript.rb +5 -25
- data/lib/twilio-ruby/rest/ip_messaging/v1/credential.rb +0 -1
- data/lib/twilio-ruby/rest/ip_messaging/v1/service/channel/invite.rb +1 -2
- data/lib/twilio-ruby/rest/ip_messaging/v1/service/channel/member.rb +1 -2
- data/lib/twilio-ruby/rest/ip_messaging/v1/service/channel/message.rb +0 -2
- data/lib/twilio-ruby/rest/ip_messaging/v1/service/channel.rb +4 -5
- data/lib/twilio-ruby/rest/ip_messaging/v1/service/role.rb +0 -1
- data/lib/twilio-ruby/rest/ip_messaging/v1/service/user/user_channel.rb +0 -1
- data/lib/twilio-ruby/rest/ip_messaging/v1/service/user.rb +1 -2
- data/lib/twilio-ruby/rest/ip_messaging/v1/service.rb +0 -1
- data/lib/twilio-ruby/rest/ip_messaging/v2/credential.rb +0 -1
- data/lib/twilio-ruby/rest/ip_messaging/v2/service/binding.rb +2 -3
- data/lib/twilio-ruby/rest/ip_messaging/v2/service/channel/invite.rb +1 -2
- data/lib/twilio-ruby/rest/ip_messaging/v2/service/channel/member.rb +1 -2
- data/lib/twilio-ruby/rest/ip_messaging/v2/service/channel/message.rb +0 -2
- data/lib/twilio-ruby/rest/ip_messaging/v2/service/channel/webhook.rb +0 -1
- data/lib/twilio-ruby/rest/ip_messaging/v2/service/channel.rb +5 -6
- data/lib/twilio-ruby/rest/ip_messaging/v2/service/role.rb +0 -1
- data/lib/twilio-ruby/rest/ip_messaging/v2/service/user/user_binding.rb +1 -2
- data/lib/twilio-ruby/rest/ip_messaging/v2/service/user/user_channel.rb +0 -1
- data/lib/twilio-ruby/rest/ip_messaging/v2/service/user.rb +2 -3
- data/lib/twilio-ruby/rest/ip_messaging/v2/service.rb +0 -1
- data/lib/twilio-ruby/rest/lookups/v2/phone_number.rb +7 -0
- data/lib/twilio-ruby/rest/media/v1/media_processor.rb +7 -10
- data/lib/twilio-ruby/rest/media/v1/media_recording.rb +1 -6
- data/lib/twilio-ruby/rest/media/v1/player_streamer.rb +2 -5
- data/lib/twilio-ruby/rest/messaging/v1/brand_registration/brand_vetting.rb +0 -2
- data/lib/twilio-ruby/rest/messaging/v1/brand_registration.rb +0 -1
- data/lib/twilio-ruby/rest/messaging/v1/external_campaign.rb +2 -2
- data/lib/twilio-ruby/rest/messaging/v1/service/alpha_sender.rb +0 -1
- data/lib/twilio-ruby/rest/messaging/v1/service/channel_sender.rb +329 -0
- data/lib/twilio-ruby/rest/messaging/v1/service/phone_number.rb +0 -1
- data/lib/twilio-ruby/rest/messaging/v1/service/short_code.rb +0 -1
- data/lib/twilio-ruby/rest/messaging/v1/service/us_app_to_person.rb +4 -5
- data/lib/twilio-ruby/rest/messaging/v1/service.rb +78 -52
- data/lib/twilio-ruby/rest/messaging/v1/tollfree_verification.rb +777 -0
- data/lib/twilio-ruby/rest/messaging/v1.rb +15 -0
- data/lib/twilio-ruby/rest/microvisor/v1/account_config.rb +0 -1
- data/lib/twilio-ruby/rest/microvisor/v1/account_secret.rb +0 -1
- data/lib/twilio-ruby/rest/microvisor/v1/app.rb +0 -1
- data/lib/twilio-ruby/rest/microvisor/v1/device/device_config.rb +0 -1
- data/lib/twilio-ruby/rest/microvisor/v1/device/device_secret.rb +0 -1
- data/lib/twilio-ruby/rest/microvisor/v1/device.rb +8 -3
- data/lib/twilio-ruby/rest/monitor/v1/alert.rb +0 -4
- data/lib/twilio-ruby/rest/monitor/v1/event.rb +0 -7
- data/lib/twilio-ruby/rest/notify/v1/credential.rb +0 -1
- data/lib/twilio-ruby/rest/notify/v1/service/binding.rb +2 -5
- data/lib/twilio-ruby/rest/notify/v1/service/notification.rb +1 -1
- data/lib/twilio-ruby/rest/notify/v1/service.rb +4 -6
- data/lib/twilio-ruby/rest/numbers/v1/porting_portability.rb +22 -4
- data/lib/twilio-ruby/rest/numbers/v2/authorization_document/dependent_hosted_number_order.rb +7 -12
- data/lib/twilio-ruby/rest/numbers/v2/authorization_document.rb +6 -6
- data/lib/twilio-ruby/rest/numbers/v2/bulk_hosted_number_order.rb +249 -0
- data/lib/twilio-ruby/rest/numbers/v2/hosted_number_order.rb +7 -20
- data/lib/twilio-ruby/rest/numbers/v2/regulatory_compliance/bundle/bundle_copy.rb +0 -1
- data/lib/twilio-ruby/rest/numbers/v2/regulatory_compliance/bundle/evaluation.rb +0 -1
- data/lib/twilio-ruby/rest/numbers/v2/regulatory_compliance/bundle/item_assignment.rb +0 -1
- data/lib/twilio-ruby/rest/numbers/v2/regulatory_compliance/bundle.rb +19 -31
- data/lib/twilio-ruby/rest/numbers/v2/regulatory_compliance/end_user.rb +0 -1
- data/lib/twilio-ruby/rest/numbers/v2/regulatory_compliance/end_user_type.rb +0 -1
- data/lib/twilio-ruby/rest/numbers/v2/regulatory_compliance/regulation.rb +0 -4
- data/lib/twilio-ruby/rest/numbers/v2/regulatory_compliance/supporting_document.rb +0 -1
- data/lib/twilio-ruby/rest/numbers/v2/regulatory_compliance/supporting_document_type.rb +0 -1
- data/lib/twilio-ruby/rest/numbers/v2/regulatory_compliance.rb +14 -14
- data/lib/twilio-ruby/rest/numbers/v2.rb +15 -0
- data/lib/twilio-ruby/rest/preview/deployed_devices/fleet/certificate.rb +0 -2
- data/lib/twilio-ruby/rest/preview/deployed_devices/fleet/deployment.rb +0 -1
- data/lib/twilio-ruby/rest/preview/deployed_devices/fleet/device.rb +0 -2
- data/lib/twilio-ruby/rest/preview/deployed_devices/fleet/key.rb +0 -2
- data/lib/twilio-ruby/rest/preview/deployed_devices/fleet.rb +0 -1
- data/lib/twilio-ruby/rest/preview/hosted_numbers/authorization_document/dependent_hosted_number_order.rb +3 -9
- data/lib/twilio-ruby/rest/preview/hosted_numbers/authorization_document.rb +4 -7
- data/lib/twilio-ruby/rest/preview/hosted_numbers/hosted_number_order.rb +3 -9
- data/lib/twilio-ruby/rest/preview/marketplace/available_add_on/available_add_on_extension.rb +0 -1
- data/lib/twilio-ruby/rest/preview/marketplace/available_add_on.rb +0 -1
- data/lib/twilio-ruby/rest/preview/marketplace/installed_add_on/installed_add_on_extension.rb +0 -1
- data/lib/twilio-ruby/rest/preview/marketplace/installed_add_on.rb +0 -1
- data/lib/twilio-ruby/rest/preview/sync/service/document/document_permission.rb +0 -1
- data/lib/twilio-ruby/rest/preview/sync/service/document.rb +1 -2
- data/lib/twilio-ruby/rest/preview/sync/service/sync_list/sync_list_item.rb +0 -4
- data/lib/twilio-ruby/rest/preview/sync/service/sync_list/sync_list_permission.rb +0 -1
- data/lib/twilio-ruby/rest/preview/sync/service/sync_list.rb +2 -3
- data/lib/twilio-ruby/rest/preview/sync/service/sync_map/sync_map_item.rb +0 -4
- data/lib/twilio-ruby/rest/preview/sync/service/sync_map/sync_map_permission.rb +0 -1
- data/lib/twilio-ruby/rest/preview/sync/service/sync_map.rb +2 -3
- data/lib/twilio-ruby/rest/preview/sync/service.rb +0 -1
- data/lib/twilio-ruby/rest/preview/understand/assistant/field_type/field_value.rb +0 -2
- data/lib/twilio-ruby/rest/preview/understand/assistant/field_type.rb +1 -2
- data/lib/twilio-ruby/rest/preview/understand/assistant/model_build.rb +0 -1
- data/lib/twilio-ruby/rest/preview/understand/assistant/query.rb +0 -4
- data/lib/twilio-ruby/rest/preview/understand/assistant/task/field.rb +0 -1
- data/lib/twilio-ruby/rest/preview/understand/assistant/task/sample.rb +0 -2
- data/lib/twilio-ruby/rest/preview/understand/assistant/task.rb +2 -3
- data/lib/twilio-ruby/rest/preview/understand/assistant.rb +0 -1
- data/lib/twilio-ruby/rest/preview/wireless/command.rb +0 -5
- data/lib/twilio-ruby/rest/preview/wireless/rate_plan.rb +0 -1
- data/lib/twilio-ruby/rest/preview/wireless/sim.rb +0 -6
- data/lib/twilio-ruby/rest/pricing/v1/messaging/country.rb +0 -1
- data/lib/twilio-ruby/rest/pricing/v1/phone_number/country.rb +0 -1
- data/lib/twilio-ruby/rest/pricing/v1/voice/country.rb +0 -1
- data/lib/twilio-ruby/rest/pricing/v2/country.rb +0 -1
- data/lib/twilio-ruby/rest/pricing/v2/voice/country.rb +0 -1
- data/lib/twilio-ruby/rest/proxy/v1/service/phone_number.rb +0 -1
- data/lib/twilio-ruby/rest/proxy/v1/service/session/interaction.rb +1 -2
- data/lib/twilio-ruby/rest/proxy/v1/service/session/participant/message_interaction.rb +0 -1
- data/lib/twilio-ruby/rest/proxy/v1/service/session/participant.rb +1 -2
- data/lib/twilio-ruby/rest/proxy/v1/service/session.rb +2 -3
- data/lib/twilio-ruby/rest/proxy/v1/service/short_code.rb +1 -2
- data/lib/twilio-ruby/rest/proxy/v1/service.rb +4 -5
- data/lib/twilio-ruby/rest/serverless/v1/service/asset/asset_version.rb +0 -1
- data/lib/twilio-ruby/rest/serverless/v1/service/asset.rb +1 -2
- data/lib/twilio-ruby/rest/serverless/v1/service/build.rb +0 -1
- data/lib/twilio-ruby/rest/serverless/v1/service/environment/deployment.rb +0 -1
- data/lib/twilio-ruby/rest/serverless/v1/service/environment/log.rb +0 -4
- data/lib/twilio-ruby/rest/serverless/v1/service/environment/variable.rb +0 -1
- data/lib/twilio-ruby/rest/serverless/v1/service/environment.rb +3 -4
- data/lib/twilio-ruby/rest/serverless/v1/service/function/function_version.rb +0 -1
- data/lib/twilio-ruby/rest/serverless/v1/service/function.rb +1 -2
- data/lib/twilio-ruby/rest/serverless/v1/service.rb +0 -1
- data/lib/twilio-ruby/rest/studio/v1/flow/engagement/step.rb +0 -1
- data/lib/twilio-ruby/rest/studio/v1/flow/engagement.rb +1 -2
- data/lib/twilio-ruby/rest/studio/v1/flow/execution/execution_step.rb +0 -1
- data/lib/twilio-ruby/rest/studio/v1/flow/execution.rb +1 -4
- data/lib/twilio-ruby/rest/studio/v1/flow.rb +0 -1
- data/lib/twilio-ruby/rest/studio/v2/flow/execution/execution_step.rb +0 -1
- data/lib/twilio-ruby/rest/studio/v2/flow/execution.rb +1 -4
- data/lib/twilio-ruby/rest/studio/v2/flow/flow_revision.rb +0 -1
- data/lib/twilio-ruby/rest/studio/v2/flow.rb +0 -1
- data/lib/twilio-ruby/rest/supersim/v1/esim_profile.rb +4 -8
- data/lib/twilio-ruby/rest/supersim/v1/fleet.rb +0 -2
- data/lib/twilio-ruby/rest/supersim/v1/ip_command.rb +3 -8
- data/lib/twilio-ruby/rest/supersim/v1/network.rb +0 -4
- data/lib/twilio-ruby/rest/supersim/v1/network_access_profile/network_access_profile_network.rb +0 -1
- data/lib/twilio-ruby/rest/supersim/v1/network_access_profile.rb +0 -1
- data/lib/twilio-ruby/rest/supersim/v1/settings_update.rb +0 -3
- data/lib/twilio-ruby/rest/supersim/v1/sim/billing_period.rb +0 -1
- data/lib/twilio-ruby/rest/supersim/v1/sim/sim_ip_address.rb +0 -1
- data/lib/twilio-ruby/rest/supersim/v1/sim.rb +0 -4
- data/lib/twilio-ruby/rest/supersim/v1/sms_command.rb +0 -4
- data/lib/twilio-ruby/rest/supersim/v1/usage_record.rb +0 -9
- data/lib/twilio-ruby/rest/sync/v1/service/document/document_permission.rb +0 -1
- data/lib/twilio-ruby/rest/sync/v1/service/document.rb +1 -2
- data/lib/twilio-ruby/rest/sync/v1/service/sync_list/sync_list_item.rb +0 -4
- data/lib/twilio-ruby/rest/sync/v1/service/sync_list/sync_list_permission.rb +0 -1
- data/lib/twilio-ruby/rest/sync/v1/service/sync_list.rb +2 -3
- data/lib/twilio-ruby/rest/sync/v1/service/sync_map/sync_map_item.rb +0 -4
- data/lib/twilio-ruby/rest/sync/v1/service/sync_map/sync_map_permission.rb +0 -1
- data/lib/twilio-ruby/rest/sync/v1/service/sync_map.rb +2 -3
- data/lib/twilio-ruby/rest/sync/v1/service/sync_stream.rb +1 -2
- data/lib/twilio-ruby/rest/sync/v1/service.rb +0 -1
- data/lib/twilio-ruby/rest/taskrouter/v1/workspace/activity.rb +0 -3
- data/lib/twilio-ruby/rest/taskrouter/v1/workspace/event.rb +0 -12
- data/lib/twilio-ruby/rest/taskrouter/v1/workspace/task/reservation.rb +0 -3
- data/lib/twilio-ruby/rest/taskrouter/v1/workspace/task.rb +26 -19
- data/lib/twilio-ruby/rest/taskrouter/v1/workspace/task_channel.rb +0 -1
- data/lib/twilio-ruby/rest/taskrouter/v1/workspace/task_queue/task_queues_statistics.rb +0 -7
- data/lib/twilio-ruby/rest/taskrouter/v1/workspace/task_queue.rb +8 -5
- data/lib/twilio-ruby/rest/taskrouter/v1/workspace/worker/reservation.rb +0 -2
- data/lib/twilio-ruby/rest/taskrouter/v1/workspace/worker/worker_channel.rb +0 -1
- data/lib/twilio-ruby/rest/taskrouter/v1/workspace/worker.rb +2 -11
- data/lib/twilio-ruby/rest/taskrouter/v1/workspace/workflow.rb +0 -2
- data/lib/twilio-ruby/rest/taskrouter/v1/workspace.rb +0 -2
- data/lib/twilio-ruby/rest/trunking/v1/trunk/credential_list.rb +0 -1
- data/lib/twilio-ruby/rest/trunking/v1/trunk/ip_access_control_list.rb +0 -1
- data/lib/twilio-ruby/rest/trunking/v1/trunk/origination_url.rb +0 -1
- data/lib/twilio-ruby/rest/trunking/v1/trunk/phone_number.rb +0 -1
- data/lib/twilio-ruby/rest/trunking/v1/trunk.rb +0 -1
- data/lib/twilio-ruby/rest/trusthub/v1/compliance_inquiries.rb +232 -0
- data/lib/twilio-ruby/rest/trusthub/v1/compliance_tollfree_inquiries.rb +154 -0
- data/lib/twilio-ruby/rest/trusthub/v1/customer_profiles/customer_profiles_channel_endpoint_assignment.rb +0 -3
- data/lib/twilio-ruby/rest/trusthub/v1/customer_profiles/customer_profiles_entity_assignments.rb +0 -1
- data/lib/twilio-ruby/rest/trusthub/v1/customer_profiles/customer_profiles_evaluations.rb +0 -1
- data/lib/twilio-ruby/rest/trusthub/v1/customer_profiles.rb +0 -4
- data/lib/twilio-ruby/rest/trusthub/v1/end_user.rb +0 -1
- data/lib/twilio-ruby/rest/trusthub/v1/end_user_type.rb +0 -1
- data/lib/twilio-ruby/rest/trusthub/v1/policies.rb +0 -1
- data/lib/twilio-ruby/rest/trusthub/v1/supporting_document.rb +0 -1
- data/lib/twilio-ruby/rest/trusthub/v1/supporting_document_type.rb +0 -1
- data/lib/twilio-ruby/rest/trusthub/v1/trust_products/trust_products_channel_endpoint_assignment.rb +0 -3
- data/lib/twilio-ruby/rest/trusthub/v1/trust_products/trust_products_entity_assignments.rb +0 -1
- data/lib/twilio-ruby/rest/trusthub/v1/trust_products/trust_products_evaluations.rb +0 -1
- data/lib/twilio-ruby/rest/trusthub/v1/trust_products.rb +0 -4
- data/lib/twilio-ruby/rest/trusthub/v1.rb +21 -0
- data/lib/twilio-ruby/rest/verify/v2/service/entity/challenge.rb +1 -5
- data/lib/twilio-ruby/rest/verify/v2/service/entity/factor.rb +0 -1
- data/lib/twilio-ruby/rest/verify/v2/service/entity.rb +3 -4
- data/lib/twilio-ruby/rest/verify/v2/service/messaging_configuration.rb +4 -5
- data/lib/twilio-ruby/rest/verify/v2/service/rate_limit/bucket.rb +0 -1
- data/lib/twilio-ruby/rest/verify/v2/service/rate_limit.rb +1 -2
- data/lib/twilio-ruby/rest/verify/v2/service/verification.rb +7 -1
- data/lib/twilio-ruby/rest/verify/v2/service/webhook.rb +0 -1
- data/lib/twilio-ruby/rest/verify/v2/service.rb +19 -4
- data/lib/twilio-ruby/rest/verify/v2/template.rb +0 -2
- data/lib/twilio-ruby/rest/verify/v2/verification_attempt.rb +7 -16
- data/lib/twilio-ruby/rest/verify/v2/verification_attempts_summary.rb +6 -6
- data/lib/twilio-ruby/rest/video/v1/composition.rb +0 -5
- data/lib/twilio-ruby/rest/video/v1/composition_hook.rb +0 -5
- data/lib/twilio-ruby/rest/video/v1/recording.rb +1 -7
- data/lib/twilio-ruby/rest/video/v1/room/participant/published_track.rb +0 -1
- data/lib/twilio-ruby/rest/video/v1/room/participant/subscribed_track.rb +0 -1
- data/lib/twilio-ruby/rest/video/v1/room/participant.rb +3 -8
- data/lib/twilio-ruby/rest/video/v1/room/room_recording.rb +0 -5
- data/lib/twilio-ruby/rest/video/v1/room.rb +2 -7
- data/lib/twilio-ruby/rest/voice/v1/byoc_trunk.rb +0 -1
- data/lib/twilio-ruby/rest/voice/v1/connection_policy/connection_policy_target.rb +0 -1
- data/lib/twilio-ruby/rest/voice/v1/connection_policy.rb +0 -1
- data/lib/twilio-ruby/rest/voice/v1/dialing_permissions/country/highrisk_special_prefix.rb +0 -1
- data/lib/twilio-ruby/rest/voice/v1/dialing_permissions/country.rb +4 -11
- data/lib/twilio-ruby/rest/voice/v1/ip_record.rb +0 -1
- data/lib/twilio-ruby/rest/voice/v1/source_ip_mapping.rb +0 -1
- data/lib/twilio-ruby/rest/wireless/v1/command.rb +5 -10
- data/lib/twilio-ruby/rest/wireless/v1/rate_plan.rb +7 -8
- data/lib/twilio-ruby/rest/wireless/v1/sim/data_session.rb +3 -4
- data/lib/twilio-ruby/rest/wireless/v1/sim/usage_record.rb +3 -7
- data/lib/twilio-ruby/rest/wireless/v1/sim.rb +13 -19
- data/lib/twilio-ruby/rest/wireless/v1/usage_record.rb +2 -6
- data/lib/twilio-ruby/twiml/voice_response.rb +8 -4
- data/lib/twilio-ruby/version.rb +1 -1
- metadata +9 -11
- data/conf/cacert.pem +0 -3376
- data/lib/twilio-ruby/rest/oauth/v1/device_code.rb +0 -171
- data/lib/twilio-ruby/rest/oauth/v1/openid_discovery.rb +0 -262
- data/lib/twilio-ruby/rest/oauth/v1/token.rb +0 -179
- data/lib/twilio-ruby/rest/oauth/v1/user_info.rb +0 -213
- data/lib/twilio-ruby/rest/oauth/v1.rb +0 -64
- data/lib/twilio-ruby/rest/oauth.rb +0 -33
- data/lib/twilio-ruby/rest/oauth_base.rb +0 -38
|
@@ -205,15 +205,10 @@ module Twilio
|
|
|
205
205
|
# @return [Page] Page of IncomingPhoneNumberInstance
|
|
206
206
|
def page(beta: :unset, friendly_name: :unset, phone_number: :unset, origin: :unset, page_token: :unset, page_number: :unset, page_size: :unset)
|
|
207
207
|
params = Twilio::Values.of({
|
|
208
|
-
|
|
209
208
|
'Beta' => beta,
|
|
210
|
-
|
|
211
209
|
'FriendlyName' => friendly_name,
|
|
212
|
-
|
|
213
210
|
'PhoneNumber' => phone_number,
|
|
214
|
-
|
|
215
211
|
'Origin' => origin,
|
|
216
|
-
|
|
217
212
|
'PageToken' => page_token,
|
|
218
213
|
'Page' => page_number,
|
|
219
214
|
'PageSize' => page_size,
|
|
@@ -407,7 +402,7 @@ module Twilio
|
|
|
407
402
|
|
|
408
403
|
unless @assigned_add_ons
|
|
409
404
|
@assigned_add_ons = AssignedAddOnList.new(
|
|
410
|
-
@version, account_sid: @solution[:account_sid],
|
|
405
|
+
@version, account_sid: @solution[:account_sid], resource_sid: @solution[:sid], )
|
|
411
406
|
end
|
|
412
407
|
|
|
413
408
|
@assigned_add_ons
|
|
@@ -116,13 +116,13 @@ module Twilio
|
|
|
116
116
|
|
|
117
117
|
|
|
118
118
|
##
|
|
119
|
-
# @return [String] The SID of the [Account](https://www.twilio.com/docs/iam/api/account)
|
|
119
|
+
# @return [String] The SID of the [Account](https://www.twilio.com/docs/iam/api/account) associated with this MessageFeedback resource.
|
|
120
120
|
def account_sid
|
|
121
121
|
@properties['account_sid']
|
|
122
122
|
end
|
|
123
123
|
|
|
124
124
|
##
|
|
125
|
-
# @return [String] The SID of the Message resource
|
|
125
|
+
# @return [String] The SID of the Message resource associated with this MessageFeedback resource.
|
|
126
126
|
def message_sid
|
|
127
127
|
@properties['message_sid']
|
|
128
128
|
end
|
|
@@ -134,13 +134,13 @@ module Twilio
|
|
|
134
134
|
end
|
|
135
135
|
|
|
136
136
|
##
|
|
137
|
-
# @return [Time] The date and time in GMT
|
|
137
|
+
# @return [Time] The date and time in GMT when this MessageFeedback resource was created, specified in [RFC 2822](https://www.ietf.org/rfc/rfc2822.txt) format.
|
|
138
138
|
def date_created
|
|
139
139
|
@properties['date_created']
|
|
140
140
|
end
|
|
141
141
|
|
|
142
142
|
##
|
|
143
|
-
# @return [Time] The date and time in GMT
|
|
143
|
+
# @return [Time] The date and time in GMT when this MessageFeedback resource was last updated, specified in [RFC 2822](https://www.ietf.org/rfc/rfc2822.txt) format.
|
|
144
144
|
def date_updated
|
|
145
145
|
@properties['date_updated']
|
|
146
146
|
end
|
|
@@ -37,9 +37,9 @@ module Twilio
|
|
|
37
37
|
# Lists MediaInstance records from the API as a list.
|
|
38
38
|
# Unlike stream(), this operation is eager and will load `limit` records into
|
|
39
39
|
# memory before returning.
|
|
40
|
-
# @param [Time] date_created Only include
|
|
41
|
-
# @param [Time] date_created_before Only include
|
|
42
|
-
# @param [Time] date_created_after Only include
|
|
40
|
+
# @param [Time] date_created Only include Media resources that were created on this date. Specify a date as `YYYY-MM-DD` in GMT, for example: `2009-07-06`, to read Media that were created on this date. You can also specify an inequality, such as `StartTime<=YYYY-MM-DD`, to read Media that were created on or before midnight of this date, and `StartTime>=YYYY-MM-DD` to read Media that were created on or after midnight of this date.
|
|
41
|
+
# @param [Time] date_created_before Only include Media resources that were created on this date. Specify a date as `YYYY-MM-DD` in GMT, for example: `2009-07-06`, to read Media that were created on this date. You can also specify an inequality, such as `StartTime<=YYYY-MM-DD`, to read Media that were created on or before midnight of this date, and `StartTime>=YYYY-MM-DD` to read Media that were created on or after midnight of this date.
|
|
42
|
+
# @param [Time] date_created_after Only include Media resources that were created on this date. Specify a date as `YYYY-MM-DD` in GMT, for example: `2009-07-06`, to read Media that were created on this date. You can also specify an inequality, such as `StartTime<=YYYY-MM-DD`, to read Media that were created on or before midnight of this date, and `StartTime>=YYYY-MM-DD` to read Media that were created on or after midnight of this date.
|
|
43
43
|
# @param [Integer] limit Upper limit for the number of records to return. stream()
|
|
44
44
|
# guarantees to never return more than limit. Default is no limit
|
|
45
45
|
# @param [Integer] page_size Number of records to fetch per request, when
|
|
@@ -61,9 +61,9 @@ module Twilio
|
|
|
61
61
|
# Streams Instance records from the API as an Enumerable.
|
|
62
62
|
# This operation lazily loads records as efficiently as possible until the limit
|
|
63
63
|
# is reached.
|
|
64
|
-
# @param [Time] date_created Only include
|
|
65
|
-
# @param [Time] date_created_before Only include
|
|
66
|
-
# @param [Time] date_created_after Only include
|
|
64
|
+
# @param [Time] date_created Only include Media resources that were created on this date. Specify a date as `YYYY-MM-DD` in GMT, for example: `2009-07-06`, to read Media that were created on this date. You can also specify an inequality, such as `StartTime<=YYYY-MM-DD`, to read Media that were created on or before midnight of this date, and `StartTime>=YYYY-MM-DD` to read Media that were created on or after midnight of this date.
|
|
65
|
+
# @param [Time] date_created_before Only include Media resources that were created on this date. Specify a date as `YYYY-MM-DD` in GMT, for example: `2009-07-06`, to read Media that were created on this date. You can also specify an inequality, such as `StartTime<=YYYY-MM-DD`, to read Media that were created on or before midnight of this date, and `StartTime>=YYYY-MM-DD` to read Media that were created on or after midnight of this date.
|
|
66
|
+
# @param [Time] date_created_after Only include Media resources that were created on this date. Specify a date as `YYYY-MM-DD` in GMT, for example: `2009-07-06`, to read Media that were created on this date. You can also specify an inequality, such as `StartTime<=YYYY-MM-DD`, to read Media that were created on or before midnight of this date, and `StartTime>=YYYY-MM-DD` to read Media that were created on or after midnight of this date.
|
|
67
67
|
# @param [Integer] limit Upper limit for the number of records to return. stream()
|
|
68
68
|
# guarantees to never return more than limit. Default is no limit
|
|
69
69
|
# @param [Integer] page_size Number of records to fetch per request, when
|
|
@@ -100,22 +100,18 @@ module Twilio
|
|
|
100
100
|
##
|
|
101
101
|
# Retrieve a single page of MediaInstance records from the API.
|
|
102
102
|
# Request is executed immediately.
|
|
103
|
-
# @param [Time] date_created Only include
|
|
104
|
-
# @param [Time] date_created_before Only include
|
|
105
|
-
# @param [Time] date_created_after Only include
|
|
103
|
+
# @param [Time] date_created Only include Media resources that were created on this date. Specify a date as `YYYY-MM-DD` in GMT, for example: `2009-07-06`, to read Media that were created on this date. You can also specify an inequality, such as `StartTime<=YYYY-MM-DD`, to read Media that were created on or before midnight of this date, and `StartTime>=YYYY-MM-DD` to read Media that were created on or after midnight of this date.
|
|
104
|
+
# @param [Time] date_created_before Only include Media resources that were created on this date. Specify a date as `YYYY-MM-DD` in GMT, for example: `2009-07-06`, to read Media that were created on this date. You can also specify an inequality, such as `StartTime<=YYYY-MM-DD`, to read Media that were created on or before midnight of this date, and `StartTime>=YYYY-MM-DD` to read Media that were created on or after midnight of this date.
|
|
105
|
+
# @param [Time] date_created_after Only include Media resources that were created on this date. Specify a date as `YYYY-MM-DD` in GMT, for example: `2009-07-06`, to read Media that were created on this date. You can also specify an inequality, such as `StartTime<=YYYY-MM-DD`, to read Media that were created on or before midnight of this date, and `StartTime>=YYYY-MM-DD` to read Media that were created on or after midnight of this date.
|
|
106
106
|
# @param [String] page_token PageToken provided by the API
|
|
107
107
|
# @param [Integer] page_number Page Number, this value is simply for client state
|
|
108
108
|
# @param [Integer] page_size Number of records to return, defaults to 50
|
|
109
109
|
# @return [Page] Page of MediaInstance
|
|
110
110
|
def page(date_created: :unset, date_created_before: :unset, date_created_after: :unset, page_token: :unset, page_number: :unset, page_size: :unset)
|
|
111
111
|
params = Twilio::Values.of({
|
|
112
|
-
|
|
113
112
|
'DateCreated' => Twilio.serialize_iso8601_datetime(date_created),
|
|
114
|
-
|
|
115
113
|
'DateCreated<' => Twilio.serialize_iso8601_datetime(date_created_before),
|
|
116
|
-
|
|
117
114
|
'DateCreated>' => Twilio.serialize_iso8601_datetime(date_created_after),
|
|
118
|
-
|
|
119
115
|
'PageToken' => page_token,
|
|
120
116
|
'Page' => page_number,
|
|
121
117
|
'PageSize' => page_size,
|
|
@@ -152,9 +148,9 @@ module Twilio
|
|
|
152
148
|
##
|
|
153
149
|
# Initialize the MediaContext
|
|
154
150
|
# @param [Version] version Version that contains the resource
|
|
155
|
-
# @param [String] account_sid The SID of the [Account](https://www.twilio.com/docs/iam/api/account)
|
|
156
|
-
# @param [String] message_sid The SID of the Message resource that
|
|
157
|
-
# @param [String] sid The Twilio-provided string that uniquely identifies the Media resource to fetch
|
|
151
|
+
# @param [String] account_sid The SID of the [Account](https://www.twilio.com/docs/iam/api/account) associated with the Media resource.
|
|
152
|
+
# @param [String] message_sid The SID of the Message resource that is associated with the Media resource.
|
|
153
|
+
# @param [String] sid The Twilio-provided string that uniquely identifies the Media resource to fetch.
|
|
158
154
|
# @return [MediaContext] MediaContext
|
|
159
155
|
def initialize(version, account_sid, message_sid, sid)
|
|
160
156
|
super(version)
|
|
@@ -273,43 +269,43 @@ module Twilio
|
|
|
273
269
|
end
|
|
274
270
|
|
|
275
271
|
##
|
|
276
|
-
# @return [String] The SID of the [Account](https://www.twilio.com/docs/iam/api/account)
|
|
272
|
+
# @return [String] The SID of the [Account](https://www.twilio.com/docs/iam/api/account) associated with this Media resource.
|
|
277
273
|
def account_sid
|
|
278
274
|
@properties['account_sid']
|
|
279
275
|
end
|
|
280
276
|
|
|
281
277
|
##
|
|
282
|
-
# @return [String] The default [
|
|
278
|
+
# @return [String] The default [MIME type](https://en.wikipedia.org/wiki/Internet_media_type) of the media, for example `image/jpeg`, `image/png`, or `image/gif`.
|
|
283
279
|
def content_type
|
|
284
280
|
@properties['content_type']
|
|
285
281
|
end
|
|
286
282
|
|
|
287
283
|
##
|
|
288
|
-
# @return [Time] The date and time in GMT
|
|
284
|
+
# @return [Time] The date and time in GMT when this Media resource was created, specified in [RFC 2822](https://www.ietf.org/rfc/rfc2822.txt) format.
|
|
289
285
|
def date_created
|
|
290
286
|
@properties['date_created']
|
|
291
287
|
end
|
|
292
288
|
|
|
293
289
|
##
|
|
294
|
-
# @return [Time] The date and time in GMT
|
|
290
|
+
# @return [Time] The date and time in GMT when this Media resource was last updated, specified in [RFC 2822](https://www.ietf.org/rfc/rfc2822.txt) format.
|
|
295
291
|
def date_updated
|
|
296
292
|
@properties['date_updated']
|
|
297
293
|
end
|
|
298
294
|
|
|
299
295
|
##
|
|
300
|
-
# @return [String] The SID of the resource that
|
|
296
|
+
# @return [String] The SID of the Message resource that is associated with this Media resource.
|
|
301
297
|
def parent_sid
|
|
302
298
|
@properties['parent_sid']
|
|
303
299
|
end
|
|
304
300
|
|
|
305
301
|
##
|
|
306
|
-
# @return [String] The unique string that
|
|
302
|
+
# @return [String] The unique string that identifies this Media resource.
|
|
307
303
|
def sid
|
|
308
304
|
@properties['sid']
|
|
309
305
|
end
|
|
310
306
|
|
|
311
307
|
##
|
|
312
|
-
# @return [String] The URI of this resource, relative to `https://api.twilio.com`.
|
|
308
|
+
# @return [String] The URI of this Media resource, relative to `https://api.twilio.com`.
|
|
313
309
|
def uri
|
|
314
310
|
@properties['uri']
|
|
315
311
|
end
|
|
@@ -33,28 +33,29 @@ module Twilio
|
|
|
33
33
|
end
|
|
34
34
|
##
|
|
35
35
|
# Create the MessageInstance
|
|
36
|
-
# @param [String] to The
|
|
37
|
-
# @param [String] status_callback The URL
|
|
38
|
-
# @param [String] application_sid The SID of the
|
|
39
|
-
# @param [Float] max_price The maximum
|
|
40
|
-
# @param [Boolean] provide_feedback
|
|
41
|
-
# @param [String] attempt Total number of attempts made (
|
|
42
|
-
# @param [String] validity_period
|
|
36
|
+
# @param [String] to The recipient's phone number in [E.164](https://www.twilio.com/docs/glossary/what-e164) format (for SMS/MMS) or [channel address](https://www.twilio.com/docs/messaging/channels), e.g. `whatsapp:+15552229999`.
|
|
37
|
+
# @param [String] status_callback The URL of the endpoint to which Twilio sends [Message status callback requests](https://www.twilio.com/docs/sms/api/message-resource#twilios-request-to-the-statuscallback-url). URL must contain a valid hostname and underscores are not allowed. If you include this parameter with the `messaging_service_sid`, Twilio uses this URL instead of the Status Callback URL of the [Messaging Service](https://www.twilio.com/docs/messaging/api/service-resource).
|
|
38
|
+
# @param [String] application_sid The SID of the associated [TwiML Application](https://www.twilio.com/docs/usage/api/applications). If this parameter is provided, the `status_callback` parameter of this request is ignored; [Message status callback requests](https://www.twilio.com/docs/sms/api/message-resource#twilios-request-to-the-statuscallback-url) are sent to the TwiML App's `message_status_callback` URL.
|
|
39
|
+
# @param [Float] max_price The maximum price in US dollars that you are willing to pay for this Message's delivery. The value can have up to four decimal places. When the `max_price` parameter is provided, the cost of a message is checked before it is sent. If the cost exceeds `max_price`, the message is not sent and the Message `status` is `failed`.
|
|
40
|
+
# @param [Boolean] provide_feedback Boolean indicating whether or not you intend to provide delivery confirmation feedback to Twilio (used in conjunction with the [Message Feedback subresource](https://www.twilio.com/docs/sms/api/message-feedback-resource)). Default value is `false`.
|
|
41
|
+
# @param [String] attempt Total number of attempts made (including this request) to send the message regardless of the provider used
|
|
42
|
+
# @param [String] validity_period The maximum length in seconds that the Message can remain in Twilio's outgoing message queue. If a queued Message exceeds the `validity_period`, the Message is not sent. Accepted values are integers from `1` to `14400`. Default value is `14400`. A `validity_period` greater than `5` is recommended. [Learn more about the validity period](https://www.twilio.com/blog/take-more-control-of-outbound-messages-using-validity-period-html)
|
|
43
43
|
# @param [Boolean] force_delivery Reserved
|
|
44
44
|
# @param [ContentRetention] content_retention
|
|
45
45
|
# @param [AddressRetention] address_retention
|
|
46
46
|
# @param [Boolean] smart_encoded Whether to detect Unicode characters that have a similar GSM-7 character and replace them. Can be: `true` or `false`.
|
|
47
|
-
# @param [Array[String]] persistent_action Rich actions for
|
|
48
|
-
# @param [Boolean] shorten_urls
|
|
47
|
+
# @param [Array[String]] persistent_action Rich actions for non-SMS/MMS channels. Used for [sending location in WhatsApp messages](https://www.twilio.com/docs/whatsapp/message-features#location-messages-with-whatsapp).
|
|
48
|
+
# @param [Boolean] shorten_urls For Messaging Services with [Link Shortening configured](https://www.twilio.com/docs/messaging/features/link-shortening) only: A Boolean indicating whether or not Twilio should shorten links in the `body` of the Message. Default value is `false`. If `true`, the `messaging_service_sid` parameter must also be provided.
|
|
49
49
|
# @param [ScheduleType] schedule_type
|
|
50
50
|
# @param [Time] send_at The time that Twilio will send the message. Must be in ISO 8601 format.
|
|
51
|
-
# @param [Boolean] send_as_mms If set to
|
|
52
|
-
# @param [String] content_variables Key-value pairs of
|
|
53
|
-
# @param [
|
|
54
|
-
# @param [String]
|
|
55
|
-
# @param [String]
|
|
56
|
-
# @param [
|
|
57
|
-
# @param [String]
|
|
51
|
+
# @param [Boolean] send_as_mms If set to `true`, Twilio delivers the message as a single MMS message, regardless of the presence of media.
|
|
52
|
+
# @param [String] content_variables For [Content Editor/API](https://www.twilio.com/docs/content) only: Key-value pairs of [Template variables](https://www.twilio.com/docs/content/using-variables-with-content-api) and their substitution values. `content_sid` parameter must also be provided. If values are not defined in the `content_variables` parameter, the [Template's default placeholder values](https://www.twilio.com/docs/content/content-api-resources#create-templates) are used.
|
|
53
|
+
# @param [RiskCheck] risk_check
|
|
54
|
+
# @param [String] from The sender's Twilio phone number (in [E.164](https://en.wikipedia.org/wiki/E.164) format), [alphanumeric sender ID](https://www.twilio.com/docs/sms/quickstart), [Wireless SIM](https://www.twilio.com/docs/iot/wireless/programmable-wireless-send-machine-machine-sms-commands), [short code](https://www.twilio.com/en-us/messaging/channels/sms/short-codes), or [channel address](https://www.twilio.com/docs/messaging/channels) (e.g., `whatsapp:+15554449999`). The value of the `from` parameter must be a sender that is hosted within Twilio and belongs to the Account creating the Message. If you are using `messaging_service_sid`, this parameter can be empty (Twilio assigns a `from` value from the Messaging Service's Sender Pool) or you can provide a specific sender from your Sender Pool.
|
|
55
|
+
# @param [String] messaging_service_sid The SID of the [Messaging Service](https://www.twilio.com/docs/messaging/services) you want to associate with the Message. When this parameter is provided and the `from` parameter is omitted, Twilio selects the optimal sender from the Messaging Service's Sender Pool. You may also provide a `from` parameter if you want to use a specific Sender from the Sender Pool.
|
|
56
|
+
# @param [String] body The text content of the outgoing message. Can be up to 1,600 characters in length. SMS only: If the `body` contains more than 160 [GSM-7](https://www.twilio.com/docs/glossary/what-is-gsm-7-character-encoding) characters (or 70 [UCS-2](https://www.twilio.com/docs/glossary/what-is-ucs-2-character-encoding) characters), the message is segmented and charged accordingly. For long `body` text, consider using the [send_as_mms parameter](https://www.twilio.com/blog/mms-for-long-text-messages).
|
|
57
|
+
# @param [Array[String]] media_url The URL of media to include in the Message content. `jpeg`, `jpg`, `gif`, and `png` file types are fully supported by Twilio and content is formatted for delivery on destination devices. The media size limit is 5 MB for supported file types (`jpeg`, `jpg`, `png`, `gif`) and 500 KB for [other types](https://www.twilio.com/docs/messaging/guides/accepted-mime-types) of accepted media. To send more than one image in the message, provide multiple `media_url` parameters in the POST request. You can include up to ten `media_url` parameters per message. [International](https://support.twilio.com/hc/en-us/articles/223179808-Sending-and-receiving-MMS-messages) and [carrier](https://support.twilio.com/hc/en-us/articles/223133707-Is-MMS-supported-for-all-carriers-in-US-and-Canada-) limits apply.
|
|
58
|
+
# @param [String] content_sid For [Content Editor/API](https://www.twilio.com/docs/content) only: The SID of the Content Template to be used with the Message, e.g., `HXXXXXXXXXXXXXXXXXXXXXXXXXXXXX`. If this parameter is not provided, a Content Template is not used. Find the SID in the Console on the Content Editor page. For Content API users, the SID is found in Twilio's response when [creating the Template](https://www.twilio.com/docs/content/content-api-resources#create-templates) or by [fetching your Templates](https://www.twilio.com/docs/content/content-api-resources#fetch-all-content-resources).
|
|
58
59
|
# @return [MessageInstance] Created MessageInstance
|
|
59
60
|
def create(
|
|
60
61
|
to: nil,
|
|
@@ -74,6 +75,7 @@ module Twilio
|
|
|
74
75
|
send_at: :unset,
|
|
75
76
|
send_as_mms: :unset,
|
|
76
77
|
content_variables: :unset,
|
|
78
|
+
risk_check: :unset,
|
|
77
79
|
from: :unset,
|
|
78
80
|
messaging_service_sid: :unset,
|
|
79
81
|
body: :unset,
|
|
@@ -99,6 +101,7 @@ module Twilio
|
|
|
99
101
|
'SendAt' => Twilio.serialize_iso8601_datetime(send_at),
|
|
100
102
|
'SendAsMms' => send_as_mms,
|
|
101
103
|
'ContentVariables' => content_variables,
|
|
104
|
+
'RiskCheck' => risk_check,
|
|
102
105
|
'From' => from,
|
|
103
106
|
'MessagingServiceSid' => messaging_service_sid,
|
|
104
107
|
'Body' => body,
|
|
@@ -119,11 +122,11 @@ module Twilio
|
|
|
119
122
|
# Lists MessageInstance records from the API as a list.
|
|
120
123
|
# Unlike stream(), this operation is eager and will load `limit` records into
|
|
121
124
|
# memory before returning.
|
|
122
|
-
# @param [String] to
|
|
123
|
-
# @param [String] from
|
|
124
|
-
# @param [Time] date_sent
|
|
125
|
-
# @param [Time] date_sent_before
|
|
126
|
-
# @param [Time] date_sent_after
|
|
125
|
+
# @param [String] to Filter by recipient. For example: Set this `to` parameter to `+15558881111` to retrieve a list of Message resources with `to` properties of `+15558881111`
|
|
126
|
+
# @param [String] from Filter by sender. For example: Set this `from` parameter to `+15552229999` to retrieve a list of Message resources with `from` properties of `+15552229999`
|
|
127
|
+
# @param [Time] date_sent Filter by Message `sent_date`. Accepts GMT dates in the following formats: `YYYY-MM-DD` (to find Messages with a specific `sent_date`), `<=YYYY-MM-DD` (to find Messages with `sent_date`s on and before a specific date), and `>=YYYY-MM-DD` (to find Messages with `sent_dates` on and after a specific date).
|
|
128
|
+
# @param [Time] date_sent_before Filter by Message `sent_date`. Accepts GMT dates in the following formats: `YYYY-MM-DD` (to find Messages with a specific `sent_date`), `<=YYYY-MM-DD` (to find Messages with `sent_date`s on and before a specific date), and `>=YYYY-MM-DD` (to find Messages with `sent_dates` on and after a specific date).
|
|
129
|
+
# @param [Time] date_sent_after Filter by Message `sent_date`. Accepts GMT dates in the following formats: `YYYY-MM-DD` (to find Messages with a specific `sent_date`), `<=YYYY-MM-DD` (to find Messages with `sent_date`s on and before a specific date), and `>=YYYY-MM-DD` (to find Messages with `sent_dates` on and after a specific date).
|
|
127
130
|
# @param [Integer] limit Upper limit for the number of records to return. stream()
|
|
128
131
|
# guarantees to never return more than limit. Default is no limit
|
|
129
132
|
# @param [Integer] page_size Number of records to fetch per request, when
|
|
@@ -147,11 +150,11 @@ module Twilio
|
|
|
147
150
|
# Streams Instance records from the API as an Enumerable.
|
|
148
151
|
# This operation lazily loads records as efficiently as possible until the limit
|
|
149
152
|
# is reached.
|
|
150
|
-
# @param [String] to
|
|
151
|
-
# @param [String] from
|
|
152
|
-
# @param [Time] date_sent
|
|
153
|
-
# @param [Time] date_sent_before
|
|
154
|
-
# @param [Time] date_sent_after
|
|
153
|
+
# @param [String] to Filter by recipient. For example: Set this `to` parameter to `+15558881111` to retrieve a list of Message resources with `to` properties of `+15558881111`
|
|
154
|
+
# @param [String] from Filter by sender. For example: Set this `from` parameter to `+15552229999` to retrieve a list of Message resources with `from` properties of `+15552229999`
|
|
155
|
+
# @param [Time] date_sent Filter by Message `sent_date`. Accepts GMT dates in the following formats: `YYYY-MM-DD` (to find Messages with a specific `sent_date`), `<=YYYY-MM-DD` (to find Messages with `sent_date`s on and before a specific date), and `>=YYYY-MM-DD` (to find Messages with `sent_dates` on and after a specific date).
|
|
156
|
+
# @param [Time] date_sent_before Filter by Message `sent_date`. Accepts GMT dates in the following formats: `YYYY-MM-DD` (to find Messages with a specific `sent_date`), `<=YYYY-MM-DD` (to find Messages with `sent_date`s on and before a specific date), and `>=YYYY-MM-DD` (to find Messages with `sent_dates` on and after a specific date).
|
|
157
|
+
# @param [Time] date_sent_after Filter by Message `sent_date`. Accepts GMT dates in the following formats: `YYYY-MM-DD` (to find Messages with a specific `sent_date`), `<=YYYY-MM-DD` (to find Messages with `sent_date`s on and before a specific date), and `>=YYYY-MM-DD` (to find Messages with `sent_dates` on and after a specific date).
|
|
155
158
|
# @param [Integer] limit Upper limit for the number of records to return. stream()
|
|
156
159
|
# guarantees to never return more than limit. Default is no limit
|
|
157
160
|
# @param [Integer] page_size Number of records to fetch per request, when
|
|
@@ -190,28 +193,22 @@ module Twilio
|
|
|
190
193
|
##
|
|
191
194
|
# Retrieve a single page of MessageInstance records from the API.
|
|
192
195
|
# Request is executed immediately.
|
|
193
|
-
# @param [String] to
|
|
194
|
-
# @param [String] from
|
|
195
|
-
# @param [Time] date_sent
|
|
196
|
-
# @param [Time] date_sent_before
|
|
197
|
-
# @param [Time] date_sent_after
|
|
196
|
+
# @param [String] to Filter by recipient. For example: Set this `to` parameter to `+15558881111` to retrieve a list of Message resources with `to` properties of `+15558881111`
|
|
197
|
+
# @param [String] from Filter by sender. For example: Set this `from` parameter to `+15552229999` to retrieve a list of Message resources with `from` properties of `+15552229999`
|
|
198
|
+
# @param [Time] date_sent Filter by Message `sent_date`. Accepts GMT dates in the following formats: `YYYY-MM-DD` (to find Messages with a specific `sent_date`), `<=YYYY-MM-DD` (to find Messages with `sent_date`s on and before a specific date), and `>=YYYY-MM-DD` (to find Messages with `sent_dates` on and after a specific date).
|
|
199
|
+
# @param [Time] date_sent_before Filter by Message `sent_date`. Accepts GMT dates in the following formats: `YYYY-MM-DD` (to find Messages with a specific `sent_date`), `<=YYYY-MM-DD` (to find Messages with `sent_date`s on and before a specific date), and `>=YYYY-MM-DD` (to find Messages with `sent_dates` on and after a specific date).
|
|
200
|
+
# @param [Time] date_sent_after Filter by Message `sent_date`. Accepts GMT dates in the following formats: `YYYY-MM-DD` (to find Messages with a specific `sent_date`), `<=YYYY-MM-DD` (to find Messages with `sent_date`s on and before a specific date), and `>=YYYY-MM-DD` (to find Messages with `sent_dates` on and after a specific date).
|
|
198
201
|
# @param [String] page_token PageToken provided by the API
|
|
199
202
|
# @param [Integer] page_number Page Number, this value is simply for client state
|
|
200
203
|
# @param [Integer] page_size Number of records to return, defaults to 50
|
|
201
204
|
# @return [Page] Page of MessageInstance
|
|
202
205
|
def page(to: :unset, from: :unset, date_sent: :unset, date_sent_before: :unset, date_sent_after: :unset, page_token: :unset, page_number: :unset, page_size: :unset)
|
|
203
206
|
params = Twilio::Values.of({
|
|
204
|
-
|
|
205
207
|
'To' => to,
|
|
206
|
-
|
|
207
208
|
'From' => from,
|
|
208
|
-
|
|
209
209
|
'DateSent' => Twilio.serialize_iso8601_datetime(date_sent),
|
|
210
|
-
|
|
211
210
|
'DateSent<' => Twilio.serialize_iso8601_datetime(date_sent_before),
|
|
212
|
-
|
|
213
211
|
'DateSent>' => Twilio.serialize_iso8601_datetime(date_sent_after),
|
|
214
|
-
|
|
215
212
|
'PageToken' => page_token,
|
|
216
213
|
'Page' => page_number,
|
|
217
214
|
'PageSize' => page_size,
|
|
@@ -249,7 +246,7 @@ module Twilio
|
|
|
249
246
|
# Initialize the MessageContext
|
|
250
247
|
# @param [Version] version Version that contains the resource
|
|
251
248
|
# @param [String] account_sid The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created the Message resources to update.
|
|
252
|
-
# @param [String] sid The
|
|
249
|
+
# @param [String] sid The SID of the Message resource to be updated
|
|
253
250
|
# @return [MessageContext] MessageContext
|
|
254
251
|
def initialize(version, account_sid, sid)
|
|
255
252
|
super(version)
|
|
@@ -286,7 +283,7 @@ module Twilio
|
|
|
286
283
|
|
|
287
284
|
##
|
|
288
285
|
# Update the MessageInstance
|
|
289
|
-
# @param [String] body The
|
|
286
|
+
# @param [String] body The new `body` of the Message resource. To redact the text content of a Message, this parameter's value must be an empty string
|
|
290
287
|
# @param [UpdateStatus] status
|
|
291
288
|
# @return [MessageInstance] Updated MessageInstance
|
|
292
289
|
def update(
|
|
@@ -315,7 +312,7 @@ module Twilio
|
|
|
315
312
|
def feedback
|
|
316
313
|
unless @feedback
|
|
317
314
|
@feedback = FeedbackList.new(
|
|
318
|
-
@version, account_sid: @solution[:account_sid],
|
|
315
|
+
@version, account_sid: @solution[:account_sid], message_sid: @solution[:sid], )
|
|
319
316
|
end
|
|
320
317
|
@feedback
|
|
321
318
|
end
|
|
@@ -333,7 +330,7 @@ module Twilio
|
|
|
333
330
|
|
|
334
331
|
unless @media
|
|
335
332
|
@media = MediaList.new(
|
|
336
|
-
@version, account_sid: @solution[:account_sid],
|
|
333
|
+
@version, account_sid: @solution[:account_sid], message_sid: @solution[:sid], )
|
|
337
334
|
end
|
|
338
335
|
|
|
339
336
|
@media
|
|
@@ -436,13 +433,13 @@ module Twilio
|
|
|
436
433
|
end
|
|
437
434
|
|
|
438
435
|
##
|
|
439
|
-
# @return [String] The
|
|
436
|
+
# @return [String] The text content of the message
|
|
440
437
|
def body
|
|
441
438
|
@properties['body']
|
|
442
439
|
end
|
|
443
440
|
|
|
444
441
|
##
|
|
445
|
-
# @return [String] The number of segments that make up the complete message.
|
|
442
|
+
# @return [String] The number of segments that make up the complete message. SMS message bodies that exceed the [character limit](https://www.twilio.com/docs/glossary/what-sms-character-limit) are segmented and charged as multiple messages. Note: For messages sent via a Messaging Service, `num_segments` is initially `0`, since a sender hasn't yet been assigned.
|
|
446
443
|
def num_segments
|
|
447
444
|
@properties['num_segments']
|
|
448
445
|
end
|
|
@@ -454,49 +451,49 @@ module Twilio
|
|
|
454
451
|
end
|
|
455
452
|
|
|
456
453
|
##
|
|
457
|
-
# @return [String] The phone number (in [E.164](https://en.wikipedia.org/wiki/E.164) format), [alphanumeric sender ID](https://www.twilio.com/docs/sms/
|
|
454
|
+
# @return [String] The sender's phone number (in [E.164](https://en.wikipedia.org/wiki/E.164) format), [alphanumeric sender ID](https://www.twilio.com/docs/sms/quickstart), [Wireless SIM](https://www.twilio.com/docs/iot/wireless/programmable-wireless-send-machine-machine-sms-commands), [short code](https://www.twilio.com/en-us/messaging/channels/sms/short-codes), or [channel address](https://www.twilio.com/docs/messaging/channels) (e.g., `whatsapp:+15554449999`). For incoming messages, this is the number or channel address of the sender. For outgoing messages, this value is a Twilio phone number, alphanumeric sender ID, short code, or channel address from which the message is sent.
|
|
458
455
|
def from
|
|
459
456
|
@properties['from']
|
|
460
457
|
end
|
|
461
458
|
|
|
462
459
|
##
|
|
463
|
-
# @return [String] The phone number in [E.164](https://en.wikipedia.org/wiki/E.164) format
|
|
460
|
+
# @return [String] The recipient's phone number (in [E.164](https://en.wikipedia.org/wiki/E.164) format) or [channel address](https://www.twilio.com/docs/messaging/channels) (e.g. `whatsapp:+15552229999`)
|
|
464
461
|
def to
|
|
465
462
|
@properties['to']
|
|
466
463
|
end
|
|
467
464
|
|
|
468
465
|
##
|
|
469
|
-
# @return [Time] The
|
|
466
|
+
# @return [Time] The [RFC 2822](https://datatracker.ietf.org/doc/html/rfc2822#section-3.3) timestamp (in GMT) of when the Message resource was last updated
|
|
470
467
|
def date_updated
|
|
471
468
|
@properties['date_updated']
|
|
472
469
|
end
|
|
473
470
|
|
|
474
471
|
##
|
|
475
|
-
# @return [String] The amount billed for the message
|
|
472
|
+
# @return [String] The amount billed for the message in the currency specified by `price_unit`. The `price` is populated after the message has been sent/received, and may not be immediately availalble. View the [Pricing page](https://www.twilio.com/en-us/pricing) for more details.
|
|
476
473
|
def price
|
|
477
474
|
@properties['price']
|
|
478
475
|
end
|
|
479
476
|
|
|
480
477
|
##
|
|
481
|
-
# @return [String] The description of the `error_code` if
|
|
478
|
+
# @return [String] The description of the `error_code` if the Message `status` is `failed` or `undelivered`. If no error was encountered, the value is `null`.
|
|
482
479
|
def error_message
|
|
483
480
|
@properties['error_message']
|
|
484
481
|
end
|
|
485
482
|
|
|
486
483
|
##
|
|
487
|
-
# @return [String] The URI of the resource, relative to `https://api.twilio.com`.
|
|
484
|
+
# @return [String] The URI of the Message resource, relative to `https://api.twilio.com`.
|
|
488
485
|
def uri
|
|
489
486
|
@properties['uri']
|
|
490
487
|
end
|
|
491
488
|
|
|
492
489
|
##
|
|
493
|
-
# @return [String] The SID of the [Account](https://www.twilio.com/docs/iam/api/account)
|
|
490
|
+
# @return [String] The SID of the [Account](https://www.twilio.com/docs/iam/api/account) associated with the Message resource
|
|
494
491
|
def account_sid
|
|
495
492
|
@properties['account_sid']
|
|
496
493
|
end
|
|
497
494
|
|
|
498
495
|
##
|
|
499
|
-
# @return [String] The number of media files associated with the
|
|
496
|
+
# @return [String] The number of media files associated with the Message resource.
|
|
500
497
|
def num_media
|
|
501
498
|
@properties['num_media']
|
|
502
499
|
end
|
|
@@ -508,31 +505,31 @@ module Twilio
|
|
|
508
505
|
end
|
|
509
506
|
|
|
510
507
|
##
|
|
511
|
-
# @return [String] The SID of the [Messaging Service](https://www.twilio.com/docs/
|
|
508
|
+
# @return [String] The SID of the [Messaging Service](https://www.twilio.com/docs/messaging/api/service-resource) associated with the Message resource. The value is `null` if a Messaging Service was not used.
|
|
512
509
|
def messaging_service_sid
|
|
513
510
|
@properties['messaging_service_sid']
|
|
514
511
|
end
|
|
515
512
|
|
|
516
513
|
##
|
|
517
|
-
# @return [String] The unique string that
|
|
514
|
+
# @return [String] The unique, Twilio-provided string that identifies the Message resource.
|
|
518
515
|
def sid
|
|
519
516
|
@properties['sid']
|
|
520
517
|
end
|
|
521
518
|
|
|
522
519
|
##
|
|
523
|
-
# @return [Time] The
|
|
520
|
+
# @return [Time] The [RFC 2822](https://datatracker.ietf.org/doc/html/rfc2822#section-3.3) timestamp (in GMT) of when the Message was sent. For an outgoing message, this is when Twilio sent the message. For an incoming message, this is when Twilio sent the HTTP request to your incoming message webhook URL.
|
|
524
521
|
def date_sent
|
|
525
522
|
@properties['date_sent']
|
|
526
523
|
end
|
|
527
524
|
|
|
528
525
|
##
|
|
529
|
-
# @return [Time] The
|
|
526
|
+
# @return [Time] The [RFC 2822](https://datatracker.ietf.org/doc/html/rfc2822#section-3.3) timestamp (in GMT) of when the Message resource was created
|
|
530
527
|
def date_created
|
|
531
528
|
@properties['date_created']
|
|
532
529
|
end
|
|
533
530
|
|
|
534
531
|
##
|
|
535
|
-
# @return [String] The error code returned if
|
|
532
|
+
# @return [String] The [error code](https://www.twilio.com/docs/api/errors) returned if the Message `status` is `failed` or `undelivered`. If no error was encountered, the value is `null`.
|
|
536
533
|
def error_code
|
|
537
534
|
@properties['error_code']
|
|
538
535
|
end
|
|
@@ -544,7 +541,7 @@ module Twilio
|
|
|
544
541
|
end
|
|
545
542
|
|
|
546
543
|
##
|
|
547
|
-
# @return [String] The API version used to process the
|
|
544
|
+
# @return [String] The API version used to process the Message
|
|
548
545
|
def api_version
|
|
549
546
|
@properties['api_version']
|
|
550
547
|
end
|
|
@@ -573,7 +570,7 @@ module Twilio
|
|
|
573
570
|
|
|
574
571
|
##
|
|
575
572
|
# Update the MessageInstance
|
|
576
|
-
# @param [String] body The
|
|
573
|
+
# @param [String] body The new `body` of the Message resource. To redact the text content of a Message, this parameter's value must be an empty string
|
|
577
574
|
# @param [UpdateStatus] status
|
|
578
575
|
# @return [MessageInstance] Updated MessageInstance
|
|
579
576
|
def update(
|
|
@@ -113,15 +113,10 @@ module Twilio
|
|
|
113
113
|
# @return [Page] Page of NotificationInstance
|
|
114
114
|
def page(log: :unset, message_date: :unset, message_date_before: :unset, message_date_after: :unset, page_token: :unset, page_number: :unset, page_size: :unset)
|
|
115
115
|
params = Twilio::Values.of({
|
|
116
|
-
|
|
117
116
|
'Log' => log,
|
|
118
|
-
|
|
119
117
|
'MessageDate' => Twilio.serialize_iso8601_date(message_date),
|
|
120
|
-
|
|
121
118
|
'MessageDate<' => Twilio.serialize_iso8601_date(message_date_before),
|
|
122
|
-
|
|
123
119
|
'MessageDate>' => Twilio.serialize_iso8601_date(message_date_after),
|
|
124
|
-
|
|
125
120
|
'PageToken' => page_token,
|
|
126
121
|
'Page' => page_number,
|
|
127
122
|
'PageSize' => page_size,
|
|
@@ -103,11 +103,8 @@ module Twilio
|
|
|
103
103
|
# @return [Page] Page of OutgoingCallerIdInstance
|
|
104
104
|
def page(phone_number: :unset, friendly_name: :unset, page_token: :unset, page_number: :unset, page_size: :unset)
|
|
105
105
|
params = Twilio::Values.of({
|
|
106
|
-
|
|
107
106
|
'PhoneNumber' => phone_number,
|
|
108
|
-
|
|
109
107
|
'FriendlyName' => friendly_name,
|
|
110
|
-
|
|
111
108
|
'PageToken' => page_token,
|
|
112
109
|
'Page' => page_number,
|
|
113
110
|
'PageSize' => page_size,
|