twilio-ruby 6.12.1 → 7.0.1
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/test-and-deploy.yml +5 -5
- data/CHANGES.md +72 -1
- data/README.md +2 -2
- data/UPGRADE.md +11 -0
- data/lib/twilio-ruby/framework/request.rb +8 -1
- data/lib/twilio-ruby/http/http_client.rb +10 -3
- data/lib/twilio-ruby/rest/api/v2010/account/call/payment.rb +0 -2
- data/lib/twilio-ruby/rest/api/v2010/account/call.rb +22 -22
- data/lib/twilio-ruby/rest/api/v2010/account/conference/participant.rb +7 -0
- data/lib/twilio-ruby/rest/api/v2010/account/conference.rb +22 -22
- data/lib/twilio-ruby/rest/api/v2010/account/incoming_phone_number/assigned_add_on/assigned_add_on_extension.rb +0 -2
- data/lib/twilio-ruby/rest/api/v2010/account/incoming_phone_number/assigned_add_on.rb +0 -2
- data/lib/twilio-ruby/rest/client.rb +8 -3
- data/lib/twilio-ruby/rest/content/v1/content/approval_create.rb +184 -0
- data/lib/twilio-ruby/rest/content/v1/content/approval_fetch.rb +11 -13
- data/lib/twilio-ruby/rest/content/v1/content.rb +422 -3
- data/lib/twilio-ruby/rest/content/v1/content_and_approvals.rb +1 -1
- data/lib/twilio-ruby/rest/content/v1/legacy_content.rb +1 -1
- data/lib/twilio-ruby/rest/conversations/v1/conversation.rb +6 -6
- data/lib/twilio-ruby/rest/conversations/v1/service/conversation.rb +6 -6
- data/lib/twilio-ruby/rest/flex_api/v1/assessments.rb +0 -2
- data/lib/twilio-ruby/rest/flex_api/v1/configuration.rb +26 -0
- data/lib/twilio-ruby/rest/flex_api/v1/insights_questionnaires.rb +0 -2
- 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 +0 -2
- data/lib/twilio-ruby/rest/flex_api/v1/insights_session.rb +0 -2
- data/lib/twilio-ruby/rest/flex_api/v1/insights_user_roles.rb +0 -2
- data/lib/twilio-ruby/rest/flex_api/v1/plugin/plugin_versions.rb +6 -0
- data/lib/twilio-ruby/rest/flex_api/v1/provisioning_status.rb +0 -2
- data/lib/twilio-ruby/rest/frontline_api/v1/user.rb +0 -2
- data/lib/twilio-ruby/rest/insights/v1/call/annotation.rb +0 -2
- data/lib/twilio-ruby/rest/insights/v1/room/participant.rb +0 -2
- data/lib/twilio-ruby/rest/insights/v1/room.rb +0 -2
- data/lib/twilio-ruby/rest/intelligence/v2/service.rb +0 -2
- data/lib/twilio-ruby/rest/intelligence/v2/transcript/media.rb +0 -2
- data/lib/twilio-ruby/rest/intelligence/v2/transcript/operator_result.rb +0 -2
- data/lib/twilio-ruby/rest/intelligence/v2/transcript.rb +0 -2
- data/lib/twilio-ruby/rest/lookups/v2/phone_number.rb +17 -6
- 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 -2
- data/lib/twilio-ruby/rest/messaging/v1/domain_certs.rb +0 -2
- data/lib/twilio-ruby/rest/messaging/v1/domain_config.rb +0 -2
- data/lib/twilio-ruby/rest/messaging/v1/domain_config_messaging_service.rb +0 -2
- data/lib/twilio-ruby/rest/messaging/v1/linkshortening_messaging_service.rb +0 -2
- data/lib/twilio-ruby/rest/messaging/v1/linkshortening_messaging_service_domain_association.rb +0 -2
- data/lib/twilio-ruby/rest/messaging/v1/service/alpha_sender.rb +0 -2
- data/lib/twilio-ruby/rest/messaging/v1/service/channel_sender.rb +0 -2
- data/lib/twilio-ruby/rest/messaging/v1/service/phone_number.rb +0 -2
- data/lib/twilio-ruby/rest/messaging/v1/service/short_code.rb +0 -2
- data/lib/twilio-ruby/rest/messaging/v1/service/us_app_to_person.rb +0 -2
- data/lib/twilio-ruby/rest/messaging/v1/service.rb +7 -2
- data/lib/twilio-ruby/rest/messaging/v1/tollfree_verification.rb +0 -2
- data/lib/twilio-ruby/rest/microvisor/v1/account_config.rb +0 -2
- data/lib/twilio-ruby/rest/microvisor/v1/account_secret.rb +0 -2
- data/lib/twilio-ruby/rest/microvisor/v1/app/app_manifest.rb +0 -2
- data/lib/twilio-ruby/rest/microvisor/v1/app.rb +0 -2
- data/lib/twilio-ruby/rest/microvisor/v1/device/device_config.rb +0 -2
- data/lib/twilio-ruby/rest/microvisor/v1/device/device_secret.rb +0 -2
- data/lib/twilio-ruby/rest/microvisor/v1/device.rb +0 -2
- data/lib/twilio-ruby/rest/notify/v1/credential.rb +0 -2
- data/lib/twilio-ruby/rest/notify/v1/service/binding.rb +0 -2
- data/lib/twilio-ruby/rest/notify/v1/service.rb +0 -2
- data/lib/twilio-ruby/rest/numbers/v1/bulk_eligibility.rb +16 -3
- data/lib/twilio-ruby/rest/numbers/v1/eligibility.rb +127 -0
- data/lib/twilio-ruby/rest/numbers/v1/porting_bulk_portability.rb +0 -2
- data/lib/twilio-ruby/rest/numbers/v1/porting_port_in.rb +134 -0
- data/lib/twilio-ruby/rest/numbers/v1/porting_port_in_fetch.rb +7 -2
- data/lib/twilio-ruby/rest/numbers/v1/porting_portability.rb +0 -2
- data/lib/twilio-ruby/rest/numbers/v1.rb +12 -0
- data/lib/twilio-ruby/rest/numbers/v2/authorization_document.rb +0 -2
- data/lib/twilio-ruby/rest/numbers/v2/bulk_hosted_number_order.rb +16 -3
- data/lib/twilio-ruby/rest/numbers/v2/hosted_number_order.rb +0 -2
- data/lib/twilio-ruby/rest/oauth/v1/authorize.rb +143 -0
- data/lib/twilio-ruby/rest/oauth/v1/token.rb +181 -0
- data/lib/twilio-ruby/rest/oauth/v1.rb +46 -0
- data/lib/twilio-ruby/rest/{media.rb → oauth.rb} +1 -1
- data/lib/twilio-ruby/rest/{media_base.rb → oauth_base.rb} +6 -6
- 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 -2
- 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 -2
- data/lib/twilio-ruby/rest/preview/hosted_numbers/authorization_document.rb +0 -2
- data/lib/twilio-ruby/rest/preview/hosted_numbers/hosted_number_order.rb +0 -2
- data/lib/twilio-ruby/rest/preview/marketplace/available_add_on/available_add_on_extension.rb +0 -2
- data/lib/twilio-ruby/rest/preview/marketplace/available_add_on.rb +0 -2
- data/lib/twilio-ruby/rest/preview/marketplace/installed_add_on/installed_add_on_extension.rb +0 -2
- data/lib/twilio-ruby/rest/preview/marketplace/installed_add_on.rb +0 -2
- data/lib/twilio-ruby/rest/preview/sync/service/document/document_permission.rb +0 -2
- data/lib/twilio-ruby/rest/preview/sync/service/document.rb +0 -2
- data/lib/twilio-ruby/rest/preview/sync/service/sync_list/sync_list_item.rb +0 -2
- data/lib/twilio-ruby/rest/preview/sync/service/sync_list/sync_list_permission.rb +0 -2
- data/lib/twilio-ruby/rest/preview/sync/service/sync_list.rb +0 -2
- data/lib/twilio-ruby/rest/preview/sync/service/sync_map/sync_map_item.rb +0 -2
- data/lib/twilio-ruby/rest/preview/sync/service/sync_map/sync_map_permission.rb +0 -2
- data/lib/twilio-ruby/rest/preview/sync/service/sync_map.rb +0 -2
- data/lib/twilio-ruby/rest/preview/sync/service.rb +0 -2
- data/lib/twilio-ruby/rest/preview/wireless/command.rb +0 -2
- data/lib/twilio-ruby/rest/preview/wireless/rate_plan.rb +0 -2
- data/lib/twilio-ruby/rest/preview/wireless/sim/usage.rb +0 -2
- data/lib/twilio-ruby/rest/preview/wireless/sim.rb +0 -2
- data/lib/twilio-ruby/rest/preview_messaging/v1/broadcast.rb +164 -0
- data/lib/twilio-ruby/rest/preview_messaging/v1/message.rb +235 -0
- data/lib/twilio-ruby/rest/preview_messaging/v1.rb +46 -0
- data/lib/twilio-ruby/rest/preview_messaging.rb +12 -0
- data/lib/twilio-ruby/rest/preview_messaging_base.rb +38 -0
- data/lib/twilio-ruby/rest/proxy/v1/service/phone_number.rb +0 -2
- data/lib/twilio-ruby/rest/proxy/v1/service/session/interaction.rb +0 -2
- data/lib/twilio-ruby/rest/proxy/v1/service/session/participant/message_interaction.rb +0 -2
- data/lib/twilio-ruby/rest/proxy/v1/service/session/participant.rb +0 -2
- data/lib/twilio-ruby/rest/proxy/v1/service/session.rb +0 -2
- data/lib/twilio-ruby/rest/proxy/v1/service/short_code.rb +0 -2
- data/lib/twilio-ruby/rest/proxy/v1/service.rb +0 -2
- data/lib/twilio-ruby/rest/serverless/v1/service/asset/asset_version.rb +0 -2
- data/lib/twilio-ruby/rest/serverless/v1/service/asset.rb +0 -2
- data/lib/twilio-ruby/rest/serverless/v1/service/build/build_status.rb +0 -2
- data/lib/twilio-ruby/rest/serverless/v1/service/build.rb +0 -2
- data/lib/twilio-ruby/rest/serverless/v1/service/environment/deployment.rb +0 -2
- data/lib/twilio-ruby/rest/serverless/v1/service/environment/log.rb +0 -2
- data/lib/twilio-ruby/rest/serverless/v1/service/environment/variable.rb +0 -2
- data/lib/twilio-ruby/rest/serverless/v1/service/environment.rb +0 -2
- data/lib/twilio-ruby/rest/serverless/v1/service/function/function_version/function_version_content.rb +0 -2
- data/lib/twilio-ruby/rest/serverless/v1/service/function/function_version.rb +0 -2
- data/lib/twilio-ruby/rest/serverless/v1/service/function.rb +0 -2
- data/lib/twilio-ruby/rest/serverless/v1/service.rb +0 -2
- data/lib/twilio-ruby/rest/supersim/v1/esim_profile.rb +0 -2
- data/lib/twilio-ruby/rest/supersim/v1/fleet.rb +0 -2
- data/lib/twilio-ruby/rest/supersim/v1/ip_command.rb +0 -2
- data/lib/twilio-ruby/rest/supersim/v1/network.rb +0 -2
- data/lib/twilio-ruby/rest/supersim/v1/network_access_profile/network_access_profile_network.rb +0 -2
- data/lib/twilio-ruby/rest/supersim/v1/network_access_profile.rb +0 -2
- data/lib/twilio-ruby/rest/supersim/v1/sim.rb +0 -2
- data/lib/twilio-ruby/rest/supersim/v1/sms_command.rb +0 -2
- data/lib/twilio-ruby/rest/taskrouter/v1/workspace/task_queue/task_queue_bulk_real_time_statistics.rb +163 -0
- data/lib/twilio-ruby/rest/taskrouter/v1/workspace/task_queue.rb +8 -8
- data/lib/twilio-ruby/rest/trusthub/v1/compliance_registration_inquiries.rb +95 -4
- data/lib/twilio-ruby/rest/trusthub/v1/customer_profiles/customer_profiles_entity_assignments.rb +9 -3
- data/lib/twilio-ruby/rest/trusthub/v1/trust_products/trust_products_entity_assignments.rb +9 -3
- data/lib/twilio-ruby/rest/trusthub/v1/trust_products.rb +18 -18
- data/lib/twilio-ruby/rest/trusthub/v1.rb +12 -3
- data/lib/twilio-ruby/rest/verify/v2/form.rb +0 -2
- data/lib/twilio-ruby/rest/verify/v2/safelist.rb +0 -2
- data/lib/twilio-ruby/rest/verify/v2/service.rb +25 -0
- data/lib/twilio-ruby/rest/voice/v1/archived_call.rb +0 -2
- data/lib/twilio-ruby/rest/voice/v1/dialing_permissions/country.rb +0 -2
- data/lib/twilio-ruby/rest/voice/v1/dialing_permissions/settings.rb +0 -2
- data/lib/twilio-ruby/version.rb +1 -1
- metadata +16 -9
- data/lib/twilio-ruby/rest/media/v1/media_processor.rb +0 -424
- data/lib/twilio-ruby/rest/media/v1/media_recording.rb +0 -407
- data/lib/twilio-ruby/rest/media/v1/player_streamer/playback_grant.rb +0 -255
- data/lib/twilio-ruby/rest/media/v1/player_streamer.rb +0 -436
- data/lib/twilio-ruby/rest/media/v1.rb +0 -79
|
@@ -0,0 +1,181 @@
|
|
|
1
|
+
##
|
|
2
|
+
# This code was generated by
|
|
3
|
+
# ___ _ _ _ _ _ _ ____ ____ ____ _ ____ ____ _ _ ____ ____ ____ ___ __ __
|
|
4
|
+
# | | | | | | | | | __ | | |__| | __ | __ |___ |\ | |___ |__/ |__| | | | |__/
|
|
5
|
+
# | |_|_| | |___ | |__| |__| | | | |__] |___ | \| |___ | \ | | | |__| | \
|
|
6
|
+
#
|
|
7
|
+
# Twilio - Oauth
|
|
8
|
+
# This is the public Twilio REST API.
|
|
9
|
+
#
|
|
10
|
+
# NOTE: This class is auto generated by OpenAPI Generator.
|
|
11
|
+
# https://openapi-generator.tech
|
|
12
|
+
# Do not edit the class manually.
|
|
13
|
+
#
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
module Twilio
|
|
17
|
+
module REST
|
|
18
|
+
class Oauth < OauthBase
|
|
19
|
+
class V1 < Version
|
|
20
|
+
class TokenList < ListResource
|
|
21
|
+
|
|
22
|
+
##
|
|
23
|
+
# Initialize the TokenList
|
|
24
|
+
# @param [Version] version Version that contains the resource
|
|
25
|
+
# @return [TokenList] TokenList
|
|
26
|
+
def initialize(version)
|
|
27
|
+
super(version)
|
|
28
|
+
# Path Solution
|
|
29
|
+
@solution = { }
|
|
30
|
+
@uri = "/token"
|
|
31
|
+
|
|
32
|
+
end
|
|
33
|
+
##
|
|
34
|
+
# Create the TokenInstance
|
|
35
|
+
# @param [String] grant_type Grant type is a credential representing resource owner's authorization which can be used by client to obtain access token.
|
|
36
|
+
# @param [String] client_id A 34 character string that uniquely identifies this OAuth App.
|
|
37
|
+
# @param [String] client_secret The credential for confidential OAuth App.
|
|
38
|
+
# @param [String] code JWT token related to the authorization code grant type.
|
|
39
|
+
# @param [String] redirect_uri The redirect uri
|
|
40
|
+
# @param [String] audience The targeted audience uri
|
|
41
|
+
# @param [String] refresh_token JWT token related to refresh access token.
|
|
42
|
+
# @param [String] scope The scope of token
|
|
43
|
+
# @return [TokenInstance] Created TokenInstance
|
|
44
|
+
def create(
|
|
45
|
+
grant_type: nil,
|
|
46
|
+
client_id: nil,
|
|
47
|
+
client_secret: :unset,
|
|
48
|
+
code: :unset,
|
|
49
|
+
redirect_uri: :unset,
|
|
50
|
+
audience: :unset,
|
|
51
|
+
refresh_token: :unset,
|
|
52
|
+
scope: :unset
|
|
53
|
+
)
|
|
54
|
+
|
|
55
|
+
data = Twilio::Values.of({
|
|
56
|
+
'GrantType' => grant_type,
|
|
57
|
+
'ClientId' => client_id,
|
|
58
|
+
'ClientSecret' => client_secret,
|
|
59
|
+
'Code' => code,
|
|
60
|
+
'RedirectUri' => redirect_uri,
|
|
61
|
+
'Audience' => audience,
|
|
62
|
+
'RefreshToken' => refresh_token,
|
|
63
|
+
'Scope' => scope,
|
|
64
|
+
})
|
|
65
|
+
|
|
66
|
+
|
|
67
|
+
payload = @version.create('POST', @uri, data: data)
|
|
68
|
+
TokenInstance.new(
|
|
69
|
+
@version,
|
|
70
|
+
payload,
|
|
71
|
+
)
|
|
72
|
+
end
|
|
73
|
+
|
|
74
|
+
|
|
75
|
+
|
|
76
|
+
|
|
77
|
+
# Provide a user friendly representation
|
|
78
|
+
def to_s
|
|
79
|
+
'#<Twilio.Oauth.V1.TokenList>'
|
|
80
|
+
end
|
|
81
|
+
end
|
|
82
|
+
|
|
83
|
+
class TokenPage < Page
|
|
84
|
+
##
|
|
85
|
+
# Initialize the TokenPage
|
|
86
|
+
# @param [Version] version Version that contains the resource
|
|
87
|
+
# @param [Response] response Response from the API
|
|
88
|
+
# @param [Hash] solution Path solution for the resource
|
|
89
|
+
# @return [TokenPage] TokenPage
|
|
90
|
+
def initialize(version, response, solution)
|
|
91
|
+
super(version, response)
|
|
92
|
+
|
|
93
|
+
# Path Solution
|
|
94
|
+
@solution = solution
|
|
95
|
+
end
|
|
96
|
+
|
|
97
|
+
##
|
|
98
|
+
# Build an instance of TokenInstance
|
|
99
|
+
# @param [Hash] payload Payload response from the API
|
|
100
|
+
# @return [TokenInstance] TokenInstance
|
|
101
|
+
def get_instance(payload)
|
|
102
|
+
TokenInstance.new(@version, payload)
|
|
103
|
+
end
|
|
104
|
+
|
|
105
|
+
##
|
|
106
|
+
# Provide a user friendly representation
|
|
107
|
+
def to_s
|
|
108
|
+
'<Twilio.Oauth.V1.TokenPage>'
|
|
109
|
+
end
|
|
110
|
+
end
|
|
111
|
+
class TokenInstance < InstanceResource
|
|
112
|
+
##
|
|
113
|
+
# Initialize the TokenInstance
|
|
114
|
+
# @param [Version] version Version that contains the resource
|
|
115
|
+
# @param [Hash] payload payload that contains response from Twilio
|
|
116
|
+
# @param [String] account_sid The SID of the
|
|
117
|
+
# {Account}[https://www.twilio.com/docs/iam/api/account] that created this Token
|
|
118
|
+
# resource.
|
|
119
|
+
# @param [String] sid The SID of the Call resource to fetch.
|
|
120
|
+
# @return [TokenInstance] TokenInstance
|
|
121
|
+
def initialize(version, payload )
|
|
122
|
+
super(version)
|
|
123
|
+
|
|
124
|
+
# Marshaled Properties
|
|
125
|
+
@properties = {
|
|
126
|
+
'access_token' => payload['access_token'],
|
|
127
|
+
'refresh_token' => payload['refresh_token'],
|
|
128
|
+
'id_token' => payload['id_token'],
|
|
129
|
+
'token_type' => payload['token_type'],
|
|
130
|
+
'expires_in' => payload['expires_in'],
|
|
131
|
+
}
|
|
132
|
+
end
|
|
133
|
+
|
|
134
|
+
|
|
135
|
+
##
|
|
136
|
+
# @return [String] Token which carries the necessary information to access a Twilio resource directly.
|
|
137
|
+
def access_token
|
|
138
|
+
@properties['access_token']
|
|
139
|
+
end
|
|
140
|
+
|
|
141
|
+
##
|
|
142
|
+
# @return [String] Token which carries the information necessary to get a new access token.
|
|
143
|
+
def refresh_token
|
|
144
|
+
@properties['refresh_token']
|
|
145
|
+
end
|
|
146
|
+
|
|
147
|
+
##
|
|
148
|
+
# @return [String] Token which carries the information necessary of user profile.
|
|
149
|
+
def id_token
|
|
150
|
+
@properties['id_token']
|
|
151
|
+
end
|
|
152
|
+
|
|
153
|
+
##
|
|
154
|
+
# @return [String] Token type
|
|
155
|
+
def token_type
|
|
156
|
+
@properties['token_type']
|
|
157
|
+
end
|
|
158
|
+
|
|
159
|
+
##
|
|
160
|
+
# @return [String]
|
|
161
|
+
def expires_in
|
|
162
|
+
@properties['expires_in']
|
|
163
|
+
end
|
|
164
|
+
|
|
165
|
+
##
|
|
166
|
+
# Provide a user friendly representation
|
|
167
|
+
def to_s
|
|
168
|
+
"<Twilio.Oauth.V1.TokenInstance>"
|
|
169
|
+
end
|
|
170
|
+
|
|
171
|
+
##
|
|
172
|
+
# Provide a detailed, user friendly representation
|
|
173
|
+
def inspect
|
|
174
|
+
"<Twilio.Oauth.V1.TokenInstance>"
|
|
175
|
+
end
|
|
176
|
+
end
|
|
177
|
+
|
|
178
|
+
end
|
|
179
|
+
end
|
|
180
|
+
end
|
|
181
|
+
end
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
##
|
|
2
|
+
# This code was generated by
|
|
3
|
+
# ___ _ _ _ _ _ _ ____ ____ ____ _ ____ ____ _ _ ____ ____ ____ ___ __ __
|
|
4
|
+
# | | | | | | | | | __ | | |__| | __ | __ |___ |\ | |___ |__/ |__| | | | |__/
|
|
5
|
+
# | |_|_| | |___ | |__| |__| | | | |__] |___ | \| |___ | \ | | | |__| | \
|
|
6
|
+
#
|
|
7
|
+
# Twilio - Oauth
|
|
8
|
+
# This is the public Twilio REST API.
|
|
9
|
+
#
|
|
10
|
+
# NOTE: This class is auto generated by OpenAPI Generator.
|
|
11
|
+
# https://openapi-generator.tech
|
|
12
|
+
# Do not edit the class manually.
|
|
13
|
+
#
|
|
14
|
+
|
|
15
|
+
module Twilio
|
|
16
|
+
module REST
|
|
17
|
+
class Oauth
|
|
18
|
+
class V1 < Version
|
|
19
|
+
##
|
|
20
|
+
# Initialize the V1 version of Oauth
|
|
21
|
+
def initialize(domain)
|
|
22
|
+
super
|
|
23
|
+
@version = 'v1'
|
|
24
|
+
@authorize = nil
|
|
25
|
+
@token = nil
|
|
26
|
+
end
|
|
27
|
+
|
|
28
|
+
##
|
|
29
|
+
# @return [Twilio::REST::Oauth::V1::AuthorizeList]
|
|
30
|
+
def authorize
|
|
31
|
+
@authorize ||= AuthorizeList.new self
|
|
32
|
+
end
|
|
33
|
+
##
|
|
34
|
+
# @return [Twilio::REST::Oauth::V1::TokenList]
|
|
35
|
+
def token
|
|
36
|
+
@token ||= TokenList.new self
|
|
37
|
+
end
|
|
38
|
+
##
|
|
39
|
+
# Provide a user friendly representation
|
|
40
|
+
def to_s
|
|
41
|
+
'<Twilio::REST::Oauth::V1>';
|
|
42
|
+
end
|
|
43
|
+
end
|
|
44
|
+
end
|
|
45
|
+
end
|
|
46
|
+
end
|
|
@@ -10,28 +10,28 @@
|
|
|
10
10
|
# frozen_string_literal: true
|
|
11
11
|
module Twilio
|
|
12
12
|
module REST
|
|
13
|
-
class
|
|
13
|
+
class OauthBase < Domain
|
|
14
14
|
##
|
|
15
|
-
# Initialize
|
|
15
|
+
# Initialize oauth domain
|
|
16
16
|
#
|
|
17
17
|
# @param twilio - The twilio client
|
|
18
18
|
#
|
|
19
19
|
def initialize(twilio)
|
|
20
20
|
super(twilio)
|
|
21
|
-
@base_url = "https://
|
|
22
|
-
@host = "
|
|
21
|
+
@base_url = "https://oauth.twilio.com"
|
|
22
|
+
@host = "oauth.twilio.com"
|
|
23
23
|
@port = 443
|
|
24
24
|
@v1 = nil
|
|
25
25
|
end
|
|
26
26
|
|
|
27
27
|
def v1
|
|
28
|
-
@v1 ||=
|
|
28
|
+
@v1 ||= Oauth::V1.new self
|
|
29
29
|
end
|
|
30
30
|
|
|
31
31
|
##
|
|
32
32
|
# Provide a user friendly representation
|
|
33
33
|
def to_s
|
|
34
|
-
'<Twilio::REST::
|
|
34
|
+
'<Twilio::REST::Oauth::V1>';
|
|
35
35
|
end
|
|
36
36
|
end
|
|
37
37
|
end
|
|
@@ -159,8 +159,6 @@ module Twilio
|
|
|
159
159
|
end
|
|
160
160
|
|
|
161
161
|
|
|
162
|
-
##
|
|
163
|
-
#PLEASE NOTE that this class contains preview products that are subject to change. Use them with caution. If you currently do not have developer preview access, please contact help@twilio.com.
|
|
164
162
|
class CertificateContext < InstanceContext
|
|
165
163
|
##
|
|
166
164
|
# Initialize the CertificateContext
|
|
@@ -150,8 +150,6 @@ module Twilio
|
|
|
150
150
|
end
|
|
151
151
|
|
|
152
152
|
|
|
153
|
-
##
|
|
154
|
-
#PLEASE NOTE that this class contains preview products that are subject to change. Use them with caution. If you currently do not have developer preview access, please contact help@twilio.com.
|
|
155
153
|
class DeploymentContext < InstanceContext
|
|
156
154
|
##
|
|
157
155
|
# Initialize the DeploymentContext
|
|
@@ -165,8 +165,6 @@ module Twilio
|
|
|
165
165
|
end
|
|
166
166
|
|
|
167
167
|
|
|
168
|
-
##
|
|
169
|
-
#PLEASE NOTE that this class contains preview products that are subject to change. Use them with caution. If you currently do not have developer preview access, please contact help@twilio.com.
|
|
170
168
|
class DeviceContext < InstanceContext
|
|
171
169
|
##
|
|
172
170
|
# Initialize the DeviceContext
|
|
@@ -156,8 +156,6 @@ module Twilio
|
|
|
156
156
|
end
|
|
157
157
|
|
|
158
158
|
|
|
159
|
-
##
|
|
160
|
-
#PLEASE NOTE that this class contains preview products that are subject to change. Use them with caution. If you currently do not have developer preview access, please contact help@twilio.com.
|
|
161
159
|
class KeyContext < InstanceContext
|
|
162
160
|
##
|
|
163
161
|
# Initialize the KeyContext
|
|
@@ -144,8 +144,6 @@ module Twilio
|
|
|
144
144
|
end
|
|
145
145
|
|
|
146
146
|
|
|
147
|
-
##
|
|
148
|
-
#PLEASE NOTE that this class contains preview products that are subject to change. Use them with caution. If you currently do not have developer preview access, please contact help@twilio.com.
|
|
149
147
|
class FleetContext < InstanceContext
|
|
150
148
|
##
|
|
151
149
|
# Initialize the FleetContext
|
|
@@ -171,8 +171,6 @@ module Twilio
|
|
|
171
171
|
end
|
|
172
172
|
|
|
173
173
|
|
|
174
|
-
##
|
|
175
|
-
#PLEASE NOTE that this class contains preview products that are subject to change. Use them with caution. If you currently do not have developer preview access, please contact help@twilio.com.
|
|
176
174
|
class AuthorizationDocumentContext < InstanceContext
|
|
177
175
|
##
|
|
178
176
|
# Initialize the AuthorizationDocumentContext
|
|
@@ -222,8 +222,6 @@ module Twilio
|
|
|
222
222
|
end
|
|
223
223
|
|
|
224
224
|
|
|
225
|
-
##
|
|
226
|
-
#PLEASE NOTE that this class contains preview products that are subject to change. Use them with caution. If you currently do not have developer preview access, please contact help@twilio.com.
|
|
227
225
|
class HostedNumberOrderContext < InstanceContext
|
|
228
226
|
##
|
|
229
227
|
# Initialize the HostedNumberOrderContext
|
data/lib/twilio-ruby/rest/preview/marketplace/available_add_on/available_add_on_extension.rb
CHANGED
|
@@ -126,8 +126,6 @@ module Twilio
|
|
|
126
126
|
end
|
|
127
127
|
|
|
128
128
|
|
|
129
|
-
##
|
|
130
|
-
#PLEASE NOTE that this class contains preview products that are subject to change. Use them with caution. If you currently do not have developer preview access, please contact help@twilio.com.
|
|
131
129
|
class AvailableAddOnExtensionContext < InstanceContext
|
|
132
130
|
##
|
|
133
131
|
# Initialize the AvailableAddOnExtensionContext
|
|
@@ -124,8 +124,6 @@ module Twilio
|
|
|
124
124
|
end
|
|
125
125
|
|
|
126
126
|
|
|
127
|
-
##
|
|
128
|
-
#PLEASE NOTE that this class contains preview products that are subject to change. Use them with caution. If you currently do not have developer preview access, please contact help@twilio.com.
|
|
129
127
|
class AvailableAddOnContext < InstanceContext
|
|
130
128
|
##
|
|
131
129
|
# Initialize the AvailableAddOnContext
|
data/lib/twilio-ruby/rest/preview/marketplace/installed_add_on/installed_add_on_extension.rb
CHANGED
|
@@ -126,8 +126,6 @@ module Twilio
|
|
|
126
126
|
end
|
|
127
127
|
|
|
128
128
|
|
|
129
|
-
##
|
|
130
|
-
#PLEASE NOTE that this class contains preview products that are subject to change. Use them with caution. If you currently do not have developer preview access, please contact help@twilio.com.
|
|
131
129
|
class InstalledAddOnExtensionContext < InstanceContext
|
|
132
130
|
##
|
|
133
131
|
# Initialize the InstalledAddOnExtensionContext
|
|
@@ -153,8 +153,6 @@ module Twilio
|
|
|
153
153
|
end
|
|
154
154
|
|
|
155
155
|
|
|
156
|
-
##
|
|
157
|
-
#PLEASE NOTE that this class contains preview products that are subject to change. Use them with caution. If you currently do not have developer preview access, please contact help@twilio.com.
|
|
158
156
|
class InstalledAddOnContext < InstanceContext
|
|
159
157
|
##
|
|
160
158
|
# Initialize the InstalledAddOnContext
|
|
@@ -127,8 +127,6 @@ module Twilio
|
|
|
127
127
|
end
|
|
128
128
|
|
|
129
129
|
|
|
130
|
-
##
|
|
131
|
-
#PLEASE NOTE that this class contains preview products that are subject to change. Use them with caution. If you currently do not have developer preview access, please contact help@twilio.com.
|
|
132
130
|
class DocumentPermissionContext < InstanceContext
|
|
133
131
|
##
|
|
134
132
|
# Initialize the DocumentPermissionContext
|
|
@@ -150,8 +150,6 @@ module Twilio
|
|
|
150
150
|
end
|
|
151
151
|
|
|
152
152
|
|
|
153
|
-
##
|
|
154
|
-
#PLEASE NOTE that this class contains preview products that are subject to change. Use them with caution. If you currently do not have developer preview access, please contact help@twilio.com.
|
|
155
153
|
class DocumentContext < InstanceContext
|
|
156
154
|
##
|
|
157
155
|
# Initialize the DocumentContext
|
|
@@ -167,8 +167,6 @@ module Twilio
|
|
|
167
167
|
end
|
|
168
168
|
|
|
169
169
|
|
|
170
|
-
##
|
|
171
|
-
#PLEASE NOTE that this class contains preview products that are subject to change. Use them with caution. If you currently do not have developer preview access, please contact help@twilio.com.
|
|
172
170
|
class SyncListItemContext < InstanceContext
|
|
173
171
|
##
|
|
174
172
|
# Initialize the SyncListItemContext
|
|
@@ -127,8 +127,6 @@ module Twilio
|
|
|
127
127
|
end
|
|
128
128
|
|
|
129
129
|
|
|
130
|
-
##
|
|
131
|
-
#PLEASE NOTE that this class contains preview products that are subject to change. Use them with caution. If you currently do not have developer preview access, please contact help@twilio.com.
|
|
132
130
|
class SyncListPermissionContext < InstanceContext
|
|
133
131
|
##
|
|
134
132
|
# Initialize the SyncListPermissionContext
|
|
@@ -147,8 +147,6 @@ module Twilio
|
|
|
147
147
|
end
|
|
148
148
|
|
|
149
149
|
|
|
150
|
-
##
|
|
151
|
-
#PLEASE NOTE that this class contains preview products that are subject to change. Use them with caution. If you currently do not have developer preview access, please contact help@twilio.com.
|
|
152
150
|
class SyncListContext < InstanceContext
|
|
153
151
|
##
|
|
154
152
|
# Initialize the SyncListContext
|
|
@@ -170,8 +170,6 @@ module Twilio
|
|
|
170
170
|
end
|
|
171
171
|
|
|
172
172
|
|
|
173
|
-
##
|
|
174
|
-
#PLEASE NOTE that this class contains preview products that are subject to change. Use them with caution. If you currently do not have developer preview access, please contact help@twilio.com.
|
|
175
173
|
class SyncMapItemContext < InstanceContext
|
|
176
174
|
##
|
|
177
175
|
# Initialize the SyncMapItemContext
|
|
@@ -127,8 +127,6 @@ module Twilio
|
|
|
127
127
|
end
|
|
128
128
|
|
|
129
129
|
|
|
130
|
-
##
|
|
131
|
-
#PLEASE NOTE that this class contains preview products that are subject to change. Use them with caution. If you currently do not have developer preview access, please contact help@twilio.com.
|
|
132
130
|
class SyncMapPermissionContext < InstanceContext
|
|
133
131
|
##
|
|
134
132
|
# Initialize the SyncMapPermissionContext
|
|
@@ -147,8 +147,6 @@ module Twilio
|
|
|
147
147
|
end
|
|
148
148
|
|
|
149
149
|
|
|
150
|
-
##
|
|
151
|
-
#PLEASE NOTE that this class contains preview products that are subject to change. Use them with caution. If you currently do not have developer preview access, please contact help@twilio.com.
|
|
152
150
|
class SyncMapContext < InstanceContext
|
|
153
151
|
##
|
|
154
152
|
# Initialize the SyncMapContext
|
|
@@ -153,8 +153,6 @@ module Twilio
|
|
|
153
153
|
end
|
|
154
154
|
|
|
155
155
|
|
|
156
|
-
##
|
|
157
|
-
#PLEASE NOTE that this class contains preview products that are subject to change. Use them with caution. If you currently do not have developer preview access, please contact help@twilio.com.
|
|
158
156
|
class ServiceContext < InstanceContext
|
|
159
157
|
##
|
|
160
158
|
# Initialize the ServiceContext
|
|
@@ -186,8 +186,6 @@ module Twilio
|
|
|
186
186
|
end
|
|
187
187
|
|
|
188
188
|
|
|
189
|
-
##
|
|
190
|
-
#PLEASE NOTE that this class contains preview products that are subject to change. Use them with caution. If you currently do not have developer preview access, please contact help@twilio.com.
|
|
191
189
|
class CommandContext < InstanceContext
|
|
192
190
|
##
|
|
193
191
|
# Initialize the CommandContext
|
|
@@ -171,8 +171,6 @@ module Twilio
|
|
|
171
171
|
end
|
|
172
172
|
|
|
173
173
|
|
|
174
|
-
##
|
|
175
|
-
#PLEASE NOTE that this class contains preview products that are subject to change. Use them with caution. If you currently do not have developer preview access, please contact help@twilio.com.
|
|
176
174
|
class RatePlanContext < InstanceContext
|
|
177
175
|
##
|
|
178
176
|
# Initialize the RatePlanContext
|
|
@@ -42,8 +42,6 @@ module Twilio
|
|
|
42
42
|
end
|
|
43
43
|
|
|
44
44
|
|
|
45
|
-
##
|
|
46
|
-
#PLEASE NOTE that this class contains preview products that are subject to change. Use them with caution. If you currently do not have developer preview access, please contact help@twilio.com.
|
|
47
45
|
class UsageContext < InstanceContext
|
|
48
46
|
##
|
|
49
47
|
# Initialize the UsageContext
|
|
@@ -154,8 +154,6 @@ module Twilio
|
|
|
154
154
|
end
|
|
155
155
|
|
|
156
156
|
|
|
157
|
-
##
|
|
158
|
-
#PLEASE NOTE that this class contains preview products that are subject to change. Use them with caution. If you currently do not have developer preview access, please contact help@twilio.com.
|
|
159
157
|
class SimContext < InstanceContext
|
|
160
158
|
##
|
|
161
159
|
# Initialize the SimContext
|