twilio-ruby 5.52.0 → 5.67.3

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 (163) hide show
  1. checksums.yaml +5 -5
  2. data/.github/workflows/pr-lint.yml +15 -0
  3. data/.github/workflows/test-and-deploy.yml +129 -0
  4. data/.gitignore +5 -1
  5. data/.rubocop.yml +1 -1
  6. data/.rubocop_todo.yml +91 -28
  7. data/CHANGES.md +563 -0
  8. data/Gemfile +1 -0
  9. data/Makefile +8 -11
  10. data/README.md +13 -6
  11. data/examples/examples.rb +1 -1
  12. data/lib/rack/twilio_webhook_authentication.rb +25 -1
  13. data/lib/twilio-ruby/http/http_client.rb +20 -4
  14. data/lib/twilio-ruby/http.rb +5 -0
  15. data/lib/twilio-ruby/jwt/access_token.rb +13 -0
  16. data/lib/twilio-ruby/rest/api/v2010/account/call/feedback.rb +23 -23
  17. data/lib/twilio-ruby/rest/api/v2010/account/call/feedback_summary.rb +5 -5
  18. data/lib/twilio-ruby/rest/api/v2010/account/call/payment.rb +8 -8
  19. data/lib/twilio-ruby/rest/api/v2010/account/call/siprec.rb +674 -0
  20. data/lib/twilio-ruby/rest/api/v2010/account/call/stream.rb +674 -0
  21. data/lib/twilio-ruby/rest/api/v2010/account/call.rb +68 -14
  22. data/lib/twilio-ruby/rest/api/v2010/account/conference/participant.rb +12 -8
  23. data/lib/twilio-ruby/rest/api/v2010/account/conference/recording.rb +1 -1
  24. data/lib/twilio-ruby/rest/api/v2010/account/incoming_phone_number/local.rb +11 -4
  25. data/lib/twilio-ruby/rest/api/v2010/account/incoming_phone_number/mobile.rb +11 -4
  26. data/lib/twilio-ruby/rest/api/v2010/account/incoming_phone_number/toll_free.rb +11 -4
  27. data/lib/twilio-ruby/rest/api/v2010/account/incoming_phone_number.rb +17 -10
  28. data/lib/twilio-ruby/rest/api/v2010/account/message.rb +18 -5
  29. data/lib/twilio-ruby/rest/api/v2010/account/recording.rb +34 -7
  30. data/lib/twilio-ruby/rest/api/v2010/account/sip/domain/credential_list_mapping.rb +11 -11
  31. data/lib/twilio-ruby/rest/api/v2010/account/sip/domain/ip_access_control_list_mapping.rb +11 -11
  32. data/lib/twilio-ruby/rest/bulkexports/v1/export/day.rb +0 -8
  33. data/lib/twilio-ruby/rest/bulkexports/v1/export/export_custom_job.rb +0 -6
  34. data/lib/twilio-ruby/rest/bulkexports/v1/export/job.rb +0 -8
  35. data/lib/twilio-ruby/rest/bulkexports/v1/export.rb +0 -8
  36. data/lib/twilio-ruby/rest/bulkexports/v1/export_configuration.rb +0 -8
  37. data/lib/twilio-ruby/rest/chat/v2/service/user/user_channel.rb +10 -4
  38. data/lib/twilio-ruby/rest/chat/v3/channel.rb +275 -0
  39. data/lib/twilio-ruby/rest/chat/v3.rb +48 -0
  40. data/lib/twilio-ruby/rest/chat.rb +16 -0
  41. data/lib/twilio-ruby/rest/client.rb +21 -12
  42. data/lib/twilio-ruby/rest/conversations/v1/address_configuration.rb +454 -0
  43. data/lib/twilio-ruby/rest/conversations/v1/conversation/message.rb +12 -5
  44. data/lib/twilio-ruby/rest/conversations/v1/conversation.rb +7 -0
  45. data/lib/twilio-ruby/rest/conversations/v1/participant_conversation.rb +312 -0
  46. data/lib/twilio-ruby/rest/conversations/v1/service/configuration/notification.rb +18 -2
  47. data/lib/twilio-ruby/rest/conversations/v1/service/configuration/webhook.rb +269 -0
  48. data/lib/twilio-ruby/rest/conversations/v1/service/configuration.rb +8 -0
  49. data/lib/twilio-ruby/rest/conversations/v1/service/conversation/message.rb +12 -5
  50. data/lib/twilio-ruby/rest/conversations/v1/service/conversation.rb +7 -0
  51. data/lib/twilio-ruby/rest/conversations/v1/service/participant_conversation.rb +324 -0
  52. data/lib/twilio-ruby/rest/conversations/v1/service/user/user_conversation.rb +466 -0
  53. data/lib/twilio-ruby/rest/conversations/v1/service/user.rb +44 -0
  54. data/lib/twilio-ruby/rest/conversations/v1/service.rb +23 -0
  55. data/lib/twilio-ruby/rest/conversations/v1/user/user_conversation.rb +442 -0
  56. data/lib/twilio-ruby/rest/conversations/v1/user.rb +35 -0
  57. data/lib/twilio-ruby/rest/conversations/v1.rb +24 -0
  58. data/lib/twilio-ruby/rest/conversations.rb +15 -0
  59. data/lib/twilio-ruby/rest/events/v1/event_type.rb +12 -5
  60. data/lib/twilio-ruby/rest/events/v1/sink.rb +41 -5
  61. data/lib/twilio-ruby/rest/flex_api/v1/configuration.rb +28 -0
  62. data/lib/twilio-ruby/rest/flex_api/v1/flex_flow.rb +55 -34
  63. data/lib/twilio-ruby/rest/flex_api/v1/interaction/interaction_channel/interaction_channel_invite.rb +236 -0
  64. data/lib/twilio-ruby/rest/flex_api/v1/interaction/interaction_channel/interaction_channel_participant.rb +330 -0
  65. data/lib/twilio-ruby/rest/flex_api/v1/interaction/interaction_channel.rb +384 -0
  66. data/lib/twilio-ruby/rest/flex_api/v1/interaction.rb +233 -0
  67. data/lib/twilio-ruby/rest/flex_api/v1.rb +16 -0
  68. data/lib/twilio-ruby/rest/flex_api.rb +9 -0
  69. data/lib/twilio-ruby/rest/frontline_api/v1/user.rb +258 -0
  70. data/lib/twilio-ruby/rest/{fax → frontline_api}/v1.rb +11 -11
  71. data/lib/twilio-ruby/rest/{fax.rb → frontline_api.rb} +11 -11
  72. data/lib/twilio-ruby/rest/insights/v1/annotation.rb +271 -0
  73. data/lib/twilio-ruby/rest/insights/v1/call_summaries.rb +434 -0
  74. data/lib/twilio-ruby/rest/insights/v1/conference/conference_participant.rb +474 -0
  75. data/lib/twilio-ruby/rest/insights/v1/conference.rb +512 -0
  76. data/lib/twilio-ruby/rest/insights/v1/setting.rb +215 -0
  77. data/lib/twilio-ruby/rest/insights/v1.rb +46 -0
  78. data/lib/twilio-ruby/rest/insights.rb +28 -0
  79. data/lib/twilio-ruby/rest/lookups/v2/phone_number.rb +268 -0
  80. data/lib/twilio-ruby/rest/lookups/v2.rb +45 -0
  81. data/lib/twilio-ruby/rest/lookups.rb +7 -0
  82. data/lib/twilio-ruby/rest/media/v1/media_processor.rb +397 -0
  83. data/lib/twilio-ruby/rest/media/v1/media_recording.rb +406 -0
  84. data/lib/twilio-ruby/rest/media/v1/player_streamer/playback_grant.rb +221 -0
  85. data/lib/twilio-ruby/rest/media/v1/player_streamer.rb +403 -0
  86. data/lib/twilio-ruby/rest/media/v1.rb +76 -0
  87. data/lib/twilio-ruby/rest/media.rb +65 -0
  88. data/lib/twilio-ruby/rest/{fax/v1/fax/fax_media.rb → messaging/v1/brand_registration/brand_vetting.rb} +134 -95
  89. data/lib/twilio-ruby/rest/messaging/v1/brand_registration.rb +127 -2
  90. data/lib/twilio-ruby/rest/messaging/v1/external_campaign.rb +7 -0
  91. data/lib/twilio-ruby/rest/messaging/v1/service/us_app_to_person.rb +187 -20
  92. data/lib/twilio-ruby/rest/messaging/v1/service/us_app_to_person_usecase.rb +6 -2
  93. data/lib/twilio-ruby/rest/messaging/v1/service.rb +37 -5
  94. data/lib/twilio-ruby/rest/numbers/v2/regulatory_compliance/bundle/bundle_copy.rb +268 -0
  95. data/lib/twilio-ruby/rest/numbers/v2/regulatory_compliance/bundle/replace_items.rb +188 -0
  96. data/lib/twilio-ruby/rest/numbers/v2/regulatory_compliance/bundle.rb +128 -26
  97. data/lib/twilio-ruby/rest/numbers/v2/regulatory_compliance/supporting_document.rb +7 -0
  98. data/lib/twilio-ruby/rest/pricing/v2/country.rb +280 -0
  99. data/lib/twilio-ruby/rest/pricing/v2/number.rb +225 -0
  100. data/lib/twilio-ruby/rest/pricing/v2.rb +37 -0
  101. data/lib/twilio-ruby/rest/pricing.rb +19 -0
  102. data/lib/twilio-ruby/rest/serverless/v1/service/environment.rb +1 -1
  103. data/lib/twilio-ruby/rest/serverless/v1/service.rb +7 -0
  104. data/lib/twilio-ruby/rest/studio/v1/flow/execution.rb +1 -1
  105. data/lib/twilio-ruby/rest/studio/v2/flow/execution.rb +1 -1
  106. data/lib/twilio-ruby/rest/supersim/v1/esim_profile.rb +372 -0
  107. data/lib/twilio-ruby/rest/supersim/v1/fleet.rb +44 -55
  108. data/lib/twilio-ruby/rest/supersim/v1/{command.rb → ip_command.rb} +132 -84
  109. data/lib/twilio-ruby/rest/supersim/v1/sim/billing_period.rb +231 -0
  110. data/lib/twilio-ruby/rest/supersim/v1/sim.rb +30 -1
  111. data/lib/twilio-ruby/rest/supersim/v1/sms_command.rb +1 -1
  112. data/lib/twilio-ruby/rest/supersim/v1/usage_record.rb +23 -9
  113. data/lib/twilio-ruby/rest/supersim/v1.rb +23 -7
  114. data/lib/twilio-ruby/rest/supersim.rb +15 -6
  115. data/lib/twilio-ruby/rest/taskrouter/v1/workspace/activity.rb +7 -0
  116. data/lib/twilio-ruby/rest/taskrouter/v1/workspace/task/reservation.rb +7 -3
  117. data/lib/twilio-ruby/rest/taskrouter/v1/workspace/task_queue/task_queue_cumulative_statistics.rb +6 -2
  118. data/lib/twilio-ruby/rest/taskrouter/v1/workspace/worker/reservation.rb +7 -3
  119. data/lib/twilio-ruby/rest/taskrouter/v1/workspace/worker.rb +23 -11
  120. data/lib/twilio-ruby/rest/taskrouter/v1/workspace/workflow/workflow_cumulative_statistics.rb +4 -2
  121. data/lib/twilio-ruby/rest/taskrouter/v1/workspace/workspace_cumulative_statistics.rb +4 -2
  122. data/lib/twilio-ruby/rest/taskrouter/v1/workspace.rb +38 -22
  123. data/lib/twilio-ruby/rest/trunking/v1/trunk.rb +19 -3
  124. data/lib/twilio-ruby/rest/verify/v2/service/access_token.rb +155 -10
  125. data/lib/twilio-ruby/rest/verify/v2/service/entity/challenge/notification.rb +12 -9
  126. data/lib/twilio-ruby/rest/verify/v2/service/entity/challenge.rb +74 -22
  127. data/lib/twilio-ruby/rest/verify/v2/service/entity/factor.rb +34 -15
  128. data/lib/twilio-ruby/rest/verify/v2/service/entity/new_factor.rb +66 -31
  129. data/lib/twilio-ruby/rest/verify/v2/service/entity.rb +7 -3
  130. data/lib/twilio-ruby/rest/verify/v2/service/verification.rb +25 -7
  131. data/lib/twilio-ruby/rest/verify/v2/service/webhook.rb +24 -5
  132. data/lib/twilio-ruby/rest/verify/v2/service.rb +40 -11
  133. data/lib/twilio-ruby/rest/verify/v2/template.rb +206 -0
  134. data/lib/twilio-ruby/rest/verify/v2/verification_attempt.rb +89 -21
  135. data/lib/twilio-ruby/rest/verify/v2/verification_attempts_summary.rb +234 -0
  136. data/lib/twilio-ruby/rest/verify/v2.rb +14 -0
  137. data/lib/twilio-ruby/rest/verify.rb +14 -2
  138. data/lib/twilio-ruby/rest/video/v1/composition.rb +21 -8
  139. data/lib/twilio-ruby/rest/video/v1/composition_hook.rb +0 -8
  140. data/lib/twilio-ruby/rest/video/v1/recording.rb +21 -0
  141. data/lib/twilio-ruby/rest/video/v1/room/recording.rb +7 -0
  142. data/lib/twilio-ruby/rest/video/v1/room.rb +62 -5
  143. data/lib/twilio-ruby/rest/voice/v1/archived_call.rb +184 -0
  144. data/lib/twilio-ruby/rest/voice/v1.rb +21 -0
  145. data/lib/twilio-ruby/rest/voice.rb +8 -0
  146. data/lib/twilio-ruby/rest/wireless/v1/rate_plan.rb +3 -3
  147. data/lib/twilio-ruby/rest/wireless/v1/sim.rb +16 -26
  148. data/lib/twilio-ruby/rest.rb +13 -0
  149. data/lib/twilio-ruby/twiml/voice_response.rb +727 -87
  150. data/lib/twilio-ruby/version.rb +1 -1
  151. data/lib/twilio-ruby.rb +6 -16
  152. data/sonar-project.properties +13 -0
  153. data/twilio-ruby.gemspec +1 -2
  154. metadata +59 -32
  155. data/.travis.yml +0 -45
  156. data/lib/twilio-ruby/rest/fax/v1/fax.rb +0 -536
  157. /data/lib/twilio-ruby/framework/{domain.rb → rest/domain.rb} +0 -0
  158. /data/lib/twilio-ruby/framework/{error.rb → rest/error.rb} +0 -0
  159. /data/lib/twilio-ruby/framework/{helper.rb → rest/helper.rb} +0 -0
  160. /data/lib/twilio-ruby/framework/{obsolete_client.rb → rest/obsolete_client.rb} +0 -0
  161. /data/lib/twilio-ruby/framework/{page.rb → rest/page.rb} +0 -0
  162. /data/lib/twilio-ruby/framework/{resource.rb → rest/resource.rb} +0 -0
  163. /data/lib/twilio-ruby/framework/{version.rb → rest/version.rb} +0 -0
data/CHANGES.md CHANGED
@@ -1,6 +1,569 @@
1
1
  twilio-ruby changelog
2
2
  =====================
3
3
 
4
+ [2022-06-15] Version 5.67.3
5
+ ---------------------------
6
+ **Lookups**
7
+ - Adding support for Lookup V2 API
8
+
9
+ **Studio**
10
+ - Corrected PII labels to be 30 days and added context to be PII
11
+
12
+ **Twiml**
13
+ - Add `statusCallbackMethod` attribute, nested `<Config` and `<Parameter>` elements to `<VirtualAgent>` noun.
14
+ - Add support for new Amazon Polly voices (Q2 2022) for `Say` verb
15
+ - Add support for `<Conversation>` noun
16
+
17
+
18
+ [2022-06-01] Version 5.67.2
19
+ ---------------------------
20
+ **Library - Chore**
21
+ - [PR #608](https://github.com/twilio/twilio-ruby/pull/608): use Docker 'rc' tag for release candidate images. Thanks to [@childish-sambino](https://github.com/childish-sambino)!
22
+
23
+
24
+ [2022-05-18] Version 5.67.1
25
+ ---------------------------
26
+ **Api**
27
+ - Add property `media_url` to the recording resources
28
+
29
+ **Verify**
30
+ - Include `silent` as a channel type in the verifications API.
31
+
32
+
33
+ [2022-05-04] Version 5.67.0
34
+ ---------------------------
35
+ **Library - Fix**
36
+ - [PR #607](https://github.com/twilio/twilio-ruby/pull/607): Retrieval of OS Info with Ruby Config for User Agent string. Thanks to [@claudiachua](https://github.com/claudiachua)!
37
+ - [PR #606](https://github.com/twilio/twilio-ruby/pull/606): Only require twilio_webhook_authentication if Rack version > 2. Thanks to [@jasonnoble](https://github.com/jasonnoble)!
38
+ - [PR #582](https://github.com/twilio/twilio-ruby/pull/582): avoid JSON::ParserError for all server errors. Thanks to [@dan-jensen](https://github.com/dan-jensen)!
39
+
40
+ **Library - Feature**
41
+ - [PR #591](https://github.com/twilio/twilio-ruby/pull/591): Add Faraday 2.0 support. Thanks to [@tconst](https://github.com/tconst)!
42
+
43
+ **Conversations**
44
+ - Expose query parameter `type` in list operation on Address Configurations resource
45
+
46
+ **Supersim**
47
+ - Add `data_total_billed` and `billed_units` fields to Super SIM UsageRecords API response.
48
+ - Change ESimProfiles `Eid` parameter to optional to enable Activation Code download method support **(breaking change)**
49
+
50
+ **Verify**
51
+ - Deprecate `push.include_date` parameter in create and update service.
52
+
53
+
54
+ [2022-04-20] Version 5.66.2
55
+ ---------------------------
56
+ **Library - Chore**
57
+ - [PR #604](https://github.com/twilio/twilio-ruby/pull/604): update the user agent string for twilio-ruby. Thanks to [@claudiachua](https://github.com/claudiachua)!
58
+
59
+
60
+ [2022-04-06] Version 5.66.1
61
+ ---------------------------
62
+ **Api**
63
+ - Updated `provider_sid` visibility to private
64
+
65
+ **Verify**
66
+ - Verify List Attempts API summary endpoint added.
67
+ - Update PII documentation for `AccessTokens` `factor_friendly_name` property.
68
+
69
+ **Voice**
70
+ - make annotation parameter from /Calls API private
71
+
72
+
73
+ [2022-03-23] Version 5.66.0
74
+ ---------------------------
75
+ **Api**
76
+ - Change `stream` url parameter to non optional
77
+ - Add `verify-totp` and `verify-whatsapp-conversations-business-initiated` categories to `usage_record` API
78
+
79
+ **Chat**
80
+ - Added v3 Channel update endpoint to support Public to Private channel migration
81
+
82
+ **Flex**
83
+ - Private Beta release of the Interactions API to support the upcoming release of Flex Conversations at the end of Q1 2022.
84
+ - Adding `channel_configs` object to Flex Configuration
85
+
86
+ **Media**
87
+ - Add max_duration param to PlayerStreamer
88
+
89
+ **Supersim**
90
+ - Remove Commands resource, use SmsCommands resource instead **(breaking change)**
91
+
92
+ **Taskrouter**
93
+ - Add limits to `split_by_wait_time` for Cumulative Statistics Endpoint
94
+
95
+ **Video**
96
+ - Change recording `status_callback_method` type from `enum` to `http_method` **(breaking change)**
97
+ - Add `status_callback` and `status_callback_method` to composition
98
+ - Add `status_callback` and `status_callback_method` to recording
99
+
100
+
101
+ [2022-03-09] Version 5.65.1
102
+ ---------------------------
103
+ **Library - Fix**
104
+ - [PR #602](https://github.com/twilio/twilio-ruby/pull/602): don't load webhook authentication if Rack not present. Thanks to [@philnash](https://github.com/philnash)!
105
+
106
+ **Library - Chore**
107
+ - [PR #599](https://github.com/twilio/twilio-ruby/pull/599): push Datadog Release Metric upon deploy success. Thanks to [@eshanholtz](https://github.com/eshanholtz)!
108
+
109
+ **Api**
110
+ - Add optional boolean include_soft_deleted parameter to retrieve soft deleted recordings
111
+
112
+ **Chat**
113
+ - Add `X-Twilio-Wehook-Enabled` header to `delete` method in UserChannel resource
114
+
115
+ **Numbers**
116
+ - Expose `failure_reason` in the Supporting Documents resources
117
+
118
+ **Verify**
119
+ - Add optional `metadata` parameter to "verify challenge" endpoint, so the SDK/App can attach relevant information from the device when responding to challenges.
120
+ - remove beta feature flag to list atempt api operations.
121
+ - Add `ttl` and `date_created` properties to `AccessTokens`.
122
+
123
+
124
+ [2022-02-23] Version 5.65.0
125
+ ---------------------------
126
+ **Api**
127
+ - Add `uri` to `stream` resource
128
+ - Add A2P Registration Fee category (`a2p-registration-fee`) to usage records
129
+ - Detected a bug and removed optional boolean include_soft_deleted parameter to retrieve soft deleted recordings. **(breaking change)**
130
+ - Add optional boolean include_soft_deleted parameter to retrieve soft deleted recordings.
131
+
132
+ **Numbers**
133
+ - Unrevert valid_until and sort filter params added to List Bundles resource
134
+ - Revert valid_until and sort filter params added to List Bundles resource
135
+ - Update sorting params added to List Bundles resource in the previous release
136
+
137
+ **Preview**
138
+ - Moved `web_channels` from preview to beta under `flex-api` **(breaking change)**
139
+
140
+ **Taskrouter**
141
+ - Add `ETag` as Response Header to List of Task, Reservation & Worker
142
+
143
+ **Verify**
144
+ - Remove outdated documentation commentary to contact sales. Product is already in public beta.
145
+ - Add optional `metadata` to factors.
146
+
147
+ **Twiml**
148
+ - Add new Polly Neural voices
149
+
150
+
151
+ [2022-02-09] Version 5.64.0
152
+ ---------------------------
153
+ **Library - Chore**
154
+ - [PR #594](https://github.com/twilio/twilio-ruby/pull/594): upgrade supported language versions. Thanks to [@childish-sambino](https://github.com/childish-sambino)!
155
+
156
+ **Api**
157
+ - Add `stream` resource
158
+
159
+ **Conversations**
160
+ - Fixed DELETE request to accept "sid_like" params in Address Configuration resources **(breaking change)**
161
+ - Expose Address Configuration resource for `sms` and `whatsapp`
162
+
163
+ **Fax**
164
+ - Removed deprecated Programmable Fax Create and Update methods **(breaking change)**
165
+
166
+ **Insights**
167
+ - Rename `call_state` to `call_status` and remove `whisper` in conference participant summary **(breaking change)**
168
+
169
+ **Numbers**
170
+ - Expose valid_until filters as part of provisionally-approved compliance feature on the List Bundles resource
171
+
172
+ **Supersim**
173
+ - Fix typo in Fleet resource docs
174
+ - Updated documentation for the Fleet resource indicating that fields related to commands have been deprecated and to use sms_command fields instead.
175
+ - Add support for setting and reading `ip_commands_url` and `ip_commands_method` on Fleets resource for helper libraries
176
+ - Changed `sim` property in requests to create an SMS Command made to the /SmsCommands to accept SIM UniqueNames in addition to SIDs
177
+
178
+ **Verify**
179
+ - Update list attempts API to include new filters and response fields.
180
+
181
+
182
+ [2022-01-26] Version 5.63.1
183
+ ---------------------------
184
+ **Library - Fix**
185
+ - [PR #590](https://github.com/twilio/twilio-ruby/pull/590): Validate signatures in Rack middleware for non-form-data payloads. Thanks to [@gabrielg](https://github.com/gabrielg)!
186
+
187
+ **Library - Chore**
188
+ - [PR #589](https://github.com/twilio/twilio-ruby/pull/589): Add sonarcloud analysis. Thanks to [@BrimmingDev](https://github.com/BrimmingDev)!
189
+ - [PR #588](https://github.com/twilio/twilio-ruby/pull/588): support for rubocop linting on ruby-head. Thanks to [@Hunga1](https://github.com/Hunga1)!
190
+
191
+ **Insights**
192
+ - Added new endpoint to fetch Conference Participant Summary
193
+ - Added new endpoint to fetch Conference Summary
194
+
195
+ **Messaging**
196
+ - Add government_entity parameter to brand apis
197
+
198
+ **Verify**
199
+ - Add Access Token fetch endpoint to retrieve a previously created token.
200
+ - Add Access Token payload to the Access Token creation endpoint, including a unique Sid, so it's addressable while it's TTL is valid.
201
+
202
+
203
+ [2022-01-12] Version 5.63.0
204
+ ---------------------------
205
+ **Library - Feature**
206
+ - [PR #586](https://github.com/twilio/twilio-ruby/pull/586): add GitHub release step during deploy. Thanks to [@childish-sambino](https://github.com/childish-sambino)!
207
+
208
+ **Library - Chore**
209
+ - [PR #584](https://github.com/twilio/twilio-ruby/pull/584): run yard in bundle context. Thanks to [@eshanholtz](https://github.com/eshanholtz)!
210
+ - [PR #583](https://github.com/twilio/twilio-ruby/pull/583): remove githook dependency from make install. Thanks to [@JenniferMah](https://github.com/JenniferMah)!
211
+
212
+ **Api**
213
+ - Make fixed time scheduling parameters public **(breaking change)**
214
+
215
+ **Messaging**
216
+ - Add update brand registration API
217
+
218
+ **Numbers**
219
+ - Add API endpoint for List Bundle Copies resource
220
+
221
+ **Video**
222
+ - Enable external storage for all customers
223
+
224
+
225
+ [2021-12-15] Version 5.62.0
226
+ ---------------------------
227
+ **Library - Feature**
228
+ - [PR #581](https://github.com/twilio/twilio-ruby/pull/581): run tests before deploying. Thanks to [@childish-sambino](https://github.com/childish-sambino)!
229
+
230
+ **Api**
231
+ - Add optional boolean send_as_mms parameter to the create action of Message resource **(breaking change)**
232
+ - Change team ownership for `call` delete
233
+
234
+ **Conversations**
235
+ - Change wording for `Service Webhook Configuration` resource fields
236
+
237
+ **Insights**
238
+ - Added new APIs for updating and getting voice insights flags by accountSid.
239
+
240
+ **Media**
241
+ - Add max_duration param to MediaProcessor
242
+
243
+ **Video**
244
+ - Add `EmptyRoomTimeout` and `UnusedRoomTimeout` properties to a room; add corresponding parameters to room creation
245
+
246
+ **Voice**
247
+ - Add endpoint to delete archived Calls
248
+
249
+
250
+ [2021-12-01] Version 5.61.2
251
+ ---------------------------
252
+ **Library - Chore**
253
+ - [PR #579](https://github.com/twilio/twilio-ruby/pull/579): make ruby-head test optional. Thanks to [@eshanholtz](https://github.com/eshanholtz)!
254
+
255
+ **Conversations**
256
+ - Add `Service Webhook Configuration` resource
257
+
258
+ **Flex**
259
+ - Adding `flex_insights_drilldown` and `flex_url` objects to Flex Configuration
260
+
261
+ **Messaging**
262
+ - Update us_app_to_person endpoints to remove beta feature flag based access
263
+
264
+ **Supersim**
265
+ - Add IP Commands resource
266
+
267
+ **Verify**
268
+ - Add optional `factor_friendly_name` parameter to the create access token endpoint.
269
+
270
+ **Video**
271
+ - Add maxParticipantDuration param to Rooms
272
+
273
+ **Twiml**
274
+ - Unrevert Add supported SSML children to `<emphasis>`, `<lang>`, `<p>`, `<prosody>`, `<s>`, and `<w>`.
275
+ - Revert Add supported SSML children to `<emphasis>`, `<lang>`, `<p>`, `<prosody>`, `<s>`, and `<w>`.
276
+
277
+
278
+ [2021-11-17] Version 5.61.1
279
+ ---------------------------
280
+ **Library - Chore**
281
+ - [PR #578](https://github.com/twilio/twilio-ruby/pull/578): remove yardoc files. Thanks to [@eshanholtz](https://github.com/eshanholtz)!
282
+
283
+ **Library - Fix**
284
+ - [PR #576](https://github.com/twilio/twilio-ruby/pull/576): git log retrieval issues. Thanks to [@shwetha-manvinkurke](https://github.com/shwetha-manvinkurke)!
285
+
286
+ **Frontline**
287
+ - Added `is_available` to User's resource
288
+
289
+ **Messaging**
290
+ - Added GET vetting API
291
+
292
+ **Verify**
293
+ - Add `WHATSAPP` to the attempts API.
294
+ - Allow to update `config.notification_platform` from `none` to `apn` or `fcm` and viceversa for Verify Push
295
+ - Add `none` as a valid `config.notification_platform` value for Verify Push
296
+
297
+ **Twiml**
298
+ - Add supported SSML children to `<emphasis>`, `<lang>`, `<p>`, `<prosody>`, `<s>`, and `<w>`.
299
+
300
+
301
+ [2021-11-03] Version 5.61.0
302
+ ---------------------------
303
+ **Library - Chore**
304
+ - [PR #575](https://github.com/twilio/twilio-ruby/pull/575): migrate from TravisCI to GitHub Actions. Thanks to [@eshanholtz](https://github.com/eshanholtz)!
305
+
306
+ **Api**
307
+ - Updated `media_url` property to be treated as PII
308
+
309
+ **Messaging**
310
+ - Added a new enum for brand registration status named DELETED **(breaking change)**
311
+ - Add a new K12_EDUCATION use case in us_app_to_person_usecase api transaction
312
+ - Added a new enum for brand registration status named IN_REVIEW
313
+
314
+ **Serverless**
315
+ - Add node14 as a valid Build runtime
316
+
317
+ **Verify**
318
+ - Fix typos in Verify Push Factor documentation for the `config.notification_token` parameter.
319
+ - Added `TemplateCustomSubstitutions` on verification creation
320
+ - Make `TemplateSid` parameter public for Verification resource and `DefaultTemplateSid` parameter public for Service resource. **(breaking change)**
321
+
322
+
323
+ [2021-10-18] Version 5.60.0
324
+ ---------------------------
325
+ **Library - Feature**
326
+ - [PR #574](https://github.com/twilio/twilio-ruby/pull/574): Add PlaybackGrant. Thanks to [@sarahcstringer](https://github.com/sarahcstringer)!
327
+
328
+ **Api**
329
+ - Corrected enum values for `emergency_address_status` values in `/IncomingPhoneNumbers` response. **(breaking change)**
330
+ - Clarify `emergency_address_status` values in `/IncomingPhoneNumbers` response.
331
+
332
+ **Messaging**
333
+ - Add PUT and List brand vettings api
334
+ - Removes beta feature flag based visibility for us_app_to_person_registered and usecase field.Updates test cases to add POLITICAL usecase. **(breaking change)**
335
+ - Add brand_feedback as optional field to BrandRegistrations
336
+
337
+ **Video**
338
+ - Add `AudioOnly` to create room
339
+
340
+
341
+ [2021-10-06] Version 5.59.0
342
+ ---------------------------
343
+ **Library - Fix**
344
+ - [PR #571](https://github.com/twilio/twilio-ruby/pull/571): fix travis build for ruby 3.0. Thanks to [@JenniferMah](https://github.com/JenniferMah)!
345
+
346
+ **Api**
347
+ - Add `emergency_address_status` attribute to `/IncomingPhoneNumbers` response.
348
+ - Add `siprec` resource
349
+
350
+ **Conversations**
351
+ - Added attachment parameters in configuration for `NewMessage` type of push notifications
352
+
353
+ **Flex**
354
+ - Adding `flex_insights_hr` object to Flex Configuration
355
+
356
+ **Numbers**
357
+ - Add API endpoint for Bundle ReplaceItems resource
358
+ - Add API endpoint for Bundle Copies resource
359
+
360
+ **Serverless**
361
+ - Add domain_base field to Service response
362
+
363
+ **Taskrouter**
364
+ - Add `If-Match` Header based on ETag for Worker Delete **(breaking change)**
365
+ - Add `If-Match` Header based on Etag for Reservation Update
366
+ - Add `If-Match` Header based on ETag for Worker Update
367
+ - Add `If-Match` Header based on ETag for Worker Delete
368
+ - Add `ETag` as Response Header to Worker
369
+
370
+ **Trunking**
371
+ - Added `transfer_caller_id` property on Trunks.
372
+
373
+ **Verify**
374
+ - Document new pilot `whatsapp` channel.
375
+
376
+
377
+ [2021-09-22] Version 5.58.3
378
+ ---------------------------
379
+ **Events**
380
+ - Add segment sink
381
+
382
+ **Messaging**
383
+ - Add post_approval_required attribute in GET us_app_to_person_usecase api response
384
+ - Add Identity Status, Russell 3000, Tax Exempt Status and Should Skip SecVet fields for Brand Registrations
385
+ - Add Should Skip Secondary Vetting optional flag parameter to create Brand API
386
+
387
+
388
+ [2021-09-08] Version 5.58.2
389
+ ---------------------------
390
+ **Library - Fix**
391
+ - [PR #568](https://github.com/twilio/twilio-ruby/pull/568): deprecation warning on Faraday. Thanks to [@ngouy](https://github.com/ngouy)!
392
+
393
+ **Api**
394
+ - Revert adding `siprec` resource
395
+ - Add `siprec` resource
396
+
397
+ **Messaging**
398
+ - Add 'mock' as an optional field to brand_registration api
399
+ - Add 'mock' as an optional field to us_app_to_person api
400
+ - Adds more Use Cases in us_app_to_person_usecase api transaction and updates us_app_to_person_usecase docs
401
+
402
+ **Verify**
403
+ - Verify List Templates API endpoint added.
404
+
405
+
406
+ [2021-08-25] Version 5.58.1
407
+ ---------------------------
408
+ **Api**
409
+ - Add Programmabled Voice SIP Refer call transfers (`calls-transfers`) to usage records
410
+ - Add Flex Voice Usage category (`flex-usage`) to usage records
411
+
412
+ **Conversations**
413
+ - Add `Order` query parameter to Message resource read operation
414
+
415
+ **Insights**
416
+ - Added `partial` to enum processing_state_request
417
+ - Added abnormal session filter in Call Summaries
418
+
419
+ **Messaging**
420
+ - Add brand_registration_sid as an optional query param for us_app_to_person_usecase api
421
+
422
+ **Pricing**
423
+ - add trunking_numbers resource (v2)
424
+ - add trunking_country resource (v2)
425
+
426
+ **Verify**
427
+ - Changed to private beta the `TemplateSid` optional parameter on Verification creation.
428
+ - Added the optional parameter `Order` to the list Challenges endpoint to define the list order.
429
+
430
+
431
+ [2021-08-11] Version 5.58.0
432
+ ---------------------------
433
+ **Library - Chore**
434
+ - [PR #566](https://github.com/twilio/twilio-ruby/pull/566): integrate sonarcloud. Thanks to [@shwetha-manvinkurke](https://github.com/shwetha-manvinkurke)!
435
+
436
+ **Library - Docs**
437
+ - [PR #565](https://github.com/twilio/twilio-ruby/pull/565): update mms example to use media_url. Thanks to [@cnorm35](https://github.com/cnorm35)!
438
+
439
+ **Api**
440
+ - Corrected the `price`, `call_sid_to_coach`, and `uri` data types for Conference, Participant, and Recording **(breaking change)**
441
+ - Made documentation for property `time_limit` in the call api public. **(breaking change)**
442
+ - Added `domain_sid` in sip_credential_list_mapping and sip_ip_access_control_list_mapping APIs **(breaking change)**
443
+
444
+ **Insights**
445
+ - Added new endpoint to fetch Call Summaries
446
+
447
+ **Messaging**
448
+ - Add brand_type field to a2p brand_registration api
449
+ - Revert brand registration api update to add brand_type field
450
+ - Add brand_type field to a2p brand_registration api
451
+
452
+ **Taskrouter**
453
+ - Add `X-Rate-Limit-Limit`, `X-Rate-Limit-Remaining`, and `X-Rate-Limit-Config` as Response Headers to all TaskRouter endpoints
454
+
455
+ **Verify**
456
+ - Add `TemplateSid` optional parameter on Verification creation.
457
+ - Include `whatsapp` as a channel type in the verifications API.
458
+
459
+
460
+ [2021-07-28] Version 5.57.1
461
+ ---------------------------
462
+ **Conversations**
463
+ - Expose ParticipantConversations resource
464
+
465
+ **Taskrouter**
466
+ - Adding `links` to the activity resource
467
+
468
+ **Verify**
469
+ - Added a `Version` to Verify Factors `Webhooks` to add new fields without breaking old Webhooks.
470
+
471
+
472
+ [2021-07-14] Version 5.57.0
473
+ ---------------------------
474
+ **Conversations**
475
+ - Changed `last_read_message_index` and `unread_messages_count` type in User Conversation's resource **(breaking change)**
476
+ - Expose UserConversations resource
477
+
478
+ **Messaging**
479
+ - Add brand_score field to brand registration responses
480
+
481
+
482
+ [2021-06-30] Version 5.56.0
483
+ ---------------------------
484
+ **Library - Feature**
485
+ - [PR #559](https://github.com/twilio/twilio-ruby/pull/559): Add `Twilio::HTTP::Client#configure_connection`. Thanks to [@darwinShopify](https://github.com/darwinShopify)!
486
+ - [PR #558](https://github.com/twilio/twilio-ruby/pull/558): Autoload Twilio::REST and Twilio::HTTP. Thanks to [@gmcgibbon](https://github.com/gmcgibbon)!
487
+
488
+ **Conversations**
489
+ - Read-only Conversation Email Binding property `binding`
490
+
491
+ **Supersim**
492
+ - Add Billing Period resource for the Super Sim Pilot
493
+ - Add List endpoint to Billing Period resource for Super Sim Pilot
494
+ - Add Fetch endpoint to Billing Period resource for Super Sim Pilot
495
+
496
+ **Taskrouter**
497
+ - Update `transcribe` & `transcription_configuration` form params in Reservation update endpoint to have private visibility **(breaking change)**
498
+ - Add `transcribe` & `transcription_configuration` form params to Reservation update endpoint
499
+
500
+ **Twiml**
501
+ - Add `modify` event to `statusCallbackEvent` for `<Conference>`.
502
+
503
+
504
+ [2021-06-16] Version 5.55.0
505
+ ---------------------------
506
+ **Api**
507
+ - Update `status` enum for Messages to include 'canceled'
508
+ - Update `update_status` enum for Messages to include 'canceled'
509
+
510
+ **Trusthub**
511
+ - Corrected the sid for policy sid in customer_profile_evaluation.json and trust_product_evaluation.json **(breaking change)**
512
+
513
+
514
+ [2021-06-02] Version 5.54.1
515
+ ---------------------------
516
+ **Events**
517
+ - join Sinks and Subscriptions service
518
+
519
+ **Verify**
520
+ - Improved the documentation of `challenge` adding the maximum and minimum expected lengths of some fields.
521
+ - Improve documentation regarding `notification` by updating the documentation of the field `ttl`.
522
+
523
+
524
+ [2021-05-19] Version 5.54.0
525
+ ---------------------------
526
+ **Events**
527
+ - add query param to return types filtered by Schema Id
528
+ - Add query param to return sinks filtered by status
529
+ - Add query param to return sinks used/not used by a subscription
530
+
531
+ **Messaging**
532
+ - Add fetch and delete instance endpoints to us_app_to_person api **(breaking change)**
533
+ - Remove delete list endpoint from us_app_to_person api **(breaking change)**
534
+ - Update read list endpoint to return a list of us_app_to_person compliance objects **(breaking change)**
535
+ - Add `sid` field to Preregistered US App To Person response
536
+
537
+ **Supersim**
538
+ - Mark `unique_name` in Sim, Fleet, NAP resources as not PII
539
+
540
+ **Video**
541
+ - [Composer] GA maturity level
542
+
543
+
544
+ [2021-05-05] Version 5.53.0
545
+ ---------------------------
546
+ **Library - Fix**
547
+ - [PR #554](https://github.com/twilio/twilio-ruby/pull/554): JSON parser error on timeout response. Thanks to [@Maychell](https://github.com/Maychell)!
548
+
549
+ **Api**
550
+ - Corrected the data types for feedback summary fields **(breaking change)**
551
+ - Update the conference participant create `from` and `to` param to be endpoint type for supporting client identifier and sip address
552
+
553
+ **Bulkexports**
554
+ - promoting API maturity to GA
555
+
556
+ **Events**
557
+ - Add endpoint to update description in sink
558
+ - Remove beta-feature account flag
559
+
560
+ **Messaging**
561
+ - Update `status` field in us_app_to_person api to `campaign_status` **(breaking change)**
562
+
563
+ **Verify**
564
+ - Improve documentation regarding `push` factor and include extra information about `totp` factor.
565
+
566
+
4
567
  [2021-04-21] Version 5.52.0
5
568
  ---------------------------
6
569
  **Api**
data/Gemfile CHANGED
@@ -1,2 +1,3 @@
1
1
  source 'https://rubygems.org'
2
+ gem 'simplecov', require: false, group: :test
2
3
  gemspec
data/Makefile CHANGED
@@ -3,31 +3,28 @@
3
3
  githooks:
4
4
  ln -sf ../../githooks/pre-commit .git/hooks/pre-commit
5
5
 
6
- install: githooks
6
+ install:
7
7
  bundle install --with development; bundle exec rake install
8
8
 
9
- test: lint
9
+ test:
10
10
  bundle exec rake spec
11
11
 
12
- lint:
13
- rubocop --cache true --parallel
14
-
15
12
  docs:
16
- yard doc --output-dir ./doc
13
+ bundle exec yard doc --output-dir ./doc
17
14
 
18
15
  authors:
19
16
  echo "Authors\n=======\n\nA huge thanks to all of our contributors:\n\n" > AUTHORS.md
20
17
  git log --raw | grep "^Author: " | cut -d ' ' -f2- | cut -d '<' -f1 | sed 's/^/- /' | sort | uniq >> AUTHORS.md
21
18
 
22
19
  API_DEFINITIONS_SHA=$(shell git log --oneline | grep Regenerated | head -n1 | cut -d ' ' -f 5)
20
+ CURRENT_TAG=$(shell [[ "${GITHUB_TAG}" == *"-rc"* ]] && echo "rc" || echo "latest")
23
21
  docker-build:
24
22
  docker build -t twilio/twilio-ruby .
25
- docker tag twilio/twilio-ruby twilio/twilio-ruby:${TRAVIS_TAG}
23
+ docker tag twilio/twilio-ruby twilio/twilio-ruby:${GITHUB_TAG}
26
24
  docker tag twilio/twilio-ruby twilio/twilio-ruby:apidefs-${API_DEFINITIONS_SHA}
27
- docker tag twilio/twilio-ruby twilio/twilio-ruby:latest
25
+ docker tag twilio/twilio-ruby twilio/twilio-ruby:${CURRENT_TAG}
28
26
 
29
27
  docker-push:
30
- echo "${DOCKER_PASSWORD}" | docker login -u "${DOCKER_USERNAME}" --password-stdin
31
- docker push twilio/twilio-ruby:${TRAVIS_TAG}
28
+ docker push twilio/twilio-ruby:${GITHUB_TAG}
32
29
  docker push twilio/twilio-ruby:apidefs-${API_DEFINITIONS_SHA}
33
- docker push twilio/twilio-ruby:latest
30
+ docker push twilio/twilio-ruby:${CURRENT_TAG}
data/README.md CHANGED
@@ -1,11 +1,9 @@
1
1
  # twilio-ruby
2
2
 
3
- [![Build Status](https://img.shields.io/travis/com/twilio/twilio-ruby.svg)][travis]
3
+ [![Tests](https://github.com/twilio/twilio-ruby/actions/workflows/test-and-deploy.yml/badge.svg)][github-actions]
4
4
  [![Gem Version](https://img.shields.io/gem/v/twilio-ruby.svg)](https://rubygems.org/gems/twilio-ruby)
5
5
  [![Learn with TwilioQuest](https://img.shields.io/static/v1?label=TwilioQuest&message=Learn%20to%20contribute%21&color=F22F46&labelColor=1f243c&style=flat-square&logo=data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAIAAAACACAMAAAD04JH5AAAASFBMVEUAAAAZGRkcHBwjIyMoKCgAAABgYGBoaGiAgICMjIyzs7PJycnMzMzNzc3UoBfd3d3m5ubqrhfrMEDu7u739/f4vSb/3AD///9tbdyEAAAABXRSTlMAAAAAAMJrBrEAAAKoSURBVHgB7ZrRcuI6EESdyxXGYoNFvMD//+l2bSszRgyUYpFAsXOeiJGmj4NkuWx1Qeh+Ekl9DgEXOBwOx+Px5xyQhDykfgq4wG63MxxaR4ddIkg6Ul3g84vCIcjPBA5gmUMeXESrlukuoK33+33uID8TWeLAdOWsKpJYzwVMB7bOzYSGOciyUlXSn0/ABXTosJ1M1SbypZ4O4MbZuIDMU02PMbauhhHMHXbmebmALIiEbbbbbUrpF1gwE9kFfRNAJaP+FQEXCCTGyJ4ngDrjOFo3jEL5JdqjF/pueR4cCeCGgAtwmuRS6gDwaRiGvu+DMFwSBLTE3+jF8JyuV1okPZ+AC4hDFhCHyHQjdjPHUKFDlHSJkHQXMB3KpSwXNGJPcwwTdZiXlRN0gSp0zpWxNtM0beYE0nRH6QIbO7rawwXaBYz0j78gxjokDuv12gVeUuBD0MDi0OQCLvDaAho4juP1Q/jkAncXqIcCfd+7gAu4QLMACCLxpRsSuQh0igu0C9Svhi7weAGZg50L3IE3cai4IfkNZAC8dfdhsUD3CgKBVC9JE5ABAFzg4QL/taYPAAWrHdYcgfLaIgAXWJ7OV38n1LEF8tt2TH29E+QAoDoO5Ve/LtCQDmKM9kPbvCEBApK+IXzbcSJ0cIGF6e8gpcRhUDogWZ8JnaWjPXc/fNnBBUKRngiHgTUSivSzDRDgHZQOLvBQgf8rRt+VdBUUhwkU6VpJ+xcOwQUqZr+mR0kvBUgv6cB4+37hQAkXqE8PwGisGhJtN4xAHMzrsgvI7rccXqSvKh6jltGlrOHA3Xk1At3LC4QiPdX9/0ndHpGVvTjR4bZA1ypAKgVcwE5vx74ulwIugDt8e/X7JgfkucBMIAr26ndnB4UCLnDOqvteQsHlgX9N4A+c4cW3DXSPbwAAAABJRU5ErkJggg==)](https://twil.io/learn-open-source)
6
6
 
7
- **The default branch name for this repository has been changed to `main` as of 07/27/2020.**
8
-
9
7
  ## Documentation
10
8
 
11
9
  The documentation for the Twilio API can be found [here][apidocs].
@@ -25,6 +23,7 @@ This library supports the following Ruby implementations:
25
23
  * Ruby 2.6
26
24
  * Ruby 2.7
27
25
  * Ruby 3.0
26
+ * Ruby 3.1
28
27
 
29
28
  ### Migrating from 4.x
30
29
 
@@ -35,13 +34,13 @@ This library supports the following Ruby implementations:
35
34
  To install using [Bundler][bundler] grab the latest stable version:
36
35
 
37
36
  ```ruby
38
- gem 'twilio-ruby', '~> 5.52.0'
37
+ gem 'twilio-ruby', '~> 5.67.3'
39
38
  ```
40
39
 
41
40
  To manually install `twilio-ruby` via [Rubygems][rubygems] simply gem install:
42
41
 
43
42
  ```bash
44
- gem install twilio-ruby -v 5.52.0
43
+ gem install twilio-ruby -v 5.67.3
45
44
  ```
46
45
 
47
46
  To build and install the development branch yourself from the latest source:
@@ -158,6 +157,14 @@ message_sid = 'SMxxxxxxxxxxxxxxxxxxxxxxxxxxxxx'
158
157
 
159
158
  To use a custom HTTP client with this helper library, please see the [Twilio documentation](https://www.twilio.com/docs/libraries/ruby/custom-http-clients).
160
159
 
160
+ To apply customizations such as middleware, you can use the `configure_connection` method like so:
161
+
162
+ ```ruby
163
+ @client.http_client.configure_connection do |faraday|
164
+ faraday.use SomeMiddleware
165
+ end
166
+ ```
167
+
161
168
  ### Handling Errors
162
169
 
163
170
  ```ruby
@@ -249,7 +256,7 @@ If you've instead found a bug in the library or would like new features added, g
249
256
  [bundler]: https://bundler.io
250
257
  [rubygems]: https://rubygems.org
251
258
  [gem]: https://rubygems.org/gems/twilio
252
- [travis]: https://travis-ci.com/twilio/twilio-ruby
259
+ [github-actions]: https://github.com/twilio/twilio-ruby/actions/workflows/test-and-deploy.yml
253
260
  [upgrade]: https://github.com/twilio/twilio-ruby/wiki/Ruby-Version-5.x-Upgrade-Guide
254
261
  [issues]: https://github.com/twilio/twilio-ruby/issues
255
262
  [faraday]: https://github.com/lostisland/faraday
data/examples/examples.rb CHANGED
@@ -69,7 +69,7 @@ puts @client.messages('SMXXXXXXXX').fetch.body
69
69
  @client.messages.create(
70
70
  from: '+14159341234',
71
71
  to: '+16105557069',
72
- media_urls: 'http://example.com/media.png'
72
+ media_url: 'http://example.com/media.png'
73
73
  )
74
74
 
75
75
  ################ PHONE NUMBERS ################