twilio-ruby 5.6.1 → 5.6.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGES.md +18 -0
- data/README.md +2 -2
- data/lib/twilio-ruby/rest/client.rb +7 -0
- data/lib/twilio-ruby/rest/preview/studio/flow/engagement.rb +0 -14
- data/lib/twilio-ruby/rest/studio.rb +44 -0
- data/lib/twilio-ruby/rest/studio/v1.rb +41 -0
- data/lib/twilio-ruby/rest/studio/v1/flow.rb +346 -0
- data/lib/twilio-ruby/rest/studio/v1/flow/engagement.rb +370 -0
- data/lib/twilio-ruby/rest/studio/v1/flow/engagement/step.rb +348 -0
- data/lib/twilio-ruby/rest/video.rb +8 -0
- data/lib/twilio-ruby/rest/video/v1.rb +15 -0
- data/lib/twilio-ruby/rest/video/v1/composition.rb +425 -0
- data/lib/twilio-ruby/rest/video/v1/recording.rb +7 -0
- data/lib/twilio-ruby/rest/video/v1/room/room_participant.rb +24 -0
- data/lib/twilio-ruby/rest/video/v1/room/room_participant/room_participant_subscribed_track.rb +311 -0
- data/lib/twilio-ruby/version.rb +1 -1
- data/spec/integration/preview/studio/flow/engagement_spec.rb +0 -28
- data/spec/integration/studio/v1/flow/engagement/step_spec.rb +96 -0
- data/spec/integration/studio/v1/flow/engagement_spec.rb +143 -0
- data/spec/integration/studio/v1/flow_spec.rb +114 -0
- data/spec/integration/video/v1/composition_spec.rb +223 -0
- data/spec/integration/video/v1/recording_spec.rb +2 -0
- data/spec/integration/video/v1/room/room_participant/room_participant_subscribed_track_spec.rb +132 -0
- data/spec/integration/video/v1/room/room_participant_spec.rb +6 -3
- metadata +19 -2
@@ -38,6 +38,7 @@ describe 'Recording' do
|
|
38
38
|
"duration": 0,
|
39
39
|
"container_format": "mka",
|
40
40
|
"codec": "OPUS",
|
41
|
+
"track_name": "A name",
|
41
42
|
"grouping_sids": {
|
42
43
|
"room_sid": "RMaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa"
|
43
44
|
},
|
@@ -111,6 +112,7 @@ describe 'Recording' do
|
|
111
112
|
"duration": 10,
|
112
113
|
"container_format": "mka",
|
113
114
|
"codec": "OPUS",
|
115
|
+
"track_name": "A name",
|
114
116
|
"grouping_sids": {
|
115
117
|
"room_sid": "RMaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
|
116
118
|
"participant_sid": "PAaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa"
|
data/spec/integration/video/v1/room/room_participant/room_participant_subscribed_track_spec.rb
ADDED
@@ -0,0 +1,132 @@
|
|
1
|
+
##
|
2
|
+
# This code was generated by
|
3
|
+
# \ / _ _ _| _ _
|
4
|
+
# | (_)\/(_)(_|\/| |(/_ v1.0.0
|
5
|
+
# / /
|
6
|
+
|
7
|
+
require 'spec_helper.rb'
|
8
|
+
|
9
|
+
describe 'SubscribedTrack' do
|
10
|
+
it "can read" do
|
11
|
+
@holodeck.mock(Twilio::Response.new(500, ''))
|
12
|
+
|
13
|
+
expect {
|
14
|
+
@client.video.v1.rooms("RMaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa") \
|
15
|
+
.participants("PAaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa") \
|
16
|
+
.subscribed_tracks.list()
|
17
|
+
}.to raise_exception(Twilio::REST::TwilioError)
|
18
|
+
|
19
|
+
values = {}
|
20
|
+
expect(
|
21
|
+
@holodeck.has_request?(Holodeck::Request.new(
|
22
|
+
method: 'get',
|
23
|
+
url: 'https://video.twilio.com/v1/Rooms/RMaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/Participants/PAaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/SubscribedTracks',
|
24
|
+
))).to eq(true)
|
25
|
+
end
|
26
|
+
|
27
|
+
it "receives read_empty responses" do
|
28
|
+
@holodeck.mock(Twilio::Response.new(
|
29
|
+
200,
|
30
|
+
%q[
|
31
|
+
{
|
32
|
+
"subscribed_tracks": [],
|
33
|
+
"meta": {
|
34
|
+
"page": 0,
|
35
|
+
"page_size": 50,
|
36
|
+
"first_page_url": "https://video.twilio.com/v1/Rooms/RMaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/Participants/PAaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/SubscribedTracks?PageSize=50&Page=0",
|
37
|
+
"previous_page_url": null,
|
38
|
+
"url": "https://video.twilio.com/v1/Rooms/RMaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/Participants/PAaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/SubscribedTracks?PageSize=50&Page=0",
|
39
|
+
"next_page_url": null,
|
40
|
+
"key": "subscribed_tracks"
|
41
|
+
}
|
42
|
+
}
|
43
|
+
]
|
44
|
+
))
|
45
|
+
|
46
|
+
actual = @client.video.v1.rooms("RMaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa") \
|
47
|
+
.participants("PAaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa") \
|
48
|
+
.subscribed_tracks.list()
|
49
|
+
|
50
|
+
expect(actual).to_not eq(nil)
|
51
|
+
end
|
52
|
+
|
53
|
+
it "receives read_filters responses" do
|
54
|
+
@holodeck.mock(Twilio::Response.new(
|
55
|
+
200,
|
56
|
+
%q[
|
57
|
+
{
|
58
|
+
"subscribed_tracks": [
|
59
|
+
{
|
60
|
+
"publisher_sid": "PAbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb",
|
61
|
+
"subscriber_sid": "PAaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
|
62
|
+
"room_sid": "RMaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
|
63
|
+
"date_created": "2015-07-30T20:00:00Z",
|
64
|
+
"date_updated": "2015-07-30T20:00:00Z",
|
65
|
+
"sid": "MTaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
|
66
|
+
"name": "bob-track",
|
67
|
+
"kind": "data",
|
68
|
+
"enabled": true
|
69
|
+
}
|
70
|
+
],
|
71
|
+
"meta": {
|
72
|
+
"page": 0,
|
73
|
+
"page_size": 50,
|
74
|
+
"first_page_url": "https://video.twilio.com/v1/Rooms/RMaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/Participants/PAaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/SubscribedTracks?PageSize=50&Page=0",
|
75
|
+
"previous_page_url": null,
|
76
|
+
"url": "https://video.twilio.com/v1/Rooms/RMaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/Participants/PAaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/SubscribedTracks?PageSize=50&Page=0",
|
77
|
+
"next_page_url": null,
|
78
|
+
"key": "subscribed_tracks"
|
79
|
+
}
|
80
|
+
}
|
81
|
+
]
|
82
|
+
))
|
83
|
+
|
84
|
+
actual = @client.video.v1.rooms("RMaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa") \
|
85
|
+
.participants("PAaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa") \
|
86
|
+
.subscribed_tracks.list()
|
87
|
+
|
88
|
+
expect(actual).to_not eq(nil)
|
89
|
+
end
|
90
|
+
|
91
|
+
it "can update" do
|
92
|
+
@holodeck.mock(Twilio::Response.new(500, ''))
|
93
|
+
|
94
|
+
expect {
|
95
|
+
@client.video.v1.rooms("RMaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa") \
|
96
|
+
.participants("PAaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa") \
|
97
|
+
.subscribed_tracks.update()
|
98
|
+
}.to raise_exception(Twilio::REST::TwilioError)
|
99
|
+
|
100
|
+
values = {}
|
101
|
+
expect(
|
102
|
+
@holodeck.has_request?(Holodeck::Request.new(
|
103
|
+
method: 'post',
|
104
|
+
url: 'https://video.twilio.com/v1/Rooms/RMaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/Participants/PAaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/SubscribedTracks',
|
105
|
+
))).to eq(true)
|
106
|
+
end
|
107
|
+
|
108
|
+
it "receives update_filters responses" do
|
109
|
+
@holodeck.mock(Twilio::Response.new(
|
110
|
+
202,
|
111
|
+
%q[
|
112
|
+
{
|
113
|
+
"publisher_sid": null,
|
114
|
+
"subscriber_sid": "PAaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
|
115
|
+
"room_sid": "RMaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
|
116
|
+
"date_created": null,
|
117
|
+
"date_updated": null,
|
118
|
+
"sid": null,
|
119
|
+
"name": "bob-track",
|
120
|
+
"kind": "data",
|
121
|
+
"enabled": null
|
122
|
+
}
|
123
|
+
]
|
124
|
+
))
|
125
|
+
|
126
|
+
actual = @client.video.v1.rooms("RMaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa") \
|
127
|
+
.participants("PAaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa") \
|
128
|
+
.subscribed_tracks.update()
|
129
|
+
|
130
|
+
expect(actual).to_not eq(nil)
|
131
|
+
end
|
132
|
+
end
|
@@ -40,7 +40,8 @@ describe 'Participant' do
|
|
40
40
|
"url": "https://video.twilio.com/v1/Rooms/RMaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/Participants/PAaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
|
41
41
|
"duration": null,
|
42
42
|
"links": {
|
43
|
-
"published_tracks": "https://video.twilio.com/v1/Rooms/RMaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/Participants/PAaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/PublishedTracks"
|
43
|
+
"published_tracks": "https://video.twilio.com/v1/Rooms/RMaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/Participants/PAaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/PublishedTracks",
|
44
|
+
"subscribed_tracks": "https://video.twilio.com/v1/Rooms/RMaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/Participants/PAaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/SubscribedTracks"
|
44
45
|
}
|
45
46
|
}
|
46
47
|
]
|
@@ -112,7 +113,8 @@ describe 'Participant' do
|
|
112
113
|
"url": "https://video.twilio.com/v1/Rooms/RMaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/Participants/PAaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
|
113
114
|
"duration": 1,
|
114
115
|
"links": {
|
115
|
-
"published_tracks": "https://video.twilio.com/v1/Rooms/RMaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/Participants/PAaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/PublishedTracks"
|
116
|
+
"published_tracks": "https://video.twilio.com/v1/Rooms/RMaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/Participants/PAaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/PublishedTracks",
|
117
|
+
"subscribed_tracks": "https://video.twilio.com/v1/Rooms/RMaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/Participants/PAaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/SubscribedTracks"
|
116
118
|
}
|
117
119
|
}
|
118
120
|
],
|
@@ -168,7 +170,8 @@ describe 'Participant' do
|
|
168
170
|
"url": "https://video.twilio.com/v1/Rooms/RMaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/Participants/PAaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
|
169
171
|
"duration": 1,
|
170
172
|
"links": {
|
171
|
-
"published_tracks": "https://video.twilio.com/v1/Rooms/RMaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/Participants/PAaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/PublishedTracks"
|
173
|
+
"published_tracks": "https://video.twilio.com/v1/Rooms/RMaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/Participants/PAaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/PublishedTracks",
|
174
|
+
"subscribed_tracks": "https://video.twilio.com/v1/Rooms/RMaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/Participants/PAaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/SubscribedTracks"
|
172
175
|
}
|
173
176
|
}
|
174
177
|
]
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: twilio-ruby
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 5.6.
|
4
|
+
version: 5.6.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Twilio API Team
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2018-01-
|
11
|
+
date: 2018-01-31 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: jwt
|
@@ -377,6 +377,11 @@ files:
|
|
377
377
|
- lib/twilio-ruby/rest/proxy/v1/service/session/participant.rb
|
378
378
|
- lib/twilio-ruby/rest/proxy/v1/service/session/participant/message_interaction.rb
|
379
379
|
- lib/twilio-ruby/rest/proxy/v1/service/short_code.rb
|
380
|
+
- lib/twilio-ruby/rest/studio.rb
|
381
|
+
- lib/twilio-ruby/rest/studio/v1.rb
|
382
|
+
- lib/twilio-ruby/rest/studio/v1/flow.rb
|
383
|
+
- lib/twilio-ruby/rest/studio/v1/flow/engagement.rb
|
384
|
+
- lib/twilio-ruby/rest/studio/v1/flow/engagement/step.rb
|
380
385
|
- lib/twilio-ruby/rest/sync.rb
|
381
386
|
- lib/twilio-ruby/rest/sync/v1.rb
|
382
387
|
- lib/twilio-ruby/rest/sync/v1/service.rb
|
@@ -426,11 +431,13 @@ files:
|
|
426
431
|
- lib/twilio-ruby/rest/trunking/v1/trunk/phone_number.rb
|
427
432
|
- lib/twilio-ruby/rest/video.rb
|
428
433
|
- lib/twilio-ruby/rest/video/v1.rb
|
434
|
+
- lib/twilio-ruby/rest/video/v1/composition.rb
|
429
435
|
- lib/twilio-ruby/rest/video/v1/recording.rb
|
430
436
|
- lib/twilio-ruby/rest/video/v1/room.rb
|
431
437
|
- lib/twilio-ruby/rest/video/v1/room/recording.rb
|
432
438
|
- lib/twilio-ruby/rest/video/v1/room/room_participant.rb
|
433
439
|
- lib/twilio-ruby/rest/video/v1/room/room_participant/room_participant_published_track.rb
|
440
|
+
- lib/twilio-ruby/rest/video/v1/room/room_participant/room_participant_subscribed_track.rb
|
434
441
|
- lib/twilio-ruby/rest/wireless.rb
|
435
442
|
- lib/twilio-ruby/rest/wireless/v1.rb
|
436
443
|
- lib/twilio-ruby/rest/wireless/v1/command.rb
|
@@ -639,6 +646,9 @@ files:
|
|
639
646
|
- spec/integration/proxy/v1/service/session_spec.rb
|
640
647
|
- spec/integration/proxy/v1/service/short_code_spec.rb
|
641
648
|
- spec/integration/proxy/v1/service_spec.rb
|
649
|
+
- spec/integration/studio/v1/flow/engagement/step_spec.rb
|
650
|
+
- spec/integration/studio/v1/flow/engagement_spec.rb
|
651
|
+
- spec/integration/studio/v1/flow_spec.rb
|
642
652
|
- spec/integration/sync/v1/service/document/document_permission_spec.rb
|
643
653
|
- spec/integration/sync/v1/service/document_spec.rb
|
644
654
|
- spec/integration/sync/v1/service/sync_list/sync_list_item_spec.rb
|
@@ -680,9 +690,11 @@ files:
|
|
680
690
|
- spec/integration/trunking/v1/trunk/origination_url_spec.rb
|
681
691
|
- spec/integration/trunking/v1/trunk/phone_number_spec.rb
|
682
692
|
- spec/integration/trunking/v1/trunk_spec.rb
|
693
|
+
- spec/integration/video/v1/composition_spec.rb
|
683
694
|
- spec/integration/video/v1/recording_spec.rb
|
684
695
|
- spec/integration/video/v1/room/recording_spec.rb
|
685
696
|
- spec/integration/video/v1/room/room_participant/room_participant_published_track_spec.rb
|
697
|
+
- spec/integration/video/v1/room/room_participant/room_participant_subscribed_track_spec.rb
|
686
698
|
- spec/integration/video/v1/room/room_participant_spec.rb
|
687
699
|
- spec/integration/video/v1/room_spec.rb
|
688
700
|
- spec/integration/wireless/v1/command_spec.rb
|
@@ -930,6 +942,9 @@ test_files:
|
|
930
942
|
- spec/integration/proxy/v1/service/session_spec.rb
|
931
943
|
- spec/integration/proxy/v1/service/short_code_spec.rb
|
932
944
|
- spec/integration/proxy/v1/service_spec.rb
|
945
|
+
- spec/integration/studio/v1/flow/engagement/step_spec.rb
|
946
|
+
- spec/integration/studio/v1/flow/engagement_spec.rb
|
947
|
+
- spec/integration/studio/v1/flow_spec.rb
|
933
948
|
- spec/integration/sync/v1/service/document/document_permission_spec.rb
|
934
949
|
- spec/integration/sync/v1/service/document_spec.rb
|
935
950
|
- spec/integration/sync/v1/service/sync_list/sync_list_item_spec.rb
|
@@ -971,9 +986,11 @@ test_files:
|
|
971
986
|
- spec/integration/trunking/v1/trunk/origination_url_spec.rb
|
972
987
|
- spec/integration/trunking/v1/trunk/phone_number_spec.rb
|
973
988
|
- spec/integration/trunking/v1/trunk_spec.rb
|
989
|
+
- spec/integration/video/v1/composition_spec.rb
|
974
990
|
- spec/integration/video/v1/recording_spec.rb
|
975
991
|
- spec/integration/video/v1/room/recording_spec.rb
|
976
992
|
- spec/integration/video/v1/room/room_participant/room_participant_published_track_spec.rb
|
993
|
+
- spec/integration/video/v1/room/room_participant/room_participant_subscribed_track_spec.rb
|
977
994
|
- spec/integration/video/v1/room/room_participant_spec.rb
|
978
995
|
- spec/integration/video/v1/room_spec.rb
|
979
996
|
- spec/integration/wireless/v1/command_spec.rb
|