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.
Files changed (119) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGES.md +20 -0
  3. data/README.md +2 -2
  4. data/lib/twilio-ruby/rest/api/v2010/account/address.rb +1 -1
  5. data/lib/twilio-ruby/rest/api/v2010/account/available_phone_number_country.rb +7 -7
  6. data/lib/twilio-ruby/rest/api/v2010/account/call.rb +8 -8
  7. data/lib/twilio-ruby/rest/api/v2010/account/conference.rb +2 -2
  8. data/lib/twilio-ruby/rest/api/v2010/account/incoming_phone_number/assigned_add_on.rb +1 -1
  9. data/lib/twilio-ruby/rest/api/v2010/account/incoming_phone_number.rb +1 -1
  10. data/lib/twilio-ruby/rest/api/v2010/account/message.rb +2 -2
  11. data/lib/twilio-ruby/rest/api/v2010/account/queue.rb +1 -1
  12. data/lib/twilio-ruby/rest/api/v2010/account/recording/add_on_result.rb +1 -1
  13. data/lib/twilio-ruby/rest/api/v2010/account/recording.rb +2 -2
  14. data/lib/twilio-ruby/rest/api/v2010/account/sip/credential_list.rb +1 -1
  15. data/lib/twilio-ruby/rest/api/v2010/account/sip/domain.rb +3 -3
  16. data/lib/twilio-ruby/rest/api/v2010/account/sip/ip_access_control_list.rb +1 -1
  17. data/lib/twilio-ruby/rest/api/v2010/account.rb +24 -24
  18. data/lib/twilio-ruby/rest/autopilot/v1/assistant/field_type.rb +1 -1
  19. data/lib/twilio-ruby/rest/autopilot/v1/assistant/task.rb +2 -2
  20. data/lib/twilio-ruby/rest/autopilot/v1/assistant.rb +6 -6
  21. data/lib/twilio-ruby/rest/bulkexports/v1/export.rb +2 -2
  22. data/lib/twilio-ruby/rest/chat/v1/service/channel.rb +3 -3
  23. data/lib/twilio-ruby/rest/chat/v1/service/user.rb +1 -1
  24. data/lib/twilio-ruby/rest/chat/v1/service.rb +3 -3
  25. data/lib/twilio-ruby/rest/chat/v2/service/channel.rb +4 -4
  26. data/lib/twilio-ruby/rest/chat/v2/service/user.rb +2 -2
  27. data/lib/twilio-ruby/rest/chat/v2/service.rb +4 -4
  28. data/lib/twilio-ruby/rest/conversations/v1/address_configuration.rb +11 -1
  29. data/lib/twilio-ruby/rest/conversations/v1/conversation/message.rb +1 -1
  30. data/lib/twilio-ruby/rest/conversations/v1/conversation.rb +27 -6
  31. data/lib/twilio-ruby/rest/conversations/v1/service/conversation/message.rb +1 -1
  32. data/lib/twilio-ruby/rest/conversations/v1/service/conversation.rb +27 -6
  33. data/lib/twilio-ruby/rest/conversations/v1/service/user.rb +1 -1
  34. data/lib/twilio-ruby/rest/conversations/v1/service.rb +5 -5
  35. data/lib/twilio-ruby/rest/conversations/v1/user.rb +1 -1
  36. data/lib/twilio-ruby/rest/events/v1/schema.rb +1 -1
  37. data/lib/twilio-ruby/rest/events/v1/sink.rb +2 -2
  38. data/lib/twilio-ruby/rest/events/v1/subscription.rb +1 -1
  39. data/lib/twilio-ruby/rest/flex_api/v1/assessments.rb +18 -24
  40. data/lib/twilio-ruby/rest/flex_api/v1/insights_assessments_comment.rb +12 -18
  41. data/lib/twilio-ruby/rest/flex_api/v1/insights_conversations.rb +9 -9
  42. data/lib/twilio-ruby/rest/flex_api/v1/insights_questionnaires.rb +30 -30
  43. data/lib/twilio-ruby/rest/flex_api/v1/insights_questionnaires_category.rb +24 -24
  44. data/lib/twilio-ruby/rest/flex_api/v1/insights_questionnaires_question.rb +24 -24
  45. data/lib/twilio-ruby/rest/flex_api/v1/insights_segments.rb +9 -9
  46. data/lib/twilio-ruby/rest/flex_api/v1/insights_settings_answer_sets.rb +3 -3
  47. data/lib/twilio-ruby/rest/flex_api/v1/insights_settings_comment.rb +3 -3
  48. data/lib/twilio-ruby/rest/flex_api/v1/interaction/interaction_channel.rb +2 -2
  49. data/lib/twilio-ruby/rest/flex_api/v1/interaction.rb +1 -1
  50. data/lib/twilio-ruby/rest/insights/v1/call.rb +2 -2
  51. data/lib/twilio-ruby/rest/insights/v1/call_summaries.rb +31 -3
  52. data/lib/twilio-ruby/rest/insights/v1/conference.rb +1 -1
  53. data/lib/twilio-ruby/rest/insights/v1/room.rb +1 -1
  54. data/lib/twilio-ruby/rest/ip_messaging/v1/service/channel.rb +3 -3
  55. data/lib/twilio-ruby/rest/ip_messaging/v1/service/user.rb +1 -1
  56. data/lib/twilio-ruby/rest/ip_messaging/v1/service.rb +3 -3
  57. data/lib/twilio-ruby/rest/ip_messaging/v2/service/channel.rb +4 -4
  58. data/lib/twilio-ruby/rest/ip_messaging/v2/service/user.rb +2 -2
  59. data/lib/twilio-ruby/rest/ip_messaging/v2/service.rb +4 -4
  60. data/lib/twilio-ruby/rest/messaging/v1/brand_registration.rb +2 -2
  61. data/lib/twilio-ruby/rest/messaging/v1/domain_config.rb +28 -2
  62. data/lib/twilio-ruby/rest/messaging/v1/domain_config_messaging_service.rb +7 -0
  63. data/lib/twilio-ruby/rest/messaging/v1/linkshortening_messaging_service_domain_association.rb +196 -0
  64. data/lib/twilio-ruby/rest/messaging/v1/service.rb +5 -5
  65. data/lib/twilio-ruby/rest/messaging/v1.rb +15 -0
  66. data/lib/twilio-ruby/rest/microvisor/v1/device.rb +2 -2
  67. data/lib/twilio-ruby/rest/notify/v1/service.rb +2 -2
  68. data/lib/twilio-ruby/rest/numbers/v1/bulk_eligibility.rb +224 -0
  69. data/lib/twilio-ruby/rest/numbers/v1.rb +49 -0
  70. data/lib/twilio-ruby/rest/numbers/v2/regulatory_compliance/bundle.rb +4 -4
  71. data/lib/twilio-ruby/rest/numbers_base.rb +6 -1
  72. data/lib/twilio-ruby/rest/preview/deployed_devices/fleet.rb +4 -4
  73. data/lib/twilio-ruby/rest/preview/hosted_numbers/authorization_document.rb +1 -1
  74. data/lib/twilio-ruby/rest/preview/marketplace/available_add_on.rb +1 -1
  75. data/lib/twilio-ruby/rest/preview/marketplace/installed_add_on.rb +1 -1
  76. data/lib/twilio-ruby/rest/preview/sync/service/document.rb +1 -1
  77. data/lib/twilio-ruby/rest/preview/sync/service/sync_list.rb +2 -2
  78. data/lib/twilio-ruby/rest/preview/sync/service/sync_map.rb +2 -2
  79. data/lib/twilio-ruby/rest/preview/sync/service.rb +3 -3
  80. data/lib/twilio-ruby/rest/preview/understand/assistant/field_type.rb +1 -1
  81. data/lib/twilio-ruby/rest/preview/understand/assistant/task.rb +2 -2
  82. data/lib/twilio-ruby/rest/preview/understand/assistant.rb +5 -5
  83. data/lib/twilio-ruby/rest/proxy/v1/service/session/participant.rb +1 -1
  84. data/lib/twilio-ruby/rest/proxy/v1/service/session.rb +2 -2
  85. data/lib/twilio-ruby/rest/proxy/v1/service.rb +3 -3
  86. data/lib/twilio-ruby/rest/serverless/v1/service/asset.rb +1 -1
  87. data/lib/twilio-ruby/rest/serverless/v1/service/environment.rb +3 -3
  88. data/lib/twilio-ruby/rest/serverless/v1/service/function.rb +1 -1
  89. data/lib/twilio-ruby/rest/serverless/v1/service.rb +4 -4
  90. data/lib/twilio-ruby/rest/studio/v1/flow/engagement.rb +1 -1
  91. data/lib/twilio-ruby/rest/studio/v1/flow/execution.rb +1 -1
  92. data/lib/twilio-ruby/rest/studio/v1/flow.rb +2 -2
  93. data/lib/twilio-ruby/rest/studio/v2/flow/execution.rb +1 -1
  94. data/lib/twilio-ruby/rest/studio/v2/flow.rb +2 -2
  95. data/lib/twilio-ruby/rest/supersim/v1/network_access_profile.rb +1 -1
  96. data/lib/twilio-ruby/rest/supersim/v1/sim.rb +2 -2
  97. data/lib/twilio-ruby/rest/sync/v1/service/document.rb +1 -1
  98. data/lib/twilio-ruby/rest/sync/v1/service/sync_list.rb +2 -2
  99. data/lib/twilio-ruby/rest/sync/v1/service/sync_map.rb +2 -2
  100. data/lib/twilio-ruby/rest/sync/v1/service/sync_stream.rb +1 -1
  101. data/lib/twilio-ruby/rest/sync/v1/service.rb +4 -4
  102. data/lib/twilio-ruby/rest/taskrouter/v1/workspace/task.rb +1 -1
  103. data/lib/twilio-ruby/rest/taskrouter/v1/workspace/worker.rb +2 -2
  104. data/lib/twilio-ruby/rest/taskrouter/v1/workspace.rb +7 -7
  105. data/lib/twilio-ruby/rest/trunking/v1/trunk.rb +4 -4
  106. data/lib/twilio-ruby/rest/trusthub/v1/customer_profiles.rb +3 -3
  107. data/lib/twilio-ruby/rest/trusthub/v1/trust_products.rb +3 -3
  108. data/lib/twilio-ruby/rest/verify/v2/service/entity/challenge.rb +1 -1
  109. data/lib/twilio-ruby/rest/verify/v2/service/entity.rb +3 -3
  110. data/lib/twilio-ruby/rest/verify/v2/service/rate_limit.rb +1 -1
  111. data/lib/twilio-ruby/rest/verify/v2/service.rb +7 -7
  112. data/lib/twilio-ruby/rest/video/v1/room/participant.rb +3 -3
  113. data/lib/twilio-ruby/rest/video/v1/room.rb +3 -3
  114. data/lib/twilio-ruby/rest/voice/v1/connection_policy.rb +1 -1
  115. data/lib/twilio-ruby/rest/voice/v1/dialing_permissions/country.rb +1 -1
  116. data/lib/twilio-ruby/rest/wireless/v1/sim.rb +2 -2
  117. data/lib/twilio-ruby/rest.rb +1 -1
  118. data/lib/twilio-ruby/version.rb +1 -1
  119. metadata +5 -2
@@ -34,8 +34,6 @@ module Twilio
34
34
  # @param [String] category_sid The SID of the category
35
35
  # @param [String] category_name The name of the category
36
36
  # @param [String] segment_id Segment Id of the conversation
37
- # @param [String] user_name Name of the user assessing conversation
38
- # @param [String] user_email Email of the user assessing conversation
39
37
  # @param [String] agent_id The id of the Agent
40
38
  # @param [Float] offset The offset of the conversation.
41
39
  # @param [String] metric_id The question SID selected for assessment
@@ -43,14 +41,12 @@ module Twilio
43
41
  # @param [String] answer_text The answer text selected by user
44
42
  # @param [String] answer_id The id of the answer selected by user
45
43
  # @param [String] questionnaire_sid Questionnaire SID of the associated question
46
- # @param [String] token The Token HTTP request header
44
+ # @param [String] authorization The Authorization HTTP request header
47
45
  # @return [AssessmentsInstance] Created AssessmentsInstance
48
46
  def create(
49
47
  category_sid: nil,
50
48
  category_name: nil,
51
49
  segment_id: nil,
52
- user_name: nil,
53
- user_email: nil,
54
50
  agent_id: nil,
55
51
  offset: nil,
56
52
  metric_id: nil,
@@ -58,15 +54,13 @@ module Twilio
58
54
  answer_text: nil,
59
55
  answer_id: nil,
60
56
  questionnaire_sid: nil,
61
- token: :unset
57
+ authorization: :unset
62
58
  )
63
59
 
64
60
  data = Twilio::Values.of({
65
61
  'CategorySid' => category_sid,
66
62
  'CategoryName' => category_name,
67
63
  'SegmentId' => segment_id,
68
- 'UserName' => user_name,
69
- 'UserEmail' => user_email,
70
64
  'AgentId' => agent_id,
71
65
  'Offset' => offset,
72
66
  'MetricId' => metric_id,
@@ -76,7 +70,7 @@ module Twilio
76
70
  'QuestionnaireSid' => questionnaire_sid,
77
71
  })
78
72
 
79
- headers = Twilio::Values.of({ 'Token' => token, })
73
+ headers = Twilio::Values.of({ 'Authorization' => authorization, })
80
74
  payload = @version.create('POST', @uri, data: data, headers: headers)
81
75
  AssessmentsInstance.new(
82
76
  @version,
@@ -89,7 +83,7 @@ module Twilio
89
83
  # Lists AssessmentsInstance records from the API as a list.
90
84
  # Unlike stream(), this operation is eager and will load `limit` records into
91
85
  # memory before returning.
92
- # @param [String] token The Token HTTP request header
86
+ # @param [String] authorization The Authorization HTTP request header
93
87
  # @param [String] segment_id The id of the segment.
94
88
  # @param [Integer] limit Upper limit for the number of records to return. stream()
95
89
  # guarantees to never return more than limit. Default is no limit
@@ -98,9 +92,9 @@ module Twilio
98
92
  # but a limit is defined, stream() will attempt to read the limit with the most
99
93
  # efficient page size, i.e. min(limit, 1000)
100
94
  # @return [Array] Array of up to limit results
101
- def list(token: :unset, segment_id: :unset, limit: nil, page_size: nil)
95
+ def list(authorization: :unset, segment_id: :unset, limit: nil, page_size: nil)
102
96
  self.stream(
103
- token: token,
97
+ authorization: authorization,
104
98
  segment_id: segment_id,
105
99
  limit: limit,
106
100
  page_size: page_size
@@ -111,7 +105,7 @@ module Twilio
111
105
  # Streams Instance records from the API as an Enumerable.
112
106
  # This operation lazily loads records as efficiently as possible until the limit
113
107
  # is reached.
114
- # @param [String] token The Token HTTP request header
108
+ # @param [String] authorization The Authorization HTTP request header
115
109
  # @param [String] segment_id The id of the segment.
116
110
  # @param [Integer] limit Upper limit for the number of records to return. stream()
117
111
  # guarantees to never return more than limit. Default is no limit
@@ -120,11 +114,11 @@ module Twilio
120
114
  # but a limit is defined, stream() will attempt to read the limit with the most
121
115
  # efficient page size, i.e. min(limit, 1000)
122
116
  # @return [Enumerable] Enumerable that will yield up to limit results
123
- def stream(token: :unset, segment_id: :unset, limit: nil, page_size: nil)
117
+ def stream(authorization: :unset, segment_id: :unset, limit: nil, page_size: nil)
124
118
  limits = @version.read_limits(limit, page_size)
125
119
 
126
120
  page = self.page(
127
- token: token,
121
+ authorization: authorization,
128
122
  segment_id: segment_id,
129
123
  page_size: limits[:page_size], )
130
124
 
@@ -148,16 +142,16 @@ module Twilio
148
142
  ##
149
143
  # Retrieve a single page of AssessmentsInstance records from the API.
150
144
  # Request is executed immediately.
151
- # @param [String] token The Token HTTP request header
145
+ # @param [String] authorization The Authorization HTTP request header
152
146
  # @param [String] segment_id The id of the segment.
153
147
  # @param [String] page_token PageToken provided by the API
154
148
  # @param [Integer] page_number Page Number, this value is simply for client state
155
149
  # @param [Integer] page_size Number of records to return, defaults to 50
156
150
  # @return [Page] Page of AssessmentsInstance
157
- def page(token: :unset, segment_id: :unset, page_token: :unset, page_number: :unset, page_size: :unset)
151
+ def page(authorization: :unset, segment_id: :unset, page_token: :unset, page_number: :unset, page_size: :unset)
158
152
  params = Twilio::Values.of({
159
153
 
160
- 'Token' => token,
154
+ 'Authorization' => authorization,
161
155
 
162
156
  'SegmentId' => segment_id,
163
157
 
@@ -215,13 +209,13 @@ module Twilio
215
209
  # @param [Float] offset The offset of the conversation
216
210
  # @param [String] answer_text The answer text selected by user
217
211
  # @param [String] answer_id The id of the answer selected by user
218
- # @param [String] token The Token HTTP request header
212
+ # @param [String] authorization The Authorization HTTP request header
219
213
  # @return [AssessmentsInstance] Updated AssessmentsInstance
220
214
  def update(
221
215
  offset: nil,
222
216
  answer_text: nil,
223
217
  answer_id: nil,
224
- token: :unset
218
+ authorization: :unset
225
219
  )
226
220
 
227
221
  data = Twilio::Values.of({
@@ -230,7 +224,7 @@ module Twilio
230
224
  'AnswerId' => answer_id,
231
225
  })
232
226
 
233
- headers = Twilio::Values.of({ 'Token' => token, })
227
+ headers = Twilio::Values.of({ 'Authorization' => authorization, })
234
228
  payload = @version.update('POST', @uri, data: data, headers: headers)
235
229
  AssessmentsInstance.new(
236
230
  @version,
@@ -419,20 +413,20 @@ module Twilio
419
413
  # @param [Float] offset The offset of the conversation
420
414
  # @param [String] answer_text The answer text selected by user
421
415
  # @param [String] answer_id The id of the answer selected by user
422
- # @param [String] token The Token HTTP request header
416
+ # @param [String] authorization The Authorization HTTP request header
423
417
  # @return [AssessmentsInstance] Updated AssessmentsInstance
424
418
  def update(
425
419
  offset: nil,
426
420
  answer_text: nil,
427
421
  answer_id: nil,
428
- token: :unset
422
+ authorization: :unset
429
423
  )
430
424
 
431
425
  context.update(
432
426
  offset: offset,
433
427
  answer_text: answer_text,
434
428
  answer_id: answer_id,
435
- token: token,
429
+ authorization: authorization,
436
430
  )
437
431
  end
438
432
 
@@ -35,22 +35,18 @@ module Twilio
35
35
  # @param [String] category_name The name of the category
36
36
  # @param [String] comment The Assessment comment.
37
37
  # @param [String] segment_id The id of the segment.
38
- # @param [String] user_name The name of the user.
39
- # @param [String] user_email The email id of the user.
40
38
  # @param [String] agent_id The id of the agent.
41
39
  # @param [Float] offset The offset
42
- # @param [String] token The Token HTTP request header
40
+ # @param [String] authorization The Authorization HTTP request header
43
41
  # @return [InsightsAssessmentsCommentInstance] Created InsightsAssessmentsCommentInstance
44
42
  def create(
45
43
  category_id: nil,
46
44
  category_name: nil,
47
45
  comment: nil,
48
46
  segment_id: nil,
49
- user_name: nil,
50
- user_email: nil,
51
47
  agent_id: nil,
52
48
  offset: nil,
53
- token: :unset
49
+ authorization: :unset
54
50
  )
55
51
 
56
52
  data = Twilio::Values.of({
@@ -58,13 +54,11 @@ module Twilio
58
54
  'CategoryName' => category_name,
59
55
  'Comment' => comment,
60
56
  'SegmentId' => segment_id,
61
- 'UserName' => user_name,
62
- 'UserEmail' => user_email,
63
57
  'AgentId' => agent_id,
64
58
  'Offset' => offset,
65
59
  })
66
60
 
67
- headers = Twilio::Values.of({ 'Token' => token, })
61
+ headers = Twilio::Values.of({ 'Authorization' => authorization, })
68
62
  payload = @version.create('POST', @uri, data: data, headers: headers)
69
63
  InsightsAssessmentsCommentInstance.new(
70
64
  @version,
@@ -77,7 +71,7 @@ module Twilio
77
71
  # Lists InsightsAssessmentsCommentInstance records from the API as a list.
78
72
  # Unlike stream(), this operation is eager and will load `limit` records into
79
73
  # memory before returning.
80
- # @param [String] token The Token HTTP request header
74
+ # @param [String] authorization The Authorization HTTP request header
81
75
  # @param [String] segment_id The id of the segment.
82
76
  # @param [String] agent_id The id of the agent.
83
77
  # @param [Integer] limit Upper limit for the number of records to return. stream()
@@ -87,9 +81,9 @@ module Twilio
87
81
  # but a limit is defined, stream() will attempt to read the limit with the most
88
82
  # efficient page size, i.e. min(limit, 1000)
89
83
  # @return [Array] Array of up to limit results
90
- def list(token: :unset, segment_id: :unset, agent_id: :unset, limit: nil, page_size: nil)
84
+ def list(authorization: :unset, segment_id: :unset, agent_id: :unset, limit: nil, page_size: nil)
91
85
  self.stream(
92
- token: token,
86
+ authorization: authorization,
93
87
  segment_id: segment_id,
94
88
  agent_id: agent_id,
95
89
  limit: limit,
@@ -101,7 +95,7 @@ module Twilio
101
95
  # Streams Instance records from the API as an Enumerable.
102
96
  # This operation lazily loads records as efficiently as possible until the limit
103
97
  # is reached.
104
- # @param [String] token The Token HTTP request header
98
+ # @param [String] authorization The Authorization HTTP request header
105
99
  # @param [String] segment_id The id of the segment.
106
100
  # @param [String] agent_id The id of the agent.
107
101
  # @param [Integer] limit Upper limit for the number of records to return. stream()
@@ -111,11 +105,11 @@ module Twilio
111
105
  # but a limit is defined, stream() will attempt to read the limit with the most
112
106
  # efficient page size, i.e. min(limit, 1000)
113
107
  # @return [Enumerable] Enumerable that will yield up to limit results
114
- def stream(token: :unset, segment_id: :unset, agent_id: :unset, limit: nil, page_size: nil)
108
+ def stream(authorization: :unset, segment_id: :unset, agent_id: :unset, limit: nil, page_size: nil)
115
109
  limits = @version.read_limits(limit, page_size)
116
110
 
117
111
  page = self.page(
118
- token: token,
112
+ authorization: authorization,
119
113
  segment_id: segment_id,
120
114
  agent_id: agent_id,
121
115
  page_size: limits[:page_size], )
@@ -140,17 +134,17 @@ module Twilio
140
134
  ##
141
135
  # Retrieve a single page of InsightsAssessmentsCommentInstance records from the API.
142
136
  # Request is executed immediately.
143
- # @param [String] token The Token HTTP request header
137
+ # @param [String] authorization The Authorization HTTP request header
144
138
  # @param [String] segment_id The id of the segment.
145
139
  # @param [String] agent_id The id of the agent.
146
140
  # @param [String] page_token PageToken provided by the API
147
141
  # @param [Integer] page_number Page Number, this value is simply for client state
148
142
  # @param [Integer] page_size Number of records to return, defaults to 50
149
143
  # @return [Page] Page of InsightsAssessmentsCommentInstance
150
- def page(token: :unset, segment_id: :unset, agent_id: :unset, page_token: :unset, page_number: :unset, page_size: :unset)
144
+ def page(authorization: :unset, segment_id: :unset, agent_id: :unset, page_token: :unset, page_number: :unset, page_size: :unset)
151
145
  params = Twilio::Values.of({
152
146
 
153
- 'Token' => token,
147
+ 'Authorization' => authorization,
154
148
 
155
149
  'SegmentId' => segment_id,
156
150
 
@@ -34,7 +34,7 @@ module Twilio
34
34
  # Lists InsightsConversationsInstance 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] token The Token HTTP request header
37
+ # @param [String] authorization The Authorization HTTP request header
38
38
  # @param [String] segment_id Unique Id of the segment for which conversation details needs to be fetched
39
39
  # @param [Integer] limit Upper limit for the number of records to return. stream()
40
40
  # guarantees to never return more than limit. Default is no limit
@@ -43,9 +43,9 @@ module Twilio
43
43
  # but a limit is defined, stream() will attempt to read the limit with the most
44
44
  # efficient page size, i.e. min(limit, 1000)
45
45
  # @return [Array] Array of up to limit results
46
- def list(token: :unset, segment_id: :unset, limit: nil, page_size: nil)
46
+ def list(authorization: :unset, segment_id: :unset, limit: nil, page_size: nil)
47
47
  self.stream(
48
- token: token,
48
+ authorization: authorization,
49
49
  segment_id: segment_id,
50
50
  limit: limit,
51
51
  page_size: page_size
@@ -56,7 +56,7 @@ module Twilio
56
56
  # Streams Instance records from the API as an Enumerable.
57
57
  # This operation lazily loads records as efficiently as possible until the limit
58
58
  # is reached.
59
- # @param [String] token The Token HTTP request header
59
+ # @param [String] authorization The Authorization HTTP request header
60
60
  # @param [String] segment_id Unique Id of the segment for which conversation details needs to be fetched
61
61
  # @param [Integer] limit Upper limit for the number of records to return. stream()
62
62
  # guarantees to never return more than limit. Default is no limit
@@ -65,11 +65,11 @@ module Twilio
65
65
  # but a limit is defined, stream() will attempt to read the limit with the most
66
66
  # efficient page size, i.e. min(limit, 1000)
67
67
  # @return [Enumerable] Enumerable that will yield up to limit results
68
- def stream(token: :unset, segment_id: :unset, limit: nil, page_size: nil)
68
+ def stream(authorization: :unset, segment_id: :unset, limit: nil, page_size: nil)
69
69
  limits = @version.read_limits(limit, page_size)
70
70
 
71
71
  page = self.page(
72
- token: token,
72
+ authorization: authorization,
73
73
  segment_id: segment_id,
74
74
  page_size: limits[:page_size], )
75
75
 
@@ -93,16 +93,16 @@ module Twilio
93
93
  ##
94
94
  # Retrieve a single page of InsightsConversationsInstance records from the API.
95
95
  # Request is executed immediately.
96
- # @param [String] token The Token HTTP request header
96
+ # @param [String] authorization The Authorization HTTP request header
97
97
  # @param [String] segment_id Unique Id of the segment for which conversation details needs to be fetched
98
98
  # @param [String] page_token PageToken provided by the API
99
99
  # @param [Integer] page_number Page Number, this value is simply for client state
100
100
  # @param [Integer] page_size Number of records to return, defaults to 50
101
101
  # @return [Page] Page of InsightsConversationsInstance
102
- def page(token: :unset, segment_id: :unset, page_token: :unset, page_number: :unset, page_size: :unset)
102
+ def page(authorization: :unset, segment_id: :unset, page_token: :unset, page_number: :unset, page_size: :unset)
103
103
  params = Twilio::Values.of({
104
104
 
105
- 'Token' => token,
105
+ 'Authorization' => authorization,
106
106
 
107
107
  'SegmentId' => segment_id,
108
108
 
@@ -35,14 +35,14 @@ module Twilio
35
35
  # @param [String] description The description of this questionnaire
36
36
  # @param [Boolean] active The flag to enable or disable questionnaire
37
37
  # @param [Array[String]] question_sids The list of questions sids under a questionnaire
38
- # @param [String] token The Token HTTP request header
38
+ # @param [String] authorization The Authorization HTTP request header
39
39
  # @return [InsightsQuestionnairesInstance] Created InsightsQuestionnairesInstance
40
40
  def create(
41
41
  name: nil,
42
42
  description: :unset,
43
43
  active: :unset,
44
44
  question_sids: :unset,
45
- token: :unset
45
+ authorization: :unset
46
46
  )
47
47
 
48
48
  data = Twilio::Values.of({
@@ -52,7 +52,7 @@ module Twilio
52
52
  'QuestionSids' => Twilio.serialize_list(question_sids) { |e| e },
53
53
  })
54
54
 
55
- headers = Twilio::Values.of({ 'Token' => token, })
55
+ headers = Twilio::Values.of({ 'Authorization' => authorization, })
56
56
  payload = @version.create('POST', @uri, data: data, headers: headers)
57
57
  InsightsQuestionnairesInstance.new(
58
58
  @version,
@@ -65,7 +65,7 @@ module Twilio
65
65
  # Lists InsightsQuestionnairesInstance records from the API as a list.
66
66
  # Unlike stream(), this operation is eager and will load `limit` records into
67
67
  # memory before returning.
68
- # @param [String] token The Token HTTP request header
68
+ # @param [String] authorization The Authorization HTTP request header
69
69
  # @param [Boolean] include_inactive Flag indicating whether to include inactive questionnaires or not
70
70
  # @param [Integer] limit Upper limit for the number of records to return. stream()
71
71
  # guarantees to never return more than limit. Default is no limit
@@ -74,9 +74,9 @@ module Twilio
74
74
  # but a limit is defined, stream() will attempt to read the limit with the most
75
75
  # efficient page size, i.e. min(limit, 1000)
76
76
  # @return [Array] Array of up to limit results
77
- def list(token: :unset, include_inactive: :unset, limit: nil, page_size: nil)
77
+ def list(authorization: :unset, include_inactive: :unset, limit: nil, page_size: nil)
78
78
  self.stream(
79
- token: token,
79
+ authorization: authorization,
80
80
  include_inactive: include_inactive,
81
81
  limit: limit,
82
82
  page_size: page_size
@@ -87,7 +87,7 @@ module Twilio
87
87
  # Streams Instance records from the API as an Enumerable.
88
88
  # This operation lazily loads records as efficiently as possible until the limit
89
89
  # is reached.
90
- # @param [String] token The Token HTTP request header
90
+ # @param [String] authorization The Authorization HTTP request header
91
91
  # @param [Boolean] include_inactive Flag indicating whether to include inactive questionnaires or not
92
92
  # @param [Integer] limit Upper limit for the number of records to return. stream()
93
93
  # guarantees to never return more than limit. Default is no limit
@@ -96,11 +96,11 @@ module Twilio
96
96
  # but a limit is defined, stream() will attempt to read the limit with the most
97
97
  # efficient page size, i.e. min(limit, 1000)
98
98
  # @return [Enumerable] Enumerable that will yield up to limit results
99
- def stream(token: :unset, include_inactive: :unset, limit: nil, page_size: nil)
99
+ def stream(authorization: :unset, include_inactive: :unset, limit: nil, page_size: nil)
100
100
  limits = @version.read_limits(limit, page_size)
101
101
 
102
102
  page = self.page(
103
- token: token,
103
+ authorization: authorization,
104
104
  include_inactive: include_inactive,
105
105
  page_size: limits[:page_size], )
106
106
 
@@ -124,16 +124,16 @@ module Twilio
124
124
  ##
125
125
  # Retrieve a single page of InsightsQuestionnairesInstance records from the API.
126
126
  # Request is executed immediately.
127
- # @param [String] token The Token HTTP request header
127
+ # @param [String] authorization The Authorization HTTP request header
128
128
  # @param [Boolean] include_inactive Flag indicating whether to include inactive questionnaires or not
129
129
  # @param [String] page_token PageToken provided by the API
130
130
  # @param [Integer] page_number Page Number, this value is simply for client state
131
131
  # @param [Integer] page_size Number of records to return, defaults to 50
132
132
  # @return [Page] Page of InsightsQuestionnairesInstance
133
- def page(token: :unset, include_inactive: :unset, page_token: :unset, page_number: :unset, page_size: :unset)
133
+ def page(authorization: :unset, include_inactive: :unset, page_token: :unset, page_number: :unset, page_size: :unset)
134
134
  params = Twilio::Values.of({
135
135
 
136
- 'Token' => token,
136
+ 'Authorization' => authorization,
137
137
 
138
138
  'IncludeInactive' => include_inactive,
139
139
 
@@ -188,25 +188,25 @@ module Twilio
188
188
  end
189
189
  ##
190
190
  # Delete the InsightsQuestionnairesInstance
191
- # @param [String] token The Token HTTP request header
191
+ # @param [String] authorization The Authorization HTTP request header
192
192
  # @return [Boolean] True if delete succeeds, false otherwise
193
193
  def delete(
194
- token: :unset
194
+ authorization: :unset
195
195
  )
196
196
 
197
- headers = Twilio::Values.of({ 'Token' => token, })
197
+ headers = Twilio::Values.of({ 'Authorization' => authorization, })
198
198
  @version.delete('DELETE', @uri, headers: headers)
199
199
  end
200
200
 
201
201
  ##
202
202
  # Fetch the InsightsQuestionnairesInstance
203
- # @param [String] token The Token HTTP request header
203
+ # @param [String] authorization The Authorization HTTP request header
204
204
  # @return [InsightsQuestionnairesInstance] Fetched InsightsQuestionnairesInstance
205
205
  def fetch(
206
- token: :unset
206
+ authorization: :unset
207
207
  )
208
208
 
209
- headers = Twilio::Values.of({ 'Token' => token, })
209
+ headers = Twilio::Values.of({ 'Authorization' => authorization, })
210
210
  payload = @version.fetch('GET', @uri, headers: headers)
211
211
  InsightsQuestionnairesInstance.new(
212
212
  @version,
@@ -221,14 +221,14 @@ module Twilio
221
221
  # @param [String] name The name of this questionnaire
222
222
  # @param [String] description The description of this questionnaire
223
223
  # @param [Array[String]] question_sids The list of questions sids under a questionnaire
224
- # @param [String] token The Token HTTP request header
224
+ # @param [String] authorization The Authorization HTTP request header
225
225
  # @return [InsightsQuestionnairesInstance] Updated InsightsQuestionnairesInstance
226
226
  def update(
227
227
  active: nil,
228
228
  name: :unset,
229
229
  description: :unset,
230
230
  question_sids: :unset,
231
- token: :unset
231
+ authorization: :unset
232
232
  )
233
233
 
234
234
  data = Twilio::Values.of({
@@ -238,7 +238,7 @@ module Twilio
238
238
  'QuestionSids' => Twilio.serialize_list(question_sids) { |e| e },
239
239
  })
240
240
 
241
- headers = Twilio::Values.of({ 'Token' => token, })
241
+ headers = Twilio::Values.of({ 'Authorization' => authorization, })
242
242
  payload = @version.update('POST', @uri, data: data, headers: headers)
243
243
  InsightsQuestionnairesInstance.new(
244
244
  @version,
@@ -375,27 +375,27 @@ module Twilio
375
375
 
376
376
  ##
377
377
  # Delete the InsightsQuestionnairesInstance
378
- # @param [String] token The Token HTTP request header
378
+ # @param [String] authorization The Authorization HTTP request header
379
379
  # @return [Boolean] True if delete succeeds, false otherwise
380
380
  def delete(
381
- token: :unset
381
+ authorization: :unset
382
382
  )
383
383
 
384
384
  context.delete(
385
- token: token,
385
+ authorization: authorization,
386
386
  )
387
387
  end
388
388
 
389
389
  ##
390
390
  # Fetch the InsightsQuestionnairesInstance
391
- # @param [String] token The Token HTTP request header
391
+ # @param [String] authorization The Authorization HTTP request header
392
392
  # @return [InsightsQuestionnairesInstance] Fetched InsightsQuestionnairesInstance
393
393
  def fetch(
394
- token: :unset
394
+ authorization: :unset
395
395
  )
396
396
 
397
397
  context.fetch(
398
- token: token,
398
+ authorization: authorization,
399
399
  )
400
400
  end
401
401
 
@@ -405,14 +405,14 @@ module Twilio
405
405
  # @param [String] name The name of this questionnaire
406
406
  # @param [String] description The description of this questionnaire
407
407
  # @param [Array[String]] question_sids The list of questions sids under a questionnaire
408
- # @param [String] token The Token HTTP request header
408
+ # @param [String] authorization The Authorization HTTP request header
409
409
  # @return [InsightsQuestionnairesInstance] Updated InsightsQuestionnairesInstance
410
410
  def update(
411
411
  active: nil,
412
412
  name: :unset,
413
413
  description: :unset,
414
414
  question_sids: :unset,
415
- token: :unset
415
+ authorization: :unset
416
416
  )
417
417
 
418
418
  context.update(
@@ -420,7 +420,7 @@ module Twilio
420
420
  name: name,
421
421
  description: description,
422
422
  question_sids: question_sids,
423
- token: token,
423
+ authorization: authorization,
424
424
  )
425
425
  end
426
426