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,122 @@
1
+ ---
2
+ http_interactions:
3
+ - request:
4
+ method: get
5
+ uri: https://app.vzaar.localhost/api/v2/ingest_recipes?page=4&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
+ - Fri, 18 Nov 2016 10:06: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: 200
25
+ message: OK
26
+ headers:
27
+ Server:
28
+ - nginx/1.10.1
29
+ Date:
30
+ - Fri, 18 Nov 2016 10:06:38 GMT
31
+ Content-Type:
32
+ - application/json
33
+ Content-Length:
34
+ - '2263'
35
+ Connection:
36
+ - keep-alive
37
+ X-RateLimit-Limit:
38
+ - '200'
39
+ X-RateLimit-Remaining:
40
+ - '194'
41
+ X-RateLimit-Reset:
42
+ - '1479463658'
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
+ - 4c935763-f462-44ef-b409-da9a94e48915
49
+ X-Runtime:
50
+ - '0.066403'
51
+ Set-Cookie:
52
+ - __profilin=p%3Dt; path=/
53
+ - __profilin=p%3Dt; path=/
54
+ - __profilin=p%3Dt; path=/
55
+ X-Miniprofiler-Ids:
56
+ - '["49etj4qdf3i5ieurwn36","yibtuiqnohudk1d26xvg","cpo3oiqmi683pkcaj816","dtxr2heeicch5rud7pjt","b4scoosnvmo0xvyqw8fy","58r4vfxumrhgue7kbsai","5dfv6js4ggxyc9qp8qwk","luelw09036g1c3l24a6i","racr2kqe0uft8glynfol","yfqme9j3k1haf6v4sm35"]'
57
+ body:
58
+ encoding: UTF-8
59
+ string: '{"data":[{"id":5,"name":"Test updated!","recipe_type":"new_video","description":"Test
60
+ is now something else","account_id":79357,"user_id":79357,"default":false,"multipass":true,"frame_grab_time":"1.0","generate_animated_thumb":true,"generate_sprite":true,"use_watermark":true,"send_to_youtube":true,"encoding_presets":[{"id":1,"name":"ULD","description":"234p","output_format":"mp4","bitrate_kbps":200,"long_dimension":416,"video_codec":"libx264","profile":"main","frame_rate":"12.0","keyframe":60,"audio_bitrate_kbps":128,"audio_channels":2,"audio_sample_rate":44100,"max_bitrate_kbps":null,"keyframe_period":null,"created_at":"2016-11-09T11:01:38.000Z","updated_at":"2016-11-09T11:01:38.000Z"},{"id":2,"name":"LD","description":"270p","output_format":"mp4","bitrate_kbps":400,"long_dimension":480,"video_codec":"libx264","profile":"main","frame_rate":"29.97","keyframe":60,"audio_bitrate_kbps":128,"audio_channels":2,"audio_sample_rate":44100,"max_bitrate_kbps":null,"keyframe_period":null,"created_at":"2016-11-09T11:01:38.000Z","updated_at":"2016-11-09T11:01:38.000Z"},{"id":5,"name":"HD","description":"720p","output_format":"mp4","bitrate_kbps":3942,"long_dimension":1280,"video_codec":"libx264","profile":"main","frame_rate":"29.97","keyframe":60,"audio_bitrate_kbps":128,"audio_channels":2,"audio_sample_rate":44100,"max_bitrate_kbps":null,"keyframe_period":null,"created_at":"2016-11-09T11:01:38.000Z","updated_at":"2016-11-09T11:01:38.000Z"},{"id":6,"name":"HD","description":"1080p","output_format":"mp4","bitrate_kbps":5442,"long_dimension":1920,"video_codec":"libx264","profile":"main","frame_rate":"29.97","keyframe":60,"audio_bitrate_kbps":128,"audio_channels":2,"audio_sample_rate":44100,"max_bitrate_kbps":null,"keyframe_period":null,"created_at":"2016-11-09T11:01:38.000Z","updated_at":"2016-11-09T11:01:38.000Z"}],"created_at":"2016-11-16T10:57:36.000Z","updated_at":"2016-11-16T11:02:32.000Z"}],"meta":{"total_count":5,"links":{"first":"https://app.vzaar.localhost/api/v2/ingest_recipes?page=1&per_page=1","next":"https://app.vzaar.localhost/api/v2/ingest_recipes?page=5&per_page=1","previous":"https://app.vzaar.localhost/api/v2/ingest_recipes?page=3&per_page=1","last":"https://app.vzaar.localhost/api/v2/ingest_recipes?page=5&per_page=1"}}}'
61
+ http_version:
62
+ recorded_at: Fri, 18 Nov 2016 10:06:38 GMT
63
+ - request:
64
+ method: get
65
+ uri: https://app.vzaar.localhost/api/v2/ingest_recipes
66
+ body:
67
+ encoding: UTF-8
68
+ string: ''
69
+ headers:
70
+ User-Agent:
71
+ - HTTPClient/1.0 (2.8.2.4, ruby 2.3.1 (2016-04-26))
72
+ Accept:
73
+ - "*/*"
74
+ Date:
75
+ - Fri, 18 Nov 2016 10:06:38 GMT
76
+ X-Auth-Token:
77
+ - TUGXzNL17ypaougMYpR3
78
+ X-Client-Id:
79
+ - lair-tend72
80
+ Content-Type:
81
+ - application/json
82
+ response:
83
+ status:
84
+ code: 200
85
+ message: OK
86
+ headers:
87
+ Server:
88
+ - nginx/1.10.1
89
+ Date:
90
+ - Fri, 18 Nov 2016 10:06:39 GMT
91
+ Content-Type:
92
+ - application/json
93
+ Content-Length:
94
+ - '2234'
95
+ Connection:
96
+ - keep-alive
97
+ X-RateLimit-Limit:
98
+ - '200'
99
+ X-RateLimit-Remaining:
100
+ - '193'
101
+ X-RateLimit-Reset:
102
+ - '1479463658'
103
+ X-RateLimit-Reset-In:
104
+ - 60 seconds
105
+ Cache-Control:
106
+ - no-store, must-revalidate, private, max-age=0
107
+ X-Request-Id:
108
+ - 642c7702-c67a-4d21-ab2b-b6aae1dab1e7
109
+ X-Runtime:
110
+ - '0.065927'
111
+ Set-Cookie:
112
+ - __profilin=p%3Dt; path=/
113
+ - __profilin=p%3Dt; path=/
114
+ - __profilin=p%3Dt; path=/
115
+ X-Miniprofiler-Ids:
116
+ - '["wzrmfrvd4b9f9b3u4w9v","yibtuiqnohudk1d26xvg","cpo3oiqmi683pkcaj816","dtxr2heeicch5rud7pjt","b4scoosnvmo0xvyqw8fy","58r4vfxumrhgue7kbsai","5dfv6js4ggxyc9qp8qwk","luelw09036g1c3l24a6i","racr2kqe0uft8glynfol","yfqme9j3k1haf6v4sm35"]'
117
+ body:
118
+ encoding: UTF-8
119
+ string: '{"data":[{"id":3,"name":"test-2","recipe_type":"test","description":null,"account_id":79357,"user_id":79357,"default":false,"multipass":false,"frame_grab_time":"3.5","generate_animated_thumb":false,"generate_sprite":false,"use_watermark":false,"send_to_youtube":false,"encoding_presets":[{"id":1,"name":"ULD","description":"234p","output_format":"mp4","bitrate_kbps":200,"long_dimension":416,"video_codec":"libx264","profile":"main","frame_rate":"12.0","keyframe":60,"audio_bitrate_kbps":128,"audio_channels":2,"audio_sample_rate":44100,"max_bitrate_kbps":null,"keyframe_period":null,"created_at":"2016-11-09T11:01:38.000Z","updated_at":"2016-11-09T11:01:38.000Z"},{"id":2,"name":"LD","description":"270p","output_format":"mp4","bitrate_kbps":400,"long_dimension":480,"video_codec":"libx264","profile":"main","frame_rate":"29.97","keyframe":60,"audio_bitrate_kbps":128,"audio_channels":2,"audio_sample_rate":44100,"max_bitrate_kbps":null,"keyframe_period":null,"created_at":"2016-11-09T11:01:38.000Z","updated_at":"2016-11-09T11:01:38.000Z"},{"id":6,"name":"HD","description":"1080p","output_format":"mp4","bitrate_kbps":5442,"long_dimension":1920,"video_codec":"libx264","profile":"main","frame_rate":"29.97","keyframe":60,"audio_bitrate_kbps":128,"audio_channels":2,"audio_sample_rate":44100,"max_bitrate_kbps":null,"keyframe_period":null,"created_at":"2016-11-09T11:01:38.000Z","updated_at":"2016-11-09T11:01:38.000Z"},{"id":8,"name":"XHD","description":"10kp","output_format":"mp4","bitrate_kbps":99999,"long_dimension":3840,"video_codec":"libx264","profile":"main","frame_rate":"29.97","keyframe":60,"audio_bitrate_kbps":128,"audio_channels":2,"audio_sample_rate":44100,"max_bitrate_kbps":null,"keyframe_period":null,"created_at":"2016-11-09T11:01:38.000Z","updated_at":"2016-11-09T11:01:38.000Z"}],"created_at":"2016-11-09T11:01:38.000Z","updated_at":"2016-11-09T11:01:38.000Z"}],"meta":{"total_count":5,"links":{"first":"https://app.vzaar.localhost/api/v2/ingest_recipes?page=1&per_page=1","next":"https://app.vzaar.localhost/api/v2/ingest_recipes?page=4&per_page=1","previous":"https://app.vzaar.localhost/api/v2/ingest_recipes?page=2&per_page=1","last":"https://app.vzaar.localhost/api/v2/ingest_recipes?page=5&per_page=1"}}}'
120
+ http_version:
121
+ recorded_at: Fri, 18 Nov 2016 10:06:39 GMT
122
+ recorded_with: VCR 3.0.3
@@ -0,0 +1,242 @@
1
+ ---
2
+ http_interactions:
3
+ - request:
4
+ method: get
5
+ uri: https://app.vzaar.localhost/api/v2/ingest_recipes/8
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:49:57 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 13:49:57 GMT
31
+ Content-Type:
32
+ - application/json
33
+ Content-Length:
34
+ - '383'
35
+ Connection:
36
+ - keep-alive
37
+ X-RateLimit-Limit:
38
+ - '200'
39
+ X-RateLimit-Remaining:
40
+ - '199'
41
+ X-RateLimit-Reset:
42
+ - '1479477057'
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
+ - 8304b322-e41a-4377-88f5-1f6d999ddf48
49
+ X-Runtime:
50
+ - '0.062574'
51
+ Set-Cookie:
52
+ - __profilin=p%3Dt; path=/
53
+ - __profilin=p%3Dt; path=/
54
+ - __profilin=p%3Dt; path=/
55
+ X-Miniprofiler-Ids:
56
+ - '["77it9yfo63l6ok2qw6ok","yibtuiqnohudk1d26xvg","cpo3oiqmi683pkcaj816","dtxr2heeicch5rud7pjt","b4scoosnvmo0xvyqw8fy","58r4vfxumrhgue7kbsai","5dfv6js4ggxyc9qp8qwk","luelw09036g1c3l24a6i","racr2kqe0uft8glynfol","yfqme9j3k1haf6v4sm35"]'
57
+ body:
58
+ encoding: UTF-8
59
+ string: '{"data":{"id":8,"name":"updated","recipe_type":"new_video","description":"the
60
+ new recipe","account_id":79357,"user_id":79357,"default":true,"multipass":false,"frame_grab_time":"5.5","generate_animated_thumb":true,"generate_sprite":true,"use_watermark":true,"send_to_youtube":true,"encoding_presets":[],"created_at":"2016-11-18T10:25:47.000Z","updated_at":"2016-11-18T11:20:06.000Z"}}'
61
+ http_version:
62
+ recorded_at: Fri, 18 Nov 2016 13:49:57 GMT
63
+ - request:
64
+ method: get
65
+ uri: https://app.vzaar.localhost/api/v2/encoding_presets/1
66
+ body:
67
+ encoding: UTF-8
68
+ string: ''
69
+ headers:
70
+ User-Agent:
71
+ - HTTPClient/1.0 (2.8.2.4, ruby 2.3.1 (2016-04-26))
72
+ Accept:
73
+ - "*/*"
74
+ Date:
75
+ - Fri, 18 Nov 2016 13:49:57 GMT
76
+ X-Auth-Token:
77
+ - TUGXzNL17ypaougMYpR3
78
+ X-Client-Id:
79
+ - lair-tend72
80
+ Content-Type:
81
+ - application/json
82
+ response:
83
+ status:
84
+ code: 200
85
+ message: OK
86
+ headers:
87
+ Server:
88
+ - nginx/1.10.1
89
+ Date:
90
+ - Fri, 18 Nov 2016 13:49:57 GMT
91
+ Content-Type:
92
+ - application/json
93
+ Content-Length:
94
+ - '385'
95
+ Connection:
96
+ - keep-alive
97
+ X-RateLimit-Limit:
98
+ - '200'
99
+ X-RateLimit-Remaining:
100
+ - '199'
101
+ X-RateLimit-Reset:
102
+ - '1479477057'
103
+ X-RateLimit-Reset-In:
104
+ - 60 seconds
105
+ Cache-Control:
106
+ - no-store, must-revalidate, private, max-age=0
107
+ X-Request-Id:
108
+ - 02497356-bb93-4f65-a16f-a20a108acc33
109
+ X-Runtime:
110
+ - '0.057764'
111
+ Set-Cookie:
112
+ - __profilin=p%3Dt; path=/
113
+ - __profilin=p%3Dt; path=/
114
+ - __profilin=p%3Dt; path=/
115
+ X-Miniprofiler-Ids:
116
+ - '["yf6wxdshwhke2eujjcdj","yibtuiqnohudk1d26xvg","cpo3oiqmi683pkcaj816","dtxr2heeicch5rud7pjt","b4scoosnvmo0xvyqw8fy","58r4vfxumrhgue7kbsai","5dfv6js4ggxyc9qp8qwk","luelw09036g1c3l24a6i","racr2kqe0uft8glynfol","yfqme9j3k1haf6v4sm35"]'
117
+ body:
118
+ encoding: UTF-8
119
+ string: '{"data":{"id":1,"name":"ULD","description":"234p","output_format":"mp4","bitrate_kbps":200,"long_dimension":416,"video_codec":"libx264","profile":"main","frame_rate":"12.0","keyframe":60,"audio_bitrate_kbps":128,"audio_channels":2,"audio_sample_rate":44100,"max_bitrate_kbps":null,"keyframe_period":null,"created_at":"2016-11-09T11:01:38.000Z","updated_at":"2016-11-09T11:01:38.000Z"}}'
120
+ http_version:
121
+ recorded_at: Fri, 18 Nov 2016 13:49:57 GMT
122
+ - request:
123
+ method: get
124
+ uri: https://app.vzaar.localhost/api/v2/encoding_presets/2
125
+ body:
126
+ encoding: UTF-8
127
+ string: ''
128
+ headers:
129
+ User-Agent:
130
+ - HTTPClient/1.0 (2.8.2.4, ruby 2.3.1 (2016-04-26))
131
+ Accept:
132
+ - "*/*"
133
+ Date:
134
+ - Fri, 18 Nov 2016 13:49:57 GMT
135
+ X-Auth-Token:
136
+ - TUGXzNL17ypaougMYpR3
137
+ X-Client-Id:
138
+ - lair-tend72
139
+ Content-Type:
140
+ - application/json
141
+ response:
142
+ status:
143
+ code: 200
144
+ message: OK
145
+ headers:
146
+ Server:
147
+ - nginx/1.10.1
148
+ Date:
149
+ - Fri, 18 Nov 2016 13:49:58 GMT
150
+ Content-Type:
151
+ - application/json
152
+ Content-Length:
153
+ - '385'
154
+ Connection:
155
+ - keep-alive
156
+ X-RateLimit-Limit:
157
+ - '200'
158
+ X-RateLimit-Remaining:
159
+ - '199'
160
+ X-RateLimit-Reset:
161
+ - '1479477058'
162
+ X-RateLimit-Reset-In:
163
+ - 60 seconds
164
+ Cache-Control:
165
+ - no-store, must-revalidate, private, max-age=0
166
+ X-Request-Id:
167
+ - 846ce417-e03b-4122-b3bf-eba5ce4b323b
168
+ X-Runtime:
169
+ - '0.082795'
170
+ Set-Cookie:
171
+ - __profilin=p%3Dt; path=/
172
+ - __profilin=p%3Dt; path=/
173
+ - __profilin=p%3Dt; path=/
174
+ X-Miniprofiler-Ids:
175
+ - '["ikxvn1znazv2554q6qi2","yibtuiqnohudk1d26xvg","cpo3oiqmi683pkcaj816","dtxr2heeicch5rud7pjt","b4scoosnvmo0xvyqw8fy","58r4vfxumrhgue7kbsai","5dfv6js4ggxyc9qp8qwk","luelw09036g1c3l24a6i","racr2kqe0uft8glynfol","yfqme9j3k1haf6v4sm35"]'
176
+ body:
177
+ encoding: UTF-8
178
+ string: '{"data":{"id":2,"name":"LD","description":"270p","output_format":"mp4","bitrate_kbps":400,"long_dimension":480,"video_codec":"libx264","profile":"main","frame_rate":"29.97","keyframe":60,"audio_bitrate_kbps":128,"audio_channels":2,"audio_sample_rate":44100,"max_bitrate_kbps":null,"keyframe_period":null,"created_at":"2016-11-09T11:01:38.000Z","updated_at":"2016-11-09T11:01:38.000Z"}}'
179
+ http_version:
180
+ recorded_at: Fri, 18 Nov 2016 13:49:58 GMT
181
+ - request:
182
+ method: patch
183
+ uri: https://app.vzaar.localhost/api/v2/ingest_recipes/8
184
+ body:
185
+ encoding: UTF-8
186
+ string: '{"id":8,"name":"updated","recipe_type":"new_video","description":"the
187
+ new recipe","account_id":79357,"user_id":79357,"default":true,"multipass":false,"frame_grab_time":"5.5","generate_animated_thumb":true,"generate_sprite":true,"use_watermark":true,"send_to_youtube":true,"encoding_preset_ids":"1,2","created_at":"2016-11-18T10:25:47.000Z","updated_at":"2016-11-18T11:20:06.000Z"}'
188
+ headers:
189
+ User-Agent:
190
+ - HTTPClient/1.0 (2.8.2.4, ruby 2.3.1 (2016-04-26))
191
+ Accept:
192
+ - "*/*"
193
+ Date:
194
+ - Fri, 18 Nov 2016 13:49:59 GMT
195
+ X-Auth-Token:
196
+ - TUGXzNL17ypaougMYpR3
197
+ X-Client-Id:
198
+ - lair-tend72
199
+ Content-Type:
200
+ - application/json
201
+ response:
202
+ status:
203
+ code: 200
204
+ message: OK
205
+ headers:
206
+ Server:
207
+ - nginx/1.10.1
208
+ Date:
209
+ - Fri, 18 Nov 2016 13:49:59 GMT
210
+ Content-Type:
211
+ - application/json
212
+ Content-Length:
213
+ - '1136'
214
+ Connection:
215
+ - keep-alive
216
+ X-RateLimit-Limit:
217
+ - '200'
218
+ X-RateLimit-Remaining:
219
+ - '199'
220
+ X-RateLimit-Reset:
221
+ - '1479477059'
222
+ X-RateLimit-Reset-In:
223
+ - 60 seconds
224
+ Cache-Control:
225
+ - no-store, must-revalidate, private, max-age=0
226
+ X-Request-Id:
227
+ - e82139e0-5c44-4f6a-839a-b162d0f26da8
228
+ X-Runtime:
229
+ - '0.104783'
230
+ Set-Cookie:
231
+ - __profilin=p%3Dt; path=/
232
+ - __profilin=p%3Dt; path=/
233
+ - __profilin=p%3Dt; path=/
234
+ X-Miniprofiler-Ids:
235
+ - '["wlnx04v1na9a2mn4rhgn","yibtuiqnohudk1d26xvg","cpo3oiqmi683pkcaj816","dtxr2heeicch5rud7pjt","b4scoosnvmo0xvyqw8fy","58r4vfxumrhgue7kbsai","5dfv6js4ggxyc9qp8qwk","luelw09036g1c3l24a6i","racr2kqe0uft8glynfol","yfqme9j3k1haf6v4sm35"]'
236
+ body:
237
+ encoding: UTF-8
238
+ string: '{"data":{"id":8,"name":"updated","recipe_type":"new_video","description":"the
239
+ new recipe","account_id":79357,"user_id":79357,"default":true,"multipass":false,"frame_grab_time":"5.5","generate_animated_thumb":true,"generate_sprite":true,"use_watermark":true,"send_to_youtube":true,"encoding_presets":[{"id":1,"name":"ULD","description":"234p","output_format":"mp4","bitrate_kbps":200,"long_dimension":416,"video_codec":"libx264","profile":"main","frame_rate":"12.0","keyframe":60,"audio_bitrate_kbps":128,"audio_channels":2,"audio_sample_rate":44100,"max_bitrate_kbps":null,"keyframe_period":null,"created_at":"2016-11-09T11:01:38.000Z","updated_at":"2016-11-09T11:01:38.000Z"},{"id":2,"name":"LD","description":"270p","output_format":"mp4","bitrate_kbps":400,"long_dimension":480,"video_codec":"libx264","profile":"main","frame_rate":"29.97","keyframe":60,"audio_bitrate_kbps":128,"audio_channels":2,"audio_sample_rate":44100,"max_bitrate_kbps":null,"keyframe_period":null,"created_at":"2016-11-09T11:01:38.000Z","updated_at":"2016-11-09T11:01:38.000Z"}],"created_at":"2016-11-18T10:25:47.000Z","updated_at":"2016-11-18T11:20:06.000Z"}}'
240
+ http_version:
241
+ recorded_at: Fri, 18 Nov 2016 13:49:59 GMT
242
+ 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/ingest_recipes/8
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 10:41:04 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 10:41:04 GMT
31
+ Content-Type:
32
+ - application/json
33
+ Content-Length:
34
+ - '1894'
35
+ Connection:
36
+ - keep-alive
37
+ X-RateLimit-Limit:
38
+ - '200'
39
+ X-RateLimit-Remaining:
40
+ - '199'
41
+ X-RateLimit-Reset:
42
+ - '1479465724'
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
+ - b44003b9-c7ff-4bdd-851d-cce6c54093a1
49
+ X-Runtime:
50
+ - '0.070622'
51
+ Set-Cookie:
52
+ - __profilin=p%3Dt; path=/
53
+ - __profilin=p%3Dt; path=/
54
+ - __profilin=p%3Dt; path=/
55
+ X-Miniprofiler-Ids:
56
+ - '["zo99xmorkyh9x60wbugn","yibtuiqnohudk1d26xvg","cpo3oiqmi683pkcaj816","dtxr2heeicch5rud7pjt","b4scoosnvmo0xvyqw8fy","58r4vfxumrhgue7kbsai","5dfv6js4ggxyc9qp8qwk","luelw09036g1c3l24a6i","racr2kqe0uft8glynfol","yfqme9j3k1haf6v4sm35"]'
57
+ body:
58
+ encoding: UTF-8
59
+ string: '{"data":{"id":8,"name":"new-recipe","recipe_type":"new_video","description":"the
60
+ new recipe","account_id":79357,"user_id":79357,"default":true,"multipass":false,"frame_grab_time":"5.5","generate_animated_thumb":true,"generate_sprite":true,"use_watermark":true,"send_to_youtube":true,"encoding_presets":[{"id":1,"name":"ULD","description":"234p","output_format":"mp4","bitrate_kbps":200,"long_dimension":416,"video_codec":"libx264","profile":"main","frame_rate":"12.0","keyframe":60,"audio_bitrate_kbps":128,"audio_channels":2,"audio_sample_rate":44100,"max_bitrate_kbps":null,"keyframe_period":null,"created_at":"2016-11-09T11:01:38.000Z","updated_at":"2016-11-09T11:01:38.000Z"},{"id":2,"name":"LD","description":"270p","output_format":"mp4","bitrate_kbps":400,"long_dimension":480,"video_codec":"libx264","profile":"main","frame_rate":"29.97","keyframe":60,"audio_bitrate_kbps":128,"audio_channels":2,"audio_sample_rate":44100,"max_bitrate_kbps":null,"keyframe_period":null,"created_at":"2016-11-09T11:01:38.000Z","updated_at":"2016-11-09T11:01:38.000Z"},{"id":3,"name":"SD","description":"360p","output_format":"mp4","bitrate_kbps":800,"long_dimension":640,"video_codec":"libx264","profile":"main","frame_rate":"29.97","keyframe":60,"audio_bitrate_kbps":128,"audio_channels":2,"audio_sample_rate":44100,"max_bitrate_kbps":null,"keyframe_period":null,"created_at":"2016-11-09T11:01:38.000Z","updated_at":"2016-11-09T11:01:38.000Z"},{"id":4,"name":"SD","description":"540p","output_format":"mp4","bitrate_kbps":1944,"long_dimension":960,"video_codec":"libx264","profile":"main","frame_rate":"29.97","keyframe":60,"audio_bitrate_kbps":128,"audio_channels":2,"audio_sample_rate":44100,"max_bitrate_kbps":null,"keyframe_period":null,"created_at":"2016-11-09T11:01:38.000Z","updated_at":"2016-11-09T11:01:38.000Z"}],"created_at":"2016-11-18T10:25:47.000Z","updated_at":"2016-11-18T10:25:47.000Z"}}'
61
+ http_version:
62
+ recorded_at: Fri, 18 Nov 2016 10:41:04 GMT
63
+ - request:
64
+ method: patch
65
+ uri: https://app.vzaar.localhost/api/v2/ingest_recipes/8
66
+ body:
67
+ encoding: UTF-8
68
+ string: '{"id":8,"name":"new-recipe","recipe_type":"new_video","description":"the
69
+ new recipe","account_id":79357,"user_id":79357,"default":true,"multipass":false,"frame_grab_time":"5.5","generate_animated_thumb":true,"generate_sprite":true,"use_watermark":true,"send_to_youtube":true,"encoding_preset_ids":[],"created_at":"2016-11-18T10:25:47.000Z","updated_at":"2016-11-18T10:25:47.000Z"}'
70
+ headers:
71
+ User-Agent:
72
+ - HTTPClient/1.0 (2.8.2.4, ruby 2.3.1 (2016-04-26))
73
+ Accept:
74
+ - "*/*"
75
+ Date:
76
+ - Fri, 18 Nov 2016 10:41:04 GMT
77
+ X-Auth-Token:
78
+ - TUGXzNL17ypaougMYpR3
79
+ X-Client-Id:
80
+ - lair-tend72
81
+ Content-Type:
82
+ - application/json
83
+ response:
84
+ status:
85
+ code: 422
86
+ message: Unprocessable Entity
87
+ headers:
88
+ Server:
89
+ - nginx/1.10.1
90
+ Date:
91
+ - Fri, 18 Nov 2016 10:41:05 GMT
92
+ Content-Type:
93
+ - application/json
94
+ Content-Length:
95
+ - '87'
96
+ Connection:
97
+ - keep-alive
98
+ Cache-Control:
99
+ - no-cache
100
+ X-Request-Id:
101
+ - e936b40e-5673-4243-bfac-b0a58f61533b
102
+ X-Runtime:
103
+ - '0.058375'
104
+ Set-Cookie:
105
+ - __profilin=p%3Dt; path=/
106
+ - __profilin=p%3Dt; path=/
107
+ body:
108
+ encoding: UTF-8
109
+ string: '{"errors":[{"message":"Invalid parameters","detail":"encoding_preset_ids
110
+ is invalid"}]}'
111
+ http_version:
112
+ recorded_at: Fri, 18 Nov 2016 10:41:05 GMT
113
+ recorded_with: VCR 3.0.3