twilio-ruby 5.67.3 → 5.74.5
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/.github/workflows/pr-lint.yml +8 -2
- data/.github/workflows/test-and-deploy.yml +3 -3
- data/CHANGES.md +288 -0
- data/LICENSE +1 -1
- data/Makefile +6 -2
- data/PULL_REQUEST_TEMPLATE.md +1 -1
- data/README.md +2 -2
- data/lib/twilio-ruby/rest/api/v2010/account/address.rb +19 -3
- data/lib/twilio-ruby/rest/api/v2010/account/application.rb +22 -3
- data/lib/twilio-ruby/rest/api/v2010/account/available_phone_number/local.rb +2 -2
- data/lib/twilio-ruby/rest/api/v2010/account/available_phone_number/machine_to_machine.rb +2 -2
- data/lib/twilio-ruby/rest/api/v2010/account/available_phone_number/mobile.rb +2 -2
- data/lib/twilio-ruby/rest/api/v2010/account/available_phone_number/national.rb +2 -2
- data/lib/twilio-ruby/rest/api/v2010/account/available_phone_number/shared_cost.rb +2 -2
- data/lib/twilio-ruby/rest/api/v2010/account/available_phone_number/toll_free.rb +2 -2
- data/lib/twilio-ruby/rest/api/v2010/account/available_phone_number/voip.rb +2 -2
- data/lib/twilio-ruby/rest/api/v2010/account/call/feedback.rb +1 -1
- data/lib/twilio-ruby/rest/api/v2010/account/call/feedback_summary.rb +5 -5
- data/lib/twilio-ruby/rest/api/v2010/account/call/recording.rb +2 -2
- data/lib/twilio-ruby/rest/api/v2010/account/call/user_defined_message.rb +160 -0
- data/lib/twilio-ruby/rest/api/v2010/account/call/user_defined_message_subscription.rb +251 -0
- data/lib/twilio-ruby/rest/api/v2010/account/call.rb +59 -0
- data/lib/twilio-ruby/rest/api/v2010/account/conference/participant.rb +56 -17
- data/lib/twilio-ruby/rest/api/v2010/account/conference/recording.rb +1 -1
- data/lib/twilio-ruby/rest/api/v2010/account/conference.rb +5 -5
- data/lib/twilio-ruby/rest/api/v2010/account/message.rb +17 -1
- data/lib/twilio-ruby/rest/api/v2010/account/queue/member.rb +2 -2
- data/lib/twilio-ruby/rest/api/v2010/account/queue.rb +3 -3
- data/lib/twilio-ruby/rest/api/v2010/account/recording/transcription.rb +1 -1
- data/lib/twilio-ruby/rest/api/v2010/account/recording.rb +1 -1
- data/lib/twilio-ruby/rest/api/v2010/account/sip/ip_access_control_list/ip_address.rb +5 -5
- data/lib/twilio-ruby/rest/api/v2010/account/sip/ip_access_control_list.rb +3 -3
- data/lib/twilio-ruby/rest/api/v2010/account/transcription.rb +1 -1
- data/lib/twilio-ruby/rest/api/v2010/account/usage/record/all_time.rb +1 -1
- data/lib/twilio-ruby/rest/api/v2010/account/usage/record/daily.rb +1 -1
- data/lib/twilio-ruby/rest/api/v2010/account/usage/record/last_month.rb +1 -1
- data/lib/twilio-ruby/rest/api/v2010/account/usage/record/monthly.rb +1 -1
- data/lib/twilio-ruby/rest/api/v2010/account/usage/record/this_month.rb +1 -1
- data/lib/twilio-ruby/rest/api/v2010/account/usage/record/today.rb +1 -1
- data/lib/twilio-ruby/rest/api/v2010/account/usage/record/yearly.rb +1 -1
- data/lib/twilio-ruby/rest/api/v2010/account/usage/record/yesterday.rb +1 -1
- data/lib/twilio-ruby/rest/api/v2010/account/usage/record.rb +1 -1
- data/lib/twilio-ruby/rest/autopilot/v1/assistant/task/task_statistics.rb +2 -2
- data/lib/twilio-ruby/rest/bulkexports/v1/export/day.rb +1 -1
- data/lib/twilio-ruby/rest/chat/v1/service/channel/message.rb +1 -1
- data/lib/twilio-ruby/rest/chat/v1/service/channel.rb +2 -2
- data/lib/twilio-ruby/rest/chat/v1/service/user.rb +1 -1
- data/lib/twilio-ruby/rest/chat/v1/service.rb +2 -2
- data/lib/twilio-ruby/rest/chat/v2/service/channel/message.rb +1 -1
- data/lib/twilio-ruby/rest/chat/v2/service/channel.rb +2 -2
- data/lib/twilio-ruby/rest/chat/v2/service/user.rb +1 -1
- data/lib/twilio-ruby/rest/chat/v2/service.rb +4 -4
- data/lib/twilio-ruby/rest/chat/v3/channel.rb +2 -2
- data/lib/twilio-ruby/rest/client.rb +28 -0
- data/lib/twilio-ruby/rest/content/v1/content/approval_fetch.rb +195 -0
- data/lib/twilio-ruby/rest/content/v1/content.rb +346 -0
- data/lib/twilio-ruby/rest/content/v1/legacy_content.rb +254 -0
- data/lib/twilio-ruby/rest/content/v1.rb +52 -0
- data/lib/twilio-ruby/rest/content.rb +53 -0
- data/lib/twilio-ruby/rest/conversations/v1/conversation/message/delivery_receipt.rb +1 -1
- data/lib/twilio-ruby/rest/conversations/v1/conversation/message.rb +17 -2
- data/lib/twilio-ruby/rest/conversations/v1/service/conversation/message/delivery_receipt.rb +1 -1
- data/lib/twilio-ruby/rest/conversations/v1/service/conversation/message.rb +17 -2
- data/lib/twilio-ruby/rest/events/v1/schema/version.rb +1 -1
- data/lib/twilio-ruby/rest/events/v1/schema.rb +1 -1
- data/lib/twilio-ruby/rest/events/v1/subscription/subscribed_event.rb +1 -1
- data/lib/twilio-ruby/rest/flex_api/v1/assessments.rb +397 -0
- data/lib/twilio-ruby/rest/flex_api/v1/configuration.rb +14 -0
- data/lib/twilio-ruby/rest/flex_api/v1/insights_assessments_comment.rb +314 -0
- data/lib/twilio-ruby/rest/flex_api/v1/insights_questionnaires.rb +394 -0
- data/lib/twilio-ruby/rest/flex_api/v1/insights_questionnaires_category.rb +313 -0
- data/lib/twilio-ruby/rest/flex_api/v1/insights_questionnaires_question.rb +390 -0
- data/lib/twilio-ruby/rest/flex_api/v1/insights_segments.rb +413 -0
- data/lib/twilio-ruby/rest/{preview/trusted_comms/brands_information.rb → flex_api/v1/insights_session.rb} +58 -55
- data/lib/twilio-ruby/rest/flex_api/v1/insights_settings_answersets.rb +144 -0
- data/lib/twilio-ruby/rest/flex_api/v1/insights_settings_comment.rb +130 -0
- data/lib/twilio-ruby/rest/{preview/trusted_comms/cps.rb → flex_api/v1/insights_user_roles.rb} +42 -54
- data/lib/twilio-ruby/rest/flex_api/v1/interaction/interaction_channel.rb +22 -1
- data/lib/twilio-ruby/rest/flex_api/v1.rb +115 -0
- data/lib/twilio-ruby/rest/flex_api/v2/web_channels.rb +133 -0
- data/lib/twilio-ruby/rest/flex_api/v2.rb +35 -0
- data/lib/twilio-ruby/rest/flex_api.rb +83 -0
- data/lib/twilio-ruby/rest/insights/v1/call/annotation.rb +322 -0
- data/lib/twilio-ruby/rest/insights/v1/call/summary.rb +14 -0
- data/lib/twilio-ruby/rest/insights/v1/call.rb +16 -8
- data/lib/twilio-ruby/rest/insights/v1/call_summaries.rb +7 -0
- data/lib/twilio-ruby/rest/insights/v1/room/participant.rb +1 -1
- data/lib/twilio-ruby/rest/insights/v1/room.rb +3 -3
- data/lib/twilio-ruby/rest/insights/v1.rb +0 -16
- data/lib/twilio-ruby/rest/insights.rb +0 -8
- data/lib/twilio-ruby/rest/ip_messaging/v1/service/channel/message.rb +1 -1
- data/lib/twilio-ruby/rest/ip_messaging/v1/service/channel.rb +2 -2
- data/lib/twilio-ruby/rest/ip_messaging/v1/service/user.rb +1 -1
- data/lib/twilio-ruby/rest/ip_messaging/v1/service.rb +2 -2
- data/lib/twilio-ruby/rest/ip_messaging/v2/service/channel/message.rb +1 -1
- data/lib/twilio-ruby/rest/ip_messaging/v2/service/channel.rb +2 -2
- data/lib/twilio-ruby/rest/ip_messaging/v2/service/user.rb +1 -1
- data/lib/twilio-ruby/rest/ip_messaging/v2/service.rb +4 -4
- data/lib/twilio-ruby/rest/lookups/v2/phone_number.rb +94 -12
- data/lib/twilio-ruby/rest/media/v1/media_processor.rb +1 -1
- data/lib/twilio-ruby/rest/media/v1/media_recording.rb +2 -9
- data/lib/twilio-ruby/rest/media/v1/player_streamer.rb +5 -5
- data/lib/twilio-ruby/rest/messaging/v1/domain_cert.rb +257 -0
- data/lib/twilio-ruby/rest/messaging/v1/domain_config.rb +267 -0
- data/lib/twilio-ruby/rest/messaging/v1/service/alpha_sender.rb +2 -2
- data/lib/twilio-ruby/rest/messaging/v1/service/us_app_to_person.rb +98 -3
- data/lib/twilio-ruby/rest/messaging/v1/service.rb +1 -1
- data/lib/twilio-ruby/rest/messaging/v1/tollfree_verification.rb +709 -0
- data/lib/twilio-ruby/rest/messaging/v1.rb +50 -0
- data/lib/twilio-ruby/rest/messaging.rb +26 -0
- data/lib/twilio-ruby/rest/microvisor/v1/account_config.rb +317 -0
- data/lib/twilio-ruby/rest/microvisor/v1/account_secret.rb +310 -0
- data/lib/twilio-ruby/rest/microvisor/v1/app/app_manifest.rb +192 -0
- data/lib/twilio-ruby/rest/microvisor/v1/app.rb +330 -0
- data/lib/twilio-ruby/rest/microvisor/v1/device/device_config.rb +342 -0
- data/lib/twilio-ruby/rest/{preview/bulk_exports/export/day.rb → microvisor/v1/device/device_secret.rb} +125 -84
- data/lib/twilio-ruby/rest/microvisor/v1/device.rb +393 -0
- data/lib/twilio-ruby/rest/microvisor/v1.rb +92 -0
- data/lib/twilio-ruby/rest/microvisor.rb +70 -0
- data/lib/twilio-ruby/rest/notify/v1/service/notification.rb +1 -1
- data/lib/twilio-ruby/rest/oauth/v1/device_code.rb +153 -0
- data/lib/twilio-ruby/rest/oauth/v1/oauth.rb +162 -0
- data/lib/twilio-ruby/rest/oauth/v1/openid_discovery.rb +242 -0
- data/lib/twilio-ruby/rest/oauth/v1/token.rb +157 -0
- data/lib/twilio-ruby/rest/oauth/v1/user_info.rb +193 -0
- data/lib/twilio-ruby/rest/oauth/v1.rb +63 -0
- data/lib/twilio-ruby/rest/oauth.rb +68 -0
- data/lib/twilio-ruby/rest/preview/hosted_numbers/authorization_document/dependent_hosted_number_order.rb +2 -2
- data/lib/twilio-ruby/rest/preview/hosted_numbers/hosted_number_order.rb +2 -2
- data/lib/twilio-ruby/rest/preview/sync/service/sync_list/sync_list_item.rb +1 -1
- data/lib/twilio-ruby/rest/preview/understand/assistant/task/task_statistics.rb +2 -2
- data/lib/twilio-ruby/rest/preview/wireless/rate_plan.rb +1 -1
- data/lib/twilio-ruby/rest/preview.rb +0 -58
- data/lib/twilio-ruby/rest/proxy/v1/service/phone_number.rb +1 -1
- data/lib/twilio-ruby/rest/proxy/v1/service/session/participant.rb +1 -14
- data/lib/twilio-ruby/rest/proxy/v1/service/session.rb +5 -46
- data/lib/twilio-ruby/rest/proxy/v1/service.rb +1 -1
- data/lib/twilio-ruby/rest/routes/v2/phone_number.rb +235 -0
- data/lib/twilio-ruby/rest/routes/v2/sip_domain.rb +231 -0
- data/lib/twilio-ruby/rest/routes/v2/trunk.rb +235 -0
- data/lib/twilio-ruby/rest/routes/v2.rb +76 -0
- data/lib/twilio-ruby/rest/routes.rb +62 -0
- data/lib/twilio-ruby/rest/studio/v1/flow.rb +1 -1
- data/lib/twilio-ruby/rest/studio/v2/flow/flow_revision.rb +1 -1
- data/lib/twilio-ruby/rest/studio/v2/flow.rb +1 -1
- data/lib/twilio-ruby/rest/supersim/v1/esim_profile.rb +21 -1
- data/lib/twilio-ruby/rest/supersim/v1/fleet.rb +17 -7
- data/lib/twilio-ruby/rest/supersim/v1/ip_command.rb +5 -2
- data/lib/twilio-ruby/rest/supersim/v1/settings_update.rb +247 -0
- data/lib/twilio-ruby/rest/supersim/v1/sim/sim_ip_address.rb +195 -0
- data/lib/twilio-ruby/rest/supersim/v1/sim.rb +20 -0
- data/lib/twilio-ruby/rest/supersim/v1/sms_command.rb +3 -3
- data/lib/twilio-ruby/rest/supersim/v1/usage_record.rb +4 -4
- data/lib/twilio-ruby/rest/supersim/v1.rb +7 -0
- data/lib/twilio-ruby/rest/supersim.rb +6 -0
- data/lib/twilio-ruby/rest/sync/v1/service/sync_list/sync_list_item.rb +1 -1
- data/lib/twilio-ruby/rest/sync/v1/service.rb +1 -1
- data/lib/twilio-ruby/rest/taskrouter/v1/workspace/event.rb +1 -1
- data/lib/twilio-ruby/rest/taskrouter/v1/workspace/task/reservation.rb +18 -5
- data/lib/twilio-ruby/rest/taskrouter/v1/workspace/task.rb +3 -3
- data/lib/twilio-ruby/rest/taskrouter/v1/workspace/task_queue/task_queue_cumulative_statistics.rb +12 -12
- data/lib/twilio-ruby/rest/taskrouter/v1/workspace/task_queue/task_queue_real_time_statistics.rb +5 -5
- data/lib/twilio-ruby/rest/taskrouter/v1/workspace/task_queue.rb +10 -4
- data/lib/twilio-ruby/rest/taskrouter/v1/workspace/worker/worker_channel.rb +3 -3
- data/lib/twilio-ruby/rest/taskrouter/v1/workspace/worker/workers_cumulative_statistics.rb +6 -6
- data/lib/twilio-ruby/rest/taskrouter/v1/workspace/worker/workers_real_time_statistics.rb +1 -1
- data/lib/twilio-ruby/rest/taskrouter/v1/workspace/worker.rb +9 -3
- data/lib/twilio-ruby/rest/taskrouter/v1/workspace/workflow/workflow_cumulative_statistics.rb +13 -13
- data/lib/twilio-ruby/rest/taskrouter/v1/workspace/workflow/workflow_real_time_statistics.rb +2 -2
- data/lib/twilio-ruby/rest/taskrouter/v1/workspace/workflow.rb +1 -1
- data/lib/twilio-ruby/rest/taskrouter/v1/workspace/workspace_cumulative_statistics.rb +13 -13
- data/lib/twilio-ruby/rest/taskrouter/v1/workspace/workspace_real_time_statistics.rb +3 -3
- data/lib/twilio-ruby/rest/trunking/v1/trunk/origination_url.rb +2 -2
- data/lib/twilio-ruby/rest/verify/v2/safelist.rb +215 -0
- data/lib/twilio-ruby/rest/verify/v2/service/access_token.rb +1 -9
- data/lib/twilio-ruby/rest/verify/v2/service/entity/challenge/notification.rb +1 -7
- data/lib/twilio-ruby/rest/verify/v2/service/entity/challenge.rb +0 -8
- data/lib/twilio-ruby/rest/verify/v2/service/entity/factor.rb +0 -8
- data/lib/twilio-ruby/rest/verify/v2/service/entity/new_factor.rb +0 -6
- data/lib/twilio-ruby/rest/verify/v2/service/entity.rb +0 -8
- data/lib/twilio-ruby/rest/verify/v2/service/rate_limit/bucket.rb +2 -2
- data/lib/twilio-ruby/rest/verify/v2/service/verification.rb +14 -10
- data/lib/twilio-ruby/rest/verify/v2/service/verification_check.rb +8 -1
- data/lib/twilio-ruby/rest/verify/v2/service/webhook.rb +0 -8
- data/lib/twilio-ruby/rest/verify/v2/service.rb +1 -1
- data/lib/twilio-ruby/rest/verify/v2/template.rb +7 -0
- data/lib/twilio-ruby/rest/verify/v2/verification_attempts_summary.rb +4 -4
- data/lib/twilio-ruby/rest/verify/v2.rb +18 -0
- data/lib/twilio-ruby/rest/verify.rb +8 -0
- data/lib/twilio-ruby/rest/video/v1/composition.rb +3 -3
- data/lib/twilio-ruby/rest/video/v1/recording.rb +2 -2
- data/lib/twilio-ruby/rest/video/v1/room/recording.rb +2 -2
- data/lib/twilio-ruby/rest/video/v1/room/room_participant/room_participant_anonymize.rb +240 -0
- data/lib/twilio-ruby/rest/video/v1/room/room_participant.rb +16 -0
- data/lib/twilio-ruby/rest/video/v1/room.rb +4 -4
- data/lib/twilio-ruby/rest/voice/v1/connection_policy/connection_policy_target.rb +2 -2
- data/lib/twilio-ruby/rest/voice/v1/dialing_permissions/bulk_country_update.rb +1 -1
- data/lib/twilio-ruby/rest/voice/v1/ip_record.rb +1 -1
- data/lib/twilio-ruby/rest/wireless/v1/rate_plan.rb +3 -3
- data/lib/twilio-ruby/rest/wireless/v1/sim/data_session.rb +2 -2
- data/lib/twilio-ruby/security/request_validator.rb +1 -1
- data/lib/twilio-ruby/twiml/voice_response.rb +135 -35
- data/lib/twilio-ruby/version.rb +1 -1
- data/twilio-ruby.gemspec +1 -1
- metadata +52 -17
- data/lib/twilio-ruby/rest/insights/v1/annotation.rb +0 -271
- data/lib/twilio-ruby/rest/preview/bulk_exports/export/export_custom_job.rb +0 -275
- data/lib/twilio-ruby/rest/preview/bulk_exports/export/job.rb +0 -249
- data/lib/twilio-ruby/rest/preview/bulk_exports/export.rb +0 -251
- data/lib/twilio-ruby/rest/preview/bulk_exports/export_configuration.rb +0 -234
- data/lib/twilio-ruby/rest/preview/bulk_exports.rb +0 -62
- data/lib/twilio-ruby/rest/preview/trusted_comms/branded_channel/channel.rb +0 -165
- data/lib/twilio-ruby/rest/preview/trusted_comms/branded_channel.rb +0 -225
- data/lib/twilio-ruby/rest/preview/trusted_comms/current_call.rb +0 -277
- data/lib/twilio-ruby/rest/preview/trusted_comms.rb +0 -65
@@ -0,0 +1,157 @@
|
|
1
|
+
##
|
2
|
+
# This code was generated by
|
3
|
+
# \ / _ _ _| _ _
|
4
|
+
# | (_)\/(_)(_|\/| |(/_ v1.0.0
|
5
|
+
# / /
|
6
|
+
#
|
7
|
+
# frozen_string_literal: true
|
8
|
+
|
9
|
+
module Twilio
|
10
|
+
module REST
|
11
|
+
class Oauth < Domain
|
12
|
+
class V1 < Version
|
13
|
+
class TokenList < ListResource
|
14
|
+
##
|
15
|
+
# Initialize the TokenList
|
16
|
+
# @param [Version] version Version that contains the resource
|
17
|
+
# @return [TokenList] TokenList
|
18
|
+
def initialize(version)
|
19
|
+
super(version)
|
20
|
+
|
21
|
+
# Path Solution
|
22
|
+
@solution = {}
|
23
|
+
@uri = "/token"
|
24
|
+
end
|
25
|
+
|
26
|
+
##
|
27
|
+
# Create the TokenInstance
|
28
|
+
# @param [String] grant_type Grant type is a credential representing resource
|
29
|
+
# owner's authorization which can be used by client to obtain access token.
|
30
|
+
# @param [String] client_sid A 34 character string that uniquely identifies this
|
31
|
+
# OAuth App.
|
32
|
+
# @param [String] client_secret The credential for confidential OAuth App.
|
33
|
+
# @param [String] code JWT token related to the authorization code grant type.
|
34
|
+
# @param [String] code_verifier A code which is generation cryptographically.
|
35
|
+
# @param [String] device_code JWT token related to the device code grant type.
|
36
|
+
# @param [String] refresh_token JWT token related to the refresh token grant type.
|
37
|
+
# @param [String] device_id The Id of the device associated with the token
|
38
|
+
# (refresh token).
|
39
|
+
# @return [TokenInstance] Created TokenInstance
|
40
|
+
def create(grant_type: nil, client_sid: nil, client_secret: :unset, code: :unset, code_verifier: :unset, device_code: :unset, refresh_token: :unset, device_id: :unset)
|
41
|
+
data = Twilio::Values.of({
|
42
|
+
'GrantType' => grant_type,
|
43
|
+
'ClientSid' => client_sid,
|
44
|
+
'ClientSecret' => client_secret,
|
45
|
+
'Code' => code,
|
46
|
+
'CodeVerifier' => code_verifier,
|
47
|
+
'DeviceCode' => device_code,
|
48
|
+
'RefreshToken' => refresh_token,
|
49
|
+
'DeviceId' => device_id,
|
50
|
+
})
|
51
|
+
|
52
|
+
payload = @version.create('POST', @uri, data: data)
|
53
|
+
|
54
|
+
TokenInstance.new(@version, payload, )
|
55
|
+
end
|
56
|
+
|
57
|
+
##
|
58
|
+
# Provide a user friendly representation
|
59
|
+
def to_s
|
60
|
+
'#<Twilio.Oauth.V1.TokenList>'
|
61
|
+
end
|
62
|
+
end
|
63
|
+
|
64
|
+
class TokenPage < Page
|
65
|
+
##
|
66
|
+
# Initialize the TokenPage
|
67
|
+
# @param [Version] version Version that contains the resource
|
68
|
+
# @param [Response] response Response from the API
|
69
|
+
# @param [Hash] solution Path solution for the resource
|
70
|
+
# @return [TokenPage] TokenPage
|
71
|
+
def initialize(version, response, solution)
|
72
|
+
super(version, response)
|
73
|
+
|
74
|
+
# Path Solution
|
75
|
+
@solution = solution
|
76
|
+
end
|
77
|
+
|
78
|
+
##
|
79
|
+
# Build an instance of TokenInstance
|
80
|
+
# @param [Hash] payload Payload response from the API
|
81
|
+
# @return [TokenInstance] TokenInstance
|
82
|
+
def get_instance(payload)
|
83
|
+
TokenInstance.new(@version, payload, )
|
84
|
+
end
|
85
|
+
|
86
|
+
##
|
87
|
+
# Provide a user friendly representation
|
88
|
+
def to_s
|
89
|
+
'<Twilio.Oauth.V1.TokenPage>'
|
90
|
+
end
|
91
|
+
end
|
92
|
+
|
93
|
+
class TokenInstance < InstanceResource
|
94
|
+
##
|
95
|
+
# Initialize the TokenInstance
|
96
|
+
# @param [Version] version Version that contains the resource
|
97
|
+
# @param [Hash] payload payload that contains response from Twilio
|
98
|
+
# @return [TokenInstance] TokenInstance
|
99
|
+
def initialize(version, payload)
|
100
|
+
super(version)
|
101
|
+
|
102
|
+
# Marshaled Properties
|
103
|
+
@properties = {
|
104
|
+
'access_token' => payload['access_token'],
|
105
|
+
'refresh_token' => payload['refresh_token'],
|
106
|
+
'id_token' => payload['id_token'],
|
107
|
+
'refresh_token_expires_at' => Twilio.deserialize_iso8601_datetime(payload['refresh_token_expires_at']),
|
108
|
+
'access_token_expires_at' => Twilio.deserialize_iso8601_datetime(payload['access_token_expires_at']),
|
109
|
+
}
|
110
|
+
end
|
111
|
+
|
112
|
+
##
|
113
|
+
# @return [String] Token which carries the necessary information to access a Twilio resource directly
|
114
|
+
def access_token
|
115
|
+
@properties['access_token']
|
116
|
+
end
|
117
|
+
|
118
|
+
##
|
119
|
+
# @return [String] Token which carries the information necessary to get a new access token
|
120
|
+
def refresh_token
|
121
|
+
@properties['refresh_token']
|
122
|
+
end
|
123
|
+
|
124
|
+
##
|
125
|
+
# @return [String] The id_token
|
126
|
+
def id_token
|
127
|
+
@properties['id_token']
|
128
|
+
end
|
129
|
+
|
130
|
+
##
|
131
|
+
# @return [Time] The RFC 2822 date and time in GMT when the refresh token expires
|
132
|
+
def refresh_token_expires_at
|
133
|
+
@properties['refresh_token_expires_at']
|
134
|
+
end
|
135
|
+
|
136
|
+
##
|
137
|
+
# @return [Time] The RFC 2822 date and time in GMT when the access token expires
|
138
|
+
def access_token_expires_at
|
139
|
+
@properties['access_token_expires_at']
|
140
|
+
end
|
141
|
+
|
142
|
+
##
|
143
|
+
# Provide a user friendly representation
|
144
|
+
def to_s
|
145
|
+
"<Twilio.Oauth.V1.TokenInstance>"
|
146
|
+
end
|
147
|
+
|
148
|
+
##
|
149
|
+
# Provide a detailed, user friendly representation
|
150
|
+
def inspect
|
151
|
+
"<Twilio.Oauth.V1.TokenInstance>"
|
152
|
+
end
|
153
|
+
end
|
154
|
+
end
|
155
|
+
end
|
156
|
+
end
|
157
|
+
end
|
@@ -0,0 +1,193 @@
|
|
1
|
+
##
|
2
|
+
# This code was generated by
|
3
|
+
# \ / _ _ _| _ _
|
4
|
+
# | (_)\/(_)(_|\/| |(/_ v1.0.0
|
5
|
+
# / /
|
6
|
+
#
|
7
|
+
# frozen_string_literal: true
|
8
|
+
|
9
|
+
module Twilio
|
10
|
+
module REST
|
11
|
+
class Oauth < Domain
|
12
|
+
class V1 < Version
|
13
|
+
class UserInfoList < ListResource
|
14
|
+
##
|
15
|
+
# Initialize the UserInfoList
|
16
|
+
# @param [Version] version Version that contains the resource
|
17
|
+
# @return [UserInfoList] UserInfoList
|
18
|
+
def initialize(version)
|
19
|
+
super(version)
|
20
|
+
|
21
|
+
# Path Solution
|
22
|
+
@solution = {}
|
23
|
+
end
|
24
|
+
|
25
|
+
##
|
26
|
+
# Provide a user friendly representation
|
27
|
+
def to_s
|
28
|
+
'#<Twilio.Oauth.V1.UserInfoList>'
|
29
|
+
end
|
30
|
+
end
|
31
|
+
|
32
|
+
class UserInfoPage < Page
|
33
|
+
##
|
34
|
+
# Initialize the UserInfoPage
|
35
|
+
# @param [Version] version Version that contains the resource
|
36
|
+
# @param [Response] response Response from the API
|
37
|
+
# @param [Hash] solution Path solution for the resource
|
38
|
+
# @return [UserInfoPage] UserInfoPage
|
39
|
+
def initialize(version, response, solution)
|
40
|
+
super(version, response)
|
41
|
+
|
42
|
+
# Path Solution
|
43
|
+
@solution = solution
|
44
|
+
end
|
45
|
+
|
46
|
+
##
|
47
|
+
# Build an instance of UserInfoInstance
|
48
|
+
# @param [Hash] payload Payload response from the API
|
49
|
+
# @return [UserInfoInstance] UserInfoInstance
|
50
|
+
def get_instance(payload)
|
51
|
+
UserInfoInstance.new(@version, payload, )
|
52
|
+
end
|
53
|
+
|
54
|
+
##
|
55
|
+
# Provide a user friendly representation
|
56
|
+
def to_s
|
57
|
+
'<Twilio.Oauth.V1.UserInfoPage>'
|
58
|
+
end
|
59
|
+
end
|
60
|
+
|
61
|
+
class UserInfoContext < InstanceContext
|
62
|
+
##
|
63
|
+
# Initialize the UserInfoContext
|
64
|
+
# @param [Version] version Version that contains the resource
|
65
|
+
# @return [UserInfoContext] UserInfoContext
|
66
|
+
def initialize(version)
|
67
|
+
super(version)
|
68
|
+
|
69
|
+
# Path Solution
|
70
|
+
@solution = {}
|
71
|
+
@uri = "/userinfo"
|
72
|
+
end
|
73
|
+
|
74
|
+
##
|
75
|
+
# Fetch the UserInfoInstance
|
76
|
+
# @return [UserInfoInstance] Fetched UserInfoInstance
|
77
|
+
def fetch
|
78
|
+
payload = @version.fetch('GET', @uri)
|
79
|
+
|
80
|
+
UserInfoInstance.new(@version, payload, )
|
81
|
+
end
|
82
|
+
|
83
|
+
##
|
84
|
+
# Provide a user friendly representation
|
85
|
+
def to_s
|
86
|
+
context = @solution.map {|k, v| "#{k}: #{v}"}.join(',')
|
87
|
+
"#<Twilio.Oauth.V1.UserInfoContext #{context}>"
|
88
|
+
end
|
89
|
+
|
90
|
+
##
|
91
|
+
# Provide a detailed, user friendly representation
|
92
|
+
def inspect
|
93
|
+
context = @solution.map {|k, v| "#{k}: #{v}"}.join(',')
|
94
|
+
"#<Twilio.Oauth.V1.UserInfoContext #{context}>"
|
95
|
+
end
|
96
|
+
end
|
97
|
+
|
98
|
+
class UserInfoInstance < InstanceResource
|
99
|
+
##
|
100
|
+
# Initialize the UserInfoInstance
|
101
|
+
# @param [Version] version Version that contains the resource
|
102
|
+
# @param [Hash] payload payload that contains response from Twilio
|
103
|
+
# @return [UserInfoInstance] UserInfoInstance
|
104
|
+
def initialize(version, payload)
|
105
|
+
super(version)
|
106
|
+
|
107
|
+
# Marshaled Properties
|
108
|
+
@properties = {
|
109
|
+
'user_sid' => payload['user_sid'],
|
110
|
+
'first_name' => payload['first_name'],
|
111
|
+
'last_name' => payload['last_name'],
|
112
|
+
'friendly_name' => payload['friendly_name'],
|
113
|
+
'email' => payload['email'],
|
114
|
+
'url' => payload['url'],
|
115
|
+
}
|
116
|
+
|
117
|
+
# Context
|
118
|
+
@instance_context = nil
|
119
|
+
@params = {}
|
120
|
+
end
|
121
|
+
|
122
|
+
##
|
123
|
+
# Generate an instance context for the instance, the context is capable of
|
124
|
+
# performing various actions. All instance actions are proxied to the context
|
125
|
+
# @return [UserInfoContext] UserInfoContext for this UserInfoInstance
|
126
|
+
def context
|
127
|
+
unless @instance_context
|
128
|
+
@instance_context = UserInfoContext.new(@version, )
|
129
|
+
end
|
130
|
+
@instance_context
|
131
|
+
end
|
132
|
+
|
133
|
+
##
|
134
|
+
# @return [String] The user sid
|
135
|
+
def user_sid
|
136
|
+
@properties['user_sid']
|
137
|
+
end
|
138
|
+
|
139
|
+
##
|
140
|
+
# @return [String] The first name of the end-user
|
141
|
+
def first_name
|
142
|
+
@properties['first_name']
|
143
|
+
end
|
144
|
+
|
145
|
+
##
|
146
|
+
# @return [String] The last name of the end-user
|
147
|
+
def last_name
|
148
|
+
@properties['last_name']
|
149
|
+
end
|
150
|
+
|
151
|
+
##
|
152
|
+
# @return [String] The friendly name of the end-user
|
153
|
+
def friendly_name
|
154
|
+
@properties['friendly_name']
|
155
|
+
end
|
156
|
+
|
157
|
+
##
|
158
|
+
# @return [String] The end-user's preferred email address
|
159
|
+
def email
|
160
|
+
@properties['email']
|
161
|
+
end
|
162
|
+
|
163
|
+
##
|
164
|
+
# @return [String] The url
|
165
|
+
def url
|
166
|
+
@properties['url']
|
167
|
+
end
|
168
|
+
|
169
|
+
##
|
170
|
+
# Fetch the UserInfoInstance
|
171
|
+
# @return [UserInfoInstance] Fetched UserInfoInstance
|
172
|
+
def fetch
|
173
|
+
context.fetch
|
174
|
+
end
|
175
|
+
|
176
|
+
##
|
177
|
+
# Provide a user friendly representation
|
178
|
+
def to_s
|
179
|
+
values = @params.map{|k, v| "#{k}: #{v}"}.join(" ")
|
180
|
+
"<Twilio.Oauth.V1.UserInfoInstance #{values}>"
|
181
|
+
end
|
182
|
+
|
183
|
+
##
|
184
|
+
# Provide a detailed, user friendly representation
|
185
|
+
def inspect
|
186
|
+
values = @properties.map{|k, v| "#{k}: #{v}"}.join(" ")
|
187
|
+
"<Twilio.Oauth.V1.UserInfoInstance #{values}>"
|
188
|
+
end
|
189
|
+
end
|
190
|
+
end
|
191
|
+
end
|
192
|
+
end
|
193
|
+
end
|
@@ -0,0 +1,63 @@
|
|
1
|
+
##
|
2
|
+
# This code was generated by
|
3
|
+
# \ / _ _ _| _ _
|
4
|
+
# | (_)\/(_)(_|\/| |(/_ v1.0.0
|
5
|
+
# / /
|
6
|
+
#
|
7
|
+
# frozen_string_literal: true
|
8
|
+
|
9
|
+
module Twilio
|
10
|
+
module REST
|
11
|
+
class Oauth
|
12
|
+
class V1 < Version
|
13
|
+
##
|
14
|
+
# Initialize the V1 version of Oauth
|
15
|
+
def initialize(domain)
|
16
|
+
super
|
17
|
+
@version = 'v1'
|
18
|
+
@oauth = nil
|
19
|
+
@device_code = nil
|
20
|
+
@openid_discovery = nil
|
21
|
+
@token = nil
|
22
|
+
@user_info = nil
|
23
|
+
end
|
24
|
+
|
25
|
+
##
|
26
|
+
# @return [Twilio::REST::Oauth::V1::OauthContext]
|
27
|
+
def oauth
|
28
|
+
@oauth ||= OauthContext.new self
|
29
|
+
end
|
30
|
+
|
31
|
+
##
|
32
|
+
# @return [Twilio::REST::Oauth::V1::DeviceCodeContext]
|
33
|
+
def device_code
|
34
|
+
@device_code ||= DeviceCodeList.new self
|
35
|
+
end
|
36
|
+
|
37
|
+
##
|
38
|
+
# @return [Twilio::REST::Oauth::V1::OpenidDiscoveryContext]
|
39
|
+
def openid_discovery
|
40
|
+
@openid_discovery ||= OpenidDiscoveryContext.new self
|
41
|
+
end
|
42
|
+
|
43
|
+
##
|
44
|
+
# @return [Twilio::REST::Oauth::V1::TokenContext]
|
45
|
+
def token
|
46
|
+
@token ||= TokenList.new self
|
47
|
+
end
|
48
|
+
|
49
|
+
##
|
50
|
+
# @return [Twilio::REST::Oauth::V1::UserInfoContext]
|
51
|
+
def user_info
|
52
|
+
@user_info ||= UserInfoContext.new self
|
53
|
+
end
|
54
|
+
|
55
|
+
##
|
56
|
+
# Provide a user friendly representation
|
57
|
+
def to_s
|
58
|
+
'<Twilio::REST::Oauth::V1>'
|
59
|
+
end
|
60
|
+
end
|
61
|
+
end
|
62
|
+
end
|
63
|
+
end
|
@@ -0,0 +1,68 @@
|
|
1
|
+
##
|
2
|
+
# This code was generated by
|
3
|
+
# \ / _ _ _| _ _
|
4
|
+
# | (_)\/(_)(_|\/| |(/_ v1.0.0
|
5
|
+
# / /
|
6
|
+
#
|
7
|
+
# frozen_string_literal: true
|
8
|
+
|
9
|
+
module Twilio
|
10
|
+
module REST
|
11
|
+
class Oauth < Domain
|
12
|
+
##
|
13
|
+
# Initialize the Oauth Domain
|
14
|
+
def initialize(twilio)
|
15
|
+
super
|
16
|
+
|
17
|
+
@base_url = 'https://oauth.twilio.com'
|
18
|
+
@host = 'oauth.twilio.com'
|
19
|
+
@port = 443
|
20
|
+
|
21
|
+
# Versions
|
22
|
+
@v1 = nil
|
23
|
+
end
|
24
|
+
|
25
|
+
##
|
26
|
+
# Version v1 of oauth
|
27
|
+
def v1
|
28
|
+
@v1 ||= V1.new self
|
29
|
+
end
|
30
|
+
|
31
|
+
##
|
32
|
+
# @return [Twilio::REST::Oauth::V1::OauthInstance]
|
33
|
+
def oauth
|
34
|
+
self.v1.oauth()
|
35
|
+
end
|
36
|
+
|
37
|
+
##
|
38
|
+
# @return [Twilio::REST::Oauth::V1::DeviceCodeInstance]
|
39
|
+
def device_code
|
40
|
+
self.v1.device_code()
|
41
|
+
end
|
42
|
+
|
43
|
+
##
|
44
|
+
# @return [Twilio::REST::Oauth::V1::OpenidDiscoveryInstance]
|
45
|
+
def openid_discovery
|
46
|
+
self.v1.openid_discovery()
|
47
|
+
end
|
48
|
+
|
49
|
+
##
|
50
|
+
# @return [Twilio::REST::Oauth::V1::TokenInstance]
|
51
|
+
def token
|
52
|
+
self.v1.token()
|
53
|
+
end
|
54
|
+
|
55
|
+
##
|
56
|
+
# @return [Twilio::REST::Oauth::V1::UserInfoInstance]
|
57
|
+
def user_info
|
58
|
+
self.v1.user_info()
|
59
|
+
end
|
60
|
+
|
61
|
+
##
|
62
|
+
# Provide a user friendly representation
|
63
|
+
def to_s
|
64
|
+
'#<Twilio::REST::Oauth>'
|
65
|
+
end
|
66
|
+
end
|
67
|
+
end
|
68
|
+
end
|
@@ -240,13 +240,13 @@ module Twilio
|
|
240
240
|
'failure_reason' => payload['failure_reason'],
|
241
241
|
'date_created' => Twilio.deserialize_iso8601_datetime(payload['date_created']),
|
242
242
|
'date_updated' => Twilio.deserialize_iso8601_datetime(payload['date_updated']),
|
243
|
-
'verification_attempts' => payload['verification_attempts'].to_i,
|
243
|
+
'verification_attempts' => payload['verification_attempts'] == nil ? payload['verification_attempts'] : payload['verification_attempts'].to_i,
|
244
244
|
'email' => payload['email'],
|
245
245
|
'cc_emails' => payload['cc_emails'],
|
246
246
|
'verification_type' => payload['verification_type'],
|
247
247
|
'verification_document_sid' => payload['verification_document_sid'],
|
248
248
|
'extension' => payload['extension'],
|
249
|
-
'call_delay' => payload['call_delay'].to_i,
|
249
|
+
'call_delay' => payload['call_delay'] == nil ? payload['call_delay'] : payload['call_delay'].to_i,
|
250
250
|
'verification_code' => payload['verification_code'],
|
251
251
|
'verification_call_sids' => payload['verification_call_sids'],
|
252
252
|
}
|
@@ -394,14 +394,14 @@ module Twilio
|
|
394
394
|
'failure_reason' => payload['failure_reason'],
|
395
395
|
'date_created' => Twilio.deserialize_iso8601_datetime(payload['date_created']),
|
396
396
|
'date_updated' => Twilio.deserialize_iso8601_datetime(payload['date_updated']),
|
397
|
-
'verification_attempts' => payload['verification_attempts'].to_i,
|
397
|
+
'verification_attempts' => payload['verification_attempts'] == nil ? payload['verification_attempts'] : payload['verification_attempts'].to_i,
|
398
398
|
'email' => payload['email'],
|
399
399
|
'cc_emails' => payload['cc_emails'],
|
400
400
|
'url' => payload['url'],
|
401
401
|
'verification_type' => payload['verification_type'],
|
402
402
|
'verification_document_sid' => payload['verification_document_sid'],
|
403
403
|
'extension' => payload['extension'],
|
404
|
-
'call_delay' => payload['call_delay'].to_i,
|
404
|
+
'call_delay' => payload['call_delay'] == nil ? payload['call_delay'] : payload['call_delay'].to_i,
|
405
405
|
'verification_code' => payload['verification_code'],
|
406
406
|
'verification_call_sids' => payload['verification_call_sids'],
|
407
407
|
}
|
@@ -275,7 +275,7 @@ module Twilio
|
|
275
275
|
|
276
276
|
# Marshaled Properties
|
277
277
|
@properties = {
|
278
|
-
'index' => payload['index'].to_i,
|
278
|
+
'index' => payload['index'] == nil ? payload['index'] : payload['index'].to_i,
|
279
279
|
'account_sid' => payload['account_sid'],
|
280
280
|
'service_sid' => payload['service_sid'],
|
281
281
|
'list_sid' => payload['list_sid'],
|
@@ -135,8 +135,8 @@ module Twilio
|
|
135
135
|
'account_sid' => payload['account_sid'],
|
136
136
|
'assistant_sid' => payload['assistant_sid'],
|
137
137
|
'task_sid' => payload['task_sid'],
|
138
|
-
'samples_count' => payload['samples_count'].to_i,
|
139
|
-
'fields_count' => payload['fields_count'].to_i,
|
138
|
+
'samples_count' => payload['samples_count'] == nil ? payload['samples_count'] : payload['samples_count'].to_i,
|
139
|
+
'fields_count' => payload['fields_count'] == nil ? payload['fields_count'] : payload['fields_count'].to_i,
|
140
140
|
'url' => payload['url'],
|
141
141
|
}
|
142
142
|
|
@@ -255,7 +255,7 @@ module Twilio
|
|
255
255
|
'friendly_name' => payload['friendly_name'],
|
256
256
|
'data_enabled' => payload['data_enabled'],
|
257
257
|
'data_metering' => payload['data_metering'],
|
258
|
-
'data_limit' => payload['data_limit'].to_i,
|
258
|
+
'data_limit' => payload['data_limit'] == nil ? payload['data_limit'] : payload['data_limit'].to_i,
|
259
259
|
'messaging_enabled' => payload['messaging_enabled'],
|
260
260
|
'voice_enabled' => payload['voice_enabled'],
|
261
261
|
'national_roaming_enabled' => payload['national_roaming_enabled'],
|
@@ -19,20 +19,12 @@ module Twilio
|
|
19
19
|
@port = 443
|
20
20
|
|
21
21
|
# Versions
|
22
|
-
@bulk_exports = nil
|
23
22
|
@deployed_devices = nil
|
24
23
|
@hosted_numbers = nil
|
25
24
|
@marketplace = nil
|
26
25
|
@sync = nil
|
27
26
|
@understand = nil
|
28
27
|
@wireless = nil
|
29
|
-
@trusted_comms = nil
|
30
|
-
end
|
31
|
-
|
32
|
-
##
|
33
|
-
# Version bulk_exports of preview
|
34
|
-
def bulk_exports
|
35
|
-
@bulk_exports ||= BulkExports.new self
|
36
28
|
end
|
37
29
|
|
38
30
|
##
|
@@ -71,30 +63,6 @@ module Twilio
|
|
71
63
|
@wireless ||= Wireless.new self
|
72
64
|
end
|
73
65
|
|
74
|
-
##
|
75
|
-
# Version trusted_comms of preview
|
76
|
-
def trusted_comms
|
77
|
-
@trusted_comms ||= TrustedComms.new self
|
78
|
-
end
|
79
|
-
|
80
|
-
##
|
81
|
-
# @param [String] resource_type The type of communication – Messages, Calls,
|
82
|
-
# Conferences, and Participants
|
83
|
-
# @return [Twilio::REST::Preview::BulkExports::ExportInstance] if resource_type was passed.
|
84
|
-
# @return [Twilio::REST::Preview::BulkExports::ExportList]
|
85
|
-
def exports(resource_type=:unset)
|
86
|
-
self.bulk_exports.exports(resource_type)
|
87
|
-
end
|
88
|
-
|
89
|
-
##
|
90
|
-
# @param [String] resource_type The type of communication – Messages, Calls,
|
91
|
-
# Conferences, and Participants
|
92
|
-
# @return [Twilio::REST::Preview::BulkExports::ExportConfigurationInstance] if resource_type was passed.
|
93
|
-
# @return [Twilio::REST::Preview::BulkExports::ExportConfigurationList]
|
94
|
-
def export_configuration(resource_type=:unset)
|
95
|
-
self.bulk_exports.export_configuration(resource_type)
|
96
|
-
end
|
97
|
-
|
98
66
|
##
|
99
67
|
# @param [String] sid Contains a 34 character string that uniquely identifies this
|
100
68
|
# Fleet resource.
|
@@ -182,32 +150,6 @@ module Twilio
|
|
182
150
|
self.wireless.sims(sid)
|
183
151
|
end
|
184
152
|
|
185
|
-
##
|
186
|
-
# @param [String] sid The unique SID identifier of the Branded Channel.
|
187
|
-
# @return [Twilio::REST::Preview::TrustedComms::BrandedChannelInstance] if sid was passed.
|
188
|
-
# @return [Twilio::REST::Preview::TrustedComms::BrandedChannelList]
|
189
|
-
def branded_channels(sid=:unset)
|
190
|
-
self.trusted_comms.branded_channels(sid)
|
191
|
-
end
|
192
|
-
|
193
|
-
##
|
194
|
-
# @return [Twilio::REST::Preview::TrustedComms::BrandsInformationInstance]
|
195
|
-
def brands_information
|
196
|
-
self.trusted_comms.brands_information()
|
197
|
-
end
|
198
|
-
|
199
|
-
##
|
200
|
-
# @return [Twilio::REST::Preview::TrustedComms::CpsInstance]
|
201
|
-
def cps
|
202
|
-
self.trusted_comms.cps()
|
203
|
-
end
|
204
|
-
|
205
|
-
##
|
206
|
-
# @return [Twilio::REST::Preview::TrustedComms::CurrentCallInstance]
|
207
|
-
def current_calls
|
208
|
-
self.trusted_comms.current_calls()
|
209
|
-
end
|
210
|
-
|
211
153
|
##
|
212
154
|
# Provide a user friendly representation
|
213
155
|
def to_s
|
@@ -273,7 +273,7 @@ module Twilio
|
|
273
273
|
'capabilities' => payload['capabilities'],
|
274
274
|
'url' => payload['url'],
|
275
275
|
'is_reserved' => payload['is_reserved'],
|
276
|
-
'in_use' => payload['in_use'].to_i,
|
276
|
+
'in_use' => payload['in_use'] == nil ? payload['in_use'] : payload['in_use'].to_i,
|
277
277
|
}
|
278
278
|
|
279
279
|
# Context
|
@@ -121,26 +121,13 @@ module Twilio
|
|
121
121
|
# Participant. If not specified, Proxy will select a number from the pool.
|
122
122
|
# @param [String] proxy_identifier_sid The SID of the Proxy Identifier to assign
|
123
123
|
# to the Participant.
|
124
|
-
# @param [Boolean] fail_on_participant_conflict [Experimental] For accounts with
|
125
|
-
# the ProxyAllowParticipantConflict account flag, setting to true enables
|
126
|
-
# per-request opt-in to allowing Proxy to reject a Participant create request that
|
127
|
-
# could cause the same Identifier/ProxyIdentifier pair to be active in multiple
|
128
|
-
# Sessions. Depending on the context, this could be a 409 error (Twilio error code
|
129
|
-
# 80623) or a 400 error (Twilio error code 80604). If not provided, requests will
|
130
|
-
# be allowed to succeed and a Debugger notification (80802) will be emitted.
|
131
|
-
# Having multiple, active Participants with the same Identifier/ProxyIdentifier
|
132
|
-
# pair causes calls and messages from affected Participants to be routed
|
133
|
-
# incorrectly. Please note, the default behavior for accounts without the
|
134
|
-
# ProxyAllowParticipantConflict flag is to reject the request as described. This
|
135
|
-
# will eventually be the default for all accounts.
|
136
124
|
# @return [ParticipantInstance] Created ParticipantInstance
|
137
|
-
def create(identifier: nil, friendly_name: :unset, proxy_identifier: :unset, proxy_identifier_sid: :unset
|
125
|
+
def create(identifier: nil, friendly_name: :unset, proxy_identifier: :unset, proxy_identifier_sid: :unset)
|
138
126
|
data = Twilio::Values.of({
|
139
127
|
'Identifier' => identifier,
|
140
128
|
'FriendlyName' => friendly_name,
|
141
129
|
'ProxyIdentifier' => proxy_identifier,
|
142
130
|
'ProxyIdentifierSid' => proxy_identifier_sid,
|
143
|
-
'FailOnParticipantConflict' => fail_on_participant_conflict,
|
144
131
|
})
|
145
132
|
|
146
133
|
payload = @version.create('POST', @uri, data: data)
|