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,299 @@
1
+ ---
2
+ http_interactions:
3
+ - request:
4
+ method: get
5
+ uri: https://app.vzaar.localhost/api/v2/encoding_presets?per_page=2
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
+ - Tue, 29 Nov 2016 12:51:22 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
+ - Tue, 29 Nov 2016 12:51:23 GMT
31
+ Content-Type:
32
+ - application/json
33
+ Content-Length:
34
+ - '1082'
35
+ Connection:
36
+ - keep-alive
37
+ X-RateLimit-Limit:
38
+ - '200'
39
+ X-RateLimit-Remaining:
40
+ - '199'
41
+ X-RateLimit-Reset:
42
+ - '1480423943'
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
+ - e961e716-383a-4db8-95d3-e8ae1da6444c
49
+ X-Runtime:
50
+ - '0.734981'
51
+ Set-Cookie:
52
+ - __profilin=p%3Dt; path=/
53
+ - __profilin=p%3Dt; path=/
54
+ - __profilin=p%3Dt; path=/
55
+ X-Miniprofiler-Ids:
56
+ - '["r6m61luprumtdr4y6y1i","i2tpnyrwhgkxbjqufub6","d915a38kjxdh0er1pp2o","lasu0jk0xumxtls2wozm","r7hyarvi9ulu86olh4yl","tjz7lwof2rroauok49b","oq57z4vll5hfxq548thx","4btsivncw9hss3vfpynk","5l14cevyny3muo8iyuhk","sb8t1ddfhoyeea9dd2wo"]'
57
+ body:
58
+ encoding: UTF-8
59
+ string: '{"data":[{"id":9,"name":"2.5K UHD","description":"1440p","output_format":"mp4","bitrate_kbps":8000,"max_bitrate_kbps":11000,"long_dimension":2560,"video_codec":"libx264","profile":"high","frame_rate_upper_threshold":"29.97","keyframe_upper_threshold":60,"audio_bitrate_kbps":128,"audio_channels":2,"audio_sample_rate":44100,"created_at":"2016-11-24T14:45:00.000Z","updated_at":"2016-11-24T14:45:00.000Z"},{"id":2,"name":"DNE","description":"Source","output_format":"mp4","bitrate_kbps":null,"max_bitrate_kbps":null,"long_dimension":null,"video_codec":null,"profile":null,"frame_rate_upper_threshold":null,"keyframe_upper_threshold":null,"audio_bitrate_kbps":null,"audio_channels":null,"audio_sample_rate":null,"created_at":"2016-11-09T11:01:38.000Z","updated_at":"2016-11-09T11:01:38.000Z"}],"meta":{"total_count":10,"links":{"first":"https://app.vzaar.localhost/api/v2/encoding_presets?page=1&per_page=2","next":"https://app.vzaar.localhost/api/v2/encoding_presets?page=2&per_page=2","previous":null,"last":"https://app.vzaar.localhost/api/v2/encoding_presets?page=5&per_page=2"}}}'
60
+ http_version:
61
+ recorded_at: Tue, 29 Nov 2016 12:51:23 GMT
62
+ - request:
63
+ method: get
64
+ uri: https://app.vzaar.localhost/api/v2/encoding_presets
65
+ body:
66
+ encoding: UTF-8
67
+ string: ''
68
+ headers:
69
+ User-Agent:
70
+ - HTTPClient/1.0 (2.8.2.4, ruby 2.3.1 (2016-04-26))
71
+ Accept:
72
+ - "*/*"
73
+ Date:
74
+ - Tue, 29 Nov 2016 12:51:23 GMT
75
+ X-Auth-Token:
76
+ - TUGXzNL17ypaougMYpR3
77
+ X-Client-Id:
78
+ - lair-tend72
79
+ Content-Type:
80
+ - application/json
81
+ response:
82
+ status:
83
+ code: 200
84
+ message: OK
85
+ headers:
86
+ Server:
87
+ - nginx/1.10.1
88
+ Date:
89
+ - Tue, 29 Nov 2016 12:51:23 GMT
90
+ Content-Type:
91
+ - application/json
92
+ Content-Length:
93
+ - '1145'
94
+ Connection:
95
+ - keep-alive
96
+ X-RateLimit-Limit:
97
+ - '200'
98
+ X-RateLimit-Remaining:
99
+ - '198'
100
+ X-RateLimit-Reset:
101
+ - '1480423943'
102
+ X-RateLimit-Reset-In:
103
+ - 60 seconds
104
+ Cache-Control:
105
+ - no-store, must-revalidate, private, max-age=0
106
+ X-Request-Id:
107
+ - 2c40b4a9-dba0-4e20-b74d-c8d4ace5c6ad
108
+ X-Runtime:
109
+ - '0.078053'
110
+ Set-Cookie:
111
+ - __profilin=p%3Dt; path=/
112
+ - __profilin=p%3Dt; path=/
113
+ - __profilin=p%3Dt; path=/
114
+ X-Miniprofiler-Ids:
115
+ - '["zeb6f2e3i94ncgkso097","i2tpnyrwhgkxbjqufub6","d915a38kjxdh0er1pp2o","lasu0jk0xumxtls2wozm","r7hyarvi9ulu86olh4yl","tjz7lwof2rroauok49b","oq57z4vll5hfxq548thx","4btsivncw9hss3vfpynk","5l14cevyny3muo8iyuhk","sb8t1ddfhoyeea9dd2wo"]'
116
+ body:
117
+ encoding: UTF-8
118
+ string: '{"data":[{"id":3,"name":"ULD","description":"234p","output_format":"mp4","bitrate_kbps":145,"max_bitrate_kbps":200,"long_dimension":416,"video_codec":"libx264","profile":"baseline","frame_rate_upper_threshold":"12.0","keyframe_upper_threshold":60,"audio_bitrate_kbps":128,"audio_channels":2,"audio_sample_rate":44100,"created_at":"2016-10-24T12:36:47.000Z","updated_at":"2016-10-24T12:36:47.000Z"},{"id":4,"name":"LD","description":"270p","output_format":"mp4","bitrate_kbps":365,"max_bitrate_kbps":500,"long_dimension":480,"video_codec":"libx264","profile":"baseline","frame_rate_upper_threshold":"29.97","keyframe_upper_threshold":60,"audio_bitrate_kbps":128,"audio_channels":2,"audio_sample_rate":44100,"created_at":"2016-10-24T12:36:47.000Z","updated_at":"2016-10-24T12:36:47.000Z"}],"meta":{"total_count":10,"links":{"first":"https://app.vzaar.localhost/api/v2/encoding_presets?page=1&per_page=2","next":"https://app.vzaar.localhost/api/v2/encoding_presets?page=3&per_page=2","previous":"https://app.vzaar.localhost/api/v2/encoding_presets?page=1&per_page=2","last":"https://app.vzaar.localhost/api/v2/encoding_presets?page=5&per_page=2"}}}'
119
+ http_version:
120
+ recorded_at: Tue, 29 Nov 2016 12:51:23 GMT
121
+ - request:
122
+ method: get
123
+ uri: https://app.vzaar.localhost/api/v2/encoding_presets
124
+ body:
125
+ encoding: UTF-8
126
+ string: ''
127
+ headers:
128
+ User-Agent:
129
+ - HTTPClient/1.0 (2.8.2.4, ruby 2.3.1 (2016-04-26))
130
+ Accept:
131
+ - "*/*"
132
+ Date:
133
+ - Tue, 29 Nov 2016 12:51:23 GMT
134
+ X-Auth-Token:
135
+ - TUGXzNL17ypaougMYpR3
136
+ X-Client-Id:
137
+ - lair-tend72
138
+ Content-Type:
139
+ - application/json
140
+ response:
141
+ status:
142
+ code: 200
143
+ message: OK
144
+ headers:
145
+ Server:
146
+ - nginx/1.10.1
147
+ Date:
148
+ - Tue, 29 Nov 2016 12:51:23 GMT
149
+ Content-Type:
150
+ - application/json
151
+ Content-Length:
152
+ - '1139'
153
+ Connection:
154
+ - keep-alive
155
+ X-RateLimit-Limit:
156
+ - '200'
157
+ X-RateLimit-Remaining:
158
+ - '197'
159
+ X-RateLimit-Reset:
160
+ - '1480423943'
161
+ X-RateLimit-Reset-In:
162
+ - 60 seconds
163
+ Cache-Control:
164
+ - no-store, must-revalidate, private, max-age=0
165
+ X-Request-Id:
166
+ - b9474002-ff06-4d7a-b470-1f722a4f05ef
167
+ X-Runtime:
168
+ - '0.065744'
169
+ Set-Cookie:
170
+ - __profilin=p%3Dt; path=/
171
+ - __profilin=p%3Dt; path=/
172
+ - __profilin=p%3Dt; path=/
173
+ X-Miniprofiler-Ids:
174
+ - '["ef1g4jcj5kjrnyhlzrmi","i2tpnyrwhgkxbjqufub6","d915a38kjxdh0er1pp2o","lasu0jk0xumxtls2wozm","r7hyarvi9ulu86olh4yl","tjz7lwof2rroauok49b","oq57z4vll5hfxq548thx","4btsivncw9hss3vfpynk","5l14cevyny3muo8iyuhk","sb8t1ddfhoyeea9dd2wo"]'
175
+ body:
176
+ encoding: UTF-8
177
+ string: '{"data":[{"id":5,"name":"SD","description":"360p","output_format":"mp4","bitrate_kbps":730,"max_bitrate_kbps":900,"long_dimension":640,"video_codec":"libx264","profile":"main","frame_rate_upper_threshold":"29.97","keyframe_upper_threshold":60,"audio_bitrate_kbps":128,"audio_channels":2,"audio_sample_rate":44100,"created_at":"2016-10-24T12:36:47.000Z","updated_at":"2016-10-24T12:36:47.000Z"},{"id":6,"name":"SD","description":"540p","output_format":"mp4","bitrate_kbps":1200,"max_bitrate_kbps":1500,"long_dimension":960,"video_codec":"libx264","profile":"main","frame_rate_upper_threshold":"29.97","keyframe_upper_threshold":60,"audio_bitrate_kbps":128,"audio_channels":2,"audio_sample_rate":44100,"created_at":"2016-10-24T12:36:47.000Z","updated_at":"2016-10-24T12:36:47.000Z"}],"meta":{"total_count":10,"links":{"first":"https://app.vzaar.localhost/api/v2/encoding_presets?page=1&per_page=2","next":"https://app.vzaar.localhost/api/v2/encoding_presets?page=4&per_page=2","previous":"https://app.vzaar.localhost/api/v2/encoding_presets?page=2&per_page=2","last":"https://app.vzaar.localhost/api/v2/encoding_presets?page=5&per_page=2"}}}'
178
+ http_version:
179
+ recorded_at: Tue, 29 Nov 2016 12:51:23 GMT
180
+ - request:
181
+ method: get
182
+ uri: https://app.vzaar.localhost/api/v2/encoding_presets
183
+ body:
184
+ encoding: UTF-8
185
+ string: ''
186
+ headers:
187
+ User-Agent:
188
+ - HTTPClient/1.0 (2.8.2.4, ruby 2.3.1 (2016-04-26))
189
+ Accept:
190
+ - "*/*"
191
+ Date:
192
+ - Tue, 29 Nov 2016 12:51:23 GMT
193
+ X-Auth-Token:
194
+ - TUGXzNL17ypaougMYpR3
195
+ X-Client-Id:
196
+ - lair-tend72
197
+ Content-Type:
198
+ - application/json
199
+ response:
200
+ status:
201
+ code: 200
202
+ message: OK
203
+ headers:
204
+ Server:
205
+ - nginx/1.10.1
206
+ Date:
207
+ - Tue, 29 Nov 2016 12:51:23 GMT
208
+ Content-Type:
209
+ - application/json
210
+ Content-Length:
211
+ - '1144'
212
+ Connection:
213
+ - keep-alive
214
+ X-RateLimit-Limit:
215
+ - '200'
216
+ X-RateLimit-Remaining:
217
+ - '196'
218
+ X-RateLimit-Reset:
219
+ - '1480423943'
220
+ X-RateLimit-Reset-In:
221
+ - 60 seconds
222
+ Cache-Control:
223
+ - no-store, must-revalidate, private, max-age=0
224
+ X-Request-Id:
225
+ - c9c890ef-2582-4205-af6a-1d3c3bef56ff
226
+ X-Runtime:
227
+ - '0.062228'
228
+ Set-Cookie:
229
+ - __profilin=p%3Dt; path=/
230
+ - __profilin=p%3Dt; path=/
231
+ - __profilin=p%3Dt; path=/
232
+ X-Miniprofiler-Ids:
233
+ - '["4gxiuimr80v0zcdql379","i2tpnyrwhgkxbjqufub6","d915a38kjxdh0er1pp2o","lasu0jk0xumxtls2wozm","r7hyarvi9ulu86olh4yl","tjz7lwof2rroauok49b","oq57z4vll5hfxq548thx","4btsivncw9hss3vfpynk","5l14cevyny3muo8iyuhk","sb8t1ddfhoyeea9dd2wo"]'
234
+ body:
235
+ encoding: UTF-8
236
+ string: '{"data":[{"id":7,"name":"HD","description":"720p","output_format":"mp4","bitrate_kbps":2500,"max_bitrate_kbps":3500,"long_dimension":1280,"video_codec":"libx264","profile":"high","frame_rate_upper_threshold":"29.97","keyframe_upper_threshold":60,"audio_bitrate_kbps":128,"audio_channels":2,"audio_sample_rate":44100,"created_at":"2016-10-24T12:36:47.000Z","updated_at":"2016-11-25T10:20:12.000Z"},{"id":8,"name":"HD","description":"1080p","output_format":"mp4","bitrate_kbps":3500,"max_bitrate_kbps":5000,"long_dimension":1920,"video_codec":"libx264","profile":"high","frame_rate_upper_threshold":"29.97","keyframe_upper_threshold":60,"audio_bitrate_kbps":128,"audio_channels":2,"audio_sample_rate":44100,"created_at":"2016-10-24T12:36:47.000Z","updated_at":"2016-10-24T12:36:47.000Z"}],"meta":{"total_count":10,"links":{"first":"https://app.vzaar.localhost/api/v2/encoding_presets?page=1&per_page=2","next":"https://app.vzaar.localhost/api/v2/encoding_presets?page=5&per_page=2","previous":"https://app.vzaar.localhost/api/v2/encoding_presets?page=3&per_page=2","last":"https://app.vzaar.localhost/api/v2/encoding_presets?page=5&per_page=2"}}}'
237
+ http_version:
238
+ recorded_at: Tue, 29 Nov 2016 12:51:23 GMT
239
+ - request:
240
+ method: get
241
+ uri: https://app.vzaar.localhost/api/v2/encoding_presets
242
+ body:
243
+ encoding: UTF-8
244
+ string: ''
245
+ headers:
246
+ User-Agent:
247
+ - HTTPClient/1.0 (2.8.2.4, ruby 2.3.1 (2016-04-26))
248
+ Accept:
249
+ - "*/*"
250
+ Date:
251
+ - Tue, 29 Nov 2016 12:51:23 GMT
252
+ X-Auth-Token:
253
+ - TUGXzNL17ypaougMYpR3
254
+ X-Client-Id:
255
+ - lair-tend72
256
+ Content-Type:
257
+ - application/json
258
+ response:
259
+ status:
260
+ code: 200
261
+ message: OK
262
+ headers:
263
+ Server:
264
+ - nginx/1.10.1
265
+ Date:
266
+ - Tue, 29 Nov 2016 12:51:24 GMT
267
+ Content-Type:
268
+ - application/json
269
+ Content-Length:
270
+ - '1092'
271
+ Connection:
272
+ - keep-alive
273
+ X-RateLimit-Limit:
274
+ - '200'
275
+ X-RateLimit-Remaining:
276
+ - '195'
277
+ X-RateLimit-Reset:
278
+ - '1480423944'
279
+ X-RateLimit-Reset-In:
280
+ - 60 seconds
281
+ Cache-Control:
282
+ - no-store, must-revalidate, private, max-age=0
283
+ X-Request-Id:
284
+ - 264b1697-e45f-472b-8457-ed7696b005d3
285
+ X-Runtime:
286
+ - '0.068399'
287
+ Set-Cookie:
288
+ - __profilin=p%3Dt; path=/
289
+ - __profilin=p%3Dt; path=/
290
+ - __profilin=p%3Dt; path=/
291
+ X-Miniprofiler-Ids:
292
+ - '["w7mhg0ha5img5ent1d94","i2tpnyrwhgkxbjqufub6","d915a38kjxdh0er1pp2o","lasu0jk0xumxtls2wozm","r7hyarvi9ulu86olh4yl","tjz7lwof2rroauok49b","oq57z4vll5hfxq548thx","4btsivncw9hss3vfpynk","5l14cevyny3muo8iyuhk","sb8t1ddfhoyeea9dd2wo"]'
293
+ body:
294
+ encoding: UTF-8
295
+ string: '{"data":[{"id":10,"name":"4k UHD","description":"2160p","output_format":"mp4","bitrate_kbps":11000,"max_bitrate_kbps":17200,"long_dimension":3840,"video_codec":"libx264","profile":"high","frame_rate_upper_threshold":"29.97","keyframe_upper_threshold":60,"audio_bitrate_kbps":128,"audio_channels":2,"audio_sample_rate":44100,"created_at":"2016-10-24T12:36:47.000Z","updated_at":"2016-10-24T12:36:47.000Z"},{"id":11,"name":"8K
296
+ UHD","description":"4320p","output_format":"mp4","bitrate_kbps":35000,"max_bitrate_kbps":50000,"long_dimension":7680,"video_codec":"libx264","profile":"high","frame_rate_upper_threshold":"29.97","keyframe_upper_threshold":60,"audio_bitrate_kbps":128,"audio_channels":2,"audio_sample_rate":44100,"created_at":"2016-10-24T12:36:47.000Z","updated_at":"2016-10-24T12:36:47.000Z"}],"meta":{"total_count":10,"links":{"first":"https://app.vzaar.localhost/api/v2/encoding_presets?page=1&per_page=2","next":null,"previous":"https://app.vzaar.localhost/api/v2/encoding_presets?page=4&per_page=2","last":"https://app.vzaar.localhost/api/v2/encoding_presets?page=5&per_page=2"}}}'
297
+ http_version:
298
+ recorded_at: Tue, 29 Nov 2016 12:51:24 GMT
299
+ recorded_with: VCR 3.0.3
@@ -0,0 +1,62 @@
1
+ ---
2
+ http_interactions:
3
+ - request:
4
+ method: get
5
+ uri: https://app.vzaar.localhost/api/v2/encoding_presets/4
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
+ - Tue, 29 Nov 2016 12:49:23 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
+ - Tue, 29 Nov 2016 12:49:24 GMT
31
+ Content-Type:
32
+ - application/json
33
+ Content-Length:
34
+ - '397'
35
+ Connection:
36
+ - keep-alive
37
+ X-RateLimit-Limit:
38
+ - '200'
39
+ X-RateLimit-Remaining:
40
+ - '199'
41
+ X-RateLimit-Reset:
42
+ - '1480423824'
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
+ - b5974bb1-b5cc-42be-95f6-b06b85fd9690
49
+ X-Runtime:
50
+ - '0.737241'
51
+ Set-Cookie:
52
+ - __profilin=p%3Dt; path=/
53
+ - __profilin=p%3Dt; path=/
54
+ - __profilin=p%3Dt; path=/
55
+ X-Miniprofiler-Ids:
56
+ - '["xl96180xradalr09sndi","i2tpnyrwhgkxbjqufub6","d915a38kjxdh0er1pp2o","lasu0jk0xumxtls2wozm","r7hyarvi9ulu86olh4yl","tjz7lwof2rroauok49b","oq57z4vll5hfxq548thx","4btsivncw9hss3vfpynk","5l14cevyny3muo8iyuhk","sb8t1ddfhoyeea9dd2wo"]'
57
+ body:
58
+ encoding: UTF-8
59
+ string: '{"data":{"id":4,"name":"LD","description":"270p","output_format":"mp4","bitrate_kbps":365,"max_bitrate_kbps":500,"long_dimension":480,"video_codec":"libx264","profile":"baseline","frame_rate_upper_threshold":"29.97","keyframe_upper_threshold":60,"audio_bitrate_kbps":128,"audio_channels":2,"audio_sample_rate":44100,"created_at":"2016-10-24T12:36:47.000Z","updated_at":"2016-10-24T12:36:47.000Z"}}'
60
+ http_version:
61
+ recorded_at: Tue, 29 Nov 2016 12:49:24 GMT
62
+ 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/encoding_presets/-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 13:35:59 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 13:35:59 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
+ - 12075d57-2fdd-46d6-95d3-76257f4232d7
41
+ X-Runtime:
42
+ - '0.059741'
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 13:35:59 GMT
51
+ recorded_with: VCR 3.0.3
@@ -0,0 +1,62 @@
1
+ ---
2
+ http_interactions:
3
+ - request:
4
+ method: get
5
+ uri: https://app.vzaar.localhost/api/v2/encoding_presets?per_page=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
+ - Tue, 29 Nov 2016 12:51:58 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
+ - Tue, 29 Nov 2016 12:51:58 GMT
31
+ Content-Type:
32
+ - application/json
33
+ Content-Length:
34
+ - '697'
35
+ Connection:
36
+ - keep-alive
37
+ X-RateLimit-Limit:
38
+ - '200'
39
+ X-RateLimit-Remaining:
40
+ - '194'
41
+ X-RateLimit-Reset:
42
+ - '1480423978'
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
+ - bf91b513-570a-4cc9-89a3-996e461645a4
49
+ X-Runtime:
50
+ - '0.067113'
51
+ Set-Cookie:
52
+ - __profilin=p%3Dt; path=/
53
+ - __profilin=p%3Dt; path=/
54
+ - __profilin=p%3Dt; path=/
55
+ X-Miniprofiler-Ids:
56
+ - '["la2c9m59hz9l2n7gqilz","i2tpnyrwhgkxbjqufub6","d915a38kjxdh0er1pp2o","lasu0jk0xumxtls2wozm","r7hyarvi9ulu86olh4yl","tjz7lwof2rroauok49b","oq57z4vll5hfxq548thx","4btsivncw9hss3vfpynk","5l14cevyny3muo8iyuhk","sb8t1ddfhoyeea9dd2wo"]'
57
+ body:
58
+ encoding: UTF-8
59
+ string: '{"data":[{"id":9,"name":"2.5K UHD","description":"1440p","output_format":"mp4","bitrate_kbps":8000,"max_bitrate_kbps":11000,"long_dimension":2560,"video_codec":"libx264","profile":"high","frame_rate_upper_threshold":"29.97","keyframe_upper_threshold":60,"audio_bitrate_kbps":128,"audio_channels":2,"audio_sample_rate":44100,"created_at":"2016-11-24T14:45:00.000Z","updated_at":"2016-11-24T14:45:00.000Z"}],"meta":{"total_count":10,"links":{"first":"https://app.vzaar.localhost/api/v2/encoding_presets?page=1&per_page=1","next":"https://app.vzaar.localhost/api/v2/encoding_presets?page=2&per_page=1","previous":null,"last":"https://app.vzaar.localhost/api/v2/encoding_presets?page=10&per_page=1"}}}'
60
+ http_version:
61
+ recorded_at: Tue, 29 Nov 2016 12:51:58 GMT
62
+ recorded_with: VCR 3.0.3
@@ -0,0 +1,121 @@
1
+ ---
2
+ http_interactions:
3
+ - request:
4
+ method: get
5
+ uri: https://app.vzaar.localhost/api/v2/encoding_presets?per_page=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
+ - Tue, 29 Nov 2016 12:51:58 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
+ - Tue, 29 Nov 2016 12:51:58 GMT
31
+ Content-Type:
32
+ - application/json
33
+ Content-Length:
34
+ - '697'
35
+ Connection:
36
+ - keep-alive
37
+ X-RateLimit-Limit:
38
+ - '200'
39
+ X-RateLimit-Remaining:
40
+ - '191'
41
+ X-RateLimit-Reset:
42
+ - '1480423978'
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
+ - 078bc91a-a85f-47f4-99ce-eeb0070bd0de
49
+ X-Runtime:
50
+ - '0.065991'
51
+ Set-Cookie:
52
+ - __profilin=p%3Dt; path=/
53
+ - __profilin=p%3Dt; path=/
54
+ - __profilin=p%3Dt; path=/
55
+ X-Miniprofiler-Ids:
56
+ - '["am7dxpucgafi35j3vgg2","i2tpnyrwhgkxbjqufub6","d915a38kjxdh0er1pp2o","lasu0jk0xumxtls2wozm","r7hyarvi9ulu86olh4yl","tjz7lwof2rroauok49b","oq57z4vll5hfxq548thx","4btsivncw9hss3vfpynk","5l14cevyny3muo8iyuhk","sb8t1ddfhoyeea9dd2wo"]'
57
+ body:
58
+ encoding: UTF-8
59
+ string: '{"data":[{"id":9,"name":"2.5K UHD","description":"1440p","output_format":"mp4","bitrate_kbps":8000,"max_bitrate_kbps":11000,"long_dimension":2560,"video_codec":"libx264","profile":"high","frame_rate_upper_threshold":"29.97","keyframe_upper_threshold":60,"audio_bitrate_kbps":128,"audio_channels":2,"audio_sample_rate":44100,"created_at":"2016-11-24T14:45:00.000Z","updated_at":"2016-11-24T14:45:00.000Z"}],"meta":{"total_count":10,"links":{"first":"https://app.vzaar.localhost/api/v2/encoding_presets?page=1&per_page=1","next":"https://app.vzaar.localhost/api/v2/encoding_presets?page=2&per_page=1","previous":null,"last":"https://app.vzaar.localhost/api/v2/encoding_presets?page=10&per_page=1"}}}'
60
+ http_version:
61
+ recorded_at: Tue, 29 Nov 2016 12:51:58 GMT
62
+ - request:
63
+ method: get
64
+ uri: https://app.vzaar.localhost/api/v2/encoding_presets
65
+ body:
66
+ encoding: UTF-8
67
+ string: ''
68
+ headers:
69
+ User-Agent:
70
+ - HTTPClient/1.0 (2.8.2.4, ruby 2.3.1 (2016-04-26))
71
+ Accept:
72
+ - "*/*"
73
+ Date:
74
+ - Tue, 29 Nov 2016 12:51:58 GMT
75
+ X-Auth-Token:
76
+ - TUGXzNL17ypaougMYpR3
77
+ X-Client-Id:
78
+ - lair-tend72
79
+ Content-Type:
80
+ - application/json
81
+ response:
82
+ status:
83
+ code: 200
84
+ message: OK
85
+ headers:
86
+ Server:
87
+ - nginx/1.10.1
88
+ Date:
89
+ - Tue, 29 Nov 2016 12:51:58 GMT
90
+ Content-Type:
91
+ - application/json
92
+ Content-Length:
93
+ - '697'
94
+ Connection:
95
+ - keep-alive
96
+ X-RateLimit-Limit:
97
+ - '200'
98
+ X-RateLimit-Remaining:
99
+ - '190'
100
+ X-RateLimit-Reset:
101
+ - '1480423978'
102
+ X-RateLimit-Reset-In:
103
+ - 60 seconds
104
+ Cache-Control:
105
+ - no-store, must-revalidate, private, max-age=0
106
+ X-Request-Id:
107
+ - 2dea470b-80fe-455b-bffb-3b3dde110543
108
+ X-Runtime:
109
+ - '0.062392'
110
+ Set-Cookie:
111
+ - __profilin=p%3Dt; path=/
112
+ - __profilin=p%3Dt; path=/
113
+ - __profilin=p%3Dt; path=/
114
+ X-Miniprofiler-Ids:
115
+ - '["ei7ak6shom5f9tocgpqa","i2tpnyrwhgkxbjqufub6","d915a38kjxdh0er1pp2o","lasu0jk0xumxtls2wozm","r7hyarvi9ulu86olh4yl","tjz7lwof2rroauok49b","oq57z4vll5hfxq548thx","4btsivncw9hss3vfpynk","5l14cevyny3muo8iyuhk","sb8t1ddfhoyeea9dd2wo"]'
116
+ body:
117
+ encoding: UTF-8
118
+ string: '{"data":[{"id":11,"name":"8K UHD","description":"4320p","output_format":"mp4","bitrate_kbps":35000,"max_bitrate_kbps":50000,"long_dimension":7680,"video_codec":"libx264","profile":"high","frame_rate_upper_threshold":"29.97","keyframe_upper_threshold":60,"audio_bitrate_kbps":128,"audio_channels":2,"audio_sample_rate":44100,"created_at":"2016-10-24T12:36:47.000Z","updated_at":"2016-10-24T12:36:47.000Z"}],"meta":{"total_count":10,"links":{"first":"https://app.vzaar.localhost/api/v2/encoding_presets?page=1&per_page=1","next":null,"previous":"https://app.vzaar.localhost/api/v2/encoding_presets?page=9&per_page=1","last":"https://app.vzaar.localhost/api/v2/encoding_presets?page=10&per_page=1"}}}'
119
+ http_version:
120
+ recorded_at: Tue, 29 Nov 2016 12:51:58 GMT
121
+ recorded_with: VCR 3.0.3