vzaar_api 2.0.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (138) hide show
  1. checksums.yaml +7 -0
  2. data/.gitignore +13 -0
  3. data/.rspec +4 -0
  4. data/.tool-versions +1 -0
  5. data/.travis.yml +3 -0
  6. data/Changelog +50 -0
  7. data/Gemfile +3 -0
  8. data/Guardfile +25 -0
  9. data/README.md +55 -0
  10. data/Rakefile +26 -0
  11. data/examples/README.md +33 -0
  12. data/examples/api_envs.yml.example +31 -0
  13. data/examples/category/create_update_delete_spec.rb +100 -0
  14. data/examples/category/list_spec.rb +38 -0
  15. data/examples/category/list_subtree_spec.rb +40 -0
  16. data/examples/category/lookup_spec.rb +35 -0
  17. data/examples/encoding_preset/list_spec.rb +38 -0
  18. data/examples/encoding_preset/lookup_spec.rb +35 -0
  19. data/examples/ingest_recipe/create_update_delete_spec.rb +70 -0
  20. data/examples/ingest_recipe/list_spec.rb +38 -0
  21. data/examples/ingest_recipe/lookup_spec.rb +35 -0
  22. data/examples/playlist/create_update_delete_spec.rb +97 -0
  23. data/examples/playlist/list_spec.rb +37 -0
  24. data/examples/playlist/lookup_spec.rb +34 -0
  25. data/examples/rate_limit_spec.rb +18 -0
  26. data/examples/spec_helper.rb +17 -0
  27. data/examples/support/helpers.rb +16 -0
  28. data/examples/support/videos/medium.mp4 +0 -0
  29. data/examples/support/videos/small.mp4 +0 -0
  30. data/examples/video/create_update_delete_spec.rb +73 -0
  31. data/lib/vzaar_api/abstract.rb +9 -0
  32. data/lib/vzaar_api/category.rb +39 -0
  33. data/lib/vzaar_api/encoding_preset.rb +19 -0
  34. data/lib/vzaar_api/ingest_recipe.rb +35 -0
  35. data/lib/vzaar_api/legacy_rendition.rb +11 -0
  36. data/lib/vzaar_api/lib/active_object.rb +92 -0
  37. data/lib/vzaar_api/lib/api.rb +54 -0
  38. data/lib/vzaar_api/lib/api_response.rb +61 -0
  39. data/lib/vzaar_api/lib/has_attributes.rb +49 -0
  40. data/lib/vzaar_api/lib/has_collection_builder.rb +17 -0
  41. data/lib/vzaar_api/lib/has_resource_url.rb +24 -0
  42. data/lib/vzaar_api/lib/paged_resource.rb +80 -0
  43. data/lib/vzaar_api/lib/will_paginate.rb +22 -0
  44. data/lib/vzaar_api/link_upload.rb +14 -0
  45. data/lib/vzaar_api/playlist.rb +29 -0
  46. data/lib/vzaar_api/rendition.rb +16 -0
  47. data/lib/vzaar_api/signature/abstract.rb +40 -0
  48. data/lib/vzaar_api/signature/factory.rb +39 -0
  49. data/lib/vzaar_api/signature/multipart.rb +23 -0
  50. data/lib/vzaar_api/signature/single.rb +17 -0
  51. data/lib/vzaar_api/strategy/video/create.rb +46 -0
  52. data/lib/vzaar_api/upload/s3.rb +90 -0
  53. data/lib/vzaar_api/upload/virtual_file.rb +14 -0
  54. data/lib/vzaar_api/version.rb +4 -0
  55. data/lib/vzaar_api/video.rb +38 -0
  56. data/lib/vzaar_api.rb +60 -0
  57. data/spec/fixtures/vcr_cassettes/categories/each_item.yml +363 -0
  58. data/spec/fixtures/vcr_cassettes/categories/find.yml +61 -0
  59. data/spec/fixtures/vcr_cassettes/categories/find_404.yml +49 -0
  60. data/spec/fixtures/vcr_cassettes/categories/paginate_first.yml +61 -0
  61. data/spec/fixtures/vcr_cassettes/categories/paginate_last.yml +119 -0
  62. data/spec/fixtures/vcr_cassettes/categories/paginate_next.yml +120 -0
  63. data/spec/fixtures/vcr_cassettes/categories/paginate_previous.yml +120 -0
  64. data/spec/fixtures/vcr_cassettes/categories/subtree.yml +127 -0
  65. data/spec/fixtures/vcr_cassettes/categories/subtree_paginate_first.yml +123 -0
  66. data/spec/fixtures/vcr_cassettes/categories/subtree_paginate_last.yml +185 -0
  67. data/spec/fixtures/vcr_cassettes/categories/subtree_paginate_next.yml +184 -0
  68. data/spec/fixtures/vcr_cassettes/categories/subtree_paginate_previous.yml +184 -0
  69. data/spec/fixtures/vcr_cassettes/encoding_presets/each_item.yml +299 -0
  70. data/spec/fixtures/vcr_cassettes/encoding_presets/find.yml +62 -0
  71. data/spec/fixtures/vcr_cassettes/encoding_presets/find_404.yml +51 -0
  72. data/spec/fixtures/vcr_cassettes/encoding_presets/paginate_first.yml +62 -0
  73. data/spec/fixtures/vcr_cassettes/encoding_presets/paginate_last.yml +121 -0
  74. data/spec/fixtures/vcr_cassettes/encoding_presets/paginate_next.yml +121 -0
  75. data/spec/fixtures/vcr_cassettes/encoding_presets/paginate_previous.yml +121 -0
  76. data/spec/fixtures/vcr_cassettes/ingest_recipes/create_200.yml +63 -0
  77. data/spec/fixtures/vcr_cassettes/ingest_recipes/create_422.yml +52 -0
  78. data/spec/fixtures/vcr_cassettes/ingest_recipes/delete_204.yml +166 -0
  79. data/spec/fixtures/vcr_cassettes/ingest_recipes/delete_422.yml +112 -0
  80. data/spec/fixtures/vcr_cassettes/ingest_recipes/each_item.yml +182 -0
  81. data/spec/fixtures/vcr_cassettes/ingest_recipes/find.yml +62 -0
  82. data/spec/fixtures/vcr_cassettes/ingest_recipes/find_404.yml +51 -0
  83. data/spec/fixtures/vcr_cassettes/ingest_recipes/paginate_first.yml +62 -0
  84. data/spec/fixtures/vcr_cassettes/ingest_recipes/paginate_last.yml +122 -0
  85. data/spec/fixtures/vcr_cassettes/ingest_recipes/paginate_next.yml +121 -0
  86. data/spec/fixtures/vcr_cassettes/ingest_recipes/paginate_previous.yml +122 -0
  87. data/spec/fixtures/vcr_cassettes/ingest_recipes/update_200.yml +242 -0
  88. data/spec/fixtures/vcr_cassettes/ingest_recipes/update_422.yml +113 -0
  89. data/spec/fixtures/vcr_cassettes/playlists/each_item.yml +607 -0
  90. data/spec/fixtures/vcr_cassettes/playlists/find.yml +66 -0
  91. data/spec/fixtures/vcr_cassettes/playlists/find_404.yml +51 -0
  92. data/spec/fixtures/vcr_cassettes/playlists/paginate_first.yml +74 -0
  93. data/spec/fixtures/vcr_cassettes/playlists/paginate_last.yml +146 -0
  94. data/spec/fixtures/vcr_cassettes/playlists/paginate_next.yml +145 -0
  95. data/spec/fixtures/vcr_cassettes/playlists/paginate_previous.yml +145 -0
  96. data/spec/fixtures/vcr_cassettes/signature/multipart_201.yml +62 -0
  97. data/spec/fixtures/vcr_cassettes/signature/multipart_422.yml +52 -0
  98. data/spec/fixtures/vcr_cassettes/signature/single_201.yml +62 -0
  99. data/spec/fixtures/vcr_cassettes/signature/single_422.yml +51 -0
  100. data/spec/fixtures/vcr_cassettes/upload/multipart_201.yml +279868 -0
  101. data/spec/fixtures/vcr_cassettes/upload/multipart_403.yml +116578 -0
  102. data/spec/fixtures/vcr_cassettes/upload/single_201.yml +23388 -0
  103. data/spec/fixtures/vcr_cassettes/upload/single_403.yml +23374 -0
  104. data/spec/fixtures/vcr_cassettes/videos/create/error.yml +51 -0
  105. data/spec/fixtures/vcr_cassettes/videos/create/guid_201.yml +65 -0
  106. data/spec/fixtures/vcr_cassettes/videos/create/guid_error.yml +52 -0
  107. data/spec/fixtures/vcr_cassettes/videos/create/link_201.yml +65 -0
  108. data/spec/fixtures/vcr_cassettes/videos/create/link_error.yml +51 -0
  109. data/spec/fixtures/vcr_cassettes/videos/create/path_201.yml +23509 -0
  110. data/spec/fixtures/vcr_cassettes/videos/delete_204.yml +168 -0
  111. data/spec/fixtures/vcr_cassettes/videos/find.yml +66 -0
  112. data/spec/fixtures/vcr_cassettes/videos/find_404.yml +51 -0
  113. data/spec/fixtures/vcr_cassettes/videos/paginate_first.yml +71 -0
  114. data/spec/fixtures/vcr_cassettes/videos/paginate_last.yml +137 -0
  115. data/spec/fixtures/vcr_cassettes/videos/paginate_next.yml +139 -0
  116. data/spec/fixtures/vcr_cassettes/videos/paginate_previous.yml +139 -0
  117. data/spec/spec_helper.rb +103 -0
  118. data/spec/support/files/video-1.0MB.mp4 +0 -0
  119. data/spec/support/files/video-12.0MB.mp4 +0 -0
  120. data/spec/support/files/video-4.9MB.mp4 +0 -0
  121. data/spec/support/files/video-5.0MB.mp4 +0 -0
  122. data/spec/support/helpers.rb +16 -0
  123. data/spec/vzaar_api/category_spec.rb +141 -0
  124. data/spec/vzaar_api/encoding_preset_spec.rb +92 -0
  125. data/spec/vzaar_api/ingest_recipe_spec.rb +197 -0
  126. data/spec/vzaar_api/lib/api_spec.rb +28 -0
  127. data/spec/vzaar_api/playlist_spec.rb +97 -0
  128. data/spec/vzaar_api/rendition_spec.rb +55 -0
  129. data/spec/vzaar_api/signature/factory_spec.rb +68 -0
  130. data/spec/vzaar_api/signature/multipart_spec.rb +81 -0
  131. data/spec/vzaar_api/signature/single_spec.rb +72 -0
  132. data/spec/vzaar_api/upload/s3_spec.rb +112 -0
  133. data/spec/vzaar_api/video_spec.rb +248 -0
  134. data/spec/vzaar_api/vzaar_api_spec.rb +18 -0
  135. data/spec/vzaar_api_helper.rb +19 -0
  136. data/vzaar.png +0 -0
  137. data/vzaar_api.gemspec +35 -0
  138. metadata +413 -0
@@ -0,0 +1,168 @@
1
+ ---
2
+ http_interactions:
3
+ - request:
4
+ method: get
5
+ uri: https://app.vzaar.localhost/api/v2/videos/7574985
6
+ body:
7
+ encoding: UTF-8
8
+ string: ''
9
+ headers:
10
+ User-Agent:
11
+ - HTTPClient/1.0 (2.8.2.4, ruby 2.3.1 (2016-04-26))
12
+ Accept:
13
+ - "*/*"
14
+ Date:
15
+ - Wed, 11 Jan 2017 11:53:41 GMT
16
+ X-Auth-Token:
17
+ - TUGXzNL17ypaougMYpR3
18
+ X-Client-Id:
19
+ - lair-tend72
20
+ Content-Type:
21
+ - application/json
22
+ response:
23
+ status:
24
+ code: 200
25
+ message: OK
26
+ headers:
27
+ Server:
28
+ - nginx/1.10.2
29
+ Date:
30
+ - Wed, 11 Jan 2017 11:53:42 GMT
31
+ Content-Type:
32
+ - application/json
33
+ Content-Length:
34
+ - '1522'
35
+ Connection:
36
+ - keep-alive
37
+ X-Ratelimit-Limit:
38
+ - '200'
39
+ X-Ratelimit-Remaining:
40
+ - '199'
41
+ X-Ratelimit-Reset:
42
+ - '1484135682'
43
+ X-Ratelimit-Reset-In:
44
+ - 60 seconds
45
+ Cache-Control:
46
+ - no-store, must-revalidate, private, max-age=0
47
+ X-Request-Id:
48
+ - dcc6e40a-0f3d-4710-b8c9-3757043b9776
49
+ X-Runtime:
50
+ - '0.787706'
51
+ Set-Cookie:
52
+ - __profilin=p%3Dt; path=/
53
+ - __profilin=p%3Dt; path=/
54
+ - __profilin=p%3Dt; path=/
55
+ X-Miniprofiler-Ids:
56
+ - '["yp4pkaw5p7o44bxr75bo","3fy6mgr2afxy7fnmrmc0","8bco87xj07ouq3oimd7d","4v4lml72o618p85xj988","m6tpye8bktk065dkpb74","qpcvufnd505f28on9qs0","azwoeo7vjm7pxt4hle4s","zoj27l83i9vsfe4ckcm3","7tmkwzkyfdp0yc8ucb2f","889aaadt4rhaa2uvc8j4"]'
57
+ body:
58
+ encoding: UTF-8
59
+ string: '{"data":{"id":7574985,"title":null,"user_id":79357,"account_id":79357,"description":null,"duration":66.7,"created_at":"2016-12-02T14:05:36.000Z","updated_at":"2017-01-11T11:37:57.000Z","private":false,"seo_url":null,"url":null,"state":"ready","thumbnail_url":"https://view.vzaar.localhost/7574985/thumb","embed_code":"<iframe
60
+ id=\"vzvd-7574985\" name=\"vzvd-7574985\" title=\"video player\" class=\"video-player\"
61
+ type=\"text/html\" width=\"448\" height=\"278\" frameborder=\"0\" allowfullscreen
62
+ allowTransparency=\"true\" mozallowfullscreen webkitAllowFullScreen src=\"//view.vzaar.localhost/7574985/player\"></iframe>","renditions":[{"id":867,"width":480,"height":297,"bitrate":365,"framerate":"60.0","status":"finished","size_in_bytes":3681456},{"id":868,"width":640,"height":397,"bitrate":730,"framerate":"60.0","status":"finished","size_in_bytes":6788137},{"id":869,"width":416,"height":258,"bitrate":145,"framerate":"12.0","status":"finished","size_in_bytes":1970954},{"id":870,"width":960,"height":595,"bitrate":1200,"framerate":"60.0","status":"skipped","size_in_bytes":0},{"id":871,"width":1280,"height":794,"bitrate":2500,"framerate":"60.0","status":"skipped","size_in_bytes":0},{"id":872,"width":1920,"height":1191,"bitrate":3500,"framerate":"60.0","status":"skipped","size_in_bytes":0},{"id":873,"width":2560,"height":1588,"bitrate":8000,"framerate":"60.0","status":"skipped","size_in_bytes":0},{"id":874,"width":448,"height":278,"bitrate":900,"framerate":"25.0","status":"finished","size_in_bytes":7513212}]}}'
63
+ http_version:
64
+ recorded_at: Wed, 11 Jan 2017 11:53:42 GMT
65
+ - request:
66
+ method: delete
67
+ uri: https://app.vzaar.localhost/api/v2/videos/7574985
68
+ body:
69
+ encoding: UTF-8
70
+ string: ''
71
+ headers:
72
+ User-Agent:
73
+ - HTTPClient/1.0 (2.8.2.4, ruby 2.3.1 (2016-04-26))
74
+ Accept:
75
+ - "*/*"
76
+ Date:
77
+ - Wed, 11 Jan 2017 11:53:42 GMT
78
+ X-Auth-Token:
79
+ - TUGXzNL17ypaougMYpR3
80
+ X-Client-Id:
81
+ - lair-tend72
82
+ Content-Type:
83
+ - application/json
84
+ response:
85
+ status:
86
+ code: 204
87
+ message: No Content
88
+ headers:
89
+ Server:
90
+ - nginx/1.10.2
91
+ Date:
92
+ - Wed, 11 Jan 2017 11:53:43 GMT
93
+ Connection:
94
+ - keep-alive
95
+ X-Ratelimit-Limit:
96
+ - '200'
97
+ X-Ratelimit-Remaining:
98
+ - '198'
99
+ X-Ratelimit-Reset:
100
+ - '1484135683'
101
+ X-Ratelimit-Reset-In:
102
+ - 60 seconds
103
+ Cache-Control:
104
+ - no-store, must-revalidate, private, max-age=0
105
+ X-Request-Id:
106
+ - 56f49be3-1c0f-450c-8514-8fe19ed9b94d
107
+ X-Runtime:
108
+ - '0.692756'
109
+ Set-Cookie:
110
+ - __profilin=p%3Dt; path=/
111
+ - __profilin=p%3Dt; path=/
112
+ - __profilin=p%3Dt; path=/
113
+ X-Miniprofiler-Ids:
114
+ - '["qwc01r4ljkeip94seydb","3fy6mgr2afxy7fnmrmc0","8bco87xj07ouq3oimd7d","4v4lml72o618p85xj988","m6tpye8bktk065dkpb74","qpcvufnd505f28on9qs0","azwoeo7vjm7pxt4hle4s","zoj27l83i9vsfe4ckcm3","7tmkwzkyfdp0yc8ucb2f","889aaadt4rhaa2uvc8j4"]'
115
+ body:
116
+ encoding: UTF-8
117
+ string: ''
118
+ http_version:
119
+ recorded_at: Wed, 11 Jan 2017 11:53:43 GMT
120
+ - request:
121
+ method: get
122
+ uri: https://app.vzaar.localhost/api/v2/videos/7574985
123
+ body:
124
+ encoding: UTF-8
125
+ string: ''
126
+ headers:
127
+ User-Agent:
128
+ - HTTPClient/1.0 (2.8.2.4, ruby 2.3.1 (2016-04-26))
129
+ Accept:
130
+ - "*/*"
131
+ Date:
132
+ - Wed, 11 Jan 2017 11:53:43 GMT
133
+ X-Auth-Token:
134
+ - TUGXzNL17ypaougMYpR3
135
+ X-Client-Id:
136
+ - lair-tend72
137
+ Content-Type:
138
+ - application/json
139
+ response:
140
+ status:
141
+ code: 404
142
+ message: Not Found
143
+ headers:
144
+ Server:
145
+ - nginx/1.10.2
146
+ Date:
147
+ - Wed, 11 Jan 2017 11:53:43 GMT
148
+ Content-Type:
149
+ - application/json
150
+ Content-Length:
151
+ - '72'
152
+ Connection:
153
+ - keep-alive
154
+ Cache-Control:
155
+ - no-cache
156
+ X-Request-Id:
157
+ - 27abe399-684b-4290-9b40-4b6f40e1be47
158
+ X-Runtime:
159
+ - '0.043628'
160
+ Set-Cookie:
161
+ - __profilin=p%3Dt; path=/
162
+ - __profilin=p%3Dt; path=/
163
+ body:
164
+ encoding: UTF-8
165
+ string: '{"errors":[{"message":"Not found","detail":"Resource cannot be found"}]}'
166
+ http_version:
167
+ recorded_at: Wed, 11 Jan 2017 11:53:43 GMT
168
+ recorded_with: VCR 3.0.3
@@ -0,0 +1,66 @@
1
+ ---
2
+ http_interactions:
3
+ - request:
4
+ method: get
5
+ uri: https://app.vzaar.localhost/api/v2/videos/7574982
6
+ body:
7
+ encoding: UTF-8
8
+ string: ''
9
+ headers:
10
+ User-Agent:
11
+ - HTTPClient/1.0 (2.8.3, ruby 2.3.3 (2016-11-21))
12
+ Accept:
13
+ - "*/*"
14
+ Date:
15
+ - Mon, 30 Jan 2017 14:00:26 GMT
16
+ X-Auth-Token:
17
+ - TUGXzNL17ypaougMYpR3
18
+ X-Client-Id:
19
+ - lair-tend72
20
+ Content-Type:
21
+ - application/json
22
+ response:
23
+ status:
24
+ code: 200
25
+ message: OK
26
+ headers:
27
+ Server:
28
+ - nginx
29
+ Date:
30
+ - Mon, 30 Jan 2017 14:00:26 GMT
31
+ Content-Type:
32
+ - application/json
33
+ Content-Length:
34
+ - '2109'
35
+ Connection:
36
+ - keep-alive
37
+ X-Ratelimit-Limit:
38
+ - '200'
39
+ X-Ratelimit-Remaining:
40
+ - '197'
41
+ X-Ratelimit-Reset:
42
+ - '1485784886'
43
+ X-Ratelimit-Reset-In:
44
+ - 60 seconds
45
+ Cache-Control:
46
+ - no-store, must-revalidate, private, max-age=0
47
+ X-Request-Id:
48
+ - ea5015f3-95fe-4f54-aebc-d89708335b02
49
+ X-Runtime:
50
+ - '0.099046'
51
+ Set-Cookie:
52
+ - __profilin=p%3Dt; path=/
53
+ - __profilin=p%3Dt; path=/
54
+ - __profilin=p%3Dt; path=/
55
+ X-Miniprofiler-Ids:
56
+ - '["dfywg6v9t15zqr0vsuu9","p57ki8q3u83idq6lhlcy","slxk6ha2bsg02kazzbru","rporu44yewn8l1usruv5","5cq3kcen9zm6qqgm8931","y3w9ciusqmefb57fson","b5kz9yfhgvjxlrmpw5jf","r14xny1refkuui7jnr00","avlzbwi0vsz82fjgv60a","24ftlapyeuowokllfmp9"]'
57
+ body:
58
+ encoding: UTF-8
59
+ string: '{"data":{"id":7574982,"title":"video-mp4","user_id":79357,"account_id":79357,"description":"description","duration":66.7,"created_at":"2016-12-01T17:27:12.000Z","updated_at":"2017-01-30T12:49:41.000Z","private":false,"seo_url":"seo-url","url":"video-url","state":"ready","thumbnail_url":"https://view.vzaar.localhost/7574982/thumb","embed_code":"<iframe
60
+ id=\"vzvd-7574982\" name=\"vzvd-7574982\" title=\"video player\" class=\"video-player\"
61
+ type=\"text/html\" width=\"448\" height=\"278\" frameborder=\"0\" allowfullscreen
62
+ allowTransparency=\"true\" mozallowfullscreen webkitAllowFullScreen src=\"//view.vzaar.localhost/7574982/player\"></iframe>","categories":[{"id":332,"account_id":79357,"user_id":79357,"name":"help
63
+ me!","description":null,"parent_id":2237,"depth":2,"node_children_count":0,"tree_children_count":0,"node_video_count":5,"tree_video_count":5,"created_at":"2015-04-07T09:38:46.000Z","updated_at":"2017-01-30T12:48:56.000Z"},{"id":336,"account_id":79357,"user_id":79357,"name":"Travel","description":null,"parent_id":null,"depth":0,"node_children_count":0,"tree_children_count":0,"node_video_count":7,"tree_video_count":7,"created_at":"2015-04-07T09:47:38.000Z","updated_at":"2017-01-27T12:08:03.000Z"}],"renditions":[{"id":859,"width":480,"height":297,"bitrate":365,"framerate":"60.0","status":"started","size_in_bytes":0},{"id":860,"width":416,"height":258,"bitrate":145,"framerate":"12.0","status":"started","size_in_bytes":0},{"id":861,"width":640,"height":397,"bitrate":730,"framerate":"60.0","status":"finished","size_in_bytes":6788137},{"id":862,"width":448,"height":278,"bitrate":900,"framerate":"25.0","status":"finished","size_in_bytes":7513212},{"id":863,"width":960,"height":595,"bitrate":1200,"framerate":"60.0","status":"skipped","size_in_bytes":0},{"id":864,"width":1280,"height":794,"bitrate":2500,"framerate":"60.0","status":"skipped","size_in_bytes":0},{"id":865,"width":1920,"height":1191,"bitrate":3500,"framerate":"60.0","status":"skipped","size_in_bytes":0},{"id":866,"width":2560,"height":1588,"bitrate":8000,"framerate":"60.0","status":"skipped","size_in_bytes":0}]}}'
64
+ http_version:
65
+ recorded_at: Mon, 30 Jan 2017 14:00:26 GMT
66
+ recorded_with: VCR 3.0.3
@@ -0,0 +1,51 @@
1
+ ---
2
+ http_interactions:
3
+ - request:
4
+ method: get
5
+ uri: https://app.vzaar.localhost/api/v2/videos/-1
6
+ body:
7
+ encoding: UTF-8
8
+ string: ''
9
+ headers:
10
+ User-Agent:
11
+ - HTTPClient/1.0 (2.8.2.4, ruby 2.3.1 (2016-04-26))
12
+ Accept:
13
+ - "*/*"
14
+ Date:
15
+ - Fri, 18 Nov 2016 14:04:38 GMT
16
+ X-Auth-Token:
17
+ - TUGXzNL17ypaougMYpR3
18
+ X-Client-Id:
19
+ - lair-tend72
20
+ Content-Type:
21
+ - application/json
22
+ response:
23
+ status:
24
+ code: 404
25
+ message: Not Found
26
+ headers:
27
+ Server:
28
+ - nginx/1.10.1
29
+ Date:
30
+ - Fri, 18 Nov 2016 14:04:38 GMT
31
+ Content-Type:
32
+ - application/json
33
+ Content-Length:
34
+ - '72'
35
+ Connection:
36
+ - keep-alive
37
+ Cache-Control:
38
+ - no-cache
39
+ X-Request-Id:
40
+ - a500016a-f656-4fb2-acd9-c1ec1831f1d3
41
+ X-Runtime:
42
+ - '0.071982'
43
+ Set-Cookie:
44
+ - __profilin=p%3Dt; path=/
45
+ - __profilin=p%3Dt; path=/
46
+ body:
47
+ encoding: UTF-8
48
+ string: '{"errors":[{"message":"Not found","detail":"Resource cannot be found"}]}'
49
+ http_version:
50
+ recorded_at: Fri, 18 Nov 2016 14:04:38 GMT
51
+ recorded_with: VCR 3.0.3
@@ -0,0 +1,71 @@
1
+ ---
2
+ http_interactions:
3
+ - request:
4
+ method: get
5
+ uri: https://app.vzaar.localhost/api/v2/videos?per_page=3
6
+ body:
7
+ encoding: UTF-8
8
+ string: ''
9
+ headers:
10
+ User-Agent:
11
+ - HTTPClient/1.0 (2.8.2.4, ruby 2.3.1 (2016-04-26))
12
+ Accept:
13
+ - "*/*"
14
+ Date:
15
+ - Fri, 18 Nov 2016 15:55:16 GMT
16
+ X-Auth-Token:
17
+ - TUGXzNL17ypaougMYpR3
18
+ X-Client-Id:
19
+ - lair-tend72
20
+ Content-Type:
21
+ - application/json
22
+ response:
23
+ status:
24
+ code: 200
25
+ message: OK
26
+ headers:
27
+ Server:
28
+ - nginx/1.10.1
29
+ Date:
30
+ - Fri, 18 Nov 2016 15:55:16 GMT
31
+ Content-Type:
32
+ - application/json
33
+ Content-Length:
34
+ - '3521'
35
+ Connection:
36
+ - keep-alive
37
+ X-RateLimit-Limit:
38
+ - '200'
39
+ X-RateLimit-Remaining:
40
+ - '199'
41
+ X-RateLimit-Reset:
42
+ - '1479484576'
43
+ X-RateLimit-Reset-In:
44
+ - 60 seconds
45
+ Cache-Control:
46
+ - no-store, must-revalidate, private, max-age=0
47
+ X-Request-Id:
48
+ - 4f71fec5-b4d2-4736-95d9-9f83c61232dc
49
+ X-Runtime:
50
+ - '0.136508'
51
+ Set-Cookie:
52
+ - __profilin=p%3Dt; path=/
53
+ - __profilin=p%3Dt; path=/
54
+ - __profilin=p%3Dt; path=/
55
+ X-Miniprofiler-Ids:
56
+ - '["rqiwmvfnv7z4cshrc0s3","yibtuiqnohudk1d26xvg","cpo3oiqmi683pkcaj816","dtxr2heeicch5rud7pjt","b4scoosnvmo0xvyqw8fy","58r4vfxumrhgue7kbsai","5dfv6js4ggxyc9qp8qwk","luelw09036g1c3l24a6i","racr2kqe0uft8glynfol","yfqme9j3k1haf6v4sm35"]'
57
+ body:
58
+ encoding: UTF-8
59
+ string: '{"data":[{"id":7574853,"title":"multipart","user_id":79357,"account_id":79357,"description":null,"duration":66.7,"created_at":"2016-11-11T11:36:26.000Z","updated_at":"2016-11-11T11:37:36.000Z","private":false,"seo_url":null,"url":null,"thumbnail_url":"https://view.vzaar.localhost/7574853/thumb","embed_code":"<iframe
60
+ id=\"vzvd-7574853\" name=\"vzvd-7574853\" title=\"video player\" class=\"video-player\"
61
+ type=\"text/html\" width=\"448\" height=\"278\" frameborder=\"0\" allowfullscreen
62
+ allowTransparency=\"true\" mozallowfullscreen webkitAllowFullScreen src=\"//view.vzaar.localhost/7574853/player\"></iframe>","categories":[],"renditions":[{"id":66,"width":416,"height":258,"bitrate":200,"framerate":"12.0","status":"finished"},{"id":67,"width":480,"height":297,"bitrate":400,"framerate":"29.97","status":"finished"},{"id":68,"width":448,"height":278,"bitrate":900,"framerate":"25.0","status":"finished"},{"id":69,"width":1920,"height":1191,"bitrate":5442,"framerate":"29.97","status":"skipped"},{"id":70,"width":640,"height":397,"bitrate":800,"framerate":"29.97","status":"finished"}]},{"id":7574852,"title":"multipart","user_id":79357,"account_id":79357,"description":null,"duration":null,"created_at":"2016-11-10T12:56:31.000Z","updated_at":"2016-11-10T16:58:34.000Z","private":false,"seo_url":null,"url":null,"thumbnail_url":"https://view.vzaar.localhost/7574852/thumb","embed_code":"<iframe
63
+ id=\"vzvd-7574852\" name=\"vzvd-7574852\" title=\"video player\" class=\"video-player\"
64
+ type=\"text/html\" width=\"448\" height=\"278\" frameborder=\"0\" allowfullscreen
65
+ allowTransparency=\"true\" mozallowfullscreen webkitAllowFullScreen src=\"//view.vzaar.localhost/7574852/player\"></iframe>","categories":[],"renditions":[{"id":61,"width":480,"height":297,"bitrate":400,"framerate":"29.97","status":"finished"},{"id":62,"width":416,"height":258,"bitrate":200,"framerate":"12.0","status":"finished"},{"id":63,"width":640,"height":397,"bitrate":800,"framerate":"29.97","status":"finished"},{"id":64,"width":448,"height":278,"bitrate":900,"framerate":"25.0","status":"finished"},{"id":65,"width":1920,"height":1191,"bitrate":5442,"framerate":"29.97","status":"skipped"}]},{"id":7574851,"title":"multipart","user_id":79357,"account_id":79357,"description":null,"duration":null,"created_at":"2016-11-09T17:16:06.000Z","updated_at":"2016-11-09T17:17:06.000Z","private":false,"seo_url":null,"url":null,"thumbnail_url":"https://view.vzaar.localhost/7574851/thumb","embed_code":"<iframe
66
+ id=\"vzvd-7574851\" name=\"vzvd-7574851\" title=\"video player\" class=\"video-player\"
67
+ type=\"text/html\" width=\"448\" height=\"278\" frameborder=\"0\" allowfullscreen
68
+ allowTransparency=\"true\" mozallowfullscreen webkitAllowFullScreen src=\"//view.vzaar.localhost/7574851/player\"></iframe>","categories":[],"renditions":[{"id":56,"width":416,"height":258,"bitrate":200,"framerate":"12.0","status":"finished"},{"id":57,"width":480,"height":297,"bitrate":400,"framerate":"29.97","status":"finished"},{"id":58,"width":640,"height":397,"bitrate":800,"framerate":"29.97","status":"finished"},{"id":59,"width":1920,"height":1191,"bitrate":5442,"framerate":"29.97","status":"skipped"},{"id":60,"width":448,"height":278,"bitrate":900,"framerate":"25.0","status":"finished"}]}],"meta":{"total_count":212,"links":{"first":"https://app.vzaar.localhost/api/v2/videos?order=asc&page=1&per_page=3&state=2","next":"https://app.vzaar.localhost/api/v2/videos?order=asc&page=2&per_page=3&state=2","previous":null,"last":"https://app.vzaar.localhost/api/v2/videos?order=asc&page=71&per_page=3&state=2"}}}'
69
+ http_version:
70
+ recorded_at: Fri, 18 Nov 2016 15:55:16 GMT
71
+ recorded_with: VCR 3.0.3
@@ -0,0 +1,137 @@
1
+ ---
2
+ http_interactions:
3
+ - request:
4
+ method: get
5
+ uri: https://app.vzaar.localhost/api/v2/videos?per_page=3
6
+ body:
7
+ encoding: UTF-8
8
+ string: ''
9
+ headers:
10
+ User-Agent:
11
+ - HTTPClient/1.0 (2.8.2.4, ruby 2.3.1 (2016-04-26))
12
+ Accept:
13
+ - "*/*"
14
+ Date:
15
+ - Fri, 18 Nov 2016 16:12:29 GMT
16
+ X-Auth-Token:
17
+ - TUGXzNL17ypaougMYpR3
18
+ X-Client-Id:
19
+ - lair-tend72
20
+ Content-Type:
21
+ - application/json
22
+ response:
23
+ status:
24
+ code: 200
25
+ message: OK
26
+ headers:
27
+ Server:
28
+ - nginx/1.10.1
29
+ Date:
30
+ - Fri, 18 Nov 2016 16:12:29 GMT
31
+ Content-Type:
32
+ - application/json
33
+ Content-Length:
34
+ - '3533'
35
+ Connection:
36
+ - keep-alive
37
+ X-RateLimit-Limit:
38
+ - '200'
39
+ X-RateLimit-Remaining:
40
+ - '197'
41
+ X-RateLimit-Reset:
42
+ - '1479485609'
43
+ X-RateLimit-Reset-In:
44
+ - 60 seconds
45
+ Cache-Control:
46
+ - no-store, must-revalidate, private, max-age=0
47
+ X-Request-Id:
48
+ - 3ea32133-6228-4c15-a818-2044f3af7bac
49
+ X-Runtime:
50
+ - '0.088067'
51
+ Set-Cookie:
52
+ - __profilin=p%3Dt; path=/
53
+ - __profilin=p%3Dt; path=/
54
+ - __profilin=p%3Dt; path=/
55
+ X-Miniprofiler-Ids:
56
+ - '["jk77ebdisxft5yhfpwv3","yibtuiqnohudk1d26xvg","cpo3oiqmi683pkcaj816","dtxr2heeicch5rud7pjt","b4scoosnvmo0xvyqw8fy","58r4vfxumrhgue7kbsai","5dfv6js4ggxyc9qp8qwk","luelw09036g1c3l24a6i","racr2kqe0uft8glynfol","yfqme9j3k1haf6v4sm35"]'
57
+ body:
58
+ encoding: UTF-8
59
+ string: '{"data":[{"id":7574853,"title":"multipart","user_id":79357,"account_id":79357,"description":null,"duration":66.7,"created_at":"2016-11-11T11:36:26.000Z","updated_at":"2016-11-11T11:37:36.000Z","private":false,"seo_url":null,"url":null,"thumbnail_url":"https://view.vzaar.localhost/7574853/thumb","embed_code":"<iframe
60
+ id=\"vzvd-7574853\" name=\"vzvd-7574853\" title=\"video player\" class=\"video-player\"
61
+ type=\"text/html\" width=\"448\" height=\"278\" frameborder=\"0\" allowfullscreen
62
+ allowTransparency=\"true\" mozallowfullscreen webkitAllowFullScreen src=\"//view.vzaar.localhost/7574853/player\"></iframe>","categories":[],"renditions":[{"id":66,"width":416,"height":258,"bitrate":200,"framerate":"12.0","status":"finished"},{"id":67,"width":480,"height":297,"bitrate":400,"framerate":"29.97","status":"finished"},{"id":68,"width":448,"height":278,"bitrate":900,"framerate":"25.0","status":"finished"},{"id":69,"width":1920,"height":1191,"bitrate":5442,"framerate":"29.97","status":"skipped"},{"id":70,"width":640,"height":397,"bitrate":800,"framerate":"29.97","status":"finished"}]},{"id":7574852,"title":"multipart","user_id":79357,"account_id":79357,"description":null,"duration":null,"created_at":"2016-11-10T12:56:31.000Z","updated_at":"2016-11-10T16:58:34.000Z","private":false,"seo_url":null,"url":null,"thumbnail_url":"https://view.vzaar.localhost/7574852/thumb","embed_code":"<iframe
63
+ id=\"vzvd-7574852\" name=\"vzvd-7574852\" title=\"video player\" class=\"video-player\"
64
+ type=\"text/html\" width=\"448\" height=\"278\" frameborder=\"0\" allowfullscreen
65
+ allowTransparency=\"true\" mozallowfullscreen webkitAllowFullScreen src=\"//view.vzaar.localhost/7574852/player\"></iframe>","categories":[],"renditions":[{"id":61,"width":480,"height":297,"bitrate":400,"framerate":"29.97","status":"finished"},{"id":62,"width":416,"height":258,"bitrate":200,"framerate":"12.0","status":"finished"},{"id":63,"width":640,"height":397,"bitrate":800,"framerate":"29.97","status":"finished"},{"id":64,"width":448,"height":278,"bitrate":900,"framerate":"25.0","status":"finished"},{"id":65,"width":1920,"height":1191,"bitrate":5442,"framerate":"29.97","status":"skipped"}]},{"id":7574851,"title":"multipart","user_id":79357,"account_id":79357,"description":null,"duration":null,"created_at":"2016-11-09T17:16:06.000Z","updated_at":"2016-11-09T17:17:06.000Z","private":false,"seo_url":null,"url":null,"thumbnail_url":"https://view.vzaar.localhost/7574851/thumb","embed_code":"<iframe
66
+ id=\"vzvd-7574851\" name=\"vzvd-7574851\" title=\"video player\" class=\"video-player\"
67
+ type=\"text/html\" width=\"448\" height=\"278\" frameborder=\"0\" allowfullscreen
68
+ allowTransparency=\"true\" mozallowfullscreen webkitAllowFullScreen src=\"//view.vzaar.localhost/7574851/player\"></iframe>","categories":[],"renditions":[{"id":56,"width":416,"height":258,"bitrate":200,"framerate":"12.0","status":"finished"},{"id":57,"width":480,"height":297,"bitrate":400,"framerate":"29.97","status":"finished"},{"id":58,"width":640,"height":397,"bitrate":800,"framerate":"29.97","status":"finished"},{"id":59,"width":1920,"height":1191,"bitrate":5442,"framerate":"29.97","status":"skipped"},{"id":60,"width":448,"height":278,"bitrate":900,"framerate":"25.0","status":"finished"}]}],"meta":{"total_count":212,"links":{"first":"https://app.vzaar.localhost/api/v2/videos?order=asc&page=1&per_page=3&state=ready","next":"https://app.vzaar.localhost/api/v2/videos?order=asc&page=2&per_page=3&state=ready","previous":null,"last":"https://app.vzaar.localhost/api/v2/videos?order=asc&page=71&per_page=3&state=ready"}}}'
69
+ http_version:
70
+ recorded_at: Fri, 18 Nov 2016 16:12:29 GMT
71
+ - request:
72
+ method: get
73
+ uri: https://app.vzaar.localhost/api/v2/videos
74
+ body:
75
+ encoding: UTF-8
76
+ string: ''
77
+ headers:
78
+ User-Agent:
79
+ - HTTPClient/1.0 (2.8.2.4, ruby 2.3.1 (2016-04-26))
80
+ Accept:
81
+ - "*/*"
82
+ Date:
83
+ - Fri, 18 Nov 2016 16:12:29 GMT
84
+ X-Auth-Token:
85
+ - TUGXzNL17ypaougMYpR3
86
+ X-Client-Id:
87
+ - lair-tend72
88
+ Content-Type:
89
+ - application/json
90
+ response:
91
+ status:
92
+ code: 200
93
+ message: OK
94
+ headers:
95
+ Server:
96
+ - nginx/1.10.1
97
+ Date:
98
+ - Fri, 18 Nov 2016 16:12:30 GMT
99
+ Content-Type:
100
+ - application/json
101
+ Content-Length:
102
+ - '1829'
103
+ Connection:
104
+ - keep-alive
105
+ X-RateLimit-Limit:
106
+ - '200'
107
+ X-RateLimit-Remaining:
108
+ - '196'
109
+ X-RateLimit-Reset:
110
+ - '1479485610'
111
+ X-RateLimit-Reset-In:
112
+ - 60 seconds
113
+ Cache-Control:
114
+ - no-store, must-revalidate, private, max-age=0
115
+ X-Request-Id:
116
+ - 4a460dd6-3ee4-445d-b214-2c77d071e201
117
+ X-Runtime:
118
+ - '0.107763'
119
+ Set-Cookie:
120
+ - __profilin=p%3Dt; path=/
121
+ - __profilin=p%3Dt; path=/
122
+ - __profilin=p%3Dt; path=/
123
+ X-Miniprofiler-Ids:
124
+ - '["ow31rd1wdmah208f809o","yibtuiqnohudk1d26xvg","cpo3oiqmi683pkcaj816","dtxr2heeicch5rud7pjt","b4scoosnvmo0xvyqw8fy","58r4vfxumrhgue7kbsai","5dfv6js4ggxyc9qp8qwk","luelw09036g1c3l24a6i","racr2kqe0uft8glynfol","yfqme9j3k1haf6v4sm35"]'
125
+ body:
126
+ encoding: UTF-8
127
+ string: '{"data":[{"id":935900,"title":"Seb & Riley - Close call","user_id":79357,"account_id":79357,"description":null,"duration":53.93,"created_at":"2012-03-11T22:59:18.000Z","updated_at":"2013-11-24T16:16:08.000Z","private":false,"seo_url":null,"url":null,"thumbnail_url":"https://view.vzaar.localhost/935900/thumb","embed_code":"<iframe
128
+ id=\"vzvd-935900\" name=\"vzvd-935900\" title=\"video player\" class=\"video-player\"
129
+ type=\"text/html\" width=\"448\" height=\"798\" frameborder=\"0\" allowfullscreen
130
+ allowTransparency=\"true\" mozallowfullscreen webkitAllowFullScreen src=\"//view.vzaar.localhost/935900/player\"></iframe>","renditions":[],"legacy_renditions":[{"id":1176422,"type":"standard","width":null,"height":null,"bitrate":768,"status":"Finished"}]},{"id":927938,"title":"Copenhagen
131
+ is scary!!","user_id":79357,"account_id":79357,"description":"","duration":6.46,"created_at":"2012-02-28T15:32:47.000Z","updated_at":"2015-03-12T15:39:28.000Z","private":false,"seo_url":null,"url":null,"thumbnail_url":"https://view.vzaar.localhost/927938/thumb","embed_code":"<iframe
132
+ id=\"vzvd-927938\" name=\"vzvd-927938\" title=\"video player\" class=\"video-player\"
133
+ type=\"text/html\" width=\"320\" height=\"570\" frameborder=\"0\" allowfullscreen
134
+ allowTransparency=\"true\" mozallowfullscreen webkitAllowFullScreen src=\"//view.vzaar.localhost/927938/player\"></iframe>","renditions":[],"legacy_renditions":[{"id":1161988,"type":"standard","width":null,"height":null,"bitrate":460,"status":"Finished"}]}],"meta":{"total_count":212,"links":{"first":"https://app.vzaar.localhost/api/v2/videos?order=asc&page=1&per_page=3&state=ready","next":null,"previous":"https://app.vzaar.localhost/api/v2/videos?order=asc&page=70&per_page=3&state=ready","last":"https://app.vzaar.localhost/api/v2/videos?order=asc&page=71&per_page=3&state=ready"}}}'
135
+ http_version:
136
+ recorded_at: Fri, 18 Nov 2016 16:12:30 GMT
137
+ recorded_with: VCR 3.0.3