opentok 2.4.0.beta.1 → 2.4.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/.gitignore +1 -0
- data/.travis.yml +2 -1
- data/README.md +8 -11
- data/lib/opentok.rb +1 -1
- data/lib/opentok/archive.rb +2 -3
- data/lib/opentok/archives.rb +4 -2
- data/lib/opentok/client.rb +37 -12
- data/lib/opentok/constants.rb +1 -0
- data/lib/opentok/opentok.rb +1 -1
- data/lib/opentok/session.rb +1 -1
- data/lib/opentok/token_generator.rb +0 -9
- data/lib/opentok/version.rb +1 -1
- data/opentok.gemspec +3 -2
- data/sample/Archiving/public/js/host.js +18 -7
- data/sample/Archiving/public/js/participant.js +18 -7
- data/sample/Archiving/views/host.erb +1 -1
- data/sample/Archiving/views/participant.erb +1 -1
- data/sample/HelloWorld/public/js/helloworld.js +26 -6
- data/sample/HelloWorld/views/index.erb +1 -1
- data/spec/cassettes/OpenTok_Archives/should_create_archives.yml +3 -3
- data/spec/cassettes/OpenTok_Archives/should_create_audio_only_archives.yml +3 -3
- data/spec/cassettes/OpenTok_Archives/should_create_individual_archives.yml +3 -3
- data/spec/cassettes/OpenTok_Archives/should_create_named_archives.yml +3 -3
- data/spec/cassettes/OpenTok_Archives/should_delete_an_archive_by_id.yml +3 -3
- data/spec/cassettes/OpenTok_Archives/should_find_archives_by_id.yml +3 -3
- data/spec/cassettes/OpenTok_Archives/should_find_archives_with_unknown_properties.yml +3 -3
- data/spec/cassettes/OpenTok_Archives/should_find_expired_archives.yml +3 -3
- data/spec/cassettes/OpenTok_Archives/should_find_paused_archives_by_id.yml +3 -3
- data/spec/cassettes/OpenTok_Archives/should_stop_archives.yml +3 -3
- data/spec/cassettes/OpenTok_Archives/when_many_archives_are_created/should_return_all_archives.yml +3 -3
- data/spec/cassettes/OpenTok_Archives/when_many_archives_are_created/should_return_archives_with_an_offset.yml +4 -4
- data/spec/cassettes/OpenTok_Archives/when_many_archives_are_created/should_return_count_number_of_archives.yml +4 -4
- data/spec/cassettes/OpenTok_Archives/when_many_archives_are_created/should_return_part_of_the_archives_when_using_offset_and_count.yml +4 -4
- data/spec/cassettes/OpenTok_Archives/when_many_archives_are_created/should_return_session_archives.yml +71 -0
- data/spec/cassettes/OpenTok_OpenTok/when_initialized_properly/_create_session/creates_always_archived_sessions.yml +2 -2
- data/spec/cassettes/OpenTok_OpenTok/when_initialized_properly/_create_session/creates_default_sessions.yml +2 -2
- data/spec/cassettes/OpenTok_OpenTok/when_initialized_properly/_create_session/creates_relayed_media_sessions.yml +2 -2
- data/spec/cassettes/OpenTok_OpenTok/when_initialized_properly/_create_session/creates_relayed_media_sessions_for_invalid_media_modes.yml +2 -2
- data/spec/cassettes/OpenTok_OpenTok/when_initialized_properly/_create_session/creates_relayed_media_sessions_with_a_location_hint.yml +2 -2
- data/spec/cassettes/OpenTok_OpenTok/when_initialized_properly/_create_session/creates_routed_media_sessions.yml +2 -2
- data/spec/cassettes/OpenTok_OpenTok/when_initialized_properly/_create_session/creates_routed_media_sessions_with_a_location_hint.yml +2 -2
- data/spec/cassettes/OpenTok_OpenTok/when_initialized_properly/_create_session/creates_sessions_with_a_location_hint.yml +2 -2
- data/spec/cassettes/OpenTok_OpenTok/when_initialized_properly/with_an_addendum_to_the_user_agent_string/should_append_the_addendum_to_the_user_agent_header.yml +2 -2
- data/spec/matchers/token.rb +1 -2
- data/spec/opentok/archives_spec.rb +16 -0
- data/spec/opentok/opentok_spec.rb +5 -0
- data/spec/opentok/session_spec.rb +5 -0
- data/spec/shared/opentok_generates_tokens.rb +5 -25
- data/spec/shared/session_generates_tokens.rb +5 -0
- metadata +49 -84
- data/doc/OpenTok.html +0 -418
- data/doc/OpenTok/Archive.html +0 -1607
- data/doc/OpenTok/ArchiveList.html +0 -216
- data/doc/OpenTok/Archives.html +0 -1101
- data/doc/OpenTok/Client.html +0 -695
- data/doc/OpenTok/HashExtensions.html +0 -184
- data/doc/OpenTok/OpenTok.html +0 -1083
- data/doc/OpenTok/OpenTokArchiveError.html +0 -142
- data/doc/OpenTok/OpenTokAuthenticationError.html +0 -143
- data/doc/OpenTok/OpenTokError.html +0 -138
- data/doc/OpenTok/Session.html +0 -757
- data/doc/OpenTok/TokenGenerator.html +0 -204
- data/doc/OpenTok/TokenGenerator/ClassMethods.html +0 -187
- data/doc/README.md +0 -15
- data/doc/_index.html +0 -197
- data/doc/class_list.html +0 -58
- data/doc/css/common.css +0 -1
- data/doc/css/full_list.css +0 -57
- data/doc/css/style.css +0 -339
- data/doc/file.README.html +0 -87
- data/doc/file_list.html +0 -60
- data/doc/frames.html +0 -26
- data/doc/index.html +0 -87
- data/doc/js/app.js +0 -219
- data/doc/js/full_list.js +0 -181
- data/doc/js/jquery.js +0 -4
- data/doc/method_list.html +0 -261
- data/doc/top-level-namespace.html +0 -112
@@ -2,15 +2,15 @@
|
|
2
2
|
http_interactions:
|
3
3
|
- request:
|
4
4
|
method: post
|
5
|
-
uri: https://api.opentok.com/v2/
|
5
|
+
uri: https://api.opentok.com/v2/project/123456/archive
|
6
6
|
body:
|
7
7
|
encoding: UTF-8
|
8
8
|
string: '{"sessionId":"SESSIONID"}'
|
9
9
|
headers:
|
10
|
-
X-Tb-Partner-Auth:
|
11
|
-
- 123456:1234567890abcdef1234567890abcdef1234567890
|
12
10
|
User-Agent:
|
13
11
|
- OpenTok-Ruby-SDK/<%= version %>
|
12
|
+
X-Opentok-Auth:
|
13
|
+
- eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiIsImlzdCI6InByb2plY3QifQ.eyJpc3MiOiIxMjM0NTYiLCJpYXQiOjE0OTI1MTA2NjAsImV4cCI6MTQ5MjUxMDk2MH0.Oh_JHhtEUKK1pPV4s6neXJj_RXI8EcEpJRRpG_2c9U0
|
14
14
|
Content-Type:
|
15
15
|
- application/json
|
16
16
|
response:
|
@@ -2,15 +2,15 @@
|
|
2
2
|
http_interactions:
|
3
3
|
- request:
|
4
4
|
method: post
|
5
|
-
uri: https://api.opentok.com/v2/
|
5
|
+
uri: https://api.opentok.com/v2/project/123456/archive
|
6
6
|
body:
|
7
7
|
encoding: UTF-8
|
8
8
|
string: '{"sessionId":"SESSIONID","hasVideo":false}'
|
9
9
|
headers:
|
10
|
-
X-Tb-Partner-Auth:
|
11
|
-
- 123456:1234567890abcdef1234567890abcdef1234567890
|
12
10
|
User-Agent:
|
13
11
|
- OpenTok-Ruby-SDK/<%= version %>
|
12
|
+
X-Opentok-Auth:
|
13
|
+
- eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiIsImlzdCI6InByb2plY3QifQ.eyJpc3MiOiIxMjM0NTYiLCJpYXQiOjE0OTI1MTA2NjAsImV4cCI6MTQ5MjUxMDk2MH0.Oh_JHhtEUKK1pPV4s6neXJj_RXI8EcEpJRRpG_2c9U0
|
14
14
|
Content-Type:
|
15
15
|
- application/json
|
16
16
|
response:
|
@@ -2,15 +2,15 @@
|
|
2
2
|
http_interactions:
|
3
3
|
- request:
|
4
4
|
method: post
|
5
|
-
uri: https://api.opentok.com/v2/
|
5
|
+
uri: https://api.opentok.com/v2/project/123456/archive
|
6
6
|
body:
|
7
7
|
encoding: UTF-8
|
8
8
|
string: '{"sessionId":"SESSIONID","outputMode":"individual"}'
|
9
9
|
headers:
|
10
|
-
X-Tb-Partner-Auth:
|
11
|
-
- 123456:1234567890abcdef1234567890abcdef1234567890
|
12
10
|
User-Agent:
|
13
11
|
- OpenTok-Ruby-SDK/<%= version %>
|
12
|
+
X-Opentok-Auth:
|
13
|
+
- eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiIsImlzdCI6InByb2plY3QifQ.eyJpc3MiOiIxMjM0NTYiLCJpYXQiOjE0OTI1MTA2NjAsImV4cCI6MTQ5MjUxMDk2MH0.Oh_JHhtEUKK1pPV4s6neXJj_RXI8EcEpJRRpG_2c9U0
|
14
14
|
Content-Type:
|
15
15
|
- application/json
|
16
16
|
response:
|
@@ -2,15 +2,15 @@
|
|
2
2
|
http_interactions:
|
3
3
|
- request:
|
4
4
|
method: post
|
5
|
-
uri: https://api.opentok.com/v2/
|
5
|
+
uri: https://api.opentok.com/v2/project/123456/archive
|
6
6
|
body:
|
7
7
|
encoding: UTF-8
|
8
8
|
string: '{"sessionId":"SESSIONID","name":"ARCHIVE NAME"}'
|
9
9
|
headers:
|
10
|
-
X-Tb-Partner-Auth:
|
11
|
-
- 123456:1234567890abcdef1234567890abcdef1234567890
|
12
10
|
User-Agent:
|
13
11
|
- OpenTok-Ruby-SDK/<%= version %>
|
12
|
+
X-Opentok-Auth:
|
13
|
+
- eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiIsImlzdCI6InByb2plY3QifQ.eyJpc3MiOiIxMjM0NTYiLCJpYXQiOjE0OTI1MTA2NjAsImV4cCI6MTQ5MjUxMDk2MH0.Oh_JHhtEUKK1pPV4s6neXJj_RXI8EcEpJRRpG_2c9U0
|
14
14
|
Content-Type:
|
15
15
|
- application/json
|
16
16
|
response:
|
@@ -2,15 +2,15 @@
|
|
2
2
|
http_interactions:
|
3
3
|
- request:
|
4
4
|
method: delete
|
5
|
-
uri: https://api.opentok.com/v2/
|
5
|
+
uri: https://api.opentok.com/v2/project/123456/archive/832641bf-5dbf-41a1-ad94-fea213e59a92
|
6
6
|
body:
|
7
7
|
encoding: US-ASCII
|
8
8
|
string: ''
|
9
9
|
headers:
|
10
|
-
X-Tb-Partner-Auth:
|
11
|
-
- 123456:1234567890abcdef1234567890abcdef1234567890
|
12
10
|
User-Agent:
|
13
11
|
- OpenTok-Ruby-SDK/<%= version %>
|
12
|
+
X-Opentok-Auth:
|
13
|
+
- eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiIsImlzdCI6InByb2plY3QifQ.eyJpc3MiOiIxMjM0NTYiLCJpYXQiOjE0OTI1MTA2NjAsImV4cCI6MTQ5MjUxMDk2MH0.Oh_JHhtEUKK1pPV4s6neXJj_RXI8EcEpJRRpG_2c9U0
|
14
14
|
Content-Type:
|
15
15
|
- application/json
|
16
16
|
response:
|
@@ -2,15 +2,15 @@
|
|
2
2
|
http_interactions:
|
3
3
|
- request:
|
4
4
|
method: get
|
5
|
-
uri: https://api.opentok.com/v2/
|
5
|
+
uri: https://api.opentok.com/v2/project/123456/archive/f6e7ee58-d6cf-4a59-896b-6d56b158ec71
|
6
6
|
body:
|
7
7
|
encoding: US-ASCII
|
8
8
|
string: ''
|
9
9
|
headers:
|
10
|
-
X-Tb-Partner-Auth:
|
11
|
-
- 123456:1234567890abcdef1234567890abcdef1234567890
|
12
10
|
User-Agent:
|
13
11
|
- OpenTok-Ruby-SDK/<%= version %>
|
12
|
+
X-Opentok-Auth:
|
13
|
+
- eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiIsImlzdCI6InByb2plY3QifQ.eyJpc3MiOiIxMjM0NTYiLCJpYXQiOjE0OTI1MTA2NjAsImV4cCI6MTQ5MjUxMDk2MH0.Oh_JHhtEUKK1pPV4s6neXJj_RXI8EcEpJRRpG_2c9U0
|
14
14
|
response:
|
15
15
|
status:
|
16
16
|
code: 200
|
@@ -2,15 +2,15 @@
|
|
2
2
|
http_interactions:
|
3
3
|
- request:
|
4
4
|
method: get
|
5
|
-
uri: https://api.opentok.com/v2/
|
5
|
+
uri: https://api.opentok.com/v2/project/123456/archive/f6e7ee58-d6cf-4a59-896b-6d56b158ec71
|
6
6
|
body:
|
7
7
|
encoding: US-ASCII
|
8
8
|
string: ''
|
9
9
|
headers:
|
10
|
-
X-Tb-Partner-Auth:
|
11
|
-
- 123456:1234567890abcdef1234567890abcdef1234567890
|
12
10
|
User-Agent:
|
13
11
|
- OpenTok-Ruby-SDK/<%= version %>
|
12
|
+
X-Opentok-Auth:
|
13
|
+
- eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiIsImlzdCI6InByb2plY3QifQ.eyJpc3MiOiIxMjM0NTYiLCJpYXQiOjE0OTI1MTA2NjAsImV4cCI6MTQ5MjUxMDk2MH0.Oh_JHhtEUKK1pPV4s6neXJj_RXI8EcEpJRRpG_2c9U0
|
14
14
|
response:
|
15
15
|
status:
|
16
16
|
code: 200
|
@@ -2,15 +2,15 @@
|
|
2
2
|
http_interactions:
|
3
3
|
- request:
|
4
4
|
method: get
|
5
|
-
uri: https://api.opentok.com/v2/
|
5
|
+
uri: https://api.opentok.com/v2/project/123456/archive/f6e7ee58-d6cf-4a59-896b-6d56b158ec71
|
6
6
|
body:
|
7
7
|
encoding: US-ASCII
|
8
8
|
string: ''
|
9
9
|
headers:
|
10
|
-
X-Tb-Partner-Auth:
|
11
|
-
- 123456:1234567890abcdef1234567890abcdef1234567890
|
12
10
|
User-Agent:
|
13
11
|
- OpenTok-Ruby-SDK/<%= version %>
|
12
|
+
X-Opentok-Auth:
|
13
|
+
- eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiIsImlzdCI6InByb2plY3QifQ.eyJpc3MiOiIxMjM0NTYiLCJpYXQiOjE0OTI1MTA2NjAsImV4cCI6MTQ5MjUxMDk2MH0.Oh_JHhtEUKK1pPV4s6neXJj_RXI8EcEpJRRpG_2c9U0
|
14
14
|
response:
|
15
15
|
status:
|
16
16
|
code: 200
|
@@ -2,15 +2,15 @@
|
|
2
2
|
http_interactions:
|
3
3
|
- request:
|
4
4
|
method: get
|
5
|
-
uri: https://api.opentok.com/v2/
|
5
|
+
uri: https://api.opentok.com/v2/project/123456/archive/f6e7ee58-d6cf-4a59-896b-6d56b158ec71
|
6
6
|
body:
|
7
7
|
encoding: US-ASCII
|
8
8
|
string: ''
|
9
9
|
headers:
|
10
|
-
X-Tb-Partner-Auth:
|
11
|
-
- 123456:1234567890abcdef1234567890abcdef1234567890
|
12
10
|
User-Agent:
|
13
11
|
- OpenTok-Ruby-SDK/<%= version %>
|
12
|
+
X-Opentok-Auth:
|
13
|
+
- eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiIsImlzdCI6InByb2plY3QifQ.eyJpc3MiOiIxMjM0NTYiLCJpYXQiOjE0OTI1MTA2NjAsImV4cCI6MTQ5MjUxMDk2MH0.Oh_JHhtEUKK1pPV4s6neXJj_RXI8EcEpJRRpG_2c9U0
|
14
14
|
response:
|
15
15
|
status:
|
16
16
|
code: 200
|
@@ -2,12 +2,12 @@
|
|
2
2
|
http_interactions:
|
3
3
|
- request:
|
4
4
|
method: post
|
5
|
-
uri: https://api.opentok.com/v2/
|
5
|
+
uri: https://api.opentok.com/v2/project/123456/archive/30b3ebf1-ba36-4f5b-8def-6f70d9986fe9/stop
|
6
6
|
headers:
|
7
|
-
X-Tb-Partner-Auth:
|
8
|
-
- 123456:1234567890abcdef1234567890abcdef1234567890
|
9
7
|
User-Agent:
|
10
8
|
- OpenTok-Ruby-SDK/<%= version %>
|
9
|
+
X-Opentok-Auth:
|
10
|
+
- eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiIsImlzdCI6InByb2plY3QifQ.eyJpc3MiOiIxMjM0NTYiLCJpYXQiOjE0OTI1MTA2NjAsImV4cCI6MTQ5MjUxMDk2MH0.Oh_JHhtEUKK1pPV4s6neXJj_RXI8EcEpJRRpG_2c9U0
|
11
11
|
Content-Type:
|
12
12
|
- application/json
|
13
13
|
response:
|
data/spec/cassettes/OpenTok_Archives/when_many_archives_are_created/should_return_all_archives.yml
CHANGED
@@ -2,15 +2,15 @@
|
|
2
2
|
http_interactions:
|
3
3
|
- request:
|
4
4
|
method: get
|
5
|
-
uri: https://api.opentok.com/v2/
|
5
|
+
uri: https://api.opentok.com/v2/project/123456/archive
|
6
6
|
body:
|
7
7
|
encoding: US-ASCII
|
8
8
|
string: ''
|
9
9
|
headers:
|
10
|
-
X-Tb-Partner-Auth:
|
11
|
-
- 123456:1234567890abcdef1234567890abcdef1234567890
|
12
10
|
User-Agent:
|
13
11
|
- OpenTok-Ruby-SDK/<%= version %>
|
12
|
+
X-Opentok-Auth:
|
13
|
+
- eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiIsImlzdCI6InByb2plY3QifQ.eyJpc3MiOiIxMjM0NTYiLCJpYXQiOjE0OTI1MTA2NjAsImV4cCI6MTQ5MjUxMDk2MH0.Oh_JHhtEUKK1pPV4s6neXJj_RXI8EcEpJRRpG_2c9U0
|
14
14
|
response:
|
15
15
|
status:
|
16
16
|
code: 200
|
@@ -2,15 +2,15 @@
|
|
2
2
|
http_interactions:
|
3
3
|
- request:
|
4
4
|
method: get
|
5
|
-
uri: https://api.opentok.com/v2/
|
5
|
+
uri: https://api.opentok.com/v2/project/123456/archive?offset=3
|
6
6
|
body:
|
7
7
|
encoding: US-ASCII
|
8
8
|
string: ''
|
9
9
|
headers:
|
10
|
-
X-Tb-Partner-Auth:
|
11
|
-
- 123456:1234567890abcdef1234567890abcdef1234567890
|
12
10
|
User-Agent:
|
13
11
|
- OpenTok-Ruby-SDK/<%= version %>
|
12
|
+
X-Opentok-Auth:
|
13
|
+
- eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiIsImlzdCI6InByb2plY3QifQ.eyJpc3MiOiIxMjM0NTYiLCJpYXQiOjE0OTI1MTA2NjAsImV4cCI6MTQ5MjUxMDk2MH0.Oh_JHhtEUKK1pPV4s6neXJj_RXI8EcEpJRRpG_2c9U0
|
14
14
|
response:
|
15
15
|
status:
|
16
16
|
code: 200
|
@@ -30,7 +30,7 @@ http_interactions:
|
|
30
30
|
encoding: UTF-8
|
31
31
|
string: |-
|
32
32
|
{
|
33
|
-
"count" :
|
33
|
+
"count" : 3,
|
34
34
|
"items" : [ {
|
35
35
|
"createdAt" : 1395183243000,
|
36
36
|
"duration" : 544,
|
@@ -2,15 +2,15 @@
|
|
2
2
|
http_interactions:
|
3
3
|
- request:
|
4
4
|
method: get
|
5
|
-
uri: https://api.opentok.com/v2/
|
5
|
+
uri: https://api.opentok.com/v2/project/123456/archive?count=2
|
6
6
|
body:
|
7
7
|
encoding: US-ASCII
|
8
8
|
string: ''
|
9
9
|
headers:
|
10
|
-
X-Tb-Partner-Auth:
|
11
|
-
- 123456:1234567890abcdef1234567890abcdef1234567890
|
12
10
|
User-Agent:
|
13
11
|
- OpenTok-Ruby-SDK/<%= version %>
|
12
|
+
X-Opentok-Auth:
|
13
|
+
- eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiIsImlzdCI6InByb2plY3QifQ.eyJpc3MiOiIxMjM0NTYiLCJpYXQiOjE0OTI1MTA2NjAsImV4cCI6MTQ5MjUxMDk2MH0.Oh_JHhtEUKK1pPV4s6neXJj_RXI8EcEpJRRpG_2c9U0
|
14
14
|
response:
|
15
15
|
status:
|
16
16
|
code: 200
|
@@ -30,7 +30,7 @@ http_interactions:
|
|
30
30
|
encoding: UTF-8
|
31
31
|
string: |-
|
32
32
|
{
|
33
|
-
"count" :
|
33
|
+
"count" : 2,
|
34
34
|
"items" : [ {
|
35
35
|
"createdAt" : 1395187930000,
|
36
36
|
"duration" : 22,
|
@@ -2,15 +2,15 @@
|
|
2
2
|
http_interactions:
|
3
3
|
- request:
|
4
4
|
method: get
|
5
|
-
uri: https://api.opentok.com/v2/
|
5
|
+
uri: https://api.opentok.com/v2/project/123456/archive?count=4&offset=2
|
6
6
|
body:
|
7
7
|
encoding: US-ASCII
|
8
8
|
string: ''
|
9
9
|
headers:
|
10
|
-
X-Tb-Partner-Auth:
|
11
|
-
- 123456:1234567890abcdef1234567890abcdef1234567890
|
12
10
|
User-Agent:
|
13
11
|
- OpenTok-Ruby-SDK/<%= version %>
|
12
|
+
X-Opentok-Auth:
|
13
|
+
- eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiIsImlzdCI6InByb2plY3QifQ.eyJpc3MiOiIxMjM0NTYiLCJpYXQiOjE0OTI1MTA2NjAsImV4cCI6MTQ5MjUxMDk2MH0.Oh_JHhtEUKK1pPV4s6neXJj_RXI8EcEpJRRpG_2c9U0
|
14
14
|
response:
|
15
15
|
status:
|
16
16
|
code: 200
|
@@ -30,7 +30,7 @@ http_interactions:
|
|
30
30
|
encoding: UTF-8
|
31
31
|
string: |-
|
32
32
|
{
|
33
|
-
"count" :
|
33
|
+
"count" : 4,
|
34
34
|
"items" : [ {
|
35
35
|
"createdAt" : 1395187836000,
|
36
36
|
"duration" : 62,
|
@@ -0,0 +1,71 @@
|
|
1
|
+
---
|
2
|
+
http_interactions:
|
3
|
+
- request:
|
4
|
+
method: get
|
5
|
+
uri: https://api.opentok.com/v2/project/123456/archive?sessionId=SESSIONID
|
6
|
+
body:
|
7
|
+
encoding: US-ASCII
|
8
|
+
string: ''
|
9
|
+
headers:
|
10
|
+
User-Agent:
|
11
|
+
- OpenTok-Ruby-SDK/<%= version %>
|
12
|
+
X-Opentok-Auth:
|
13
|
+
- eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiIsImlzdCI6InByb2plY3QifQ.eyJpc3MiOiIxMjM0NTYiLCJpYXQiOjE0OTI1MTA2NjAsImV4cCI6MTQ5MjUxMDk2MH0.Oh_JHhtEUKK1pPV4s6neXJj_RXI8EcEpJRRpG_2c9U0
|
14
|
+
response:
|
15
|
+
status:
|
16
|
+
code: 200
|
17
|
+
message: OK
|
18
|
+
headers:
|
19
|
+
Server:
|
20
|
+
- nginx
|
21
|
+
Date:
|
22
|
+
- Wed, 19 Mar 2017 00:44:22 GMT
|
23
|
+
Content-Type:
|
24
|
+
- application/json
|
25
|
+
Transfer-Encoding:
|
26
|
+
- chunked
|
27
|
+
Connection:
|
28
|
+
- keep-alive
|
29
|
+
body:
|
30
|
+
encoding: UTF-8
|
31
|
+
string: |-
|
32
|
+
{
|
33
|
+
"count" : 3,
|
34
|
+
"items" : [ {
|
35
|
+
"createdAt" : 1395183243000,
|
36
|
+
"duration" : 544,
|
37
|
+
"id" : "30b3ebf1-ba36-4f5b-8def-6f70d9986fe9",
|
38
|
+
"name" : "",
|
39
|
+
"partnerId" : 123456,
|
40
|
+
"reason" : "",
|
41
|
+
"sessionId" : "SESSIONID",
|
42
|
+
"size" : 78499758,
|
43
|
+
"status" : "available",
|
44
|
+
"url" : "http://tokbox.com.archive2.s3.amazonaws.com/123456%2F30b3ebf1-ba36-4f5b-8def-6f70d9986fe9%2Farchive.mp4?Expires=1395188695&AWSAccessKeyId=AKIAI6LQCPIXYVWCQV6Q&Signature=xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx"
|
45
|
+
}, {
|
46
|
+
"createdAt" : 1394396753000,
|
47
|
+
"duration" : 24,
|
48
|
+
"id" : "b8f64de1-e218-4091-9544-4cbf369fc238",
|
49
|
+
"name" : "showtime again",
|
50
|
+
"partnerId" : 123456,
|
51
|
+
"reason" : "",
|
52
|
+
"sessionId" : "SESSIONID",
|
53
|
+
"size" : 2227849,
|
54
|
+
"status" : "available",
|
55
|
+
"url" : "http://tokbox.com.archive2.s3.amazonaws.com/123456%2Fb8f64de1-e218-4091-9544-4cbf369fc238%2Farchive.mp4?Expires=1395188695&AWSAccessKeyId=AKIAI6LQCPIXYVWCQV6Q&Signature=xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx"
|
56
|
+
}, {
|
57
|
+
"createdAt" : 1394321113000,
|
58
|
+
"duration" : 1294,
|
59
|
+
"id" : "832641bf-5dbf-41a1-ad94-fea213e59a92",
|
60
|
+
"name" : "showtime",
|
61
|
+
"partnerId" : 123456,
|
62
|
+
"reason" : "",
|
63
|
+
"sessionId" : "SESSIONID",
|
64
|
+
"size" : 42165242,
|
65
|
+
"status" : "available",
|
66
|
+
"url" : "http://tokbox.com.archive2.s3.amazonaws.com/123456%2F832641bf-5dbf-41a1-ad94-fea213e59a92%2Farchive.mp4?Expires=1395188695&AWSAccessKeyId=AKIAI6LQCPIXYVWCQV6Q&Signature=xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx"
|
67
|
+
} ]
|
68
|
+
}
|
69
|
+
http_version:
|
70
|
+
recorded_at: Wed, 19 Mar 2017 00:44:22 GMT
|
71
|
+
recorded_with: VCR 2.8.0
|
@@ -7,10 +7,10 @@ http_interactions:
|
|
7
7
|
encoding: UTF-8
|
8
8
|
string: archiveMode=always&p2p.preference=disabled
|
9
9
|
headers:
|
10
|
-
X-Tb-Partner-Auth:
|
11
|
-
- 123456:1234567890abcdef1234567890abcdef1234567890
|
12
10
|
User-Agent:
|
13
11
|
- OpenTok-Ruby-SDK/<%= version %>
|
12
|
+
X-Opentok-Auth:
|
13
|
+
- eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiIsImlzdCI6InByb2plY3QifQ.eyJpc3MiOiIxMjM0NTYiLCJpYXQiOjE0OTI1MTA2NjAsImV4cCI6MTQ5MjUxMDk2MH0.Oh_JHhtEUKK1pPV4s6neXJj_RXI8EcEpJRRpG_2c9U0
|
14
14
|
response:
|
15
15
|
status:
|
16
16
|
code: 200
|
@@ -7,10 +7,10 @@ http_interactions:
|
|
7
7
|
encoding: UTF-8
|
8
8
|
string: p2p.preference=enabled
|
9
9
|
headers:
|
10
|
-
X-Tb-Partner-Auth:
|
11
|
-
- 123456:1234567890abcdef1234567890abcdef1234567890
|
12
10
|
User-Agent:
|
13
11
|
- OpenTok-Ruby-SDK/<%= version %>
|
12
|
+
X-Opentok-Auth:
|
13
|
+
- eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiIsImlzdCI6InByb2plY3QifQ.eyJpc3MiOiIxMjM0NTYiLCJpYXQiOjE0OTI1MTA2NjAsImV4cCI6MTQ5MjUxMDk2MH0.Oh_JHhtEUKK1pPV4s6neXJj_RXI8EcEpJRRpG_2c9U0
|
14
14
|
response:
|
15
15
|
status:
|
16
16
|
code: 200
|
@@ -7,10 +7,10 @@ http_interactions:
|
|
7
7
|
encoding: UTF-8
|
8
8
|
string: p2p.preference=enabled
|
9
9
|
headers:
|
10
|
-
X-Tb-Partner-Auth:
|
11
|
-
- 123456:1234567890abcdef1234567890abcdef1234567890
|
12
10
|
User-Agent:
|
13
11
|
- OpenTok-Ruby-SDK/<%= version %>
|
12
|
+
X-Opentok-Auth:
|
13
|
+
- eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiIsImlzdCI6InByb2plY3QifQ.eyJpc3MiOiIxMjM0NTYiLCJpYXQiOjE0OTI1MTA2NjAsImV4cCI6MTQ5MjUxMDk2MH0.Oh_JHhtEUKK1pPV4s6neXJj_RXI8EcEpJRRpG_2c9U0
|
14
14
|
response:
|
15
15
|
status:
|
16
16
|
code: 200
|
@@ -7,10 +7,10 @@ http_interactions:
|
|
7
7
|
encoding: UTF-8
|
8
8
|
string: p2p.preference=enabled
|
9
9
|
headers:
|
10
|
-
X-Tb-Partner-Auth:
|
11
|
-
- 123456:1234567890abcdef1234567890abcdef1234567890
|
12
10
|
User-Agent:
|
13
11
|
- OpenTok-Ruby-SDK/<%= version %>
|
12
|
+
X-Opentok-Auth:
|
13
|
+
- eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiIsImlzdCI6InByb2plY3QifQ.eyJpc3MiOiIxMjM0NTYiLCJpYXQiOjE0OTI1MTA2NjAsImV4cCI6MTQ5MjUxMDk2MH0.Oh_JHhtEUKK1pPV4s6neXJj_RXI8EcEpJRRpG_2c9U0
|
14
14
|
response:
|
15
15
|
status:
|
16
16
|
code: 200
|
@@ -7,10 +7,10 @@ http_interactions:
|
|
7
7
|
encoding: UTF-8
|
8
8
|
string: location=12.34.56.78&p2p.preference=enabled
|
9
9
|
headers:
|
10
|
-
X-Tb-Partner-Auth:
|
11
|
-
- 123456:1234567890abcdef1234567890abcdef1234567890
|
12
10
|
User-Agent:
|
13
11
|
- OpenTok-Ruby-SDK/<%= version %>
|
12
|
+
X-Opentok-Auth:
|
13
|
+
- eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiIsImlzdCI6InByb2plY3QifQ.eyJpc3MiOiIxMjM0NTYiLCJpYXQiOjE0OTI1MTA2NjAsImV4cCI6MTQ5MjUxMDk2MH0.Oh_JHhtEUKK1pPV4s6neXJj_RXI8EcEpJRRpG_2c9U0
|
14
14
|
response:
|
15
15
|
status:
|
16
16
|
code: 200
|