vzaar_api 2.0.0 → 2.0.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (56) hide show
  1. checksums.yaml +5 -5
  2. data/.gitignore +2 -0
  3. data/README.md +2 -2
  4. data/lib/vzaar_api/abstract.rb +1 -1
  5. data/lib/vzaar_api/lib/active_object.rb +9 -4
  6. data/lib/vzaar_api/lib/api.rb +2 -1
  7. data/lib/vzaar_api/lib/has_resource_url.rb +7 -4
  8. data/lib/vzaar_api/lib/paged_resource.rb +7 -2
  9. data/lib/vzaar_api/lib/will_paginate.rb +5 -1
  10. data/lib/vzaar_api/playlist.rb +1 -1
  11. data/lib/vzaar_api/signature/abstract.rb +17 -4
  12. data/lib/vzaar_api/signature/multipart.rb +1 -1
  13. data/lib/vzaar_api/signature/single.rb +1 -1
  14. data/lib/vzaar_api/strategy/image/abstract.rb +25 -0
  15. data/lib/vzaar_api/strategy/image/create.rb +21 -0
  16. data/lib/vzaar_api/strategy/image/update.rb +11 -0
  17. data/lib/vzaar_api/strategy/subtitle/create.rb +36 -0
  18. data/lib/vzaar_api/upload/s3.rb +2 -4
  19. data/lib/vzaar_api/version.rb +1 -1
  20. data/lib/vzaar_api/video/subtitle.rb +38 -0
  21. data/lib/vzaar_api/video.rb +8 -1
  22. data/lib/vzaar_api.rb +5 -0
  23. data/spec/fixtures/vcr_cassettes/signature/multipart_201.yml +20 -20
  24. data/spec/fixtures/vcr_cassettes/signature/multipart_422.yml +12 -12
  25. data/spec/fixtures/vcr_cassettes/signature/single_201.yml +20 -20
  26. data/spec/fixtures/vcr_cassettes/signature/single_422.yml +11 -11
  27. data/spec/fixtures/vcr_cassettes/subtitles/create_201.yml +58 -0
  28. data/spec/fixtures/vcr_cassettes/subtitles/create_422.yml +48 -0
  29. data/spec/fixtures/vcr_cassettes/subtitles/create_from_file_201.yml +63 -0
  30. data/spec/fixtures/vcr_cassettes/subtitles/delete_204.yml +52 -0
  31. data/spec/fixtures/vcr_cassettes/subtitles/paginate.yml +58 -0
  32. data/spec/fixtures/vcr_cassettes/subtitles/paginate_first.yml +58 -0
  33. data/spec/fixtures/vcr_cassettes/subtitles/paginate_last.yml +113 -0
  34. data/spec/fixtures/vcr_cassettes/subtitles/paginate_next.yml +113 -0
  35. data/spec/fixtures/vcr_cassettes/subtitles/update_200.yml +113 -0
  36. data/spec/fixtures/vcr_cassettes/subtitles/update_422.yml +104 -0
  37. data/spec/fixtures/vcr_cassettes/upload/multipart_201.yml +162 -144
  38. data/spec/fixtures/vcr_cassettes/upload/multipart_403.yml +12 -116545
  39. data/spec/fixtures/vcr_cassettes/upload/single_201.yml +12 -23353
  40. data/spec/fixtures/vcr_cassettes/upload/single_403.yml +12 -23341
  41. data/spec/fixtures/vcr_cassettes/videos/create/link_201.yml +24 -22
  42. data/spec/fixtures/vcr_cassettes/videos/create/path_201.yml +55 -23394
  43. data/spec/fixtures/vcr_cassettes/videos/image_frame_202.yml +61 -0
  44. data/spec/fixtures/vcr_cassettes/videos/image_frame_422.yml +48 -0
  45. data/spec/fixtures/vcr_cassettes/videos/image_upload_frame_202.yml +62 -0
  46. data/spec/fixtures/vcr_cassettes/videos/image_upload_frame_422.yml +49 -0
  47. data/spec/support/files/drex.jpg +0 -0
  48. data/spec/support/files/fr.vtt +4 -0
  49. data/spec/support/helpers.rb +2 -3
  50. data/spec/support/shared_examples.rb +23 -0
  51. data/spec/vzaar_api/signature/multipart_spec.rb +34 -21
  52. data/spec/vzaar_api/signature/single_spec.rb +27 -16
  53. data/spec/vzaar_api/subtitle_spec.rb +206 -0
  54. data/spec/vzaar_api/upload/s3_spec.rb +40 -37
  55. data/spec/vzaar_api/video_spec.rb +55 -2
  56. metadata +45 -4
@@ -2,21 +2,21 @@
2
2
  http_interactions:
3
3
  - request:
4
4
  method: post
5
- uri: https://app.vzaar.localhost/api/v2/signature/single
5
+ uri: https://app.vzaar.localhost/api/v2/signature/single/2
6
6
  body:
7
7
  encoding: UTF-8
8
- string: '{"filename":"video.mp4","filesize":25165824,"uploader":"Ruby-2.0.0-alpha"}'
8
+ string: '{"filename":"video.mp4","filesize":25165824,"uploader":"Ruby-2.0.0"}'
9
9
  headers:
10
10
  User-Agent:
11
- - HTTPClient/1.0 (2.8.2.4, ruby 2.3.1 (2016-04-26))
11
+ - HTTPClient/1.0 (2.8.3, ruby 2.3.0 (2015-12-25))
12
12
  Accept:
13
13
  - "*/*"
14
14
  Date:
15
- - Thu, 03 Nov 2016 17:41:18 GMT
15
+ - Wed, 28 Nov 2018 08:56:31 GMT
16
16
  X-Auth-Token:
17
- - TUGXzNL17ypaougMYpR3
17
+ - pVrjGuKWP27U_kz4anfy
18
18
  X-Client-Id:
19
- - lair-tend72
19
+ - glide-franca-raise
20
20
  Content-Type:
21
21
  - application/json
22
22
  response:
@@ -25,38 +25,38 @@ http_interactions:
25
25
  message: Created
26
26
  headers:
27
27
  Server:
28
- - nginx/1.10.1
28
+ - nginx
29
29
  Date:
30
- - Thu, 03 Nov 2016 17:41:18 GMT
30
+ - Wed, 28 Nov 2018 08:56:31 GMT
31
31
  Content-Type:
32
32
  - application/json
33
33
  Content-Length:
34
- - '961'
34
+ - '1009'
35
35
  Connection:
36
36
  - keep-alive
37
- X-RateLimit-Limit:
37
+ X-Ratelimit-Limit:
38
38
  - '200'
39
- X-RateLimit-Remaining:
39
+ X-Ratelimit-Remaining:
40
40
  - '199'
41
- X-RateLimit-Reset:
42
- - '1478194938'
43
- X-RateLimit-Reset-In:
44
- - 60 seconds
41
+ X-Ratelimit-Reset:
42
+ - '1543395420'
43
+ X-Ratelimit-Reset-In:
44
+ - 29 seconds
45
45
  Cache-Control:
46
46
  - no-store, must-revalidate, private, max-age=0
47
47
  X-Request-Id:
48
- - c5be2375-35ce-4834-a000-656ea69b414d
48
+ - 95c768c5-f198-4737-ad12-1f39acdfd43d
49
49
  X-Runtime:
50
- - '0.060239'
50
+ - '0.343110'
51
51
  Set-Cookie:
52
52
  - __profilin=p%3Dt; path=/
53
53
  - __profilin=p%3Dt; path=/
54
54
  - __profilin=p%3Dt; path=/
55
55
  X-Miniprofiler-Ids:
56
- - '["t6b82brzobr1bsjkl2kr","4cgrjuu9znv5flechaye","xnttqh4f6tb6mlow6fqp","51m8dv0qththvbewgq13","x64kuijqm7wvs2v4hn7w","huk6yekaaonvewr8gorm","vbeuauig2dkult7iwd88","20346z4sk0xdmgjxe013","ojqf7ud6fx3fp4ugy5qy","a3g9j8ng0wd0z95f8byp"]'
56
+ - '["xr2g8orikxxkzhefaeec","x6d0sryoaznh4tbj83i2","8fwa4v4jf9bmwd6vvqr","wng1g0lxjpf0d1m0xiff","t9k7dkc5tnuowk9auwey","smpx96fbyoyotkt4xebh"]'
57
57
  body:
58
58
  encoding: UTF-8
59
- string: '{"data":{"access_key_id":"access_key_id","key":"vzaar/t8d/ec9/source/t8dec9434bcc64622b68d1dc16f3ddffap/${filename}","acl":"private","policy":"policy","signature":"signature","success_action_status":"201","content_type":"binary/octet-stream","guid":"guid","bucket":"vzaar-upload-development","upload_hostname":"https://vzaar-upload-development.s3.amazonaws.com"}}'
59
+ string: '{"data":{"x-amz-credential":"credential","x-amz-algorithm":"AWS4-HMAC-SHA256","x-amz-date":"date","x-amz-signature":"signature","key":"vzaar/twc/Kqm/source/twcKqmLoY-d4/${filename}","acl":"private","policy":"policy","success_action_status":"201","guid":"guid","bucket":"vzaar-upload-development","upload_hostname":"https://vzaar-upload-development.s3.amazonaws.com"}}'
60
60
  http_version:
61
- recorded_at: Thu, 03 Nov 2016 17:41:18 GMT
61
+ recorded_at: Wed, 28 Nov 2018 08:56:31 GMT
62
62
  recorded_with: VCR 3.0.3
@@ -2,21 +2,21 @@
2
2
  http_interactions:
3
3
  - request:
4
4
  method: post
5
- uri: https://app.vzaar.localhost/api/v2/signature/single
5
+ uri: https://app.vzaar.localhost/api/v2/signature/single/2
6
6
  body:
7
7
  encoding: UTF-8
8
8
  string: '{"filename":"video.mp4"}'
9
9
  headers:
10
10
  User-Agent:
11
- - HTTPClient/1.0 (2.8.2.4, ruby 2.3.1 (2016-04-26))
11
+ - HTTPClient/1.0 (2.8.3, ruby 2.3.0 (2015-12-25))
12
12
  Accept:
13
13
  - "*/*"
14
14
  Date:
15
- - Thu, 03 Nov 2016 17:43:51 GMT
15
+ - Wed, 28 Nov 2018 09:38:27 GMT
16
16
  X-Auth-Token:
17
- - TUGXzNL17ypaougMYpR3
17
+ - pVrjGuKWP27U_kz4anfy
18
18
  X-Client-Id:
19
- - lair-tend72
19
+ - glide-franca-raise
20
20
  Content-Type:
21
21
  - application/json
22
22
  response:
@@ -25,9 +25,9 @@ http_interactions:
25
25
  message: Unprocessable Entity
26
26
  headers:
27
27
  Server:
28
- - nginx/1.10.1
28
+ - nginx
29
29
  Date:
30
- - Thu, 03 Nov 2016 17:43:51 GMT
30
+ - Wed, 28 Nov 2018 09:38:27 GMT
31
31
  Content-Type:
32
32
  - application/json
33
33
  Content-Length:
@@ -37,15 +37,15 @@ http_interactions:
37
37
  Cache-Control:
38
38
  - no-cache
39
39
  X-Request-Id:
40
- - d07ac4e8-0d80-47f1-b9bb-80696ddc42be
40
+ - 9390cb21-4c9d-4eae-8327-9ea0b5dc7e64
41
41
  X-Runtime:
42
- - '0.050492'
42
+ - '0.032501'
43
43
  Set-Cookie:
44
44
  - __profilin=p%3Dt; path=/
45
45
  - __profilin=p%3Dt; path=/
46
46
  body:
47
47
  encoding: UTF-8
48
48
  string: '{"errors":[{"message":"Invalid parameters","detail":"uploader is missing"}]}'
49
- http_version:
50
- recorded_at: Thu, 03 Nov 2016 17:43:51 GMT
49
+ http_version:
50
+ recorded_at: Wed, 28 Nov 2018 09:38:27 GMT
51
51
  recorded_with: VCR 3.0.3
@@ -0,0 +1,58 @@
1
+ ---
2
+ http_interactions:
3
+ - request:
4
+ method: post
5
+ uri: https://app.vzaar.localhost/api/v2/videos/14370501/subtitles/
6
+ body:
7
+ encoding: UTF-8
8
+ string: '{"content":"WEBVTT\\n","code":"pl"}'
9
+ headers:
10
+ User-Agent:
11
+ - HTTPClient/1.0 (2.8.3, ruby 2.3.0 (2015-12-25))
12
+ Accept:
13
+ - "*/*"
14
+ Date:
15
+ - Thu, 06 Dec 2018 14:33:29 GMT
16
+ X-Auth-Token:
17
+ - pVrjGuKWP27U_kz4anfy
18
+ X-Client-Id:
19
+ - glide-franca-raise
20
+ Content-Type:
21
+ - application/json
22
+ response:
23
+ status:
24
+ code: 201
25
+ message: Created
26
+ headers:
27
+ Cache-Control:
28
+ - max-age=0, private, must-revalidate
29
+ Content-Type:
30
+ - application/json
31
+ Date:
32
+ - Thu, 06 Dec 2018 14:33:29 GMT
33
+ Etag:
34
+ - W/"b8a607f5f46f1e2d8c54e61c75430bfe"
35
+ Server:
36
+ - nginx
37
+ X-Ratelimit-Limit:
38
+ - '200'
39
+ X-Ratelimit-Remaining:
40
+ - '199'
41
+ X-Ratelimit-Reset:
42
+ - '1544106840'
43
+ X-Ratelimit-Reset-In:
44
+ - 31 seconds
45
+ X-Request-Id:
46
+ - 2c83c0e7-59b1-48aa-af23-cba89223c7a6
47
+ X-Runtime:
48
+ - '0.118339'
49
+ Content-Length:
50
+ - '206'
51
+ Connection:
52
+ - keep-alive
53
+ body:
54
+ encoding: UTF-8
55
+ string: '{"data":{"id":26888,"language":"Polish","code":"pl","title":"14370501-pl.vtt","url":"https://view.vzaar.localhost/subtitles/26888","created_at":"2018-12-06T14:33:29.355Z","updated_at":"2018-12-06T14:33:29.355Z"}}'
56
+ http_version:
57
+ recorded_at: Thu, 06 Dec 2018 14:33:30 GMT
58
+ recorded_with: VCR 3.0.3
@@ -0,0 +1,48 @@
1
+ ---
2
+ http_interactions:
3
+ - request:
4
+ method: post
5
+ uri: https://app.vzaar.localhost/api/v2/videos/14370501/subtitles/
6
+ body:
7
+ encoding: UTF-8
8
+ string: '{"content":"WEBVTT\\n"}'
9
+ headers:
10
+ User-Agent:
11
+ - HTTPClient/1.0 (2.8.3, ruby 2.3.0 (2015-12-25))
12
+ Accept:
13
+ - "*/*"
14
+ Date:
15
+ - Thu, 06 Dec 2018 14:43:24 GMT
16
+ X-Auth-Token:
17
+ - pVrjGuKWP27U_kz4anfy
18
+ X-Client-Id:
19
+ - glide-franca-raise
20
+ Content-Type:
21
+ - application/json
22
+ response:
23
+ status:
24
+ code: 422
25
+ message: Unprocessable Entity
26
+ headers:
27
+ Cache-Control:
28
+ - no-cache
29
+ Content-Type:
30
+ - application/json
31
+ Date:
32
+ - Thu, 06 Dec 2018 14:43:24 GMT
33
+ Server:
34
+ - nginx
35
+ X-Request-Id:
36
+ - 69a577a8-0053-4be6-9c3f-c022ea426be6
37
+ X-Runtime:
38
+ - '0.014714'
39
+ Content-Length:
40
+ - '72'
41
+ Connection:
42
+ - keep-alive
43
+ body:
44
+ encoding: UTF-8
45
+ string: '{"errors":[{"message":"Invalid parameters","detail":"code is missing"}]}'
46
+ http_version:
47
+ recorded_at: Thu, 06 Dec 2018 14:43:25 GMT
48
+ recorded_with: VCR 3.0.3
@@ -0,0 +1,63 @@
1
+ ---
2
+ http_interactions:
3
+ - request:
4
+ method: post
5
+ uri: https://app.vzaar.localhost/api/v2/videos/14370501/subtitles/
6
+ body:
7
+ encoding: UTF-8
8
+ string: "--5bedb330109da477ba952cd3d0313234b23560f9\r\nContent-Disposition:
9
+ form-data; name=\"file\"; filename=\"fr.vtt\"; modification-date=\"Thu, 06
10
+ Dec 2018 12:19:17 +0100\"; read-date=\"Thu, 06 Dec 2018 12:19:17 +0100\"\r\nContent-Type:
11
+ application/octet-stream\r\n\r\nWEBVTT\n\n00:00:37.000 --> 00:00:39.210\n-
12
+ Hello!\r\n--5bedb330109da477ba952cd3d0313234b23560f9\r\nContent-Disposition:
13
+ form-data; name=\"code\"\r\n\r\nde\r\n--5bedb330109da477ba952cd3d0313234b23560f9--\r\n\r\n"
14
+ headers:
15
+ User-Agent:
16
+ - HTTPClient/1.0 (2.8.3, ruby 2.3.0 (2015-12-25))
17
+ Accept:
18
+ - "*/*"
19
+ Date:
20
+ - Thu, 06 Dec 2018 14:29:41 GMT
21
+ X-Auth-Token:
22
+ - pVrjGuKWP27U_kz4anfy
23
+ X-Client-Id:
24
+ - glide-franca-raise
25
+ Content-Type:
26
+ - multipart/form-data; boundary=5bedb330109da477ba952cd3d0313234b23560f9
27
+ response:
28
+ status:
29
+ code: 201
30
+ message: Created
31
+ headers:
32
+ Cache-Control:
33
+ - max-age=0, private, must-revalidate
34
+ Content-Type:
35
+ - application/json
36
+ Date:
37
+ - Thu, 06 Dec 2018 14:29:41 GMT
38
+ Etag:
39
+ - W/"838e07b626343e1bdc38e2a160468b5f"
40
+ Server:
41
+ - nginx
42
+ X-Ratelimit-Limit:
43
+ - '200'
44
+ X-Ratelimit-Remaining:
45
+ - '195'
46
+ X-Ratelimit-Reset:
47
+ - '1544106600'
48
+ X-Ratelimit-Reset-In:
49
+ - 19 seconds
50
+ X-Request-Id:
51
+ - dad3cbdb-b6fb-4f53-9375-08d12da0c40f
52
+ X-Runtime:
53
+ - '0.051224'
54
+ Content-Length:
55
+ - '206'
56
+ Connection:
57
+ - keep-alive
58
+ body:
59
+ encoding: UTF-8
60
+ string: '{"data":{"id":26887,"language":"German","code":"de","title":"14370501-de.vtt","url":"https://view.vzaar.localhost/subtitles/26887","created_at":"2018-12-06T14:29:41.557Z","updated_at":"2018-12-06T14:29:41.557Z"}}'
61
+ http_version:
62
+ recorded_at: Thu, 06 Dec 2018 14:29:42 GMT
63
+ recorded_with: VCR 3.0.3
@@ -0,0 +1,52 @@
1
+ ---
2
+ http_interactions:
3
+ - request:
4
+ method: delete
5
+ uri: https://app.vzaar.localhost/api/v2/videos/14370501/subtitles/26864
6
+ body:
7
+ encoding: UTF-8
8
+ string: ''
9
+ headers:
10
+ User-Agent:
11
+ - HTTPClient/1.0 (2.8.3, ruby 2.3.0 (2015-12-25))
12
+ Accept:
13
+ - "*/*"
14
+ Date:
15
+ - Thu, 06 Dec 2018 14:50:12 GMT
16
+ X-Auth-Token:
17
+ - pVrjGuKWP27U_kz4anfy
18
+ X-Client-Id:
19
+ - glide-franca-raise
20
+ Content-Type:
21
+ - application/json
22
+ response:
23
+ status:
24
+ code: 204
25
+ message: No Content
26
+ headers:
27
+ Cache-Control:
28
+ - no-cache
29
+ Date:
30
+ - Thu, 06 Dec 2018 14:50:12 GMT
31
+ Server:
32
+ - nginx
33
+ X-Ratelimit-Limit:
34
+ - '200'
35
+ X-Ratelimit-Remaining:
36
+ - '199'
37
+ X-Ratelimit-Reset:
38
+ - '1544107860'
39
+ X-Ratelimit-Reset-In:
40
+ - 48 seconds
41
+ X-Request-Id:
42
+ - 095ed87c-396c-43f7-b507-9bde6b001c3c
43
+ X-Runtime:
44
+ - '0.021931'
45
+ Connection:
46
+ - keep-alive
47
+ body:
48
+ encoding: UTF-8
49
+ string: ''
50
+ http_version:
51
+ recorded_at: Thu, 06 Dec 2018 14:50:12 GMT
52
+ recorded_with: VCR 3.0.3
@@ -0,0 +1,58 @@
1
+ ---
2
+ http_interactions:
3
+ - request:
4
+ method: get
5
+ uri: https://app.vzaar.localhost/api/v2/videos/14370501/subtitles/?page=1&per_page=3
6
+ body:
7
+ encoding: UTF-8
8
+ string: ''
9
+ headers:
10
+ User-Agent:
11
+ - HTTPClient/1.0 (2.8.3, ruby 2.3.0 (2015-12-25))
12
+ Accept:
13
+ - "*/*"
14
+ Date:
15
+ - Thu, 06 Dec 2018 15:10:16 GMT
16
+ X-Auth-Token:
17
+ - pVrjGuKWP27U_kz4anfy
18
+ X-Client-Id:
19
+ - glide-franca-raise
20
+ Content-Type:
21
+ - application/json
22
+ response:
23
+ status:
24
+ code: 200
25
+ message: OK
26
+ headers:
27
+ Cache-Control:
28
+ - max-age=0, private, must-revalidate
29
+ Content-Type:
30
+ - application/json
31
+ Date:
32
+ - Thu, 06 Dec 2018 15:10:17 GMT
33
+ Etag:
34
+ - W/"fd8f7f5f21c6c01185efbfb4d5a2c189"
35
+ Server:
36
+ - nginx
37
+ X-Ratelimit-Limit:
38
+ - '200'
39
+ X-Ratelimit-Remaining:
40
+ - '199'
41
+ X-Ratelimit-Reset:
42
+ - '1544109060'
43
+ X-Ratelimit-Reset-In:
44
+ - 43 seconds
45
+ X-Request-Id:
46
+ - 976b6a92-d733-4fba-bb9b-573db329907d
47
+ X-Runtime:
48
+ - '0.051549'
49
+ Content-Length:
50
+ - '693'
51
+ Connection:
52
+ - keep-alive
53
+ body:
54
+ encoding: UTF-8
55
+ string: '{"data":[{"id":26864,"language":"Russian","code":"ru","title":"14370501-ru.srt","url":"https://view.vzaar.localhost/subtitles/26864","created_at":"2018-12-04T09:30:34.000Z","updated_at":"2018-12-04T09:44:37.000Z"},{"id":26887,"language":"German","code":"de","title":"14370501-de.vtt","url":"https://view.vzaar.localhost/subtitles/26887","created_at":"2018-12-06T14:29:41.000Z","updated_at":"2018-12-06T14:29:43.000Z"},{"id":26888,"language":"Polish","code":"pl","title":"14370501-pl.vtt","url":"https://view.vzaar.localhost/subtitles/26888","created_at":"2018-12-06T14:33:29.000Z","updated_at":"2018-12-06T14:33:33.000Z"}],"meta":{"total_count":3,"links":{"first":null,"next":null,"previous":null,"last":null}}}'
56
+ http_version:
57
+ recorded_at: Thu, 06 Dec 2018 15:10:17 GMT
58
+ recorded_with: VCR 3.0.3
@@ -0,0 +1,58 @@
1
+ ---
2
+ http_interactions:
3
+ - request:
4
+ method: get
5
+ uri: https://app.vzaar.localhost/api/v2/videos/14370501/subtitles/?page=1&per_page=1
6
+ body:
7
+ encoding: UTF-8
8
+ string: ''
9
+ headers:
10
+ User-Agent:
11
+ - HTTPClient/1.0 (2.8.3, ruby 2.3.0 (2015-12-25))
12
+ Accept:
13
+ - "*/*"
14
+ Date:
15
+ - Thu, 06 Dec 2018 16:17:12 GMT
16
+ X-Auth-Token:
17
+ - pVrjGuKWP27U_kz4anfy
18
+ X-Client-Id:
19
+ - glide-franca-raise
20
+ Content-Type:
21
+ - application/json
22
+ response:
23
+ status:
24
+ code: 200
25
+ message: OK
26
+ headers:
27
+ Cache-Control:
28
+ - max-age=0, private, must-revalidate
29
+ Content-Type:
30
+ - application/json
31
+ Date:
32
+ - Thu, 06 Dec 2018 16:17:12 GMT
33
+ Etag:
34
+ - W/"81da6eae4099f0c3cb8678f7f1b3b92d"
35
+ Server:
36
+ - nginx
37
+ X-Ratelimit-Limit:
38
+ - '200'
39
+ X-Ratelimit-Remaining:
40
+ - '199'
41
+ X-Ratelimit-Reset:
42
+ - '1544113080'
43
+ X-Ratelimit-Reset-In:
44
+ - 48 seconds
45
+ X-Request-Id:
46
+ - b1fa629d-2485-49c1-b73d-485b9f5578b0
47
+ X-Runtime:
48
+ - '0.021589'
49
+ Content-Length:
50
+ - '543'
51
+ Connection:
52
+ - keep-alive
53
+ body:
54
+ encoding: UTF-8
55
+ string: '{"data":[{"id":26864,"language":"Serbian","code":"sr","title":"14370501-sr.srt","url":"https://view.vzaar.localhost/subtitles/26864","created_at":"2018-12-04T09:30:34.000Z","updated_at":"2018-12-06T15:58:45.000Z"}],"meta":{"total_count":3,"links":{"first":"https://app.vzaar.localhost/api/v2/videos/14370501/subtitles?id=14370501&page=1&per_page=1","next":"https://app.vzaar.localhost/api/v2/videos/14370501/subtitles?id=14370501&page=2&per_page=1","previous":null,"last":"https://app.vzaar.localhost/api/v2/videos/14370501/subtitles?id=14370501&page=3&per_page=1"}}}'
56
+ http_version:
57
+ recorded_at: Thu, 06 Dec 2018 16:17:12 GMT
58
+ recorded_with: VCR 3.0.3
@@ -0,0 +1,113 @@
1
+ ---
2
+ http_interactions:
3
+ - request:
4
+ method: get
5
+ uri: https://app.vzaar.localhost/api/v2/videos/14370501/subtitles/?page=1&per_page=1
6
+ body:
7
+ encoding: UTF-8
8
+ string: ''
9
+ headers:
10
+ User-Agent:
11
+ - HTTPClient/1.0 (2.8.3, ruby 2.3.0 (2015-12-25))
12
+ Accept:
13
+ - "*/*"
14
+ Date:
15
+ - Thu, 06 Dec 2018 16:14:34 GMT
16
+ X-Auth-Token:
17
+ - pVrjGuKWP27U_kz4anfy
18
+ X-Client-Id:
19
+ - glide-franca-raise
20
+ Content-Type:
21
+ - application/json
22
+ response:
23
+ status:
24
+ code: 200
25
+ message: OK
26
+ headers:
27
+ Cache-Control:
28
+ - max-age=0, private, must-revalidate
29
+ Content-Type:
30
+ - application/json
31
+ Date:
32
+ - Thu, 06 Dec 2018 16:14:34 GMT
33
+ Etag:
34
+ - W/"81da6eae4099f0c3cb8678f7f1b3b92d"
35
+ Server:
36
+ - nginx
37
+ X-Ratelimit-Limit:
38
+ - '200'
39
+ X-Ratelimit-Remaining:
40
+ - '199'
41
+ X-Ratelimit-Reset:
42
+ - '1544112900'
43
+ X-Ratelimit-Reset-In:
44
+ - 26 seconds
45
+ X-Request-Id:
46
+ - 17036ba1-4fb4-4200-b87f-cf2567139415
47
+ X-Runtime:
48
+ - '0.023001'
49
+ Content-Length:
50
+ - '543'
51
+ Connection:
52
+ - keep-alive
53
+ body:
54
+ encoding: UTF-8
55
+ string: '{"data":[{"id":26864,"language":"Serbian","code":"sr","title":"14370501-sr.srt","url":"https://view.vzaar.localhost/subtitles/26864","created_at":"2018-12-04T09:30:34.000Z","updated_at":"2018-12-06T15:58:45.000Z"}],"meta":{"total_count":3,"links":{"first":"https://app.vzaar.localhost/api/v2/videos/14370501/subtitles?id=14370501&page=1&per_page=1","next":"https://app.vzaar.localhost/api/v2/videos/14370501/subtitles?id=14370501&page=2&per_page=1","previous":null,"last":"https://app.vzaar.localhost/api/v2/videos/14370501/subtitles?id=14370501&page=3&per_page=1"}}}'
56
+ http_version:
57
+ recorded_at: Thu, 06 Dec 2018 16:14:34 GMT
58
+ - request:
59
+ method: get
60
+ uri: https://app.vzaar.localhost/api/v2/videos/14370501/subtitles
61
+ body:
62
+ encoding: UTF-8
63
+ string: ''
64
+ headers:
65
+ User-Agent:
66
+ - HTTPClient/1.0 (2.8.3, ruby 2.3.0 (2015-12-25))
67
+ Accept:
68
+ - "*/*"
69
+ Date:
70
+ - Thu, 06 Dec 2018 16:14:34 GMT
71
+ X-Auth-Token:
72
+ - pVrjGuKWP27U_kz4anfy
73
+ X-Client-Id:
74
+ - glide-franca-raise
75
+ Content-Type:
76
+ - application/json
77
+ response:
78
+ status:
79
+ code: 200
80
+ message: OK
81
+ headers:
82
+ Cache-Control:
83
+ - max-age=0, private, must-revalidate
84
+ Content-Type:
85
+ - application/json
86
+ Date:
87
+ - Thu, 06 Dec 2018 16:14:35 GMT
88
+ Etag:
89
+ - W/"655cb883805e72172700870a00a2cceb"
90
+ Server:
91
+ - nginx
92
+ X-Ratelimit-Limit:
93
+ - '200'
94
+ X-Ratelimit-Remaining:
95
+ - '198'
96
+ X-Ratelimit-Reset:
97
+ - '1544112900'
98
+ X-Ratelimit-Reset-In:
99
+ - 25 seconds
100
+ X-Request-Id:
101
+ - 831fc446-0566-41a4-9c61-fc8f54075c6c
102
+ X-Runtime:
103
+ - '0.044178'
104
+ Content-Length:
105
+ - '542'
106
+ Connection:
107
+ - keep-alive
108
+ body:
109
+ encoding: UTF-8
110
+ string: '{"data":[{"id":26888,"language":"Polish","code":"pl","title":"14370501-pl.vtt","url":"https://view.vzaar.localhost/subtitles/26888","created_at":"2018-12-06T14:33:29.000Z","updated_at":"2018-12-06T14:33:33.000Z"}],"meta":{"total_count":3,"links":{"first":"https://app.vzaar.localhost/api/v2/videos/14370501/subtitles?id=14370501&page=1&per_page=1","next":null,"previous":"https://app.vzaar.localhost/api/v2/videos/14370501/subtitles?id=14370501&page=2&per_page=1","last":"https://app.vzaar.localhost/api/v2/videos/14370501/subtitles?id=14370501&page=3&per_page=1"}}}'
111
+ http_version:
112
+ recorded_at: Thu, 06 Dec 2018 16:14:35 GMT
113
+ recorded_with: VCR 3.0.3