twilio-ruby 5.25.4 → 5.26.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.rubocop.yml +1 -3
- data/.travis.yml +3 -0
- data/CHANGES.md +24 -0
- data/README.md +22 -14
- data/lib/twilio-ruby/http/http_client.rb +4 -3
- data/lib/twilio-ruby/rest/accounts/v1/credential/aws.rb +2 -2
- data/lib/twilio-ruby/rest/accounts/v1/credential/public_key.rb +2 -2
- data/lib/twilio-ruby/rest/api/v2010/account/address.rb +2 -2
- data/lib/twilio-ruby/rest/api/v2010/account/application.rb +2 -2
- data/lib/twilio-ruby/rest/api/v2010/account/call.rb +10 -4
- data/lib/twilio-ruby/rest/api/v2010/account/call/feedback_summary.rb +2 -2
- data/lib/twilio-ruby/rest/api/v2010/account/call/notification.rb +2 -2
- data/lib/twilio-ruby/rest/api/v2010/account/call/recording.rb +2 -2
- data/lib/twilio-ruby/rest/api/v2010/account/conference/participant.rb +4 -4
- data/lib/twilio-ruby/rest/api/v2010/account/conference/recording.rb +2 -2
- data/lib/twilio-ruby/rest/api/v2010/account/connect_app.rb +2 -2
- data/lib/twilio-ruby/rest/api/v2010/account/incoming_phone_number.rb +2 -2
- data/lib/twilio-ruby/rest/api/v2010/account/incoming_phone_number/assigned_add_on.rb +2 -2
- data/lib/twilio-ruby/rest/api/v2010/account/key.rb +2 -2
- data/lib/twilio-ruby/rest/api/v2010/account/message.rb +2 -2
- data/lib/twilio-ruby/rest/api/v2010/account/message/media.rb +2 -2
- data/lib/twilio-ruby/rest/api/v2010/account/notification.rb +2 -2
- data/lib/twilio-ruby/rest/api/v2010/account/outgoing_caller_id.rb +2 -2
- data/lib/twilio-ruby/rest/api/v2010/account/queue.rb +2 -2
- data/lib/twilio-ruby/rest/api/v2010/account/recording.rb +2 -2
- data/lib/twilio-ruby/rest/api/v2010/account/recording/add_on_result.rb +2 -2
- data/lib/twilio-ruby/rest/api/v2010/account/recording/add_on_result/payload.rb +2 -2
- data/lib/twilio-ruby/rest/api/v2010/account/recording/transcription.rb +2 -2
- data/lib/twilio-ruby/rest/api/v2010/account/signing_key.rb +2 -2
- data/lib/twilio-ruby/rest/api/v2010/account/sip/credential_list.rb +2 -2
- data/lib/twilio-ruby/rest/api/v2010/account/sip/credential_list/credential.rb +2 -2
- data/lib/twilio-ruby/rest/api/v2010/account/sip/domain.rb +2 -2
- data/lib/twilio-ruby/rest/api/v2010/account/sip/domain/auth_types/auth_calls_mapping/auth_calls_credential_list_mapping.rb +2 -2
- data/lib/twilio-ruby/rest/api/v2010/account/sip/domain/auth_types/auth_calls_mapping/auth_calls_ip_access_control_list_mapping.rb +2 -2
- data/lib/twilio-ruby/rest/api/v2010/account/sip/domain/auth_types/auth_registrations_mapping/auth_registrations_credential_list_mapping.rb +2 -2
- data/lib/twilio-ruby/rest/api/v2010/account/sip/domain/credential_list_mapping.rb +2 -2
- data/lib/twilio-ruby/rest/api/v2010/account/sip/domain/ip_access_control_list_mapping.rb +2 -2
- data/lib/twilio-ruby/rest/api/v2010/account/sip/ip_access_control_list.rb +2 -2
- data/lib/twilio-ruby/rest/api/v2010/account/sip/ip_access_control_list/ip_address.rb +2 -2
- data/lib/twilio-ruby/rest/api/v2010/account/transcription.rb +2 -2
- data/lib/twilio-ruby/rest/api/v2010/account/usage/trigger.rb +2 -2
- data/lib/twilio-ruby/rest/authy/v1/service.rb +2 -2
- data/lib/twilio-ruby/rest/authy/v1/service/entity.rb +2 -2
- data/lib/twilio-ruby/rest/authy/v1/service/entity/factor.rb +2 -2
- data/lib/twilio-ruby/rest/authy/v1/service/entity/factor/challenge.rb +2 -2
- data/lib/twilio-ruby/rest/autopilot/v1/assistant.rb +2 -2
- data/lib/twilio-ruby/rest/autopilot/v1/assistant/field_type.rb +2 -2
- data/lib/twilio-ruby/rest/autopilot/v1/assistant/field_type/field_value.rb +2 -2
- data/lib/twilio-ruby/rest/autopilot/v1/assistant/model_build.rb +2 -2
- data/lib/twilio-ruby/rest/autopilot/v1/assistant/query.rb +2 -2
- data/lib/twilio-ruby/rest/autopilot/v1/assistant/task.rb +2 -2
- data/lib/twilio-ruby/rest/autopilot/v1/assistant/task/field.rb +2 -2
- data/lib/twilio-ruby/rest/autopilot/v1/assistant/task/sample.rb +2 -2
- data/lib/twilio-ruby/rest/autopilot/v1/assistant/webhook.rb +2 -2
- data/lib/twilio-ruby/rest/chat/v1/credential.rb +2 -2
- data/lib/twilio-ruby/rest/chat/v1/service.rb +2 -2
- data/lib/twilio-ruby/rest/chat/v1/service/channel.rb +2 -2
- data/lib/twilio-ruby/rest/chat/v1/service/channel/invite.rb +2 -2
- data/lib/twilio-ruby/rest/chat/v1/service/channel/member.rb +2 -2
- data/lib/twilio-ruby/rest/chat/v1/service/channel/message.rb +2 -2
- data/lib/twilio-ruby/rest/chat/v1/service/role.rb +2 -2
- data/lib/twilio-ruby/rest/chat/v1/service/user.rb +2 -2
- data/lib/twilio-ruby/rest/chat/v2.rb +2 -4
- data/lib/twilio-ruby/rest/chat/v2/credential.rb +12 -14
- data/lib/twilio-ruby/rest/chat/v2/service.rb +35 -43
- data/lib/twilio-ruby/rest/chat/v2/service/binding.rb +17 -19
- data/lib/twilio-ruby/rest/chat/v2/service/channel.rb +28 -24
- data/lib/twilio-ruby/rest/chat/v2/service/channel/invite.rb +17 -16
- data/lib/twilio-ruby/rest/chat/v2/service/channel/member.rb +43 -44
- data/lib/twilio-ruby/rest/chat/v2/service/channel/message.rb +38 -37
- data/lib/twilio-ruby/rest/chat/v2/service/channel/webhook.rb +25 -26
- data/lib/twilio-ruby/rest/chat/v2/service/role.rb +19 -17
- data/lib/twilio-ruby/rest/chat/v2/service/user.rb +17 -17
- data/lib/twilio-ruby/rest/chat/v2/service/user/user_binding.rb +25 -27
- data/lib/twilio-ruby/rest/chat/v2/service/user/user_channel.rb +8 -5
- data/lib/twilio-ruby/rest/conversations/v1/conversation.rb +32 -6
- data/lib/twilio-ruby/rest/conversations/v1/conversation/message.rb +30 -6
- data/lib/twilio-ruby/rest/conversations/v1/conversation/participant.rb +27 -6
- data/lib/twilio-ruby/rest/conversations/v1/conversation/webhook.rb +2 -2
- data/lib/twilio-ruby/rest/fax/v1/fax.rb +2 -2
- data/lib/twilio-ruby/rest/fax/v1/fax/fax_media.rb +2 -2
- data/lib/twilio-ruby/rest/flex_api/v1/channel.rb +2 -2
- data/lib/twilio-ruby/rest/flex_api/v1/configuration.rb +14 -0
- data/lib/twilio-ruby/rest/flex_api/v1/flex_flow.rb +2 -2
- data/lib/twilio-ruby/rest/flex_api/v1/web_channel.rb +2 -2
- data/lib/twilio-ruby/rest/ip_messaging/v1/credential.rb +2 -2
- data/lib/twilio-ruby/rest/ip_messaging/v1/service.rb +2 -2
- data/lib/twilio-ruby/rest/ip_messaging/v1/service/channel.rb +2 -2
- data/lib/twilio-ruby/rest/ip_messaging/v1/service/channel/invite.rb +2 -2
- data/lib/twilio-ruby/rest/ip_messaging/v1/service/channel/member.rb +2 -2
- data/lib/twilio-ruby/rest/ip_messaging/v1/service/channel/message.rb +2 -2
- data/lib/twilio-ruby/rest/ip_messaging/v1/service/role.rb +2 -2
- data/lib/twilio-ruby/rest/ip_messaging/v1/service/user.rb +2 -2
- data/lib/twilio-ruby/rest/ip_messaging/v2.rb +2 -4
- data/lib/twilio-ruby/rest/ip_messaging/v2/credential.rb +12 -14
- data/lib/twilio-ruby/rest/ip_messaging/v2/service.rb +35 -43
- data/lib/twilio-ruby/rest/ip_messaging/v2/service/binding.rb +17 -19
- data/lib/twilio-ruby/rest/ip_messaging/v2/service/channel.rb +28 -24
- data/lib/twilio-ruby/rest/ip_messaging/v2/service/channel/invite.rb +17 -16
- data/lib/twilio-ruby/rest/ip_messaging/v2/service/channel/member.rb +43 -44
- data/lib/twilio-ruby/rest/ip_messaging/v2/service/channel/message.rb +38 -37
- data/lib/twilio-ruby/rest/ip_messaging/v2/service/channel/webhook.rb +25 -26
- data/lib/twilio-ruby/rest/ip_messaging/v2/service/role.rb +19 -17
- data/lib/twilio-ruby/rest/ip_messaging/v2/service/user.rb +17 -17
- data/lib/twilio-ruby/rest/ip_messaging/v2/service/user/user_binding.rb +25 -27
- data/lib/twilio-ruby/rest/ip_messaging/v2/service/user/user_channel.rb +8 -5
- data/lib/twilio-ruby/rest/messaging/v1/service.rb +2 -2
- data/lib/twilio-ruby/rest/messaging/v1/service/alpha_sender.rb +2 -2
- data/lib/twilio-ruby/rest/messaging/v1/service/phone_number.rb +2 -2
- data/lib/twilio-ruby/rest/messaging/v1/service/short_code.rb +2 -2
- data/lib/twilio-ruby/rest/messaging/v1/session.rb +2 -2
- data/lib/twilio-ruby/rest/messaging/v1/session/message.rb +2 -2
- data/lib/twilio-ruby/rest/messaging/v1/session/participant.rb +2 -2
- data/lib/twilio-ruby/rest/messaging/v1/session/webhook.rb +2 -2
- data/lib/twilio-ruby/rest/monitor/v1/alert.rb +2 -2
- data/lib/twilio-ruby/rest/notify/v1/credential.rb +2 -2
- data/lib/twilio-ruby/rest/notify/v1/service.rb +2 -2
- data/lib/twilio-ruby/rest/notify/v1/service/binding.rb +2 -2
- data/lib/twilio-ruby/rest/preview/deployed_devices/fleet.rb +2 -2
- data/lib/twilio-ruby/rest/preview/deployed_devices/fleet/certificate.rb +2 -2
- data/lib/twilio-ruby/rest/preview/deployed_devices/fleet/deployment.rb +2 -2
- data/lib/twilio-ruby/rest/preview/deployed_devices/fleet/device.rb +2 -2
- data/lib/twilio-ruby/rest/preview/deployed_devices/fleet/key.rb +2 -2
- data/lib/twilio-ruby/rest/preview/hosted_numbers/hosted_number_order.rb +2 -2
- data/lib/twilio-ruby/rest/preview/marketplace/installed_add_on.rb +2 -2
- data/lib/twilio-ruby/rest/preview/sync/service.rb +2 -2
- data/lib/twilio-ruby/rest/preview/sync/service/document.rb +2 -2
- data/lib/twilio-ruby/rest/preview/sync/service/document/document_permission.rb +2 -2
- data/lib/twilio-ruby/rest/preview/sync/service/sync_list.rb +2 -2
- data/lib/twilio-ruby/rest/preview/sync/service/sync_list/sync_list_item.rb +2 -2
- data/lib/twilio-ruby/rest/preview/sync/service/sync_list/sync_list_permission.rb +2 -2
- data/lib/twilio-ruby/rest/preview/sync/service/sync_map.rb +2 -2
- data/lib/twilio-ruby/rest/preview/sync/service/sync_map/sync_map_item.rb +2 -2
- data/lib/twilio-ruby/rest/preview/sync/service/sync_map/sync_map_permission.rb +2 -2
- data/lib/twilio-ruby/rest/preview/trusted_comms/branded_call.rb +10 -2
- data/lib/twilio-ruby/rest/preview/understand/assistant.rb +2 -2
- data/lib/twilio-ruby/rest/preview/understand/assistant/field_type.rb +2 -2
- data/lib/twilio-ruby/rest/preview/understand/assistant/field_type/field_value.rb +2 -2
- data/lib/twilio-ruby/rest/preview/understand/assistant/model_build.rb +2 -2
- data/lib/twilio-ruby/rest/preview/understand/assistant/query.rb +2 -2
- data/lib/twilio-ruby/rest/preview/understand/assistant/task.rb +2 -2
- data/lib/twilio-ruby/rest/preview/understand/assistant/task/field.rb +2 -2
- data/lib/twilio-ruby/rest/preview/understand/assistant/task/sample.rb +2 -2
- data/lib/twilio-ruby/rest/preview/wireless/rate_plan.rb +2 -2
- data/lib/twilio-ruby/rest/proxy/v1/service.rb +2 -2
- data/lib/twilio-ruby/rest/proxy/v1/service/phone_number.rb +2 -2
- data/lib/twilio-ruby/rest/proxy/v1/service/session.rb +2 -2
- data/lib/twilio-ruby/rest/proxy/v1/service/session/interaction.rb +2 -2
- data/lib/twilio-ruby/rest/proxy/v1/service/session/participant.rb +2 -2
- data/lib/twilio-ruby/rest/proxy/v1/service/short_code.rb +2 -2
- data/lib/twilio-ruby/rest/serverless/v1/service.rb +2 -2
- data/lib/twilio-ruby/rest/serverless/v1/service/asset.rb +2 -2
- data/lib/twilio-ruby/rest/serverless/v1/service/build.rb +2 -2
- data/lib/twilio-ruby/rest/serverless/v1/service/environment.rb +2 -2
- data/lib/twilio-ruby/rest/serverless/v1/service/environment/variable.rb +2 -2
- data/lib/twilio-ruby/rest/serverless/v1/service/function.rb +2 -2
- data/lib/twilio-ruby/rest/studio.rb +2 -1
- data/lib/twilio-ruby/rest/studio/v1.rb +1 -1
- data/lib/twilio-ruby/rest/studio/v1/flow.rb +13 -13
- data/lib/twilio-ruby/rest/studio/v1/flow/engagement.rb +25 -24
- data/lib/twilio-ruby/rest/studio/v1/flow/engagement/engagement_context.rb +11 -11
- data/lib/twilio-ruby/rest/studio/v1/flow/engagement/step.rb +20 -20
- data/lib/twilio-ruby/rest/studio/v1/flow/engagement/step/step_context.rb +15 -17
- data/lib/twilio-ruby/rest/studio/v1/flow/execution.rb +44 -38
- data/lib/twilio-ruby/rest/studio/v1/flow/execution/execution_context.rb +12 -11
- data/lib/twilio-ruby/rest/studio/v1/flow/execution/execution_step.rb +21 -20
- data/lib/twilio-ruby/rest/studio/v1/flow/execution/execution_step/execution_step_context.rb +18 -17
- data/lib/twilio-ruby/rest/sync.rb +2 -1
- data/lib/twilio-ruby/rest/sync/v1.rb +1 -1
- data/lib/twilio-ruby/rest/sync/v1/service.rb +90 -93
- data/lib/twilio-ruby/rest/sync/v1/service/document.rb +46 -33
- data/lib/twilio-ruby/rest/sync/v1/service/document/document_permission.rb +36 -38
- data/lib/twilio-ruby/rest/sync/v1/service/sync_list.rb +44 -31
- data/lib/twilio-ruby/rest/sync/v1/service/sync_list/sync_list_item.rb +94 -76
- data/lib/twilio-ruby/rest/sync/v1/service/sync_list/sync_list_permission.rb +37 -38
- data/lib/twilio-ruby/rest/sync/v1/service/sync_map.rb +45 -33
- data/lib/twilio-ruby/rest/sync/v1/service/sync_map/sync_map_item.rb +98 -81
- data/lib/twilio-ruby/rest/sync/v1/service/sync_map/sync_map_permission.rb +35 -38
- data/lib/twilio-ruby/rest/sync/v1/service/sync_stream.rb +39 -28
- data/lib/twilio-ruby/rest/sync/v1/service/sync_stream/stream_message.rb +14 -12
- data/lib/twilio-ruby/rest/taskrouter/v1/workspace.rb +2 -2
- data/lib/twilio-ruby/rest/taskrouter/v1/workspace/activity.rb +2 -2
- data/lib/twilio-ruby/rest/taskrouter/v1/workspace/task.rb +2 -2
- data/lib/twilio-ruby/rest/taskrouter/v1/workspace/task_channel.rb +2 -2
- data/lib/twilio-ruby/rest/taskrouter/v1/workspace/task_queue.rb +2 -2
- data/lib/twilio-ruby/rest/taskrouter/v1/workspace/worker.rb +2 -2
- data/lib/twilio-ruby/rest/taskrouter/v1/workspace/workflow.rb +2 -2
- data/lib/twilio-ruby/rest/trunking/v1/trunk.rb +2 -2
- data/lib/twilio-ruby/rest/trunking/v1/trunk/credential_list.rb +2 -2
- data/lib/twilio-ruby/rest/trunking/v1/trunk/ip_access_control_list.rb +2 -2
- data/lib/twilio-ruby/rest/trunking/v1/trunk/origination_url.rb +2 -2
- data/lib/twilio-ruby/rest/trunking/v1/trunk/phone_number.rb +2 -2
- data/lib/twilio-ruby/rest/trunking/v1/trunk/terminating_sip_domain.rb +2 -2
- data/lib/twilio-ruby/rest/verify/v2/service.rb +2 -2
- data/lib/twilio-ruby/rest/verify/v2/service/messaging_configuration.rb +2 -2
- data/lib/twilio-ruby/rest/verify/v2/service/rate_limit.rb +3 -3
- data/lib/twilio-ruby/rest/verify/v2/service/rate_limit/bucket.rb +2 -2
- data/lib/twilio-ruby/rest/video/v1/composition.rb +2 -2
- data/lib/twilio-ruby/rest/video/v1/composition_hook.rb +2 -2
- data/lib/twilio-ruby/rest/video/v1/recording.rb +2 -2
- data/lib/twilio-ruby/rest/video/v1/room/recording.rb +2 -2
- data/lib/twilio-ruby/rest/wireless.rb +3 -3
- data/lib/twilio-ruby/rest/wireless/v1.rb +3 -6
- data/lib/twilio-ruby/rest/wireless/v1/command.rb +54 -52
- data/lib/twilio-ruby/rest/wireless/v1/rate_plan.rb +64 -65
- data/lib/twilio-ruby/rest/wireless/v1/sim.rb +147 -141
- data/lib/twilio-ruby/rest/wireless/v1/sim/data_session.rb +34 -28
- data/lib/twilio-ruby/rest/wireless/v1/sim/usage_record.rb +32 -32
- data/lib/twilio-ruby/rest/wireless/v1/usage_record.rb +19 -19
- data/lib/twilio-ruby/version.rb +1 -1
- data/spec/integration/api/v2010/account/call_spec.rb +45 -0
- data/spec/integration/api/v2010/account/message_spec.rb +37 -0
- data/spec/integration/conversations/v1/conversation/message_spec.rb +5 -0
- data/spec/integration/conversations/v1/conversation/participant_spec.rb +8 -10
- data/spec/integration/conversations/v1/conversation_spec.rb +4 -0
- data/spec/integration/flex_api/v1/configuration_spec.rb +24 -0
- data/spec/integration/preview/trusted_comms/branded_call_spec.rb +1 -0
- data/spec/integration/verify/v2/service/verification_spec.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 55c89da2b5143eb59bd22cd782d0e30f6dbb6aaceccf75c7c8f39f4909025163
|
4
|
+
data.tar.gz: 42e084bbdade6e00d00a2bc48d349f3192ae0743b0fa4e94e762303845aa2a8a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 96053dc3a647f44894727c1497d0dc866a27bae51f84bfddf53a85bc9a306250b929f29e271ddcd7a61ed46f65bb541fbe8ba6e851303d4015ef8a634fa531f0
|
7
|
+
data.tar.gz: 8021f6aad6b54029a6e5ded5280e72b8d918d6c1c74e3819cccf8deb809df3f3340e3a762cbe7d25354de17e0e370fab4edeb0ec8419d807aa76e3a7108ae10b
|
data/.rubocop.yml
CHANGED
@@ -8,6 +8,7 @@ AllCops:
|
|
8
8
|
- 'lib/twilio-ruby/version.rb'
|
9
9
|
- 'lib/twilio-ruby/twiml/**/*'
|
10
10
|
- 'lib/twilio-ruby/util/configuration.rb'
|
11
|
+
- 'vendor/**/*'
|
11
12
|
|
12
13
|
Metrics/LineLength:
|
13
14
|
Max: 120
|
@@ -18,9 +19,6 @@ Metrics/BlockLength:
|
|
18
19
|
Exclude:
|
19
20
|
- 'spec/**/*'
|
20
21
|
|
21
|
-
Metrics/AbcSize:
|
22
|
-
Enabled: false
|
23
|
-
|
24
22
|
Layout/IndentHeredoc:
|
25
23
|
Enabled: false
|
26
24
|
|
data/.travis.yml
CHANGED
data/CHANGES.md
CHANGED
@@ -1,6 +1,30 @@
|
|
1
1
|
twilio-ruby changelog
|
2
2
|
=====================
|
3
3
|
|
4
|
+
[2019-09-04] Version 5.26.0
|
5
|
+
----------------------------
|
6
|
+
**Library**
|
7
|
+
- [PR #463](https://github.com/twilio/twilio-ruby/pull/463): Reduce line length to satisfy rubocop constraints. Thanks to [@igracia](https://github.com/igracia)!
|
8
|
+
- [PR #399](https://github.com/twilio/twilio-ruby/pull/399): breaking: Added proxy protocol to HTTP Client constructor. Thanks to [@po5i](https://github.com/po5i)! **(breaking change)**
|
9
|
+
- [PR #462](https://github.com/twilio/twilio-ruby/pull/462): Correct 'delete' method doc to indicate 'false' when resource not deleted. Thanks to [@childish-sambino](https://github.com/childish-sambino)!
|
10
|
+
- [PR #441](https://github.com/twilio/twilio-ruby/pull/441): Link to actual documentation. Thanks to [@alexford](https://github.com/alexford)!
|
11
|
+
|
12
|
+
**Api**
|
13
|
+
- Pass Twiml in call update request
|
14
|
+
|
15
|
+
**Conversations**
|
16
|
+
- Add attributes to Conversations resources
|
17
|
+
|
18
|
+
**Flex**
|
19
|
+
- Adding `features_enabled` and `serverless_service_sids` to Flex Configuration
|
20
|
+
|
21
|
+
**Messaging**
|
22
|
+
- Message API required params updated **(breaking change)**
|
23
|
+
|
24
|
+
**Preview**
|
25
|
+
- Added support for the optional `CallSid` to `/BrandedCalls` endpoint
|
26
|
+
|
27
|
+
|
4
28
|
[2019-08-21] Version 5.25.4
|
5
29
|
----------------------------
|
6
30
|
**Library**
|
data/README.md
CHANGED
@@ -1,9 +1,13 @@
|
|
1
1
|
# twilio-ruby
|
2
2
|
|
3
|
-
[![Build Status](
|
4
|
-
[![Gem Version](
|
3
|
+
[![Build Status](https://img.shields.io/travis/twilio/twilio-ruby.svg)][travis]
|
4
|
+
[![Gem Version](https://img.shields.io/gem/v/twilio-ruby.svg)](https://rubygems.org/gems/twilio-ruby)
|
5
5
|
|
6
|
-
|
6
|
+
## Documentation
|
7
|
+
|
8
|
+
The documentation for the Twilio API can be found [here][apidocs].
|
9
|
+
|
10
|
+
The Ruby library documentation can be found [here][libdocs] and individual releases [here][refdocs].
|
7
11
|
|
8
12
|
## Recent Update
|
9
13
|
|
@@ -20,19 +24,18 @@ Developer Preview status. Such products are explicitly documented as
|
|
20
24
|
Beta/Developer Preview both in the Twilio docs and console, as well as through
|
21
25
|
in-line code documentation here in the library.
|
22
26
|
|
23
|
-
|
24
27
|
## Installation
|
25
28
|
|
26
29
|
To install using [Bundler][bundler] grab the latest stable version:
|
27
30
|
|
28
31
|
```ruby
|
29
|
-
gem 'twilio-ruby', '~> 5.
|
32
|
+
gem 'twilio-ruby', '~> 5.26.0'
|
30
33
|
```
|
31
34
|
|
32
35
|
To manually install `twilio-ruby` via [Rubygems][rubygems] simply gem install:
|
33
36
|
|
34
37
|
```bash
|
35
|
-
gem install twilio-ruby -v 5.
|
38
|
+
gem install twilio-ruby -v 5.26.0
|
36
39
|
```
|
37
40
|
|
38
41
|
To build and install the development branch yourself from the latest source:
|
@@ -44,12 +47,11 @@ make install
|
|
44
47
|
```
|
45
48
|
|
46
49
|
### Migration from 4.x
|
47
|
-
[Upgrade Guide][upgrade]
|
48
50
|
|
49
|
-
|
50
|
-
[Here][documentation]
|
51
|
+
[Upgrade Guide][upgrade]
|
51
52
|
|
52
53
|
## Docker Image
|
54
|
+
|
53
55
|
The `Dockerfile` present in this repository and its respective `twilio/twilio-ruby` Docker image are currently used by Twilio for testing purposes only.
|
54
56
|
|
55
57
|
## Getting help
|
@@ -108,6 +110,7 @@ message_sid = 'SMxxxxxxxxxxxxxxxxxxxxxxxxxxxxx'
|
|
108
110
|
```
|
109
111
|
|
110
112
|
### Customizing your HTTP Client
|
113
|
+
|
111
114
|
twilio-ruby uses [Faraday][faraday] to make HTTP requests. You can tell
|
112
115
|
Twilio::REST::Client to use any of the Faraday adapters like so:
|
113
116
|
|
@@ -145,7 +148,9 @@ capability.add_scope(incoming_scope)
|
|
145
148
|
There is a slightly more detailed document in the [Capability][capability]
|
146
149
|
section of the wiki.
|
147
150
|
|
148
|
-
|
151
|
+
### Generating TwiML
|
152
|
+
|
153
|
+
To control phone calls, your application needs to output [TwiML][twiml].
|
149
154
|
|
150
155
|
You can construct a TwiML response like this:
|
151
156
|
|
@@ -185,14 +190,17 @@ implementations:
|
|
185
190
|
- Ruby 2.3.0
|
186
191
|
- Ruby 2.2.0
|
187
192
|
|
193
|
+
[apidocs]: https://www.twilio.com/docs/api
|
194
|
+
[twiml]: https://www.twilio.com/docs/api/twiml
|
195
|
+
[libdocs]: https://www.twilio.com/docs/libraries/ruby
|
196
|
+
[refdocs]: https://twilio.github.io/twilio-ruby
|
188
197
|
[capability]: https://github.com/twilio/twilio-ruby/wiki/JWT-Tokens
|
189
198
|
[examples]: https://github.com/twilio/twilio-ruby/blob/master/examples
|
190
|
-
[documentation]: http://twilio.github.io/twilio-ruby
|
191
199
|
[wiki]: https://github.com/twilio/twilio-ruby/wiki
|
192
|
-
[bundler]:
|
193
|
-
[rubygems]:
|
200
|
+
[bundler]: https://bundler.io
|
201
|
+
[rubygems]: https://rubygems.org
|
194
202
|
[gem]: https://rubygems.org/gems/twilio
|
195
|
-
[travis]:
|
203
|
+
[travis]: https://travis-ci.org/twilio/twilio-ruby
|
196
204
|
[upgrade]: https://github.com/twilio/twilio-ruby/wiki/Ruby-Version-5.x-Upgrade-Guide
|
197
205
|
[issues]: https://github.com/twilio/twilio-ruby/issues
|
198
206
|
[faraday]: https://github.com/lostisland/faraday
|
@@ -8,8 +8,9 @@ module Twilio
|
|
8
8
|
attr_accessor :adapter
|
9
9
|
attr_reader :timeout, :last_response, :last_request
|
10
10
|
|
11
|
-
def initialize(
|
12
|
-
timeout: nil)
|
11
|
+
def initialize(proxy_prot = nil, proxy_addr = nil, proxy_port = nil, proxy_user = nil, proxy_pass = nil,
|
12
|
+
ssl_ca_file = nil, timeout: nil)
|
13
|
+
@proxy_prot = proxy_prot
|
13
14
|
@proxy_addr = proxy_addr
|
14
15
|
@proxy_port = proxy_port
|
15
16
|
@proxy_user = proxy_user
|
@@ -27,7 +28,7 @@ module Twilio
|
|
27
28
|
f.headers = request.headers
|
28
29
|
f.basic_auth(request.auth[0], request.auth[1])
|
29
30
|
if @proxy_addr
|
30
|
-
f.proxy "#{@proxy_user}:#{@proxy_pass}@#{@proxy_addr}:#{@proxy_port}"
|
31
|
+
f.proxy = "#{@proxy_prot}://#{@proxy_user}:#{@proxy_pass}@#{@proxy_addr}:#{@proxy_port}"
|
31
32
|
end
|
32
33
|
f.options.open_timeout = request.timeout || @timeout
|
33
34
|
f.options.timeout = request.timeout || @timeout
|
@@ -219,7 +219,7 @@ module Twilio
|
|
219
219
|
|
220
220
|
##
|
221
221
|
# Deletes the AwsInstance
|
222
|
-
# @return [Boolean] true if delete succeeds,
|
222
|
+
# @return [Boolean] true if delete succeeds, false otherwise
|
223
223
|
def delete
|
224
224
|
@version.delete('delete', @uri)
|
225
225
|
end
|
@@ -330,7 +330,7 @@ module Twilio
|
|
330
330
|
|
331
331
|
##
|
332
332
|
# Deletes the AwsInstance
|
333
|
-
# @return [Boolean] true if delete succeeds,
|
333
|
+
# @return [Boolean] true if delete succeeds, false otherwise
|
334
334
|
def delete
|
335
335
|
context.delete
|
336
336
|
end
|
@@ -219,7 +219,7 @@ module Twilio
|
|
219
219
|
|
220
220
|
##
|
221
221
|
# Deletes the PublicKeyInstance
|
222
|
-
# @return [Boolean] true if delete succeeds,
|
222
|
+
# @return [Boolean] true if delete succeeds, false otherwise
|
223
223
|
def delete
|
224
224
|
@version.delete('delete', @uri)
|
225
225
|
end
|
@@ -330,7 +330,7 @@ module Twilio
|
|
330
330
|
|
331
331
|
##
|
332
332
|
# Deletes the PublicKeyInstance
|
333
|
-
# @return [Boolean] true if delete succeeds,
|
333
|
+
# @return [Boolean] true if delete succeeds, false otherwise
|
334
334
|
def delete
|
335
335
|
context.delete
|
336
336
|
end
|
@@ -240,7 +240,7 @@ module Twilio
|
|
240
240
|
|
241
241
|
##
|
242
242
|
# Deletes the AddressInstance
|
243
|
-
# @return [Boolean] true if delete succeeds,
|
243
|
+
# @return [Boolean] true if delete succeeds, false otherwise
|
244
244
|
def delete
|
245
245
|
@version.delete('delete', @uri)
|
246
246
|
end
|
@@ -469,7 +469,7 @@ module Twilio
|
|
469
469
|
|
470
470
|
##
|
471
471
|
# Deletes the AddressInstance
|
472
|
-
# @return [Boolean] true if delete succeeds,
|
472
|
+
# @return [Boolean] true if delete succeeds, false otherwise
|
473
473
|
def delete
|
474
474
|
context.delete
|
475
475
|
end
|
@@ -236,7 +236,7 @@ module Twilio
|
|
236
236
|
|
237
237
|
##
|
238
238
|
# Deletes the ApplicationInstance
|
239
|
-
# @return [Boolean] true if delete succeeds,
|
239
|
+
# @return [Boolean] true if delete succeeds, false otherwise
|
240
240
|
def delete
|
241
241
|
@version.delete('delete', @uri)
|
242
242
|
end
|
@@ -520,7 +520,7 @@ module Twilio
|
|
520
520
|
|
521
521
|
##
|
522
522
|
# Deletes the ApplicationInstance
|
523
|
-
# @return [Boolean] true if delete succeeds,
|
523
|
+
# @return [Boolean] true if delete succeeds, false otherwise
|
524
524
|
def delete
|
525
525
|
context.delete
|
526
526
|
end
|
@@ -413,7 +413,7 @@ module Twilio
|
|
413
413
|
|
414
414
|
##
|
415
415
|
# Deletes the CallInstance
|
416
|
-
# @return [Boolean] true if delete succeeds,
|
416
|
+
# @return [Boolean] true if delete succeeds, false otherwise
|
417
417
|
def delete
|
418
418
|
@version.delete('delete', @uri)
|
419
419
|
end
|
@@ -462,8 +462,10 @@ module Twilio
|
|
462
462
|
# @param [String] status_callback_method The HTTP method we should use when
|
463
463
|
# requesting the `status_callback` URL. Can be: `GET` or `POST` and the default is
|
464
464
|
# `POST`. If an `application_sid` parameter is present, this parameter is ignored.
|
465
|
+
# @param [String] twiml TwiML instructions for the call Twilio will use without
|
466
|
+
# fetching Twiml from url. Twiml and url parameters are mutually exclusive
|
465
467
|
# @return [CallInstance] Updated CallInstance
|
466
|
-
def update(url: :unset, method: :unset, status: :unset, fallback_url: :unset, fallback_method: :unset, status_callback: :unset, status_callback_method: :unset)
|
468
|
+
def update(url: :unset, method: :unset, status: :unset, fallback_url: :unset, fallback_method: :unset, status_callback: :unset, status_callback_method: :unset, twiml: :unset)
|
467
469
|
data = Twilio::Values.of({
|
468
470
|
'Url' => url,
|
469
471
|
'Method' => method,
|
@@ -472,6 +474,7 @@ module Twilio
|
|
472
474
|
'FallbackMethod' => fallback_method,
|
473
475
|
'StatusCallback' => status_callback,
|
474
476
|
'StatusCallbackMethod' => status_callback_method,
|
477
|
+
'Twiml' => twiml,
|
475
478
|
})
|
476
479
|
|
477
480
|
payload = @version.update(
|
@@ -761,7 +764,7 @@ module Twilio
|
|
761
764
|
|
762
765
|
##
|
763
766
|
# Deletes the CallInstance
|
764
|
-
# @return [Boolean] true if delete succeeds,
|
767
|
+
# @return [Boolean] true if delete succeeds, false otherwise
|
765
768
|
def delete
|
766
769
|
context.delete
|
767
770
|
end
|
@@ -802,8 +805,10 @@ module Twilio
|
|
802
805
|
# @param [String] status_callback_method The HTTP method we should use when
|
803
806
|
# requesting the `status_callback` URL. Can be: `GET` or `POST` and the default is
|
804
807
|
# `POST`. If an `application_sid` parameter is present, this parameter is ignored.
|
808
|
+
# @param [String] twiml TwiML instructions for the call Twilio will use without
|
809
|
+
# fetching Twiml from url. Twiml and url parameters are mutually exclusive
|
805
810
|
# @return [CallInstance] Updated CallInstance
|
806
|
-
def update(url: :unset, method: :unset, status: :unset, fallback_url: :unset, fallback_method: :unset, status_callback: :unset, status_callback_method: :unset)
|
811
|
+
def update(url: :unset, method: :unset, status: :unset, fallback_url: :unset, fallback_method: :unset, status_callback: :unset, status_callback_method: :unset, twiml: :unset)
|
807
812
|
context.update(
|
808
813
|
url: url,
|
809
814
|
method: method,
|
@@ -812,6 +817,7 @@ module Twilio
|
|
812
817
|
fallback_method: fallback_method,
|
813
818
|
status_callback: status_callback,
|
814
819
|
status_callback_method: status_callback_method,
|
820
|
+
twiml: twiml,
|
815
821
|
)
|
816
822
|
end
|
817
823
|
|
@@ -137,7 +137,7 @@ module Twilio
|
|
137
137
|
|
138
138
|
##
|
139
139
|
# Deletes the FeedbackSummaryInstance
|
140
|
-
# @return [Boolean] true if delete succeeds,
|
140
|
+
# @return [Boolean] true if delete succeeds, false otherwise
|
141
141
|
def delete
|
142
142
|
@version.delete('delete', @uri)
|
143
143
|
end
|
@@ -298,7 +298,7 @@ module Twilio
|
|
298
298
|
|
299
299
|
##
|
300
300
|
# Deletes the FeedbackSummaryInstance
|
301
|
-
# @return [Boolean] true if delete succeeds,
|
301
|
+
# @return [Boolean] true if delete succeeds, false otherwise
|
302
302
|
def delete
|
303
303
|
context.delete
|
304
304
|
end
|
@@ -232,7 +232,7 @@ module Twilio
|
|
232
232
|
|
233
233
|
##
|
234
234
|
# Deletes the NotificationInstance
|
235
|
-
# @return [Boolean] true if delete succeeds,
|
235
|
+
# @return [Boolean] true if delete succeeds, false otherwise
|
236
236
|
def delete
|
237
237
|
@version.delete('delete', @uri)
|
238
238
|
end
|
@@ -422,7 +422,7 @@ module Twilio
|
|
422
422
|
|
423
423
|
##
|
424
424
|
# Deletes the NotificationInstance
|
425
|
-
# @return [Boolean] true if delete succeeds,
|
425
|
+
# @return [Boolean] true if delete succeeds, false otherwise
|
426
426
|
def delete
|
427
427
|
context.delete
|
428
428
|
end
|
@@ -295,7 +295,7 @@ module Twilio
|
|
295
295
|
|
296
296
|
##
|
297
297
|
# Deletes the RecordingInstance
|
298
|
-
# @return [Boolean] true if delete succeeds,
|
298
|
+
# @return [Boolean] true if delete succeeds, false otherwise
|
299
299
|
def delete
|
300
300
|
@version.delete('delete', @uri)
|
301
301
|
end
|
@@ -499,7 +499,7 @@ module Twilio
|
|
499
499
|
|
500
500
|
##
|
501
501
|
# Deletes the RecordingInstance
|
502
|
-
# @return [Boolean] true if delete succeeds,
|
502
|
+
# @return [Boolean] true if delete succeeds, false otherwise
|
503
503
|
def delete
|
504
504
|
context.delete
|
505
505
|
end
|
@@ -75,8 +75,8 @@ module Twilio
|
|
75
75
|
# outbound call, including ringing or disconnect messages. Can be: `true` or
|
76
76
|
# `false` and defaults to `true`.
|
77
77
|
# @param [String] max_participants The maximum number of participants in the
|
78
|
-
# conference. Can be a positive integer from `2` to `
|
79
|
-
# `
|
78
|
+
# conference. Can be a positive integer from `2` to `250`. The default value is
|
79
|
+
# `250`.
|
80
80
|
# @param [String] conference_record Whether to record the conference the
|
81
81
|
# participant is joining. Can be: `true`, `false`, `record-from-start`, and
|
82
82
|
# `do-not-record`. The default value is `false`.
|
@@ -439,7 +439,7 @@ module Twilio
|
|
439
439
|
|
440
440
|
##
|
441
441
|
# Deletes the ParticipantInstance
|
442
|
-
# @return [Boolean] true if delete succeeds,
|
442
|
+
# @return [Boolean] true if delete succeeds, false otherwise
|
443
443
|
def delete
|
444
444
|
@version.delete('delete', @uri)
|
445
445
|
end
|
@@ -657,7 +657,7 @@ module Twilio
|
|
657
657
|
|
658
658
|
##
|
659
659
|
# Deletes the ParticipantInstance
|
660
|
-
# @return [Boolean] true if delete succeeds,
|
660
|
+
# @return [Boolean] true if delete succeeds, false otherwise
|
661
661
|
def delete
|
662
662
|
context.delete
|
663
663
|
end
|
@@ -247,7 +247,7 @@ module Twilio
|
|
247
247
|
|
248
248
|
##
|
249
249
|
# Deletes the RecordingInstance
|
250
|
-
# @return [Boolean] true if delete succeeds,
|
250
|
+
# @return [Boolean] true if delete succeeds, false otherwise
|
251
251
|
def delete
|
252
252
|
@version.delete('delete', @uri)
|
253
253
|
end
|
@@ -454,7 +454,7 @@ module Twilio
|
|
454
454
|
|
455
455
|
##
|
456
456
|
# Deletes the RecordingInstance
|
457
|
-
# @return [Boolean] true if delete succeeds,
|
457
|
+
# @return [Boolean] true if delete succeeds, false otherwise
|
458
458
|
def delete
|
459
459
|
context.delete
|
460
460
|
end
|
@@ -229,7 +229,7 @@ module Twilio
|
|
229
229
|
|
230
230
|
##
|
231
231
|
# Deletes the ConnectAppInstance
|
232
|
-
# @return [Boolean] true if delete succeeds,
|
232
|
+
# @return [Boolean] true if delete succeeds, false otherwise
|
233
233
|
def delete
|
234
234
|
@version.delete('delete', @uri)
|
235
235
|
end
|
@@ -400,7 +400,7 @@ module Twilio
|
|
400
400
|
|
401
401
|
##
|
402
402
|
# Deletes the ConnectAppInstance
|
403
|
-
# @return [Boolean] true if delete succeeds,
|
403
|
+
# @return [Boolean] true if delete succeeds, false otherwise
|
404
404
|
def delete
|
405
405
|
context.delete
|
406
406
|
end
|
@@ -472,7 +472,7 @@ module Twilio
|
|
472
472
|
|
473
473
|
##
|
474
474
|
# Deletes the IncomingPhoneNumberInstance
|
475
|
-
# @return [Boolean] true if delete succeeds,
|
475
|
+
# @return [Boolean] true if delete succeeds, false otherwise
|
476
476
|
def delete
|
477
477
|
@version.delete('delete', @uri)
|
478
478
|
end
|
@@ -857,7 +857,7 @@ module Twilio
|
|
857
857
|
|
858
858
|
##
|
859
859
|
# Deletes the IncomingPhoneNumberInstance
|
860
|
-
# @return [Boolean] true if delete succeeds,
|
860
|
+
# @return [Boolean] true if delete succeeds, false otherwise
|
861
861
|
def delete
|
862
862
|
context.delete
|
863
863
|
end
|