twilio-ruby 7.11.1 → 7.11.2
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 +221 -0
- data/Gemfile.lock +2 -2
- data/README.md +2 -2
- data/lib/rack/twilio_webhook_authentication.rb +45 -2
- data/lib/twilio-ruby/rest/accounts/v1/auth_token_promotion.rb +0 -59
- data/lib/twilio-ruby/rest/accounts/v1/bulk_consents.rb +0 -59
- data/lib/twilio-ruby/rest/accounts/v1/bulk_contacts.rb +0 -59
- data/lib/twilio-ruby/rest/accounts/v1/credential.rb +0 -59
- data/lib/twilio-ruby/rest/accounts/v1/messaging_geopermissions.rb +0 -59
- data/lib/twilio-ruby/rest/accounts/v1/safelist.rb +0 -59
- data/lib/twilio-ruby/rest/accounts/v1/secondary_auth_token.rb +0 -59
- data/lib/twilio-ruby/rest/api/v2010/account/balance.rb +0 -59
- data/lib/twilio-ruby/rest/api/v2010/account/call/payment.rb +0 -59
- data/lib/twilio-ruby/rest/api/v2010/account/call/siprec.rb +0 -59
- data/lib/twilio-ruby/rest/api/v2010/account/call/stream.rb +0 -59
- data/lib/twilio-ruby/rest/api/v2010/account/call/transcription.rb +0 -59
- data/lib/twilio-ruby/rest/api/v2010/account/call/user_defined_message.rb +0 -59
- data/lib/twilio-ruby/rest/api/v2010/account/call/user_defined_message_subscription.rb +0 -59
- data/lib/twilio-ruby/rest/api/v2010/account/message/feedback.rb +0 -59
- data/lib/twilio-ruby/rest/api/v2010/account/message.rb +6 -0
- data/lib/twilio-ruby/rest/api/v2010/account/new_key.rb +0 -59
- data/lib/twilio-ruby/rest/api/v2010/account/new_signing_key.rb +0 -59
- data/lib/twilio-ruby/rest/api/v2010/account/recording/add_on_result/payload/data.rb +0 -59
- data/lib/twilio-ruby/rest/api/v2010/account/sip/domain/auth_types/auth_type_calls.rb +0 -59
- data/lib/twilio-ruby/rest/api/v2010/account/sip/domain/auth_types/auth_type_registrations.rb +0 -59
- data/lib/twilio-ruby/rest/api/v2010/account/sip/domain/auth_types.rb +0 -59
- data/lib/twilio-ruby/rest/api/v2010/account/sip.rb +0 -59
- data/lib/twilio-ruby/rest/api/v2010/account/token.rb +0 -59
- data/lib/twilio-ruby/rest/api/v2010/account/usage.rb +0 -59
- data/lib/twilio-ruby/rest/api/v2010/account/validation_request.rb +0 -59
- data/lib/twilio-ruby/rest/bulkexports/v1/export/job.rb +0 -59
- data/lib/twilio-ruby/rest/bulkexports/v1/export.rb +0 -59
- data/lib/twilio-ruby/rest/bulkexports/v1/export_configuration.rb +0 -59
- data/lib/twilio-ruby/rest/chat/v3/channel.rb +0 -59
- data/lib/twilio-ruby/rest/content/v1/content/approval_create.rb +0 -59
- data/lib/twilio-ruby/rest/content/v1/content/approval_fetch.rb +0 -59
- data/lib/twilio-ruby/rest/conversations/v1/configuration/webhook.rb +0 -59
- data/lib/twilio-ruby/rest/conversations/v1/configuration.rb +0 -59
- data/lib/twilio-ruby/rest/conversations/v1/conversation_with_participants.rb +0 -59
- data/lib/twilio-ruby/rest/conversations/v1/service/configuration/notification.rb +0 -59
- data/lib/twilio-ruby/rest/conversations/v1/service/configuration/webhook.rb +0 -59
- data/lib/twilio-ruby/rest/conversations/v1/service/configuration.rb +0 -59
- data/lib/twilio-ruby/rest/conversations/v1/service/conversation_with_participants.rb +0 -59
- data/lib/twilio-ruby/rest/conversations/v2/action.rb +0 -59
- data/lib/twilio-ruby/rest/conversations/v2/configuration.rb +525 -0
- data/lib/twilio-ruby/rest/conversations/v2/operation.rb +0 -59
- data/lib/twilio-ruby/rest/conversations/v2.rb +10 -4
- data/lib/twilio-ruby/rest/events/v1/schema.rb +0 -59
- data/lib/twilio-ruby/rest/events/v1/sink/sink_test.rb +0 -59
- data/lib/twilio-ruby/rest/events/v1/sink/sink_validate.rb +0 -59
- data/lib/twilio-ruby/rest/flex_api/v1/assessments.rb +12 -14
- data/lib/twilio-ruby/rest/flex_api/v1/configuration.rb +0 -59
- data/lib/twilio-ruby/rest/flex_api/v1/insights_assessments_comment.rb +12 -14
- data/lib/twilio-ruby/rest/flex_api/v1/insights_conversations.rb +12 -14
- data/lib/twilio-ruby/rest/flex_api/v1/insights_questionnaires.rb +12 -14
- data/lib/twilio-ruby/rest/flex_api/v1/insights_questionnaires_category.rb +2 -4
- data/lib/twilio-ruby/rest/flex_api/v1/insights_questionnaires_question.rb +12 -14
- data/lib/twilio-ruby/rest/flex_api/v1/insights_segments.rb +12 -14
- data/lib/twilio-ruby/rest/flex_api/v1/insights_session.rb +0 -59
- data/lib/twilio-ruby/rest/flex_api/v1/insights_settings_answer_sets.rb +0 -59
- data/lib/twilio-ruby/rest/flex_api/v1/insights_settings_comment.rb +0 -59
- data/lib/twilio-ruby/rest/flex_api/v1/insights_user_roles.rb +0 -59
- data/lib/twilio-ruby/rest/flex_api/v1/interaction/interaction_channel/interaction_transfer.rb +0 -59
- data/lib/twilio-ruby/rest/flex_api/v1/interaction.rb +0 -59
- data/lib/twilio-ruby/rest/flex_api/v1/plugin/plugin_versions.rb +2 -4
- data/lib/twilio-ruby/rest/flex_api/v1/plugin.rb +2 -4
- data/lib/twilio-ruby/rest/flex_api/v1/plugin_archive.rb +0 -59
- data/lib/twilio-ruby/rest/flex_api/v1/plugin_configuration/configured_plugin.rb +2 -4
- data/lib/twilio-ruby/rest/flex_api/v1/plugin_configuration.rb +2 -4
- data/lib/twilio-ruby/rest/flex_api/v1/plugin_configuration_archive.rb +0 -59
- data/lib/twilio-ruby/rest/flex_api/v1/plugin_release.rb +2 -4
- data/lib/twilio-ruby/rest/flex_api/v1/plugin_version_archive.rb +0 -59
- data/lib/twilio-ruby/rest/flex_api/v1/provisioning_status.rb +0 -59
- data/lib/twilio-ruby/rest/flex_api/v2/flex_user.rb +0 -59
- data/lib/twilio-ruby/rest/flex_api/v2/web_channels.rb +0 -59
- data/lib/twilio-ruby/rest/frontline_api/v1/user.rb +0 -59
- data/lib/twilio-ruby/rest/iam/v1/api_key.rb +0 -59
- data/lib/twilio-ruby/rest/iam/v1/new_api_key.rb +0 -59
- data/lib/twilio-ruby/rest/iam/v1/o_auth_app.rb +0 -59
- data/lib/twilio-ruby/rest/iam/v1/token.rb +0 -59
- data/lib/twilio-ruby/rest/insights/v1/call/annotation.rb +0 -59
- data/lib/twilio-ruby/rest/insights/v1/call/call_summary.rb +0 -59
- data/lib/twilio-ruby/rest/insights/v1/call.rb +0 -59
- data/lib/twilio-ruby/rest/insights/v1/setting.rb +0 -59
- data/lib/twilio-ruby/rest/insights/v2/inbound.rb +2 -261
- data/lib/twilio-ruby/rest/insights/v2/inbound_report.rb +258 -0
- data/lib/twilio-ruby/rest/insights/v2/outbound.rb +18 -299
- data/lib/twilio-ruby/rest/insights/v2/outbound_report.rb +258 -0
- data/lib/twilio-ruby/rest/insights/v2/report.rb +27 -184
- data/lib/twilio-ruby/rest/insights/v2.rb +14 -4
- data/lib/twilio-ruby/rest/insights/v3/metadata.rb +1 -60
- data/lib/twilio-ruby/rest/insights/v3/query.rb +1 -60
- data/lib/twilio-ruby/rest/insights/v3/query_job.rb +654 -0
- data/lib/twilio-ruby/rest/insights/v3/result.rb +195 -0
- data/lib/twilio-ruby/rest/insights/v3.rb +17 -1
- data/lib/twilio-ruby/rest/intelligence/v2/operator_attachment.rb +0 -59
- data/lib/twilio-ruby/rest/intelligence/v2/operator_attachments.rb +0 -59
- data/lib/twilio-ruby/rest/intelligence/v2/transcript/encrypted_operator_results.rb +0 -59
- data/lib/twilio-ruby/rest/intelligence/v2/transcript/encrypted_sentences.rb +0 -59
- data/lib/twilio-ruby/rest/intelligence/v2/transcript/media.rb +0 -59
- data/lib/twilio-ruby/rest/intelligence/v3/rule_execution.rb +0 -59
- data/lib/twilio-ruby/rest/knowledge/v1/knowledge/knowledge_status.rb +0 -59
- data/lib/twilio-ruby/rest/knowledge/v2/operation.rb +0 -59
- data/lib/twilio-ruby/rest/knowledge/v2/search.rb +0 -59
- data/lib/twilio-ruby/rest/lookups/v1/phone_number.rb +0 -59
- data/lib/twilio-ruby/rest/lookups/v2/bucket.rb +0 -59
- data/lib/twilio-ruby/rest/lookups/v2/lookup_override.rb +0 -59
- data/lib/twilio-ruby/rest/lookups/v2/phone_number.rb +0 -59
- data/lib/twilio-ruby/rest/lookups/v2/query.rb +0 -59
- data/lib/twilio-ruby/rest/lookups/v2/rate_limit.rb +0 -59
- data/lib/twilio-ruby/rest/marketplace/v1/installed_add_on/installed_add_on_usage.rb +0 -59
- data/lib/twilio-ruby/rest/marketplace/v1/module_data.rb +0 -59
- data/lib/twilio-ruby/rest/marketplace/v1/module_data_management.rb +0 -59
- data/lib/twilio-ruby/rest/marketplace/v1/referral_conversion.rb +0 -59
- data/lib/twilio-ruby/rest/memory/v1/bulk.rb +0 -59
- data/lib/twilio-ruby/rest/memory/v1/conversation_summary.rb +2 -4
- data/lib/twilio-ruby/rest/memory/v1/identifier.rb +0 -80
- data/lib/twilio-ruby/rest/memory/v1/identity_resolution_setting.rb +0 -59
- data/lib/twilio-ruby/rest/memory/v1/lookup.rb +0 -59
- data/lib/twilio-ruby/rest/memory/v1/observation.rb +2 -4
- data/lib/twilio-ruby/rest/memory/v1/operation.rb +0 -59
- data/lib/twilio-ruby/rest/memory/v1/recall.rb +0 -59
- data/lib/twilio-ruby/rest/memory/v1/revision.rb +2 -4
- data/lib/twilio-ruby/rest/messaging/v1/brand_registration/brand_registration_otp.rb +0 -59
- data/lib/twilio-ruby/rest/messaging/v1/deactivations.rb +0 -59
- data/lib/twilio-ruby/rest/messaging/v1/domain_certs.rb +0 -59
- data/lib/twilio-ruby/rest/messaging/v1/domain_config.rb +0 -59
- data/lib/twilio-ruby/rest/messaging/v1/domain_config_messaging_service.rb +0 -59
- data/lib/twilio-ruby/rest/messaging/v1/domain_validate_dn.rb +0 -59
- data/lib/twilio-ruby/rest/messaging/v1/external_campaign.rb +0 -59
- data/lib/twilio-ruby/rest/messaging/v1/linkshortening_messaging_service.rb +0 -59
- data/lib/twilio-ruby/rest/messaging/v1/linkshortening_messaging_service_domain_association.rb +0 -59
- data/lib/twilio-ruby/rest/messaging/v1/request_managed_cert.rb +0 -59
- data/lib/twilio-ruby/rest/messaging/v1/service/us_app_to_person.rb +2 -4
- data/lib/twilio-ruby/rest/messaging/v1/service/us_app_to_person_usecase.rb +0 -59
- data/lib/twilio-ruby/rest/messaging/v1/usecase.rb +0 -59
- data/lib/twilio-ruby/rest/messaging/v2/domain_certs.rb +0 -59
- data/lib/twilio-ruby/rest/messaging/v2/typing_indicator.rb +0 -59
- data/lib/twilio-ruby/rest/messaging/v3/typing_indicator.rb +0 -59
- data/lib/twilio-ruby/rest/notify/v1/service/notification.rb +0 -59
- data/lib/twilio-ruby/rest/numbers/v1/bulk_eligibility.rb +0 -59
- data/lib/twilio-ruby/rest/numbers/v1/eligibility.rb +0 -59
- data/lib/twilio-ruby/rest/numbers/v1/embedded_session.rb +0 -59
- data/lib/twilio-ruby/rest/numbers/v1/porting_port_in.rb +0 -59
- data/lib/twilio-ruby/rest/numbers/v1/porting_port_in_phone_number.rb +0 -59
- data/lib/twilio-ruby/rest/numbers/v1/porting_portability.rb +0 -59
- data/lib/twilio-ruby/rest/numbers/v1/porting_webhook_configuration.rb +0 -59
- data/lib/twilio-ruby/rest/numbers/v1/porting_webhook_configuration_delete.rb +0 -59
- data/lib/twilio-ruby/rest/numbers/v1/sender_id_registration.rb +0 -59
- data/lib/twilio-ruby/rest/numbers/v1/sms_verification.rb +0 -59
- data/lib/twilio-ruby/rest/numbers/v1/sms_verification_check.rb +0 -59
- data/lib/twilio-ruby/rest/numbers/v1/voice_verification.rb +0 -59
- data/lib/twilio-ruby/rest/numbers/v1/voice_verification_check.rb +0 -59
- data/lib/twilio-ruby/rest/numbers/v1/webhook.rb +0 -59
- data/lib/twilio-ruby/rest/numbers/v2/bulk_hosted_number_order.rb +0 -59
- data/lib/twilio-ruby/rest/numbers/v2/bundle_clone.rb +0 -59
- data/lib/twilio-ruby/rest/numbers/v2/regulatory_compliance/bundle/replace_items.rb +0 -59
- data/lib/twilio-ruby/rest/numbers/v2/regulatory_compliance.rb +0 -59
- data/lib/twilio-ruby/rest/numbers/v2.rb +0 -16
- data/lib/twilio-ruby/rest/numbers/v3/hosted_number_order.rb +0 -59
- data/lib/twilio-ruby/rest/oauth/v1/authorize.rb +0 -59
- data/lib/twilio-ruby/rest/oauth/v1/token.rb +0 -59
- data/lib/twilio-ruby/rest/oauth/v2/authorize.rb +0 -59
- data/lib/twilio-ruby/rest/oauth/v2/oauth_authorization_server.rb +0 -59
- data/lib/twilio-ruby/rest/oauth/v2/token.rb +2 -61
- data/lib/twilio-ruby/rest/preview/wireless/sim/usage.rb +0 -59
- data/lib/twilio-ruby/rest/preview_iam/v1/authorize.rb +0 -59
- data/lib/twilio-ruby/rest/preview_iam/v1/token.rb +0 -59
- data/lib/twilio-ruby/rest/preview_iam/versionless/organization.rb +0 -59
- data/lib/twilio-ruby/rest/pricing/v1/messaging.rb +0 -59
- data/lib/twilio-ruby/rest/pricing/v1/phone_number.rb +0 -59
- data/lib/twilio-ruby/rest/pricing/v1/voice/number.rb +0 -59
- data/lib/twilio-ruby/rest/pricing/v1/voice.rb +0 -59
- data/lib/twilio-ruby/rest/pricing/v2/number.rb +0 -59
- data/lib/twilio-ruby/rest/pricing/v2/voice/number.rb +0 -59
- data/lib/twilio-ruby/rest/pricing/v2/voice.rb +0 -59
- data/lib/twilio-ruby/rest/routes/v2/phone_number.rb +0 -59
- data/lib/twilio-ruby/rest/routes/v2/sip_domain.rb +0 -59
- data/lib/twilio-ruby/rest/routes/v2/trunk.rb +0 -59
- data/lib/twilio-ruby/rest/routes/v3/phone_number.rb +0 -59
- data/lib/twilio-ruby/rest/serverless/v1/service/build/build_status.rb +0 -59
- data/lib/twilio-ruby/rest/serverless/v1/service/function/function_version/function_version_content.rb +0 -59
- data/lib/twilio-ruby/rest/studio/v1/flow/engagement/engagement_context.rb +0 -59
- data/lib/twilio-ruby/rest/studio/v1/flow/engagement/step/step_context.rb +0 -59
- data/lib/twilio-ruby/rest/studio/v1/flow/execution/execution_context.rb +0 -59
- data/lib/twilio-ruby/rest/studio/v1/flow/execution/execution_step/execution_step_context.rb +0 -59
- data/lib/twilio-ruby/rest/studio/v2/flow/execution/execution_context.rb +0 -59
- data/lib/twilio-ruby/rest/studio/v2/flow/execution/execution_step/execution_step_context.rb +0 -59
- data/lib/twilio-ruby/rest/studio/v2/flow/flow_test_user.rb +0 -59
- data/lib/twilio-ruby/rest/studio/v2/flow_validate.rb +0 -59
- data/lib/twilio-ruby/rest/sync/v1/service/sync_stream/stream_message.rb +0 -59
- data/lib/twilio-ruby/rest/taskrouter/v1/workspace/task_queue/task_queue_bulk_real_time_statistics.rb +0 -59
- data/lib/twilio-ruby/rest/taskrouter/v1/workspace/task_queue/task_queue_cumulative_statistics.rb +0 -59
- data/lib/twilio-ruby/rest/taskrouter/v1/workspace/task_queue/task_queue_real_time_statistics.rb +0 -59
- data/lib/twilio-ruby/rest/taskrouter/v1/workspace/task_queue/task_queue_statistics.rb +0 -59
- data/lib/twilio-ruby/rest/taskrouter/v1/workspace/worker/worker_statistics.rb +0 -59
- data/lib/twilio-ruby/rest/taskrouter/v1/workspace/worker/workers_cumulative_statistics.rb +0 -59
- data/lib/twilio-ruby/rest/taskrouter/v1/workspace/worker/workers_real_time_statistics.rb +0 -59
- data/lib/twilio-ruby/rest/taskrouter/v1/workspace/worker/workers_statistics.rb +0 -59
- data/lib/twilio-ruby/rest/taskrouter/v1/workspace/workflow/workflow_cumulative_statistics.rb +0 -59
- data/lib/twilio-ruby/rest/taskrouter/v1/workspace/workflow/workflow_real_time_statistics.rb +0 -59
- data/lib/twilio-ruby/rest/taskrouter/v1/workspace/workflow/workflow_statistics.rb +0 -59
- data/lib/twilio-ruby/rest/taskrouter/v1/workspace/workspace_cumulative_statistics.rb +0 -59
- data/lib/twilio-ruby/rest/taskrouter/v1/workspace/workspace_real_time_statistics.rb +0 -59
- data/lib/twilio-ruby/rest/taskrouter/v1/workspace/workspace_statistics.rb +0 -59
- data/lib/twilio-ruby/rest/trunking/v1/trunk/recording.rb +0 -59
- data/lib/twilio-ruby/rest/trusthub/v1/a2p_brand_registration.rb +0 -59
- data/lib/twilio-ruby/rest/trusthub/v1/a2p_brand_registration_embedded_session.rb +0 -59
- data/lib/twilio-ruby/rest/trusthub/v1/a2p_campaign_registration.rb +0 -59
- data/lib/twilio-ruby/rest/trusthub/v1/a2p_campaign_registration_embedded_session.rb +0 -59
- data/lib/twilio-ruby/rest/trusthub/v1/compliance_inquiries.rb +0 -59
- data/lib/twilio-ruby/rest/trusthub/v1/compliance_registration_inquiries.rb +0 -59
- data/lib/twilio-ruby/rest/trusthub/v1/compliance_tollfree_inquiries.rb +0 -59
- data/lib/twilio-ruby/rest/trusthub/v1/customer_profiles_provisional_copy.rb +0 -59
- data/lib/twilio-ruby/rest/trusthub/v1/trust_products_provisional_copy.rb +0 -59
- data/lib/twilio-ruby/rest/verify/v2/form.rb +0 -59
- data/lib/twilio-ruby/rest/verify/v2/safelist.rb +0 -59
- data/lib/twilio-ruby/rest/verify/v2/service/access_token.rb +0 -59
- data/lib/twilio-ruby/rest/verify/v2/service/approve_challenge.rb +0 -59
- data/lib/twilio-ruby/rest/verify/v2/service/entity/challenge/notification.rb +0 -59
- data/lib/twilio-ruby/rest/verify/v2/service/entity/new_factor.rb +0 -59
- data/lib/twilio-ruby/rest/verify/v2/service/new_challenge.rb +3 -62
- data/lib/twilio-ruby/rest/verify/v2/service/new_factor.rb +0 -59
- data/lib/twilio-ruby/rest/verify/v2/service/new_verify_factor.rb +0 -59
- data/lib/twilio-ruby/rest/verify/v2/service/verification.rb +8 -61
- data/lib/twilio-ruby/rest/verify/v2/service/verification_check.rb +0 -59
- data/lib/twilio-ruby/rest/verify/v2/verification_attempts_summary.rb +0 -59
- data/lib/twilio-ruby/rest/video/v1/composition_settings.rb +0 -59
- data/lib/twilio-ruby/rest/video/v1/recording_settings.rb +0 -59
- data/lib/twilio-ruby/rest/video/v1/room/participant/anonymize.rb +0 -59
- data/lib/twilio-ruby/rest/video/v1/room/participant/subscribe_rules.rb +0 -59
- data/lib/twilio-ruby/rest/video/v1/room/recording_rules.rb +0 -59
- data/lib/twilio-ruby/rest/voice/v1/archived_call.rb +0 -59
- data/lib/twilio-ruby/rest/voice/v1/dialing_permissions/bulk_country_update.rb +0 -59
- data/lib/twilio-ruby/rest/voice/v1/dialing_permissions/settings.rb +0 -59
- data/lib/twilio-ruby/rest/voice/v1/dialing_permissions.rb +0 -59
- data/lib/twilio-ruby/rest/voice/v2/account_default_configuration.rb +0 -59
- data/lib/twilio-ruby/rest/voice/v2/configuration/default.rb +0 -59
- data/lib/twilio-ruby/rest/voice/v2/configuration.rb +0 -59
- data/lib/twilio-ruby/rest/voice/v2/recording.rb +0 -59
- data/lib/twilio-ruby/rest/voice/v2/transcription.rb +0 -59
- data/lib/twilio-ruby/rest/voice/v2/type.rb +0 -59
- data/lib/twilio-ruby/rest/voice/v3/transcription.rb +259 -50
- data/lib/twilio-ruby/version.rb +1 -1
- metadata +6 -4
- data/lib/twilio-ruby/rest/memory/v1/event.rb +0 -320
- data/lib/twilio-ruby/rest/numbers/v2/caller_id.rb +0 -515
|
@@ -133,65 +133,6 @@ module Twilio
|
|
|
133
133
|
end
|
|
134
134
|
end
|
|
135
135
|
|
|
136
|
-
class FeedbackPageMetadata < PageMetadata
|
|
137
|
-
attr_reader :feedback_page
|
|
138
|
-
|
|
139
|
-
def initialize(version, response, solution, limit)
|
|
140
|
-
super(version, response)
|
|
141
|
-
@feedback_page = []
|
|
142
|
-
@limit = limit
|
|
143
|
-
key = get_key(response.body)
|
|
144
|
-
records = 0
|
|
145
|
-
while( limit != :unset && records < limit )
|
|
146
|
-
@feedback_page << FeedbackListResponse.new(version, @payload, key, limit - records)
|
|
147
|
-
@payload = self.next_page
|
|
148
|
-
break unless @payload
|
|
149
|
-
records += (@payload.body[key] || []).size
|
|
150
|
-
end
|
|
151
|
-
# Path Solution
|
|
152
|
-
@solution = solution
|
|
153
|
-
end
|
|
154
|
-
|
|
155
|
-
def each
|
|
156
|
-
@feedback_page.each do |record|
|
|
157
|
-
yield record
|
|
158
|
-
end
|
|
159
|
-
end
|
|
160
|
-
|
|
161
|
-
def to_s
|
|
162
|
-
'<Twilio::REST::Api::V2010PageMetadata>';
|
|
163
|
-
end
|
|
164
|
-
end
|
|
165
|
-
class FeedbackListResponse < InstanceListResource
|
|
166
|
-
|
|
167
|
-
# @param [Array<FeedbackInstance>] instance
|
|
168
|
-
# @param [Hash{String => Object}] headers
|
|
169
|
-
# @param [Integer] status_code
|
|
170
|
-
def initialize(version, payload, key, limit = :unset)
|
|
171
|
-
data_list = payload.body[key] || []
|
|
172
|
-
if limit != :unset
|
|
173
|
-
data_list = data_list[0, limit]
|
|
174
|
-
end
|
|
175
|
-
@feedback = data_list.map do |data|
|
|
176
|
-
FeedbackInstance.new(version, data)
|
|
177
|
-
end
|
|
178
|
-
@headers = payload.headers
|
|
179
|
-
@status_code = payload.status_code
|
|
180
|
-
end
|
|
181
|
-
|
|
182
|
-
def feedback
|
|
183
|
-
@feedback
|
|
184
|
-
end
|
|
185
|
-
|
|
186
|
-
def headers
|
|
187
|
-
@headers
|
|
188
|
-
end
|
|
189
|
-
|
|
190
|
-
def status_code
|
|
191
|
-
@status_code
|
|
192
|
-
end
|
|
193
|
-
end
|
|
194
|
-
|
|
195
136
|
class FeedbackInstance < InstanceResource
|
|
196
137
|
##
|
|
197
138
|
# Initialize the FeedbackInstance
|
|
@@ -53,6 +53,7 @@ module Twilio
|
|
|
53
53
|
# @param [Time] send_at The time that Twilio will send the message. Must be in ISO 8601 format.
|
|
54
54
|
# @param [Boolean] send_as_mms If set to `true`, Twilio delivers the message as a single MMS message, regardless of the presence of media.
|
|
55
55
|
# @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.
|
|
56
|
+
# @param [String] message_intent
|
|
56
57
|
# @param [RiskCheck] risk_check
|
|
57
58
|
# @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.
|
|
58
59
|
# @param [String] fallback_from A fallback SMS sender to use when the recipient cannot be reached over RCS. This parameter may only be used when also providing a [Messaging Service](https://twilio.com/docs/messaging/services) containing an RCS sender. The fallback SMS sender must be either a Twilio phone number (in [E.164](https://en.wikipedia.org/wiki/E.164) format), [alphanumeric sender ID](https://www.twilio.com/docs/sms/quickstart), or [short code](https://www.twilio.com/en-us/messaging/channels/sms/short-codes), hosted within Twilio and belong to the Account creating the Message.
|
|
@@ -80,6 +81,7 @@ module Twilio
|
|
|
80
81
|
send_at: :unset,
|
|
81
82
|
send_as_mms: :unset,
|
|
82
83
|
content_variables: :unset,
|
|
84
|
+
message_intent: :unset,
|
|
83
85
|
risk_check: :unset,
|
|
84
86
|
from: :unset,
|
|
85
87
|
fallback_from: :unset,
|
|
@@ -108,6 +110,7 @@ module Twilio
|
|
|
108
110
|
'SendAt' => Twilio.serialize_iso8601_datetime(send_at),
|
|
109
111
|
'SendAsMms' => send_as_mms,
|
|
110
112
|
'ContentVariables' => content_variables,
|
|
113
|
+
'MessageIntent' => message_intent,
|
|
111
114
|
'RiskCheck' => risk_check,
|
|
112
115
|
'From' => from,
|
|
113
116
|
'FallbackFrom' => fallback_from,
|
|
@@ -151,6 +154,7 @@ module Twilio
|
|
|
151
154
|
# @param [Time] send_at The time that Twilio will send the message. Must be in ISO 8601 format.
|
|
152
155
|
# @param [Boolean] send_as_mms If set to `true`, Twilio delivers the message as a single MMS message, regardless of the presence of media.
|
|
153
156
|
# @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.
|
|
157
|
+
# @param [String] message_intent
|
|
154
158
|
# @param [RiskCheck] risk_check
|
|
155
159
|
# @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.
|
|
156
160
|
# @param [String] fallback_from A fallback SMS sender to use when the recipient cannot be reached over RCS. This parameter may only be used when also providing a [Messaging Service](https://twilio.com/docs/messaging/services) containing an RCS sender. The fallback SMS sender must be either a Twilio phone number (in [E.164](https://en.wikipedia.org/wiki/E.164) format), [alphanumeric sender ID](https://www.twilio.com/docs/sms/quickstart), or [short code](https://www.twilio.com/en-us/messaging/channels/sms/short-codes), hosted within Twilio and belong to the Account creating the Message.
|
|
@@ -178,6 +182,7 @@ module Twilio
|
|
|
178
182
|
send_at: :unset,
|
|
179
183
|
send_as_mms: :unset,
|
|
180
184
|
content_variables: :unset,
|
|
185
|
+
message_intent: :unset,
|
|
181
186
|
risk_check: :unset,
|
|
182
187
|
from: :unset,
|
|
183
188
|
fallback_from: :unset,
|
|
@@ -206,6 +211,7 @@ module Twilio
|
|
|
206
211
|
'SendAt' => Twilio.serialize_iso8601_datetime(send_at),
|
|
207
212
|
'SendAsMms' => send_as_mms,
|
|
208
213
|
'ContentVariables' => content_variables,
|
|
214
|
+
'MessageIntent' => message_intent,
|
|
209
215
|
'RiskCheck' => risk_check,
|
|
210
216
|
'From' => from,
|
|
211
217
|
'FallbackFrom' => fallback_from,
|
|
@@ -130,65 +130,6 @@ module Twilio
|
|
|
130
130
|
end
|
|
131
131
|
end
|
|
132
132
|
|
|
133
|
-
class NewKeyPageMetadata < PageMetadata
|
|
134
|
-
attr_reader :new_key_page
|
|
135
|
-
|
|
136
|
-
def initialize(version, response, solution, limit)
|
|
137
|
-
super(version, response)
|
|
138
|
-
@new_key_page = []
|
|
139
|
-
@limit = limit
|
|
140
|
-
key = get_key(response.body)
|
|
141
|
-
records = 0
|
|
142
|
-
while( limit != :unset && records < limit )
|
|
143
|
-
@new_key_page << NewKeyListResponse.new(version, @payload, key, limit - records)
|
|
144
|
-
@payload = self.next_page
|
|
145
|
-
break unless @payload
|
|
146
|
-
records += (@payload.body[key] || []).size
|
|
147
|
-
end
|
|
148
|
-
# Path Solution
|
|
149
|
-
@solution = solution
|
|
150
|
-
end
|
|
151
|
-
|
|
152
|
-
def each
|
|
153
|
-
@new_key_page.each do |record|
|
|
154
|
-
yield record
|
|
155
|
-
end
|
|
156
|
-
end
|
|
157
|
-
|
|
158
|
-
def to_s
|
|
159
|
-
'<Twilio::REST::Api::V2010PageMetadata>';
|
|
160
|
-
end
|
|
161
|
-
end
|
|
162
|
-
class NewKeyListResponse < InstanceListResource
|
|
163
|
-
|
|
164
|
-
# @param [Array<NewKeyInstance>] instance
|
|
165
|
-
# @param [Hash{String => Object}] headers
|
|
166
|
-
# @param [Integer] status_code
|
|
167
|
-
def initialize(version, payload, key, limit = :unset)
|
|
168
|
-
data_list = payload.body[key] || []
|
|
169
|
-
if limit != :unset
|
|
170
|
-
data_list = data_list[0, limit]
|
|
171
|
-
end
|
|
172
|
-
@new_key = data_list.map do |data|
|
|
173
|
-
NewKeyInstance.new(version, data)
|
|
174
|
-
end
|
|
175
|
-
@headers = payload.headers
|
|
176
|
-
@status_code = payload.status_code
|
|
177
|
-
end
|
|
178
|
-
|
|
179
|
-
def new_key
|
|
180
|
-
@new_key
|
|
181
|
-
end
|
|
182
|
-
|
|
183
|
-
def headers
|
|
184
|
-
@headers
|
|
185
|
-
end
|
|
186
|
-
|
|
187
|
-
def status_code
|
|
188
|
-
@status_code
|
|
189
|
-
end
|
|
190
|
-
end
|
|
191
|
-
|
|
192
133
|
class NewKeyInstance < InstanceResource
|
|
193
134
|
##
|
|
194
135
|
# Initialize the NewKeyInstance
|
|
@@ -130,65 +130,6 @@ module Twilio
|
|
|
130
130
|
end
|
|
131
131
|
end
|
|
132
132
|
|
|
133
|
-
class NewSigningKeyPageMetadata < PageMetadata
|
|
134
|
-
attr_reader :new_signing_key_page
|
|
135
|
-
|
|
136
|
-
def initialize(version, response, solution, limit)
|
|
137
|
-
super(version, response)
|
|
138
|
-
@new_signing_key_page = []
|
|
139
|
-
@limit = limit
|
|
140
|
-
key = get_key(response.body)
|
|
141
|
-
records = 0
|
|
142
|
-
while( limit != :unset && records < limit )
|
|
143
|
-
@new_signing_key_page << NewSigningKeyListResponse.new(version, @payload, key, limit - records)
|
|
144
|
-
@payload = self.next_page
|
|
145
|
-
break unless @payload
|
|
146
|
-
records += (@payload.body[key] || []).size
|
|
147
|
-
end
|
|
148
|
-
# Path Solution
|
|
149
|
-
@solution = solution
|
|
150
|
-
end
|
|
151
|
-
|
|
152
|
-
def each
|
|
153
|
-
@new_signing_key_page.each do |record|
|
|
154
|
-
yield record
|
|
155
|
-
end
|
|
156
|
-
end
|
|
157
|
-
|
|
158
|
-
def to_s
|
|
159
|
-
'<Twilio::REST::Api::V2010PageMetadata>';
|
|
160
|
-
end
|
|
161
|
-
end
|
|
162
|
-
class NewSigningKeyListResponse < InstanceListResource
|
|
163
|
-
|
|
164
|
-
# @param [Array<NewSigningKeyInstance>] instance
|
|
165
|
-
# @param [Hash{String => Object}] headers
|
|
166
|
-
# @param [Integer] status_code
|
|
167
|
-
def initialize(version, payload, key, limit = :unset)
|
|
168
|
-
data_list = payload.body[key] || []
|
|
169
|
-
if limit != :unset
|
|
170
|
-
data_list = data_list[0, limit]
|
|
171
|
-
end
|
|
172
|
-
@new_signing_key = data_list.map do |data|
|
|
173
|
-
NewSigningKeyInstance.new(version, data)
|
|
174
|
-
end
|
|
175
|
-
@headers = payload.headers
|
|
176
|
-
@status_code = payload.status_code
|
|
177
|
-
end
|
|
178
|
-
|
|
179
|
-
def new_signing_key
|
|
180
|
-
@new_signing_key
|
|
181
|
-
end
|
|
182
|
-
|
|
183
|
-
def headers
|
|
184
|
-
@headers
|
|
185
|
-
end
|
|
186
|
-
|
|
187
|
-
def status_code
|
|
188
|
-
@status_code
|
|
189
|
-
end
|
|
190
|
-
end
|
|
191
|
-
|
|
192
133
|
class NewSigningKeyInstance < InstanceResource
|
|
193
134
|
##
|
|
194
135
|
# Initialize the NewSigningKeyInstance
|
|
@@ -208,65 +208,6 @@ module Twilio
|
|
|
208
208
|
end
|
|
209
209
|
end
|
|
210
210
|
|
|
211
|
-
class DataPageMetadata < PageMetadata
|
|
212
|
-
attr_reader :data_page
|
|
213
|
-
|
|
214
|
-
def initialize(version, response, solution, limit)
|
|
215
|
-
super(version, response)
|
|
216
|
-
@data_page = []
|
|
217
|
-
@limit = limit
|
|
218
|
-
key = get_key(response.body)
|
|
219
|
-
records = 0
|
|
220
|
-
while( limit != :unset && records < limit )
|
|
221
|
-
@data_page << DataListResponse.new(version, @payload, key, limit - records)
|
|
222
|
-
@payload = self.next_page
|
|
223
|
-
break unless @payload
|
|
224
|
-
records += (@payload.body[key] || []).size
|
|
225
|
-
end
|
|
226
|
-
# Path Solution
|
|
227
|
-
@solution = solution
|
|
228
|
-
end
|
|
229
|
-
|
|
230
|
-
def each
|
|
231
|
-
@data_page.each do |record|
|
|
232
|
-
yield record
|
|
233
|
-
end
|
|
234
|
-
end
|
|
235
|
-
|
|
236
|
-
def to_s
|
|
237
|
-
'<Twilio::REST::Api::V2010PageMetadata>';
|
|
238
|
-
end
|
|
239
|
-
end
|
|
240
|
-
class DataListResponse < InstanceListResource
|
|
241
|
-
|
|
242
|
-
# @param [Array<DataInstance>] instance
|
|
243
|
-
# @param [Hash{String => Object}] headers
|
|
244
|
-
# @param [Integer] status_code
|
|
245
|
-
def initialize(version, payload, key, limit = :unset)
|
|
246
|
-
data_list = payload.body[key] || []
|
|
247
|
-
if limit != :unset
|
|
248
|
-
data_list = data_list[0, limit]
|
|
249
|
-
end
|
|
250
|
-
@data = data_list.map do |data|
|
|
251
|
-
DataInstance.new(version, data)
|
|
252
|
-
end
|
|
253
|
-
@headers = payload.headers
|
|
254
|
-
@status_code = payload.status_code
|
|
255
|
-
end
|
|
256
|
-
|
|
257
|
-
def data
|
|
258
|
-
@data
|
|
259
|
-
end
|
|
260
|
-
|
|
261
|
-
def headers
|
|
262
|
-
@headers
|
|
263
|
-
end
|
|
264
|
-
|
|
265
|
-
def status_code
|
|
266
|
-
@status_code
|
|
267
|
-
end
|
|
268
|
-
end
|
|
269
|
-
|
|
270
211
|
class DataInstance < InstanceResource
|
|
271
212
|
##
|
|
272
213
|
# Initialize the DataInstance
|
|
@@ -103,65 +103,6 @@ module Twilio
|
|
|
103
103
|
end
|
|
104
104
|
end
|
|
105
105
|
|
|
106
|
-
class AuthTypeCallsPageMetadata < PageMetadata
|
|
107
|
-
attr_reader :auth_type_calls_page
|
|
108
|
-
|
|
109
|
-
def initialize(version, response, solution, limit)
|
|
110
|
-
super(version, response)
|
|
111
|
-
@auth_type_calls_page = []
|
|
112
|
-
@limit = limit
|
|
113
|
-
key = get_key(response.body)
|
|
114
|
-
records = 0
|
|
115
|
-
while( limit != :unset && records < limit )
|
|
116
|
-
@auth_type_calls_page << AuthTypeCallsListResponse.new(version, @payload, key, limit - records)
|
|
117
|
-
@payload = self.next_page
|
|
118
|
-
break unless @payload
|
|
119
|
-
records += (@payload.body[key] || []).size
|
|
120
|
-
end
|
|
121
|
-
# Path Solution
|
|
122
|
-
@solution = solution
|
|
123
|
-
end
|
|
124
|
-
|
|
125
|
-
def each
|
|
126
|
-
@auth_type_calls_page.each do |record|
|
|
127
|
-
yield record
|
|
128
|
-
end
|
|
129
|
-
end
|
|
130
|
-
|
|
131
|
-
def to_s
|
|
132
|
-
'<Twilio::REST::Api::V2010PageMetadata>';
|
|
133
|
-
end
|
|
134
|
-
end
|
|
135
|
-
class AuthTypeCallsListResponse < InstanceListResource
|
|
136
|
-
|
|
137
|
-
# @param [Array<AuthTypeCallsInstance>] instance
|
|
138
|
-
# @param [Hash{String => Object}] headers
|
|
139
|
-
# @param [Integer] status_code
|
|
140
|
-
def initialize(version, payload, key, limit = :unset)
|
|
141
|
-
data_list = payload.body[key] || []
|
|
142
|
-
if limit != :unset
|
|
143
|
-
data_list = data_list[0, limit]
|
|
144
|
-
end
|
|
145
|
-
@auth_type_calls = data_list.map do |data|
|
|
146
|
-
AuthTypeCallsInstance.new(version, data)
|
|
147
|
-
end
|
|
148
|
-
@headers = payload.headers
|
|
149
|
-
@status_code = payload.status_code
|
|
150
|
-
end
|
|
151
|
-
|
|
152
|
-
def auth_type_calls
|
|
153
|
-
@auth_type_calls
|
|
154
|
-
end
|
|
155
|
-
|
|
156
|
-
def headers
|
|
157
|
-
@headers
|
|
158
|
-
end
|
|
159
|
-
|
|
160
|
-
def status_code
|
|
161
|
-
@status_code
|
|
162
|
-
end
|
|
163
|
-
end
|
|
164
|
-
|
|
165
106
|
class AuthTypeCallsInstance < InstanceResource
|
|
166
107
|
##
|
|
167
108
|
# Initialize the AuthTypeCallsInstance
|
data/lib/twilio-ruby/rest/api/v2010/account/sip/domain/auth_types/auth_type_registrations.rb
CHANGED
|
@@ -89,65 +89,6 @@ module Twilio
|
|
|
89
89
|
end
|
|
90
90
|
end
|
|
91
91
|
|
|
92
|
-
class AuthTypeRegistrationsPageMetadata < PageMetadata
|
|
93
|
-
attr_reader :auth_type_registrations_page
|
|
94
|
-
|
|
95
|
-
def initialize(version, response, solution, limit)
|
|
96
|
-
super(version, response)
|
|
97
|
-
@auth_type_registrations_page = []
|
|
98
|
-
@limit = limit
|
|
99
|
-
key = get_key(response.body)
|
|
100
|
-
records = 0
|
|
101
|
-
while( limit != :unset && records < limit )
|
|
102
|
-
@auth_type_registrations_page << AuthTypeRegistrationsListResponse.new(version, @payload, key, limit - records)
|
|
103
|
-
@payload = self.next_page
|
|
104
|
-
break unless @payload
|
|
105
|
-
records += (@payload.body[key] || []).size
|
|
106
|
-
end
|
|
107
|
-
# Path Solution
|
|
108
|
-
@solution = solution
|
|
109
|
-
end
|
|
110
|
-
|
|
111
|
-
def each
|
|
112
|
-
@auth_type_registrations_page.each do |record|
|
|
113
|
-
yield record
|
|
114
|
-
end
|
|
115
|
-
end
|
|
116
|
-
|
|
117
|
-
def to_s
|
|
118
|
-
'<Twilio::REST::Api::V2010PageMetadata>';
|
|
119
|
-
end
|
|
120
|
-
end
|
|
121
|
-
class AuthTypeRegistrationsListResponse < InstanceListResource
|
|
122
|
-
|
|
123
|
-
# @param [Array<AuthTypeRegistrationsInstance>] instance
|
|
124
|
-
# @param [Hash{String => Object}] headers
|
|
125
|
-
# @param [Integer] status_code
|
|
126
|
-
def initialize(version, payload, key, limit = :unset)
|
|
127
|
-
data_list = payload.body[key] || []
|
|
128
|
-
if limit != :unset
|
|
129
|
-
data_list = data_list[0, limit]
|
|
130
|
-
end
|
|
131
|
-
@auth_type_registrations = data_list.map do |data|
|
|
132
|
-
AuthTypeRegistrationsInstance.new(version, data)
|
|
133
|
-
end
|
|
134
|
-
@headers = payload.headers
|
|
135
|
-
@status_code = payload.status_code
|
|
136
|
-
end
|
|
137
|
-
|
|
138
|
-
def auth_type_registrations
|
|
139
|
-
@auth_type_registrations
|
|
140
|
-
end
|
|
141
|
-
|
|
142
|
-
def headers
|
|
143
|
-
@headers
|
|
144
|
-
end
|
|
145
|
-
|
|
146
|
-
def status_code
|
|
147
|
-
@status_code
|
|
148
|
-
end
|
|
149
|
-
end
|
|
150
|
-
|
|
151
92
|
class AuthTypeRegistrationsInstance < InstanceResource
|
|
152
93
|
##
|
|
153
94
|
# Initialize the AuthTypeRegistrationsInstance
|
|
@@ -90,65 +90,6 @@ module Twilio
|
|
|
90
90
|
end
|
|
91
91
|
end
|
|
92
92
|
|
|
93
|
-
class AuthTypesPageMetadata < PageMetadata
|
|
94
|
-
attr_reader :auth_types_page
|
|
95
|
-
|
|
96
|
-
def initialize(version, response, solution, limit)
|
|
97
|
-
super(version, response)
|
|
98
|
-
@auth_types_page = []
|
|
99
|
-
@limit = limit
|
|
100
|
-
key = get_key(response.body)
|
|
101
|
-
records = 0
|
|
102
|
-
while( limit != :unset && records < limit )
|
|
103
|
-
@auth_types_page << AuthTypesListResponse.new(version, @payload, key, limit - records)
|
|
104
|
-
@payload = self.next_page
|
|
105
|
-
break unless @payload
|
|
106
|
-
records += (@payload.body[key] || []).size
|
|
107
|
-
end
|
|
108
|
-
# Path Solution
|
|
109
|
-
@solution = solution
|
|
110
|
-
end
|
|
111
|
-
|
|
112
|
-
def each
|
|
113
|
-
@auth_types_page.each do |record|
|
|
114
|
-
yield record
|
|
115
|
-
end
|
|
116
|
-
end
|
|
117
|
-
|
|
118
|
-
def to_s
|
|
119
|
-
'<Twilio::REST::Api::V2010PageMetadata>';
|
|
120
|
-
end
|
|
121
|
-
end
|
|
122
|
-
class AuthTypesListResponse < InstanceListResource
|
|
123
|
-
|
|
124
|
-
# @param [Array<AuthTypesInstance>] instance
|
|
125
|
-
# @param [Hash{String => Object}] headers
|
|
126
|
-
# @param [Integer] status_code
|
|
127
|
-
def initialize(version, payload, key, limit = :unset)
|
|
128
|
-
data_list = payload.body[key] || []
|
|
129
|
-
if limit != :unset
|
|
130
|
-
data_list = data_list[0, limit]
|
|
131
|
-
end
|
|
132
|
-
@auth_types = data_list.map do |data|
|
|
133
|
-
AuthTypesInstance.new(version, data)
|
|
134
|
-
end
|
|
135
|
-
@headers = payload.headers
|
|
136
|
-
@status_code = payload.status_code
|
|
137
|
-
end
|
|
138
|
-
|
|
139
|
-
def auth_types
|
|
140
|
-
@auth_types
|
|
141
|
-
end
|
|
142
|
-
|
|
143
|
-
def headers
|
|
144
|
-
@headers
|
|
145
|
-
end
|
|
146
|
-
|
|
147
|
-
def status_code
|
|
148
|
-
@status_code
|
|
149
|
-
end
|
|
150
|
-
end
|
|
151
|
-
|
|
152
93
|
class AuthTypesInstance < InstanceResource
|
|
153
94
|
##
|
|
154
95
|
# Initialize the AuthTypesInstance
|
|
@@ -114,65 +114,6 @@ module Twilio
|
|
|
114
114
|
end
|
|
115
115
|
end
|
|
116
116
|
|
|
117
|
-
class SipPageMetadata < PageMetadata
|
|
118
|
-
attr_reader :sip_page
|
|
119
|
-
|
|
120
|
-
def initialize(version, response, solution, limit)
|
|
121
|
-
super(version, response)
|
|
122
|
-
@sip_page = []
|
|
123
|
-
@limit = limit
|
|
124
|
-
key = get_key(response.body)
|
|
125
|
-
records = 0
|
|
126
|
-
while( limit != :unset && records < limit )
|
|
127
|
-
@sip_page << SipListResponse.new(version, @payload, key, limit - records)
|
|
128
|
-
@payload = self.next_page
|
|
129
|
-
break unless @payload
|
|
130
|
-
records += (@payload.body[key] || []).size
|
|
131
|
-
end
|
|
132
|
-
# Path Solution
|
|
133
|
-
@solution = solution
|
|
134
|
-
end
|
|
135
|
-
|
|
136
|
-
def each
|
|
137
|
-
@sip_page.each do |record|
|
|
138
|
-
yield record
|
|
139
|
-
end
|
|
140
|
-
end
|
|
141
|
-
|
|
142
|
-
def to_s
|
|
143
|
-
'<Twilio::REST::Api::V2010PageMetadata>';
|
|
144
|
-
end
|
|
145
|
-
end
|
|
146
|
-
class SipListResponse < InstanceListResource
|
|
147
|
-
|
|
148
|
-
# @param [Array<SipInstance>] instance
|
|
149
|
-
# @param [Hash{String => Object}] headers
|
|
150
|
-
# @param [Integer] status_code
|
|
151
|
-
def initialize(version, payload, key, limit = :unset)
|
|
152
|
-
data_list = payload.body[key] || []
|
|
153
|
-
if limit != :unset
|
|
154
|
-
data_list = data_list[0, limit]
|
|
155
|
-
end
|
|
156
|
-
@sip = data_list.map do |data|
|
|
157
|
-
SipInstance.new(version, data)
|
|
158
|
-
end
|
|
159
|
-
@headers = payload.headers
|
|
160
|
-
@status_code = payload.status_code
|
|
161
|
-
end
|
|
162
|
-
|
|
163
|
-
def sip
|
|
164
|
-
@sip
|
|
165
|
-
end
|
|
166
|
-
|
|
167
|
-
def headers
|
|
168
|
-
@headers
|
|
169
|
-
end
|
|
170
|
-
|
|
171
|
-
def status_code
|
|
172
|
-
@status_code
|
|
173
|
-
end
|
|
174
|
-
end
|
|
175
|
-
|
|
176
117
|
class SipInstance < InstanceResource
|
|
177
118
|
##
|
|
178
119
|
# Initialize the SipInstance
|
|
@@ -130,65 +130,6 @@ module Twilio
|
|
|
130
130
|
end
|
|
131
131
|
end
|
|
132
132
|
|
|
133
|
-
class TokenPageMetadata < PageMetadata
|
|
134
|
-
attr_reader :token_page
|
|
135
|
-
|
|
136
|
-
def initialize(version, response, solution, limit)
|
|
137
|
-
super(version, response)
|
|
138
|
-
@token_page = []
|
|
139
|
-
@limit = limit
|
|
140
|
-
key = get_key(response.body)
|
|
141
|
-
records = 0
|
|
142
|
-
while( limit != :unset && records < limit )
|
|
143
|
-
@token_page << TokenListResponse.new(version, @payload, key, limit - records)
|
|
144
|
-
@payload = self.next_page
|
|
145
|
-
break unless @payload
|
|
146
|
-
records += (@payload.body[key] || []).size
|
|
147
|
-
end
|
|
148
|
-
# Path Solution
|
|
149
|
-
@solution = solution
|
|
150
|
-
end
|
|
151
|
-
|
|
152
|
-
def each
|
|
153
|
-
@token_page.each do |record|
|
|
154
|
-
yield record
|
|
155
|
-
end
|
|
156
|
-
end
|
|
157
|
-
|
|
158
|
-
def to_s
|
|
159
|
-
'<Twilio::REST::Api::V2010PageMetadata>';
|
|
160
|
-
end
|
|
161
|
-
end
|
|
162
|
-
class TokenListResponse < InstanceListResource
|
|
163
|
-
|
|
164
|
-
# @param [Array<TokenInstance>] instance
|
|
165
|
-
# @param [Hash{String => Object}] headers
|
|
166
|
-
# @param [Integer] status_code
|
|
167
|
-
def initialize(version, payload, key, limit = :unset)
|
|
168
|
-
data_list = payload.body[key] || []
|
|
169
|
-
if limit != :unset
|
|
170
|
-
data_list = data_list[0, limit]
|
|
171
|
-
end
|
|
172
|
-
@token = data_list.map do |data|
|
|
173
|
-
TokenInstance.new(version, data)
|
|
174
|
-
end
|
|
175
|
-
@headers = payload.headers
|
|
176
|
-
@status_code = payload.status_code
|
|
177
|
-
end
|
|
178
|
-
|
|
179
|
-
def token
|
|
180
|
-
@token
|
|
181
|
-
end
|
|
182
|
-
|
|
183
|
-
def headers
|
|
184
|
-
@headers
|
|
185
|
-
end
|
|
186
|
-
|
|
187
|
-
def status_code
|
|
188
|
-
@status_code
|
|
189
|
-
end
|
|
190
|
-
end
|
|
191
|
-
|
|
192
133
|
class TokenInstance < InstanceResource
|
|
193
134
|
##
|
|
194
135
|
# Initialize the TokenInstance
|