twilio-ruby 6.0.0 → 6.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/CHANGES.md +20 -0
- data/README.md +2 -2
- data/lib/twilio-ruby/rest/api/v2010/account/address.rb +1 -1
- data/lib/twilio-ruby/rest/api/v2010/account/available_phone_number_country.rb +7 -7
- data/lib/twilio-ruby/rest/api/v2010/account/call.rb +8 -8
- data/lib/twilio-ruby/rest/api/v2010/account/conference.rb +2 -2
- data/lib/twilio-ruby/rest/api/v2010/account/incoming_phone_number/assigned_add_on.rb +1 -1
- data/lib/twilio-ruby/rest/api/v2010/account/incoming_phone_number.rb +1 -1
- data/lib/twilio-ruby/rest/api/v2010/account/message.rb +2 -2
- data/lib/twilio-ruby/rest/api/v2010/account/queue.rb +1 -1
- data/lib/twilio-ruby/rest/api/v2010/account/recording/add_on_result.rb +1 -1
- data/lib/twilio-ruby/rest/api/v2010/account/recording.rb +2 -2
- data/lib/twilio-ruby/rest/api/v2010/account/sip/credential_list.rb +1 -1
- data/lib/twilio-ruby/rest/api/v2010/account/sip/domain.rb +3 -3
- data/lib/twilio-ruby/rest/api/v2010/account/sip/ip_access_control_list.rb +1 -1
- data/lib/twilio-ruby/rest/api/v2010/account.rb +24 -24
- data/lib/twilio-ruby/rest/autopilot/v1/assistant/field_type.rb +1 -1
- data/lib/twilio-ruby/rest/autopilot/v1/assistant/task.rb +2 -2
- data/lib/twilio-ruby/rest/autopilot/v1/assistant.rb +6 -6
- data/lib/twilio-ruby/rest/bulkexports/v1/export.rb +2 -2
- data/lib/twilio-ruby/rest/chat/v1/service/channel.rb +3 -3
- data/lib/twilio-ruby/rest/chat/v1/service/user.rb +1 -1
- data/lib/twilio-ruby/rest/chat/v1/service.rb +3 -3
- data/lib/twilio-ruby/rest/chat/v2/service/channel.rb +4 -4
- data/lib/twilio-ruby/rest/chat/v2/service/user.rb +2 -2
- data/lib/twilio-ruby/rest/chat/v2/service.rb +4 -4
- data/lib/twilio-ruby/rest/conversations/v1/address_configuration.rb +11 -1
- data/lib/twilio-ruby/rest/conversations/v1/conversation/message.rb +1 -1
- data/lib/twilio-ruby/rest/conversations/v1/conversation.rb +27 -6
- data/lib/twilio-ruby/rest/conversations/v1/service/conversation/message.rb +1 -1
- data/lib/twilio-ruby/rest/conversations/v1/service/conversation.rb +27 -6
- data/lib/twilio-ruby/rest/conversations/v1/service/user.rb +1 -1
- data/lib/twilio-ruby/rest/conversations/v1/service.rb +5 -5
- data/lib/twilio-ruby/rest/conversations/v1/user.rb +1 -1
- data/lib/twilio-ruby/rest/events/v1/schema.rb +1 -1
- data/lib/twilio-ruby/rest/events/v1/sink.rb +2 -2
- data/lib/twilio-ruby/rest/events/v1/subscription.rb +1 -1
- data/lib/twilio-ruby/rest/flex_api/v1/assessments.rb +18 -24
- data/lib/twilio-ruby/rest/flex_api/v1/insights_assessments_comment.rb +12 -18
- data/lib/twilio-ruby/rest/flex_api/v1/insights_conversations.rb +9 -9
- data/lib/twilio-ruby/rest/flex_api/v1/insights_questionnaires.rb +30 -30
- data/lib/twilio-ruby/rest/flex_api/v1/insights_questionnaires_category.rb +24 -24
- data/lib/twilio-ruby/rest/flex_api/v1/insights_questionnaires_question.rb +24 -24
- data/lib/twilio-ruby/rest/flex_api/v1/insights_segments.rb +9 -9
- data/lib/twilio-ruby/rest/flex_api/v1/insights_settings_answer_sets.rb +3 -3
- data/lib/twilio-ruby/rest/flex_api/v1/insights_settings_comment.rb +3 -3
- data/lib/twilio-ruby/rest/flex_api/v1/interaction/interaction_channel.rb +2 -2
- data/lib/twilio-ruby/rest/flex_api/v1/interaction.rb +1 -1
- data/lib/twilio-ruby/rest/insights/v1/call.rb +2 -2
- data/lib/twilio-ruby/rest/insights/v1/call_summaries.rb +31 -3
- data/lib/twilio-ruby/rest/insights/v1/conference.rb +1 -1
- data/lib/twilio-ruby/rest/insights/v1/room.rb +1 -1
- data/lib/twilio-ruby/rest/ip_messaging/v1/service/channel.rb +3 -3
- data/lib/twilio-ruby/rest/ip_messaging/v1/service/user.rb +1 -1
- data/lib/twilio-ruby/rest/ip_messaging/v1/service.rb +3 -3
- data/lib/twilio-ruby/rest/ip_messaging/v2/service/channel.rb +4 -4
- data/lib/twilio-ruby/rest/ip_messaging/v2/service/user.rb +2 -2
- data/lib/twilio-ruby/rest/ip_messaging/v2/service.rb +4 -4
- data/lib/twilio-ruby/rest/messaging/v1/brand_registration.rb +2 -2
- data/lib/twilio-ruby/rest/messaging/v1/domain_config.rb +28 -2
- data/lib/twilio-ruby/rest/messaging/v1/domain_config_messaging_service.rb +7 -0
- data/lib/twilio-ruby/rest/messaging/v1/linkshortening_messaging_service_domain_association.rb +196 -0
- data/lib/twilio-ruby/rest/messaging/v1/service.rb +5 -5
- data/lib/twilio-ruby/rest/messaging/v1.rb +15 -0
- data/lib/twilio-ruby/rest/microvisor/v1/device.rb +2 -2
- data/lib/twilio-ruby/rest/notify/v1/service.rb +2 -2
- data/lib/twilio-ruby/rest/numbers/v1/bulk_eligibility.rb +224 -0
- data/lib/twilio-ruby/rest/numbers/v1.rb +49 -0
- data/lib/twilio-ruby/rest/numbers/v2/regulatory_compliance/bundle.rb +4 -4
- data/lib/twilio-ruby/rest/numbers_base.rb +6 -1
- data/lib/twilio-ruby/rest/preview/deployed_devices/fleet.rb +4 -4
- data/lib/twilio-ruby/rest/preview/hosted_numbers/authorization_document.rb +1 -1
- data/lib/twilio-ruby/rest/preview/marketplace/available_add_on.rb +1 -1
- data/lib/twilio-ruby/rest/preview/marketplace/installed_add_on.rb +1 -1
- data/lib/twilio-ruby/rest/preview/sync/service/document.rb +1 -1
- data/lib/twilio-ruby/rest/preview/sync/service/sync_list.rb +2 -2
- data/lib/twilio-ruby/rest/preview/sync/service/sync_map.rb +2 -2
- data/lib/twilio-ruby/rest/preview/sync/service.rb +3 -3
- data/lib/twilio-ruby/rest/preview/understand/assistant/field_type.rb +1 -1
- data/lib/twilio-ruby/rest/preview/understand/assistant/task.rb +2 -2
- data/lib/twilio-ruby/rest/preview/understand/assistant.rb +5 -5
- data/lib/twilio-ruby/rest/proxy/v1/service/session/participant.rb +1 -1
- data/lib/twilio-ruby/rest/proxy/v1/service/session.rb +2 -2
- data/lib/twilio-ruby/rest/proxy/v1/service.rb +3 -3
- data/lib/twilio-ruby/rest/serverless/v1/service/asset.rb +1 -1
- data/lib/twilio-ruby/rest/serverless/v1/service/environment.rb +3 -3
- data/lib/twilio-ruby/rest/serverless/v1/service/function.rb +1 -1
- data/lib/twilio-ruby/rest/serverless/v1/service.rb +4 -4
- data/lib/twilio-ruby/rest/studio/v1/flow/engagement.rb +1 -1
- data/lib/twilio-ruby/rest/studio/v1/flow/execution.rb +1 -1
- data/lib/twilio-ruby/rest/studio/v1/flow.rb +2 -2
- data/lib/twilio-ruby/rest/studio/v2/flow/execution.rb +1 -1
- data/lib/twilio-ruby/rest/studio/v2/flow.rb +2 -2
- data/lib/twilio-ruby/rest/supersim/v1/network_access_profile.rb +1 -1
- data/lib/twilio-ruby/rest/supersim/v1/sim.rb +2 -2
- data/lib/twilio-ruby/rest/sync/v1/service/document.rb +1 -1
- data/lib/twilio-ruby/rest/sync/v1/service/sync_list.rb +2 -2
- data/lib/twilio-ruby/rest/sync/v1/service/sync_map.rb +2 -2
- data/lib/twilio-ruby/rest/sync/v1/service/sync_stream.rb +1 -1
- data/lib/twilio-ruby/rest/sync/v1/service.rb +4 -4
- data/lib/twilio-ruby/rest/taskrouter/v1/workspace/task.rb +1 -1
- data/lib/twilio-ruby/rest/taskrouter/v1/workspace/worker.rb +2 -2
- data/lib/twilio-ruby/rest/taskrouter/v1/workspace.rb +7 -7
- data/lib/twilio-ruby/rest/trunking/v1/trunk.rb +4 -4
- data/lib/twilio-ruby/rest/trusthub/v1/customer_profiles.rb +3 -3
- data/lib/twilio-ruby/rest/trusthub/v1/trust_products.rb +3 -3
- data/lib/twilio-ruby/rest/verify/v2/service/entity/challenge.rb +1 -1
- data/lib/twilio-ruby/rest/verify/v2/service/entity.rb +3 -3
- data/lib/twilio-ruby/rest/verify/v2/service/rate_limit.rb +1 -1
- data/lib/twilio-ruby/rest/verify/v2/service.rb +7 -7
- data/lib/twilio-ruby/rest/video/v1/room/participant.rb +3 -3
- data/lib/twilio-ruby/rest/video/v1/room.rb +3 -3
- data/lib/twilio-ruby/rest/voice/v1/connection_policy.rb +1 -1
- data/lib/twilio-ruby/rest/voice/v1/dialing_permissions/country.rb +1 -1
- data/lib/twilio-ruby/rest/wireless/v1/sim.rb +2 -2
- data/lib/twilio-ruby/rest.rb +1 -1
- data/lib/twilio-ruby/version.rb +1 -1
- metadata +5 -2
|
@@ -32,18 +32,18 @@ module Twilio
|
|
|
32
32
|
##
|
|
33
33
|
# Create the InsightsQuestionnairesCategoryInstance
|
|
34
34
|
# @param [String] name The name of this category.
|
|
35
|
-
# @param [String]
|
|
35
|
+
# @param [String] authorization The Authorization HTTP request header
|
|
36
36
|
# @return [InsightsQuestionnairesCategoryInstance] Created InsightsQuestionnairesCategoryInstance
|
|
37
37
|
def create(
|
|
38
38
|
name: nil,
|
|
39
|
-
|
|
39
|
+
authorization: :unset
|
|
40
40
|
)
|
|
41
41
|
|
|
42
42
|
data = Twilio::Values.of({
|
|
43
43
|
'Name' => name,
|
|
44
44
|
})
|
|
45
45
|
|
|
46
|
-
headers = Twilio::Values.of({ '
|
|
46
|
+
headers = Twilio::Values.of({ 'Authorization' => authorization, })
|
|
47
47
|
payload = @version.create('POST', @uri, data: data, headers: headers)
|
|
48
48
|
InsightsQuestionnairesCategoryInstance.new(
|
|
49
49
|
@version,
|
|
@@ -56,7 +56,7 @@ module Twilio
|
|
|
56
56
|
# Lists InsightsQuestionnairesCategoryInstance records from the API as a list.
|
|
57
57
|
# Unlike stream(), this operation is eager and will load `limit` records into
|
|
58
58
|
# memory before returning.
|
|
59
|
-
# @param [String]
|
|
59
|
+
# @param [String] authorization The Authorization HTTP request header
|
|
60
60
|
# @param [Integer] limit Upper limit for the number of records to return. stream()
|
|
61
61
|
# guarantees to never return more than limit. Default is no limit
|
|
62
62
|
# @param [Integer] page_size Number of records to fetch per request, when
|
|
@@ -64,9 +64,9 @@ module Twilio
|
|
|
64
64
|
# but a limit is defined, stream() will attempt to read the limit with the most
|
|
65
65
|
# efficient page size, i.e. min(limit, 1000)
|
|
66
66
|
# @return [Array] Array of up to limit results
|
|
67
|
-
def list(
|
|
67
|
+
def list(authorization: :unset, limit: nil, page_size: nil)
|
|
68
68
|
self.stream(
|
|
69
|
-
|
|
69
|
+
authorization: authorization,
|
|
70
70
|
limit: limit,
|
|
71
71
|
page_size: page_size
|
|
72
72
|
).entries
|
|
@@ -76,7 +76,7 @@ module Twilio
|
|
|
76
76
|
# Streams Instance records from the API as an Enumerable.
|
|
77
77
|
# This operation lazily loads records as efficiently as possible until the limit
|
|
78
78
|
# is reached.
|
|
79
|
-
# @param [String]
|
|
79
|
+
# @param [String] authorization The Authorization HTTP request header
|
|
80
80
|
# @param [Integer] limit Upper limit for the number of records to return. stream()
|
|
81
81
|
# guarantees to never return more than limit. Default is no limit
|
|
82
82
|
# @param [Integer] page_size Number of records to fetch per request, when
|
|
@@ -84,11 +84,11 @@ module Twilio
|
|
|
84
84
|
# but a limit is defined, stream() will attempt to read the limit with the most
|
|
85
85
|
# efficient page size, i.e. min(limit, 1000)
|
|
86
86
|
# @return [Enumerable] Enumerable that will yield up to limit results
|
|
87
|
-
def stream(
|
|
87
|
+
def stream(authorization: :unset, limit: nil, page_size: nil)
|
|
88
88
|
limits = @version.read_limits(limit, page_size)
|
|
89
89
|
|
|
90
90
|
page = self.page(
|
|
91
|
-
|
|
91
|
+
authorization: authorization,
|
|
92
92
|
page_size: limits[:page_size], )
|
|
93
93
|
|
|
94
94
|
@version.stream(page, limit: limits[:limit], page_limit: limits[:page_limit])
|
|
@@ -111,15 +111,15 @@ module Twilio
|
|
|
111
111
|
##
|
|
112
112
|
# Retrieve a single page of InsightsQuestionnairesCategoryInstance records from the API.
|
|
113
113
|
# Request is executed immediately.
|
|
114
|
-
# @param [String]
|
|
114
|
+
# @param [String] authorization The Authorization HTTP request header
|
|
115
115
|
# @param [String] page_token PageToken provided by the API
|
|
116
116
|
# @param [Integer] page_number Page Number, this value is simply for client state
|
|
117
117
|
# @param [Integer] page_size Number of records to return, defaults to 50
|
|
118
118
|
# @return [Page] Page of InsightsQuestionnairesCategoryInstance
|
|
119
|
-
def page(
|
|
119
|
+
def page(authorization: :unset, page_token: :unset, page_number: :unset, page_size: :unset)
|
|
120
120
|
params = Twilio::Values.of({
|
|
121
121
|
|
|
122
|
-
'
|
|
122
|
+
'Authorization' => authorization,
|
|
123
123
|
|
|
124
124
|
'PageToken' => page_token,
|
|
125
125
|
'Page' => page_number,
|
|
@@ -172,31 +172,31 @@ module Twilio
|
|
|
172
172
|
end
|
|
173
173
|
##
|
|
174
174
|
# Delete the InsightsQuestionnairesCategoryInstance
|
|
175
|
-
# @param [String]
|
|
175
|
+
# @param [String] authorization The Authorization HTTP request header
|
|
176
176
|
# @return [Boolean] True if delete succeeds, false otherwise
|
|
177
177
|
def delete(
|
|
178
|
-
|
|
178
|
+
authorization: :unset
|
|
179
179
|
)
|
|
180
180
|
|
|
181
|
-
headers = Twilio::Values.of({ '
|
|
181
|
+
headers = Twilio::Values.of({ 'Authorization' => authorization, })
|
|
182
182
|
@version.delete('DELETE', @uri, headers: headers)
|
|
183
183
|
end
|
|
184
184
|
|
|
185
185
|
##
|
|
186
186
|
# Update the InsightsQuestionnairesCategoryInstance
|
|
187
187
|
# @param [String] name The name of this category.
|
|
188
|
-
# @param [String]
|
|
188
|
+
# @param [String] authorization The Authorization HTTP request header
|
|
189
189
|
# @return [InsightsQuestionnairesCategoryInstance] Updated InsightsQuestionnairesCategoryInstance
|
|
190
190
|
def update(
|
|
191
191
|
name: nil,
|
|
192
|
-
|
|
192
|
+
authorization: :unset
|
|
193
193
|
)
|
|
194
194
|
|
|
195
195
|
data = Twilio::Values.of({
|
|
196
196
|
'Name' => name,
|
|
197
197
|
})
|
|
198
198
|
|
|
199
|
-
headers = Twilio::Values.of({ '
|
|
199
|
+
headers = Twilio::Values.of({ 'Authorization' => authorization, })
|
|
200
200
|
payload = @version.update('POST', @uri, data: data, headers: headers)
|
|
201
201
|
InsightsQuestionnairesCategoryInstance.new(
|
|
202
202
|
@version,
|
|
@@ -312,30 +312,30 @@ module Twilio
|
|
|
312
312
|
|
|
313
313
|
##
|
|
314
314
|
# Delete the InsightsQuestionnairesCategoryInstance
|
|
315
|
-
# @param [String]
|
|
315
|
+
# @param [String] authorization The Authorization HTTP request header
|
|
316
316
|
# @return [Boolean] True if delete succeeds, false otherwise
|
|
317
317
|
def delete(
|
|
318
|
-
|
|
318
|
+
authorization: :unset
|
|
319
319
|
)
|
|
320
320
|
|
|
321
321
|
context.delete(
|
|
322
|
-
|
|
322
|
+
authorization: authorization,
|
|
323
323
|
)
|
|
324
324
|
end
|
|
325
325
|
|
|
326
326
|
##
|
|
327
327
|
# Update the InsightsQuestionnairesCategoryInstance
|
|
328
328
|
# @param [String] name The name of this category.
|
|
329
|
-
# @param [String]
|
|
329
|
+
# @param [String] authorization The Authorization HTTP request header
|
|
330
330
|
# @return [InsightsQuestionnairesCategoryInstance] Updated InsightsQuestionnairesCategoryInstance
|
|
331
331
|
def update(
|
|
332
332
|
name: nil,
|
|
333
|
-
|
|
333
|
+
authorization: :unset
|
|
334
334
|
)
|
|
335
335
|
|
|
336
336
|
context.update(
|
|
337
337
|
name: name,
|
|
338
|
-
|
|
338
|
+
authorization: authorization,
|
|
339
339
|
)
|
|
340
340
|
end
|
|
341
341
|
|
|
@@ -36,7 +36,7 @@ module Twilio
|
|
|
36
36
|
# @param [String] answer_set_id The answer_set for the question.
|
|
37
37
|
# @param [Boolean] allow_na The flag to enable for disable NA for answer.
|
|
38
38
|
# @param [String] description The description for the question.
|
|
39
|
-
# @param [String]
|
|
39
|
+
# @param [String] authorization The Authorization HTTP request header
|
|
40
40
|
# @return [InsightsQuestionnairesQuestionInstance] Created InsightsQuestionnairesQuestionInstance
|
|
41
41
|
def create(
|
|
42
42
|
category_sid: nil,
|
|
@@ -44,7 +44,7 @@ module Twilio
|
|
|
44
44
|
answer_set_id: nil,
|
|
45
45
|
allow_na: nil,
|
|
46
46
|
description: :unset,
|
|
47
|
-
|
|
47
|
+
authorization: :unset
|
|
48
48
|
)
|
|
49
49
|
|
|
50
50
|
data = Twilio::Values.of({
|
|
@@ -55,7 +55,7 @@ module Twilio
|
|
|
55
55
|
'Description' => description,
|
|
56
56
|
})
|
|
57
57
|
|
|
58
|
-
headers = Twilio::Values.of({ '
|
|
58
|
+
headers = Twilio::Values.of({ 'Authorization' => authorization, })
|
|
59
59
|
payload = @version.create('POST', @uri, data: data, headers: headers)
|
|
60
60
|
InsightsQuestionnairesQuestionInstance.new(
|
|
61
61
|
@version,
|
|
@@ -68,7 +68,7 @@ module Twilio
|
|
|
68
68
|
# Lists InsightsQuestionnairesQuestionInstance records from the API as a list.
|
|
69
69
|
# Unlike stream(), this operation is eager and will load `limit` records into
|
|
70
70
|
# memory before returning.
|
|
71
|
-
# @param [String]
|
|
71
|
+
# @param [String] authorization The Authorization HTTP request header
|
|
72
72
|
# @param [Array[String]] category_sid The list of category SIDs
|
|
73
73
|
# @param [Integer] limit Upper limit for the number of records to return. stream()
|
|
74
74
|
# guarantees to never return more than limit. Default is no limit
|
|
@@ -77,9 +77,9 @@ module Twilio
|
|
|
77
77
|
# but a limit is defined, stream() will attempt to read the limit with the most
|
|
78
78
|
# efficient page size, i.e. min(limit, 1000)
|
|
79
79
|
# @return [Array] Array of up to limit results
|
|
80
|
-
def list(
|
|
80
|
+
def list(authorization: :unset, category_sid: :unset, limit: nil, page_size: nil)
|
|
81
81
|
self.stream(
|
|
82
|
-
|
|
82
|
+
authorization: authorization,
|
|
83
83
|
category_sid: category_sid,
|
|
84
84
|
limit: limit,
|
|
85
85
|
page_size: page_size
|
|
@@ -90,7 +90,7 @@ module Twilio
|
|
|
90
90
|
# Streams Instance records from the API as an Enumerable.
|
|
91
91
|
# This operation lazily loads records as efficiently as possible until the limit
|
|
92
92
|
# is reached.
|
|
93
|
-
# @param [String]
|
|
93
|
+
# @param [String] authorization The Authorization HTTP request header
|
|
94
94
|
# @param [Array[String]] category_sid The list of category SIDs
|
|
95
95
|
# @param [Integer] limit Upper limit for the number of records to return. stream()
|
|
96
96
|
# guarantees to never return more than limit. Default is no limit
|
|
@@ -99,11 +99,11 @@ module Twilio
|
|
|
99
99
|
# but a limit is defined, stream() will attempt to read the limit with the most
|
|
100
100
|
# efficient page size, i.e. min(limit, 1000)
|
|
101
101
|
# @return [Enumerable] Enumerable that will yield up to limit results
|
|
102
|
-
def stream(
|
|
102
|
+
def stream(authorization: :unset, category_sid: :unset, limit: nil, page_size: nil)
|
|
103
103
|
limits = @version.read_limits(limit, page_size)
|
|
104
104
|
|
|
105
105
|
page = self.page(
|
|
106
|
-
|
|
106
|
+
authorization: authorization,
|
|
107
107
|
category_sid: category_sid,
|
|
108
108
|
page_size: limits[:page_size], )
|
|
109
109
|
|
|
@@ -127,16 +127,16 @@ module Twilio
|
|
|
127
127
|
##
|
|
128
128
|
# Retrieve a single page of InsightsQuestionnairesQuestionInstance records from the API.
|
|
129
129
|
# Request is executed immediately.
|
|
130
|
-
# @param [String]
|
|
130
|
+
# @param [String] authorization The Authorization HTTP request header
|
|
131
131
|
# @param [Array[String]] category_sid The list of category SIDs
|
|
132
132
|
# @param [String] page_token PageToken provided by the API
|
|
133
133
|
# @param [Integer] page_number Page Number, this value is simply for client state
|
|
134
134
|
# @param [Integer] page_size Number of records to return, defaults to 50
|
|
135
135
|
# @return [Page] Page of InsightsQuestionnairesQuestionInstance
|
|
136
|
-
def page(
|
|
136
|
+
def page(authorization: :unset, category_sid: :unset, page_token: :unset, page_number: :unset, page_size: :unset)
|
|
137
137
|
params = Twilio::Values.of({
|
|
138
138
|
|
|
139
|
-
'
|
|
139
|
+
'Authorization' => authorization,
|
|
140
140
|
|
|
141
141
|
'CategorySid' => Twilio.serialize_list(category_sid),
|
|
142
142
|
|
|
@@ -191,13 +191,13 @@ module Twilio
|
|
|
191
191
|
end
|
|
192
192
|
##
|
|
193
193
|
# Delete the InsightsQuestionnairesQuestionInstance
|
|
194
|
-
# @param [String]
|
|
194
|
+
# @param [String] authorization The Authorization HTTP request header
|
|
195
195
|
# @return [Boolean] True if delete succeeds, false otherwise
|
|
196
196
|
def delete(
|
|
197
|
-
|
|
197
|
+
authorization: :unset
|
|
198
198
|
)
|
|
199
199
|
|
|
200
|
-
headers = Twilio::Values.of({ '
|
|
200
|
+
headers = Twilio::Values.of({ 'Authorization' => authorization, })
|
|
201
201
|
@version.delete('DELETE', @uri, headers: headers)
|
|
202
202
|
end
|
|
203
203
|
|
|
@@ -208,7 +208,7 @@ module Twilio
|
|
|
208
208
|
# @param [String] question The question.
|
|
209
209
|
# @param [String] description The description for the question.
|
|
210
210
|
# @param [String] answer_set_id The answer_set for the question.
|
|
211
|
-
# @param [String]
|
|
211
|
+
# @param [String] authorization The Authorization HTTP request header
|
|
212
212
|
# @return [InsightsQuestionnairesQuestionInstance] Updated InsightsQuestionnairesQuestionInstance
|
|
213
213
|
def update(
|
|
214
214
|
allow_na: nil,
|
|
@@ -216,7 +216,7 @@ module Twilio
|
|
|
216
216
|
question: :unset,
|
|
217
217
|
description: :unset,
|
|
218
218
|
answer_set_id: :unset,
|
|
219
|
-
|
|
219
|
+
authorization: :unset
|
|
220
220
|
)
|
|
221
221
|
|
|
222
222
|
data = Twilio::Values.of({
|
|
@@ -227,7 +227,7 @@ module Twilio
|
|
|
227
227
|
'AnswerSetId' => answer_set_id,
|
|
228
228
|
})
|
|
229
229
|
|
|
230
|
-
headers = Twilio::Values.of({ '
|
|
230
|
+
headers = Twilio::Values.of({ 'Authorization' => authorization, })
|
|
231
231
|
payload = @version.update('POST', @uri, data: data, headers: headers)
|
|
232
232
|
InsightsQuestionnairesQuestionInstance.new(
|
|
233
233
|
@version,
|
|
@@ -385,14 +385,14 @@ module Twilio
|
|
|
385
385
|
|
|
386
386
|
##
|
|
387
387
|
# Delete the InsightsQuestionnairesQuestionInstance
|
|
388
|
-
# @param [String]
|
|
388
|
+
# @param [String] authorization The Authorization HTTP request header
|
|
389
389
|
# @return [Boolean] True if delete succeeds, false otherwise
|
|
390
390
|
def delete(
|
|
391
|
-
|
|
391
|
+
authorization: :unset
|
|
392
392
|
)
|
|
393
393
|
|
|
394
394
|
context.delete(
|
|
395
|
-
|
|
395
|
+
authorization: authorization,
|
|
396
396
|
)
|
|
397
397
|
end
|
|
398
398
|
|
|
@@ -403,7 +403,7 @@ module Twilio
|
|
|
403
403
|
# @param [String] question The question.
|
|
404
404
|
# @param [String] description The description for the question.
|
|
405
405
|
# @param [String] answer_set_id The answer_set for the question.
|
|
406
|
-
# @param [String]
|
|
406
|
+
# @param [String] authorization The Authorization HTTP request header
|
|
407
407
|
# @return [InsightsQuestionnairesQuestionInstance] Updated InsightsQuestionnairesQuestionInstance
|
|
408
408
|
def update(
|
|
409
409
|
allow_na: nil,
|
|
@@ -411,7 +411,7 @@ module Twilio
|
|
|
411
411
|
question: :unset,
|
|
412
412
|
description: :unset,
|
|
413
413
|
answer_set_id: :unset,
|
|
414
|
-
|
|
414
|
+
authorization: :unset
|
|
415
415
|
)
|
|
416
416
|
|
|
417
417
|
context.update(
|
|
@@ -420,7 +420,7 @@ module Twilio
|
|
|
420
420
|
question: question,
|
|
421
421
|
description: description,
|
|
422
422
|
answer_set_id: answer_set_id,
|
|
423
|
-
|
|
423
|
+
authorization: authorization,
|
|
424
424
|
)
|
|
425
425
|
end
|
|
426
426
|
|
|
@@ -34,7 +34,7 @@ module Twilio
|
|
|
34
34
|
# Lists InsightsSegmentsInstance records from the API as a list.
|
|
35
35
|
# Unlike stream(), this operation is eager and will load `limit` records into
|
|
36
36
|
# memory before returning.
|
|
37
|
-
# @param [String]
|
|
37
|
+
# @param [String] authorization The Authorization HTTP request header
|
|
38
38
|
# @param [String] segment_id To unique id of the segment
|
|
39
39
|
# @param [Array[String]] reservation_id The list of reservation Ids
|
|
40
40
|
# @param [Integer] limit Upper limit for the number of records to return. stream()
|
|
@@ -44,9 +44,9 @@ module Twilio
|
|
|
44
44
|
# but a limit is defined, stream() will attempt to read the limit with the most
|
|
45
45
|
# efficient page size, i.e. min(limit, 1000)
|
|
46
46
|
# @return [Array] Array of up to limit results
|
|
47
|
-
def list(
|
|
47
|
+
def list(authorization: :unset, segment_id: :unset, reservation_id: :unset, limit: nil, page_size: nil)
|
|
48
48
|
self.stream(
|
|
49
|
-
|
|
49
|
+
authorization: authorization,
|
|
50
50
|
segment_id: segment_id,
|
|
51
51
|
reservation_id: reservation_id,
|
|
52
52
|
limit: limit,
|
|
@@ -58,7 +58,7 @@ module Twilio
|
|
|
58
58
|
# Streams Instance records from the API as an Enumerable.
|
|
59
59
|
# This operation lazily loads records as efficiently as possible until the limit
|
|
60
60
|
# is reached.
|
|
61
|
-
# @param [String]
|
|
61
|
+
# @param [String] authorization The Authorization HTTP request header
|
|
62
62
|
# @param [String] segment_id To unique id of the segment
|
|
63
63
|
# @param [Array[String]] reservation_id The list of reservation Ids
|
|
64
64
|
# @param [Integer] limit Upper limit for the number of records to return. stream()
|
|
@@ -68,11 +68,11 @@ module Twilio
|
|
|
68
68
|
# but a limit is defined, stream() will attempt to read the limit with the most
|
|
69
69
|
# efficient page size, i.e. min(limit, 1000)
|
|
70
70
|
# @return [Enumerable] Enumerable that will yield up to limit results
|
|
71
|
-
def stream(
|
|
71
|
+
def stream(authorization: :unset, segment_id: :unset, reservation_id: :unset, limit: nil, page_size: nil)
|
|
72
72
|
limits = @version.read_limits(limit, page_size)
|
|
73
73
|
|
|
74
74
|
page = self.page(
|
|
75
|
-
|
|
75
|
+
authorization: authorization,
|
|
76
76
|
segment_id: segment_id,
|
|
77
77
|
reservation_id: reservation_id,
|
|
78
78
|
page_size: limits[:page_size], )
|
|
@@ -97,17 +97,17 @@ module Twilio
|
|
|
97
97
|
##
|
|
98
98
|
# Retrieve a single page of InsightsSegmentsInstance records from the API.
|
|
99
99
|
# Request is executed immediately.
|
|
100
|
-
# @param [String]
|
|
100
|
+
# @param [String] authorization The Authorization HTTP request header
|
|
101
101
|
# @param [String] segment_id To unique id of the segment
|
|
102
102
|
# @param [Array[String]] reservation_id The list of reservation Ids
|
|
103
103
|
# @param [String] page_token PageToken provided by the API
|
|
104
104
|
# @param [Integer] page_number Page Number, this value is simply for client state
|
|
105
105
|
# @param [Integer] page_size Number of records to return, defaults to 50
|
|
106
106
|
# @return [Page] Page of InsightsSegmentsInstance
|
|
107
|
-
def page(
|
|
107
|
+
def page(authorization: :unset, segment_id: :unset, reservation_id: :unset, page_token: :unset, page_number: :unset, page_size: :unset)
|
|
108
108
|
params = Twilio::Values.of({
|
|
109
109
|
|
|
110
|
-
'
|
|
110
|
+
'Authorization' => authorization,
|
|
111
111
|
|
|
112
112
|
'SegmentId' => segment_id,
|
|
113
113
|
|
|
@@ -31,13 +31,13 @@ module Twilio
|
|
|
31
31
|
end
|
|
32
32
|
##
|
|
33
33
|
# Fetch the InsightsSettingsAnswerSetsInstance
|
|
34
|
-
# @param [String]
|
|
34
|
+
# @param [String] authorization The Authorization HTTP request header
|
|
35
35
|
# @return [InsightsSettingsAnswerSetsInstance] Fetched InsightsSettingsAnswerSetsInstance
|
|
36
36
|
def fetch(
|
|
37
|
-
|
|
37
|
+
authorization: :unset
|
|
38
38
|
)
|
|
39
39
|
|
|
40
|
-
headers = Twilio::Values.of({ '
|
|
40
|
+
headers = Twilio::Values.of({ 'Authorization' => authorization, })
|
|
41
41
|
payload = @version.fetch('GET', @uri, headers: headers)
|
|
42
42
|
InsightsSettingsAnswerSetsInstance.new(
|
|
43
43
|
@version,
|
|
@@ -31,13 +31,13 @@ module Twilio
|
|
|
31
31
|
end
|
|
32
32
|
##
|
|
33
33
|
# Fetch the InsightsSettingsCommentInstance
|
|
34
|
-
# @param [String]
|
|
34
|
+
# @param [String] authorization The Authorization HTTP request header
|
|
35
35
|
# @return [InsightsSettingsCommentInstance] Fetched InsightsSettingsCommentInstance
|
|
36
36
|
def fetch(
|
|
37
|
-
|
|
37
|
+
authorization: :unset
|
|
38
38
|
)
|
|
39
39
|
|
|
40
|
-
headers = Twilio::Values.of({ '
|
|
40
|
+
headers = Twilio::Values.of({ 'Authorization' => authorization, })
|
|
41
41
|
payload = @version.fetch('GET', @uri, headers: headers)
|
|
42
42
|
InsightsSettingsCommentInstance.new(
|
|
43
43
|
@version,
|
|
@@ -189,7 +189,7 @@ module Twilio
|
|
|
189
189
|
def invites
|
|
190
190
|
unless @invites
|
|
191
191
|
@invites = InteractionChannelInviteList.new(
|
|
192
|
-
@version, interaction_sid: @solution[:interaction_sid], channel_sid: @solution[:sid],
|
|
192
|
+
@version, interaction_sid: @solution[:interaction_sid], channel_sid: @solution[:sid], )
|
|
193
193
|
end
|
|
194
194
|
@invites
|
|
195
195
|
end
|
|
@@ -207,7 +207,7 @@ module Twilio
|
|
|
207
207
|
|
|
208
208
|
unless @participants
|
|
209
209
|
@participants = InteractionChannelParticipantList.new(
|
|
210
|
-
@version, interaction_sid: @solution[:interaction_sid], channel_sid: @solution[:sid],
|
|
210
|
+
@version, interaction_sid: @solution[:interaction_sid], channel_sid: @solution[:sid], )
|
|
211
211
|
end
|
|
212
212
|
|
|
213
213
|
@participants
|
|
@@ -78,7 +78,7 @@ module Twilio
|
|
|
78
78
|
def metrics
|
|
79
79
|
unless @metrics
|
|
80
80
|
@metrics = MetricList.new(
|
|
81
|
-
@version, call_sid: @solution[:sid],
|
|
81
|
+
@version, call_sid: @solution[:sid], )
|
|
82
82
|
end
|
|
83
83
|
@metrics
|
|
84
84
|
end
|
|
@@ -89,7 +89,7 @@ module Twilio
|
|
|
89
89
|
def events
|
|
90
90
|
unless @events
|
|
91
91
|
@events = EventList.new(
|
|
92
|
-
@version, call_sid: @solution[:sid],
|
|
92
|
+
@version, call_sid: @solution[:sid], )
|
|
93
93
|
end
|
|
94
94
|
@events
|
|
95
95
|
end
|
|
@@ -53,6 +53,10 @@ module Twilio
|
|
|
53
53
|
# @param [String] subaccount
|
|
54
54
|
# @param [Boolean] abnormal_session
|
|
55
55
|
# @param [AnsweredBy] answered_by
|
|
56
|
+
# @param [String] connectivity_issues
|
|
57
|
+
# @param [String] quality_issues
|
|
58
|
+
# @param [Boolean] spam
|
|
59
|
+
# @param [String] call_scores
|
|
56
60
|
# @param [Integer] limit Upper limit for the number of records to return. stream()
|
|
57
61
|
# guarantees to never return more than limit. Default is no limit
|
|
58
62
|
# @param [Integer] page_size Number of records to fetch per request, when
|
|
@@ -60,7 +64,7 @@ module Twilio
|
|
|
60
64
|
# but a limit is defined, stream() will attempt to read the limit with the most
|
|
61
65
|
# efficient page size, i.e. min(limit, 1000)
|
|
62
66
|
# @return [Array] Array of up to limit results
|
|
63
|
-
def list(from: :unset, to: :unset, from_carrier: :unset, to_carrier: :unset, from_country_code: :unset, to_country_code: :unset, branded: :unset, verified_caller: :unset, has_tag: :unset, start_time: :unset, end_time: :unset, call_type: :unset, call_state: :unset, direction: :unset, processing_state: :unset, sort_by: :unset, subaccount: :unset, abnormal_session: :unset, answered_by: :unset, limit: nil, page_size: nil)
|
|
67
|
+
def list(from: :unset, to: :unset, from_carrier: :unset, to_carrier: :unset, from_country_code: :unset, to_country_code: :unset, branded: :unset, verified_caller: :unset, has_tag: :unset, start_time: :unset, end_time: :unset, call_type: :unset, call_state: :unset, direction: :unset, processing_state: :unset, sort_by: :unset, subaccount: :unset, abnormal_session: :unset, answered_by: :unset, connectivity_issues: :unset, quality_issues: :unset, spam: :unset, call_scores: :unset, limit: nil, page_size: nil)
|
|
64
68
|
self.stream(
|
|
65
69
|
from: from,
|
|
66
70
|
to: to,
|
|
@@ -81,6 +85,10 @@ module Twilio
|
|
|
81
85
|
subaccount: subaccount,
|
|
82
86
|
abnormal_session: abnormal_session,
|
|
83
87
|
answered_by: answered_by,
|
|
88
|
+
connectivity_issues: connectivity_issues,
|
|
89
|
+
quality_issues: quality_issues,
|
|
90
|
+
spam: spam,
|
|
91
|
+
call_scores: call_scores,
|
|
84
92
|
limit: limit,
|
|
85
93
|
page_size: page_size
|
|
86
94
|
).entries
|
|
@@ -109,6 +117,10 @@ module Twilio
|
|
|
109
117
|
# @param [String] subaccount
|
|
110
118
|
# @param [Boolean] abnormal_session
|
|
111
119
|
# @param [AnsweredBy] answered_by
|
|
120
|
+
# @param [String] connectivity_issues
|
|
121
|
+
# @param [String] quality_issues
|
|
122
|
+
# @param [Boolean] spam
|
|
123
|
+
# @param [String] call_scores
|
|
112
124
|
# @param [Integer] limit Upper limit for the number of records to return. stream()
|
|
113
125
|
# guarantees to never return more than limit. Default is no limit
|
|
114
126
|
# @param [Integer] page_size Number of records to fetch per request, when
|
|
@@ -116,7 +128,7 @@ module Twilio
|
|
|
116
128
|
# but a limit is defined, stream() will attempt to read the limit with the most
|
|
117
129
|
# efficient page size, i.e. min(limit, 1000)
|
|
118
130
|
# @return [Enumerable] Enumerable that will yield up to limit results
|
|
119
|
-
def stream(from: :unset, to: :unset, from_carrier: :unset, to_carrier: :unset, from_country_code: :unset, to_country_code: :unset, branded: :unset, verified_caller: :unset, has_tag: :unset, start_time: :unset, end_time: :unset, call_type: :unset, call_state: :unset, direction: :unset, processing_state: :unset, sort_by: :unset, subaccount: :unset, abnormal_session: :unset, answered_by: :unset, limit: nil, page_size: nil)
|
|
131
|
+
def stream(from: :unset, to: :unset, from_carrier: :unset, to_carrier: :unset, from_country_code: :unset, to_country_code: :unset, branded: :unset, verified_caller: :unset, has_tag: :unset, start_time: :unset, end_time: :unset, call_type: :unset, call_state: :unset, direction: :unset, processing_state: :unset, sort_by: :unset, subaccount: :unset, abnormal_session: :unset, answered_by: :unset, connectivity_issues: :unset, quality_issues: :unset, spam: :unset, call_scores: :unset, limit: nil, page_size: nil)
|
|
120
132
|
limits = @version.read_limits(limit, page_size)
|
|
121
133
|
|
|
122
134
|
page = self.page(
|
|
@@ -139,6 +151,10 @@ module Twilio
|
|
|
139
151
|
subaccount: subaccount,
|
|
140
152
|
abnormal_session: abnormal_session,
|
|
141
153
|
answered_by: answered_by,
|
|
154
|
+
connectivity_issues: connectivity_issues,
|
|
155
|
+
quality_issues: quality_issues,
|
|
156
|
+
spam: spam,
|
|
157
|
+
call_scores: call_scores,
|
|
142
158
|
page_size: limits[:page_size], )
|
|
143
159
|
|
|
144
160
|
@version.stream(page, limit: limits[:limit], page_limit: limits[:page_limit])
|
|
@@ -180,11 +196,15 @@ module Twilio
|
|
|
180
196
|
# @param [String] subaccount
|
|
181
197
|
# @param [Boolean] abnormal_session
|
|
182
198
|
# @param [AnsweredBy] answered_by
|
|
199
|
+
# @param [String] connectivity_issues
|
|
200
|
+
# @param [String] quality_issues
|
|
201
|
+
# @param [Boolean] spam
|
|
202
|
+
# @param [String] call_scores
|
|
183
203
|
# @param [String] page_token PageToken provided by the API
|
|
184
204
|
# @param [Integer] page_number Page Number, this value is simply for client state
|
|
185
205
|
# @param [Integer] page_size Number of records to return, defaults to 50
|
|
186
206
|
# @return [Page] Page of CallSummariesInstance
|
|
187
|
-
def page(from: :unset, to: :unset, from_carrier: :unset, to_carrier: :unset, from_country_code: :unset, to_country_code: :unset, branded: :unset, verified_caller: :unset, has_tag: :unset, start_time: :unset, end_time: :unset, call_type: :unset, call_state: :unset, direction: :unset, processing_state: :unset, sort_by: :unset, subaccount: :unset, abnormal_session: :unset, answered_by: :unset, page_token: :unset, page_number: :unset, page_size: :unset)
|
|
207
|
+
def page(from: :unset, to: :unset, from_carrier: :unset, to_carrier: :unset, from_country_code: :unset, to_country_code: :unset, branded: :unset, verified_caller: :unset, has_tag: :unset, start_time: :unset, end_time: :unset, call_type: :unset, call_state: :unset, direction: :unset, processing_state: :unset, sort_by: :unset, subaccount: :unset, abnormal_session: :unset, answered_by: :unset, connectivity_issues: :unset, quality_issues: :unset, spam: :unset, call_scores: :unset, page_token: :unset, page_number: :unset, page_size: :unset)
|
|
188
208
|
params = Twilio::Values.of({
|
|
189
209
|
|
|
190
210
|
'From' => from,
|
|
@@ -225,6 +245,14 @@ module Twilio
|
|
|
225
245
|
|
|
226
246
|
'AnsweredBy' => answered_by,
|
|
227
247
|
|
|
248
|
+
'ConnectivityIssues' => connectivity_issues,
|
|
249
|
+
|
|
250
|
+
'QualityIssues' => quality_issues,
|
|
251
|
+
|
|
252
|
+
'Spam' => spam,
|
|
253
|
+
|
|
254
|
+
'CallScores' => call_scores,
|
|
255
|
+
|
|
228
256
|
'PageToken' => page_token,
|
|
229
257
|
'Page' => page_number,
|
|
230
258
|
'PageSize' => page_size,
|
|
@@ -237,7 +237,7 @@ module Twilio
|
|
|
237
237
|
|
|
238
238
|
unless @conference_participants
|
|
239
239
|
@conference_participants = ConferenceParticipantList.new(
|
|
240
|
-
@version, conference_sid: @solution[:conference_sid],
|
|
240
|
+
@version, conference_sid: @solution[:conference_sid], )
|
|
241
241
|
end
|
|
242
242
|
|
|
243
243
|
@conference_participants
|
|
@@ -244,7 +244,7 @@ module Twilio
|
|
|
244
244
|
|
|
245
245
|
unless @members
|
|
246
246
|
@members = MemberList.new(
|
|
247
|
-
@version, service_sid: @solution[:service_sid], channel_sid: @solution[:sid],
|
|
247
|
+
@version, service_sid: @solution[:service_sid], channel_sid: @solution[:sid], )
|
|
248
248
|
end
|
|
249
249
|
|
|
250
250
|
@members
|
|
@@ -263,7 +263,7 @@ module Twilio
|
|
|
263
263
|
|
|
264
264
|
unless @messages
|
|
265
265
|
@messages = MessageList.new(
|
|
266
|
-
@version, service_sid: @solution[:service_sid], channel_sid: @solution[:sid],
|
|
266
|
+
@version, service_sid: @solution[:service_sid], channel_sid: @solution[:sid], )
|
|
267
267
|
end
|
|
268
268
|
|
|
269
269
|
@messages
|
|
@@ -282,7 +282,7 @@ module Twilio
|
|
|
282
282
|
|
|
283
283
|
unless @invites
|
|
284
284
|
@invites = InviteList.new(
|
|
285
|
-
@version, service_sid: @solution[:service_sid], channel_sid: @solution[:sid],
|
|
285
|
+
@version, service_sid: @solution[:service_sid], channel_sid: @solution[:sid], )
|
|
286
286
|
end
|
|
287
287
|
|
|
288
288
|
@invites
|
|
@@ -228,7 +228,7 @@ module Twilio
|
|
|
228
228
|
def user_channels
|
|
229
229
|
unless @user_channels
|
|
230
230
|
@user_channels = UserChannelList.new(
|
|
231
|
-
@version, service_sid: @solution[:service_sid], user_sid: @solution[:sid],
|
|
231
|
+
@version, service_sid: @solution[:service_sid], user_sid: @solution[:sid], )
|
|
232
232
|
end
|
|
233
233
|
@user_channels
|
|
234
234
|
end
|