uploadcare-rails 1.2.1 → 2.0.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (190) hide show
  1. checksums.yaml +5 -5
  2. data/Rakefile +5 -16
  3. data/lib/generators/templates/uploadcare_config_template.erb +138 -0
  4. data/lib/generators/uploadcare_config_generator.rb +7 -4
  5. data/lib/uploadcare/errors/type_error.rb +7 -0
  6. data/lib/uploadcare/rails/action_view/uploadcare_include_tags.rb +48 -0
  7. data/lib/uploadcare/rails/action_view/uploadcare_uploader_tags.rb +57 -0
  8. data/lib/uploadcare/rails/active_record/mount_uploadcare_file.rb +62 -0
  9. data/lib/uploadcare/rails/active_record/mount_uploadcare_file_group.rb +58 -0
  10. data/lib/uploadcare/rails/api/rest/base.rb +14 -0
  11. data/lib/uploadcare/rails/api/rest/conversion_api.rb +42 -0
  12. data/lib/uploadcare/rails/api/rest/file_api.rb +69 -0
  13. data/lib/uploadcare/rails/api/rest/group_api.rb +48 -0
  14. data/lib/uploadcare/rails/api/rest/project_api.rb +27 -0
  15. data/lib/uploadcare/rails/api/rest/webhook_api.rb +45 -0
  16. data/lib/uploadcare/rails/api/upload/base.rb +13 -0
  17. data/lib/uploadcare/rails/api/upload/upload_api.rb +53 -0
  18. data/lib/uploadcare/rails/configuration.rb +57 -0
  19. data/lib/uploadcare/rails/engine.rb +13 -17
  20. data/lib/uploadcare/rails/jobs/delete_file_job.rb +14 -0
  21. data/lib/uploadcare/rails/jobs/store_file_job.rb +14 -0
  22. data/lib/uploadcare/rails/jobs/store_group_job.rb +14 -0
  23. data/lib/uploadcare/rails/objects/concerns/loadable.rb +46 -0
  24. data/lib/uploadcare/rails/objects/file.rb +40 -20
  25. data/lib/uploadcare/rails/objects/group.rb +51 -57
  26. data/lib/uploadcare/rails/services/files_count_extractor.rb +14 -0
  27. data/lib/uploadcare/rails/services/id_extractor.rb +15 -0
  28. data/lib/uploadcare/rails/transformations/image_transformations.rb +45 -0
  29. data/lib/uploadcare/rails/version.rb +3 -1
  30. data/lib/uploadcare/rails.rb +10 -0
  31. data/lib/uploadcare-rails.rb +27 -16
  32. data/spec/fixtures/kitten.jpeg +0 -0
  33. data/spec/fixtures/vcr_cassettes/conversion_api_convert_document.yml +62 -0
  34. data/spec/fixtures/vcr_cassettes/conversion_api_convert_document_with_error.yml +62 -0
  35. data/spec/fixtures/vcr_cassettes/conversion_api_convert_video.yml +62 -0
  36. data/spec/fixtures/vcr_cassettes/conversion_api_convert_video_with_error.yml +62 -0
  37. data/spec/fixtures/vcr_cassettes/conversion_api_get_document_conversion_status.yml +59 -0
  38. data/spec/fixtures/vcr_cassettes/conversion_api_get_video_conversion_status.yml +59 -0
  39. data/spec/fixtures/vcr_cassettes/file_api_copy_file.yml +60 -0
  40. data/spec/fixtures/vcr_cassettes/file_api_delete_file.yml +58 -0
  41. data/spec/fixtures/vcr_cassettes/file_api_delete_files.yml +58 -0
  42. data/spec/fixtures/vcr_cassettes/file_api_get_file.yml +58 -0
  43. data/spec/fixtures/vcr_cassettes/file_api_get_files.yml +61 -0
  44. data/spec/fixtures/vcr_cassettes/file_api_load_file.yml +57 -0
  45. data/spec/fixtures/vcr_cassettes/file_api_store_file.yml +58 -0
  46. data/spec/fixtures/vcr_cassettes/file_api_store_files.yml +57 -0
  47. data/spec/fixtures/vcr_cassettes/group_api_create_group.yml +57 -0
  48. data/spec/fixtures/vcr_cassettes/group_api_get_group.yml +52 -0
  49. data/spec/fixtures/vcr_cassettes/group_api_get_groups.yml +57 -0
  50. data/spec/fixtures/vcr_cassettes/group_api_store_group.yml +57 -0
  51. data/spec/fixtures/vcr_cassettes/project_api_get_project.yml +59 -0
  52. data/spec/fixtures/vcr_cassettes/upload_upload_many_files.yml +55 -0
  53. data/spec/fixtures/vcr_cassettes/upload_upload_one_file.yml +105 -0
  54. data/spec/fixtures/vcr_cassettes/upload_upload_one_file_from_cdn.yml +111 -0
  55. data/spec/fixtures/vcr_cassettes/webhook_api_create_webhook.yml +59 -0
  56. data/spec/fixtures/vcr_cassettes/webhook_api_delete_webhook.yml +57 -0
  57. data/spec/fixtures/vcr_cassettes/webhook_api_get_webhooks.yml +59 -0
  58. data/spec/fixtures/vcr_cassettes/webhook_api_update_webhook.yml +59 -0
  59. data/spec/generators/uploadcare_config_generator_spec.rb +18 -26
  60. data/spec/spec_helper.rb +17 -69
  61. data/spec/support/generators.rb +8 -5
  62. data/spec/support/vcr.rb +14 -0
  63. data/spec/tmp/config/initializers/uploadcare.rb +138 -0
  64. data/spec/uploadcare/rails/action_view/uploadcare_uploader_tags_spec.rb +40 -0
  65. data/spec/uploadcare/rails/action_view/uploadcare_widget_tags_spec.rb +46 -0
  66. data/spec/uploadcare/rails/active_record/mount_uploadcare_file_spec.rb +33 -0
  67. data/spec/uploadcare/rails/active_record/mount_uploadcare_group_spec.rb +32 -0
  68. data/spec/uploadcare/rails/api/rest/conversion_api_spec.rb +110 -0
  69. data/spec/uploadcare/rails/api/rest/file_api_spec.rb +85 -0
  70. data/spec/uploadcare/rails/api/rest/group_api_spec.rb +61 -0
  71. data/spec/uploadcare/rails/api/rest/project_api_spec.rb +33 -0
  72. data/spec/uploadcare/rails/api/rest/webhook_api_spec.rb +59 -0
  73. data/spec/uploadcare/rails/api/upload/upload_api_spec.rb +82 -0
  74. data/spec/uploadcare/rails/jobs/delete_file_job_spec.rb +15 -0
  75. data/spec/uploadcare/rails/jobs/store_file_job_spec.rb +15 -0
  76. data/spec/uploadcare/rails/jobs/store_group_job_spec.rb +15 -0
  77. data/spec/uploadcare/rails/objects/file_spec.rb +77 -0
  78. data/spec/uploadcare/rails/objects/group_spec.rb +87 -0
  79. data/spec/uploadcare/rails/services/id_extractor_spec.rb +26 -0
  80. data/spec/uploadcare/rails/transformations/image_transformations_spec.rb +120 -0
  81. data/spec/uploadcare/rails_spec.rb +7 -0
  82. metadata +129 -351
  83. data/config/initializers/uploadcare.rb +0 -26
  84. data/config/uploadcare_defaults.yml +0 -12
  85. data/lib/generators/templates/uploadcare_config_template.yml +0 -67
  86. data/lib/tasks/uploadcare_rails_tasks.rake +0 -4
  87. data/lib/uploadcare/rails/action_view/include_tags.rb +0 -47
  88. data/lib/uploadcare/rails/action_view/uploader_tags.rb +0 -76
  89. data/lib/uploadcare/rails/active_record/has_file.rb +0 -92
  90. data/lib/uploadcare/rails/active_record/has_group.rb +0 -89
  91. data/lib/uploadcare/rails/active_record/has_object.rb +0 -9
  92. data/lib/uploadcare/rails/formtastic/formtastic.rb +0 -73
  93. data/lib/uploadcare/rails/operations.rb +0 -57
  94. data/lib/uploadcare/rails/settings.rb +0 -81
  95. data/lib/uploadcare/rails/simple_form/simple_form.rb +0 -63
  96. data/spec/caching/file_caching_spec.rb +0 -26
  97. data/spec/caching/group_caching_spec.rb +0 -40
  98. data/spec/dummy/README.rdoc +0 -28
  99. data/spec/dummy/Rakefile +0 -6
  100. data/spec/dummy/app/assets/javascripts/application.js +0 -13
  101. data/spec/dummy/app/assets/javascripts/post_with_collections.js +0 -2
  102. data/spec/dummy/app/assets/javascripts/posts.js +0 -2
  103. data/spec/dummy/app/assets/javascripts/posts_with_collection_and_files.js +0 -2
  104. data/spec/dummy/app/assets/stylesheets/application.css +0 -13
  105. data/spec/dummy/app/assets/stylesheets/post_with_collections.css +0 -4
  106. data/spec/dummy/app/assets/stylesheets/posts.css +0 -4
  107. data/spec/dummy/app/assets/stylesheets/posts_with_collection_and_files.css +0 -4
  108. data/spec/dummy/app/assets/stylesheets/scaffold.css +0 -56
  109. data/spec/dummy/app/controllers/application_controller.rb +0 -5
  110. data/spec/dummy/app/controllers/post_with_collections_controller.rb +0 -58
  111. data/spec/dummy/app/controllers/posts_controller.rb +0 -58
  112. data/spec/dummy/app/controllers/posts_with_collection_and_files_controller.rb +0 -58
  113. data/spec/dummy/app/helpers/application_helper.rb +0 -2
  114. data/spec/dummy/app/helpers/post_with_collections_helper.rb +0 -2
  115. data/spec/dummy/app/helpers/posts_helper.rb +0 -2
  116. data/spec/dummy/app/helpers/posts_with_collection_and_files_helper.rb +0 -2
  117. data/spec/dummy/app/models/post.rb +0 -4
  118. data/spec/dummy/app/models/post_with_collection.rb +0 -4
  119. data/spec/dummy/app/models/posts_with_collection_and_file.rb +0 -4
  120. data/spec/dummy/app/views/layouts/application.html.erb +0 -16
  121. data/spec/dummy/app/views/post_with_collections/_form.html.erb +0 -25
  122. data/spec/dummy/app/views/post_with_collections/edit.html.erb +0 -6
  123. data/spec/dummy/app/views/post_with_collections/index.html.erb +0 -29
  124. data/spec/dummy/app/views/post_with_collections/new.html.erb +0 -5
  125. data/spec/dummy/app/views/post_with_collections/show.html.erb +0 -14
  126. data/spec/dummy/app/views/post_with_collections/show.json.jbuilder +0 -1
  127. data/spec/dummy/app/views/posts/_form.html.erb +0 -31
  128. data/spec/dummy/app/views/posts/edit.html.erb +0 -6
  129. data/spec/dummy/app/views/posts/index.html.erb +0 -37
  130. data/spec/dummy/app/views/posts/new.html.erb +0 -5
  131. data/spec/dummy/app/views/posts/post.json.builder +0 -1
  132. data/spec/dummy/app/views/posts/show.html.erb +0 -15
  133. data/spec/dummy/app/views/posts_with_collection_and_files/_form.html.erb +0 -27
  134. data/spec/dummy/app/views/posts_with_collection_and_files/edit.html.erb +0 -6
  135. data/spec/dummy/app/views/posts_with_collection_and_files/index.html.erb +0 -25
  136. data/spec/dummy/app/views/posts_with_collection_and_files/new.html.erb +0 -5
  137. data/spec/dummy/app/views/posts_with_collection_and_files/show.html.erb +0 -4
  138. data/spec/dummy/app/views/posts_with_collection_and_files/show.json.jbuilder +0 -1
  139. data/spec/dummy/bin/bundle +0 -3
  140. data/spec/dummy/bin/rails +0 -4
  141. data/spec/dummy/bin/rake +0 -4
  142. data/spec/dummy/config/application.rb +0 -23
  143. data/spec/dummy/config/boot.rb +0 -4
  144. data/spec/dummy/config/database.yml +0 -25
  145. data/spec/dummy/config/environment.rb +0 -5
  146. data/spec/dummy/config/environments/development.rb +0 -29
  147. data/spec/dummy/config/environments/production.rb +0 -80
  148. data/spec/dummy/config/environments/test.rb +0 -36
  149. data/spec/dummy/config/initializers/backtrace_silencers.rb +0 -7
  150. data/spec/dummy/config/initializers/filter_parameter_logging.rb +0 -4
  151. data/spec/dummy/config/initializers/formtastic.rb +0 -111
  152. data/spec/dummy/config/initializers/inflections.rb +0 -16
  153. data/spec/dummy/config/initializers/mime_types.rb +0 -5
  154. data/spec/dummy/config/initializers/secret_token.rb +0 -12
  155. data/spec/dummy/config/initializers/session_store.rb +0 -3
  156. data/spec/dummy/config/initializers/simple_form.rb +0 -167
  157. data/spec/dummy/config/initializers/wrap_parameters.rb +0 -14
  158. data/spec/dummy/config/locales/en.yml +0 -23
  159. data/spec/dummy/config/locales/simple_form.en.yml +0 -31
  160. data/spec/dummy/config/routes.rb +0 -63
  161. data/spec/dummy/config/uploadcare.yml +0 -64
  162. data/spec/dummy/config.ru +0 -4
  163. data/spec/dummy/db/migrate/20171012001801_create_tables.rb +0 -27
  164. data/spec/dummy/db/migrate/20181001132710_add_other_file_to_post.rb +0 -8
  165. data/spec/dummy/db/migrate/20181001141434_add_other_file_to_post_with_collections.rb +0 -8
  166. data/spec/dummy/db/schema.rb +0 -39
  167. data/spec/dummy/lib/templates/erb/scaffold/_form.html.erb +0 -13
  168. data/spec/dummy/public/404.html +0 -58
  169. data/spec/dummy/public/422.html +0 -58
  170. data/spec/dummy/public/500.html +0 -57
  171. data/spec/dummy/public/favicon.ico +0 -0
  172. data/spec/helpers/form_helpers_has_file_spec.rb +0 -30
  173. data/spec/helpers/form_helpers_has_group_spec.rb +0 -30
  174. data/spec/helpers/form_helpers_spec.rb +0 -33
  175. data/spec/helpers/formtastic_spec.rb +0 -25
  176. data/spec/helpers/include_tags_spec.rb +0 -54
  177. data/spec/helpers/simple_form_spec.rb +0 -25
  178. data/spec/helpers/uploader_tags_spec.rb +0 -21
  179. data/spec/models/has_both_file_and_group_spec.rb +0 -43
  180. data/spec/models/has_file_spec.rb +0 -46
  181. data/spec/models/has_group_spec.rb +0 -57
  182. data/spec/models/has_several_files_spec.rb +0 -55
  183. data/spec/models/has_several_groups_spec.rb +0 -62
  184. data/spec/objects/file_spec.rb +0 -27
  185. data/spec/objects/group_spec.rb +0 -51
  186. data/spec/operations_spec.rb +0 -28
  187. data/spec/uploadcare/rails/settings_spec.rb +0 -136
  188. data/spec/uploadcare_rails_settings_spec.rb +0 -56
  189. data/spec/view.png +0 -0
  190. data/spec/view2.jpg +0 -0
@@ -0,0 +1,57 @@
1
+ ---
2
+ http_interactions:
3
+ - request:
4
+ method: get
5
+ uri: https://api.uploadcare.com/files/7c0bd507-961b-493e-aec9-b9be1697cf52/
6
+ body:
7
+ encoding: UTF-8
8
+ string: ''
9
+ headers:
10
+ Content-Type:
11
+ - application/json
12
+ Accept:
13
+ - application/vnd.uploadcare-v0.5+json
14
+ User-Agent:
15
+ - UploadcareRuby/3.0.5/5d5bb5639e3f2df33674 (Ruby/2.7.2)
16
+ Date:
17
+ - Tue, 27 Jul 2021 09:38:00 GMT
18
+ Authorization:
19
+ - Uploadcare 5d5bb5639e3f2df33674:6ff18c7a89921d22e71129c67307be2c4bb02287
20
+ Connection:
21
+ - close
22
+ Host:
23
+ - api.uploadcare.com
24
+ response:
25
+ status:
26
+ code: 200
27
+ message: OK
28
+ headers:
29
+ Date:
30
+ - Tue, 27 Jul 2021 09:38:00 GMT
31
+ Content-Type:
32
+ - application/vnd.uploadcare-v0.5+json
33
+ Content-Length:
34
+ - '619'
35
+ Connection:
36
+ - close
37
+ Server:
38
+ - nginx
39
+ Access-Control-Allow-Origin:
40
+ - https://uploadcare.com
41
+ Vary:
42
+ - Accept
43
+ Allow:
44
+ - DELETE, GET, HEAD, OPTIONS
45
+ X-Xss-Protection:
46
+ - 1; mode=block
47
+ X-Content-Type-Options:
48
+ - nosniff
49
+ X-Frame-Options:
50
+ - SAMEORIGIN
51
+ X-Robots-Tag:
52
+ - noindex, nofollow, nosnippet, noarchive
53
+ body:
54
+ encoding: ASCII-8BIT
55
+ string: '{"datetime_removed":null,"datetime_stored":"2021-07-27T09:07:25.264944Z","datetime_uploaded":"2021-07-27T09:07:24.962347Z","image_info":{"width":1855,"height":1056,"format":"PNG","color_mode":"RGBA","geo_location":null,"orientation":null,"dpi":null,"datetime_original":null,"sequence":false},"is_image":true,"is_ready":true,"mime_type":"image/png","original_file_url":"https://ucarecdn.com/7c0bd507-961b-493e-aec9-b9be1697cf52/444.png","original_filename":"444.png","size":578886,"url":"https://api.uploadcare.com/files/7c0bd507-961b-493e-aec9-b9be1697cf52/","uuid":"7c0bd507-961b-493e-aec9-b9be1697cf52","source":null}'
56
+ recorded_at: Tue, 27 Jul 2021 09:38:00 GMT
57
+ recorded_with: VCR 6.0.0
@@ -0,0 +1,58 @@
1
+ ---
2
+ http_interactions:
3
+ - request:
4
+ method: put
5
+ uri: https://api.uploadcare.com/files/5ae54c37-754c-4982-8de4-3f242a88ce17/storage/
6
+ body:
7
+ encoding: UTF-8
8
+ string: ''
9
+ headers:
10
+ Content-Type:
11
+ - application/json
12
+ Accept:
13
+ - application/vnd.uploadcare-v0.5+json
14
+ User-Agent:
15
+ - UploadcareRuby/3.0.5/5d5bb5639e3f2df33674 (Ruby/3.0.0)
16
+ Date:
17
+ - Thu, 22 Jul 2021 07:01:52 GMT
18
+ Authorization:
19
+ - Uploadcare 5d5bb5639e3f2df33674:ebe0023b72bdda6c5f637772accdac1151dc535b
20
+ Connection:
21
+ - close
22
+ Host:
23
+ - api.uploadcare.com
24
+ response:
25
+ status:
26
+ code: 200
27
+ message: OK
28
+ headers:
29
+ Date:
30
+ - Thu, 22 Jul 2021 07:01:52 GMT
31
+ Content-Type:
32
+ - application/vnd.uploadcare-v0.5+json
33
+ Content-Length:
34
+ - '634'
35
+ Connection:
36
+ - close
37
+ Server:
38
+ - nginx
39
+ Access-Control-Allow-Origin:
40
+ - https://uploadcare.com
41
+ Vary:
42
+ - Accept
43
+ Allow:
44
+ - DELETE, GET, HEAD, OPTIONS, POST, PUT
45
+ X-Xss-Protection:
46
+ - 1; mode=block
47
+ X-Content-Type-Options:
48
+ - nosniff
49
+ X-Frame-Options:
50
+ - SAMEORIGIN
51
+ X-Robots-Tag:
52
+ - noindex, nofollow, nosnippet, noarchive
53
+ body:
54
+ encoding: ASCII-8BIT
55
+ string: '{"datetime_removed":null,"datetime_stored":"2021-07-22T07:01:52.904554Z","datetime_uploaded":"2021-07-22T06:51:13.085531Z","image_info":{"width":48,"height":12,"format":"PNG","color_mode":"RGBA","geo_location":null,"orientation":null,"dpi":[72,72],"datetime_original":null,"sequence":false},"is_image":true,"is_ready":true,"mime_type":"image/png","original_file_url":"https://ucarecdn.com/5ae54c37-754c-4982-8de4-3f242a88ce17/1702.png","original_filename":"-17.0\u00b0\u0421
56
+ (2).png","size":514,"url":"https://api.uploadcare.com/files/5ae54c37-754c-4982-8de4-3f242a88ce17/","uuid":"5ae54c37-754c-4982-8de4-3f242a88ce17","source":null}'
57
+ recorded_at: Thu, 22 Jul 2021 07:01:53 GMT
58
+ recorded_with: VCR 6.0.0
@@ -0,0 +1,57 @@
1
+ ---
2
+ http_interactions:
3
+ - request:
4
+ method: put
5
+ uri: https://api.uploadcare.com/files/storage/
6
+ body:
7
+ encoding: UTF-8
8
+ string: '["64215d18-1356-42cb-ab8c-7542290b6e1b"]'
9
+ headers:
10
+ Content-Type:
11
+ - application/json
12
+ Accept:
13
+ - application/vnd.uploadcare-v0.5+json
14
+ User-Agent:
15
+ - UploadcareRuby/3.0.5/5d5bb5639e3f2df33674 (Ruby/2.7.0)
16
+ Date:
17
+ - Thu, 22 Jul 2021 08:38:37 GMT
18
+ Authorization:
19
+ - Uploadcare 5d5bb5639e3f2df33674:40fe4f580517d5a0668145f9728d6d7b3bcaa91e
20
+ Connection:
21
+ - close
22
+ Host:
23
+ - api.uploadcare.com
24
+ response:
25
+ status:
26
+ code: 200
27
+ message: OK
28
+ headers:
29
+ Date:
30
+ - Thu, 22 Jul 2021 08:38:38 GMT
31
+ Content-Type:
32
+ - application/vnd.uploadcare-v0.5+json
33
+ Content-Length:
34
+ - '670'
35
+ Connection:
36
+ - close
37
+ Server:
38
+ - nginx
39
+ Access-Control-Allow-Origin:
40
+ - https://uploadcare.com
41
+ Vary:
42
+ - Accept
43
+ Allow:
44
+ - DELETE, OPTIONS, PUT
45
+ X-Xss-Protection:
46
+ - 1; mode=block
47
+ X-Content-Type-Options:
48
+ - nosniff
49
+ X-Frame-Options:
50
+ - SAMEORIGIN
51
+ X-Robots-Tag:
52
+ - noindex, nofollow, nosnippet, noarchive
53
+ body:
54
+ encoding: ASCII-8BIT
55
+ string: '{"status":"ok","result":[{"datetime_removed":null,"datetime_stored":"2021-07-21T10:30:47.059311Z","datetime_uploaded":"2021-07-21T10:30:46.967311Z","image_info":{"width":82,"height":19,"format":"PNG","color_mode":"RGBA","geo_location":null,"orientation":null,"dpi":[72,72],"datetime_original":null,"sequence":false},"is_image":true,"is_ready":true,"mime_type":"image/png","original_file_url":"https://ucarecdn.com/64215d18-1356-42cb-ab8c-7542290b6e1b/170.png","original_filename":"-17.0\u00b0\u0421.png","size":861,"url":"https://api.uploadcare.com/files/64215d18-1356-42cb-ab8c-7542290b6e1b/","uuid":"64215d18-1356-42cb-ab8c-7542290b6e1b","source":null}],"problems":{}}'
56
+ recorded_at: Thu, 22 Jul 2021 08:38:38 GMT
57
+ recorded_with: VCR 6.0.0
@@ -0,0 +1,57 @@
1
+ ---
2
+ http_interactions:
3
+ - request:
4
+ method: post
5
+ uri: https://upload.uploadcare.com/group/
6
+ body:
7
+ encoding: UTF-8
8
+ string: "-----------------------b0ea15bb93e4b625964bedf1273ec9c25aa5ee0ec0\r\nContent-Disposition:
9
+ form-data; name=\"pub_key\"\r\n\r\n5d5bb5639e3f2df33674\r\n-----------------------b0ea15bb93e4b625964bedf1273ec9c25aa5ee0ec0\r\nContent-Disposition:
10
+ form-data; name=\"files[0]\"\r\n\r\nf55fcc80-58c1-42eb-9e8f-54d500296d38/resize/x600\r\n-----------------------b0ea15bb93e4b625964bedf1273ec9c25aa5ee0ec0\r\nContent-Disposition:
11
+ form-data; name=\"files[1]\"\r\n\r\n4a6ef027-d4cd-49be-a383-8cdbe503aa03/resize/x600\r\n-----------------------b0ea15bb93e4b625964bedf1273ec9c25aa5ee0ec0--\r\n"
12
+ headers:
13
+ User-Agent:
14
+ - UploadcareRuby/3.0.5/5d5bb5639e3f2df33674 (Ruby/2.7.2)
15
+ Content-Type:
16
+ - multipart/form-data; boundary=---------------------b0ea15bb93e4b625964bedf1273ec9c25aa5ee0ec0
17
+ Connection:
18
+ - close
19
+ Host:
20
+ - upload.uploadcare.com
21
+ response:
22
+ status:
23
+ code: 200
24
+ message: OK
25
+ headers:
26
+ Date:
27
+ - Fri, 23 Jul 2021 10:13:57 GMT
28
+ Content-Type:
29
+ - application/json
30
+ Content-Length:
31
+ - '1278'
32
+ Connection:
33
+ - close
34
+ Server:
35
+ - nginx
36
+ Vary:
37
+ - Accept-Encoding
38
+ - Origin
39
+ Access-Control-Allow-Origin:
40
+ - "*"
41
+ Access-Control-Allow-Methods:
42
+ - GET, POST, HEAD, OPTIONS
43
+ Access-Control-Allow-Headers:
44
+ - DNT, X-PINGOTHER, X-UC-User-Agent
45
+ Access-Control-Max-Age:
46
+ - '1'
47
+ Access-Control-Allow-Credentials:
48
+ - 'true'
49
+ X-Xss-Protection:
50
+ - 1; mode=block
51
+ X-Content-Type-Options:
52
+ - nosniff
53
+ body:
54
+ encoding: ASCII-8BIT
55
+ string: '{"id":"f7c23e06-9148-4bb6-b899-a3573e202ecb~2","datetime_created":"2021-07-23T10:13:57.351533Z","datetime_stored":null,"files_count":2,"cdn_url":"https://ucarecdn.com/f7c23e06-9148-4bb6-b899-a3573e202ecb~2/","url":"https://api.uploadcare.com/groups/f7c23e06-9148-4bb6-b899-a3573e202ecb~2/","files":[{"size":1290,"total":1290,"done":1290,"uuid":"f55fcc80-58c1-42eb-9e8f-54d500296d38","file_id":"f55fcc80-58c1-42eb-9e8f-54d500296d38","original_filename":"kitten.jpeg","is_image":true,"is_stored":false,"image_info":{"width":50,"height":50,"format":"JPEG","color_mode":"RGB","geo_location":null,"orientation":null,"dpi":[96,96],"datetime_original":null,"sequence":false},"video_info":null,"is_ready":true,"filename":"kitten.jpeg","mime_type":"application/octet-stream","default_effects":""},{"size":1290,"total":1290,"done":1290,"uuid":"4a6ef027-d4cd-49be-a383-8cdbe503aa03","file_id":"4a6ef027-d4cd-49be-a383-8cdbe503aa03","original_filename":"kitten.jpeg","is_image":true,"is_stored":false,"image_info":{"width":50,"height":50,"format":"JPEG","color_mode":"RGB","geo_location":null,"orientation":null,"dpi":[96,96],"datetime_original":null,"sequence":false},"video_info":null,"is_ready":true,"filename":"kitten.jpeg","mime_type":"application/octet-stream","default_effects":""}]}'
56
+ recorded_at: Fri, 23 Jul 2021 10:13:57 GMT
57
+ recorded_with: VCR 6.0.0
@@ -0,0 +1,52 @@
1
+ ---
2
+ http_interactions:
3
+ - request:
4
+ method: get
5
+ uri: https://upload.uploadcare.com/group/info/?group_id=8b1362ed-b477-4a15-819a-2c6bb497d8bd~3&pub_key=demopublickey
6
+ body:
7
+ encoding: UTF-8
8
+ string: ''
9
+ headers:
10
+ User-Agent:
11
+ - UploadcareRuby/3.0.5/demopublickey (Ruby/2.7.0)
12
+ Connection:
13
+ - close
14
+ Host:
15
+ - upload.uploadcare.com
16
+ response:
17
+ status:
18
+ code: 200
19
+ message: OK
20
+ headers:
21
+ Date:
22
+ - Thu, 22 Jul 2021 09:30:37 GMT
23
+ Content-Type:
24
+ - application/json
25
+ Content-Length:
26
+ - '340'
27
+ Connection:
28
+ - close
29
+ Server:
30
+ - nginx
31
+ Vary:
32
+ - Accept-Encoding
33
+ - Origin
34
+ Access-Control-Allow-Origin:
35
+ - "*"
36
+ Access-Control-Allow-Methods:
37
+ - GET, HEAD, OPTIONS
38
+ Access-Control-Allow-Headers:
39
+ - X-UC-User-Agent, X-PINGOTHER, DNT
40
+ Access-Control-Max-Age:
41
+ - '1'
42
+ Access-Control-Allow-Credentials:
43
+ - 'true'
44
+ X-Xss-Protection:
45
+ - 1; mode=block
46
+ X-Content-Type-Options:
47
+ - nosniff
48
+ body:
49
+ encoding: ASCII-8BIT
50
+ string: '{"id":"8b1362ed-b477-4a15-819a-2c6bb497d8bd~3","datetime_created":"2013-04-16T14:13:42.600051Z","datetime_stored":"2015-02-03T11:23:47.824683Z","files_count":3,"cdn_url":"https://ucarecdn.com/8b1362ed-b477-4a15-819a-2c6bb497d8bd~3/","url":"https://api.uploadcare.com/groups/8b1362ed-b477-4a15-819a-2c6bb497d8bd~3/","files":[null,null,null]}'
51
+ recorded_at: Thu, 22 Jul 2021 09:30:37 GMT
52
+ recorded_with: VCR 6.0.0
@@ -0,0 +1,57 @@
1
+ ---
2
+ http_interactions:
3
+ - request:
4
+ method: get
5
+ uri: https://api.uploadcare.com/groups/
6
+ body:
7
+ encoding: UTF-8
8
+ string: ''
9
+ headers:
10
+ Content-Type:
11
+ - application/json
12
+ Accept:
13
+ - application/vnd.uploadcare-v0.5+json
14
+ User-Agent:
15
+ - UploadcareRuby/3.0.5/5d5bb5639e3f2df33674 (Ruby/2.7.0)
16
+ Date:
17
+ - Thu, 22 Jul 2021 09:22:31 GMT
18
+ Authorization:
19
+ - Uploadcare 5d5bb5639e3f2df33674:c721e5ae9b652fc1cd7f28b5dd9ad22b246d6807
20
+ Connection:
21
+ - close
22
+ Host:
23
+ - api.uploadcare.com
24
+ response:
25
+ status:
26
+ code: 200
27
+ message: OK
28
+ headers:
29
+ Date:
30
+ - Thu, 22 Jul 2021 09:22:32 GMT
31
+ Content-Type:
32
+ - application/vnd.uploadcare-v0.5+json
33
+ Content-Length:
34
+ - '15548'
35
+ Connection:
36
+ - close
37
+ Server:
38
+ - nginx
39
+ Access-Control-Allow-Origin:
40
+ - https://uploadcare.com
41
+ Vary:
42
+ - Accept
43
+ Allow:
44
+ - GET, HEAD, OPTIONS
45
+ X-Xss-Protection:
46
+ - 1; mode=block
47
+ X-Content-Type-Options:
48
+ - nosniff
49
+ X-Frame-Options:
50
+ - SAMEORIGIN
51
+ X-Robots-Tag:
52
+ - noindex, nofollow, nosnippet, noarchive
53
+ body:
54
+ encoding: ASCII-8BIT
55
+ string: '{"next":null,"previous":null,"total":53,"per_page":100,"results":[{"id":"d476f4c9-44a9-4670-88a5-c3cf5d26b6c2~20","datetime_created":"2021-07-16T11:03:01.182939Z","datetime_stored":null,"files_count":20,"cdn_url":"https://ucarecdn.com/d476f4c9-44a9-4670-88a5-c3cf5d26b6c2~20/","url":"https://api.uploadcare.com/groups/d476f4c9-44a9-4670-88a5-c3cf5d26b6c2~20/"},{"id":"97bd6f1e-0c97-46fa-b503-7d81efd169f1~2","datetime_created":"2021-07-16T11:04:33.200508Z","datetime_stored":null,"files_count":2,"cdn_url":"https://ucarecdn.com/97bd6f1e-0c97-46fa-b503-7d81efd169f1~2/","url":"https://api.uploadcare.com/groups/97bd6f1e-0c97-46fa-b503-7d81efd169f1~2/"},{"id":"e5df2d94-5a02-4b3b-aaf7-722ae86c2110~2","datetime_created":"2021-07-16T11:04:51.939217Z","datetime_stored":null,"files_count":2,"cdn_url":"https://ucarecdn.com/e5df2d94-5a02-4b3b-aaf7-722ae86c2110~2/","url":"https://api.uploadcare.com/groups/e5df2d94-5a02-4b3b-aaf7-722ae86c2110~2/"},{"id":"fd482118-703c-4dc2-bac3-2f396bbecd06~2","datetime_created":"2021-07-16T11:05:05.896117Z","datetime_stored":null,"files_count":2,"cdn_url":"https://ucarecdn.com/fd482118-703c-4dc2-bac3-2f396bbecd06~2/","url":"https://api.uploadcare.com/groups/fd482118-703c-4dc2-bac3-2f396bbecd06~2/"},{"id":"bc4ac523-f561-48b3-9003-5e213e04d266~2","datetime_created":"2021-07-16T11:05:35.426150Z","datetime_stored":null,"files_count":2,"cdn_url":"https://ucarecdn.com/bc4ac523-f561-48b3-9003-5e213e04d266~2/","url":"https://api.uploadcare.com/groups/bc4ac523-f561-48b3-9003-5e213e04d266~2/"},{"id":"5a0e597d-a3e7-48b9-b243-cd06bc4a040f~2","datetime_created":"2021-07-16T11:06:09.873417Z","datetime_stored":null,"files_count":2,"cdn_url":"https://ucarecdn.com/5a0e597d-a3e7-48b9-b243-cd06bc4a040f~2/","url":"https://api.uploadcare.com/groups/5a0e597d-a3e7-48b9-b243-cd06bc4a040f~2/"},{"id":"5683c9d4-db11-4a9b-8981-c76a438d7093~2","datetime_created":"2021-07-16T11:11:29.842589Z","datetime_stored":null,"files_count":2,"cdn_url":"https://ucarecdn.com/5683c9d4-db11-4a9b-8981-c76a438d7093~2/","url":"https://api.uploadcare.com/groups/5683c9d4-db11-4a9b-8981-c76a438d7093~2/"},{"id":"7be07d53-401b-459b-b79d-22f791a899be~2","datetime_created":"2021-07-16T11:11:51.734935Z","datetime_stored":null,"files_count":2,"cdn_url":"https://ucarecdn.com/7be07d53-401b-459b-b79d-22f791a899be~2/","url":"https://api.uploadcare.com/groups/7be07d53-401b-459b-b79d-22f791a899be~2/"},{"id":"46ea9e78-7f52-4400-a8ab-af1a7d3e9b1c~2","datetime_created":"2021-07-16T11:12:02.393537Z","datetime_stored":null,"files_count":2,"cdn_url":"https://ucarecdn.com/46ea9e78-7f52-4400-a8ab-af1a7d3e9b1c~2/","url":"https://api.uploadcare.com/groups/46ea9e78-7f52-4400-a8ab-af1a7d3e9b1c~2/"},{"id":"8c30f64a-0d13-4d03-9116-7d71a8d57c22~2","datetime_created":"2021-07-16T11:12:12.236280Z","datetime_stored":null,"files_count":2,"cdn_url":"https://ucarecdn.com/8c30f64a-0d13-4d03-9116-7d71a8d57c22~2/","url":"https://api.uploadcare.com/groups/8c30f64a-0d13-4d03-9116-7d71a8d57c22~2/"},{"id":"df1ac2b0-8964-4e7f-ba3e-e9d8bc60f06f~1","datetime_created":"2021-07-16T11:12:20.073740Z","datetime_stored":null,"files_count":1,"cdn_url":"https://ucarecdn.com/df1ac2b0-8964-4e7f-ba3e-e9d8bc60f06f~1/","url":"https://api.uploadcare.com/groups/df1ac2b0-8964-4e7f-ba3e-e9d8bc60f06f~1/"},{"id":"4f0a13af-d3c6-4b4e-8c79-ad71db50b2cb~2","datetime_created":"2021-07-16T11:20:12.276739Z","datetime_stored":null,"files_count":2,"cdn_url":"https://ucarecdn.com/4f0a13af-d3c6-4b4e-8c79-ad71db50b2cb~2/","url":"https://api.uploadcare.com/groups/4f0a13af-d3c6-4b4e-8c79-ad71db50b2cb~2/"},{"id":"887577bf-1ffb-4830-b7c3-781decfd4708~2","datetime_created":"2021-07-16T11:26:49.284410Z","datetime_stored":null,"files_count":2,"cdn_url":"https://ucarecdn.com/887577bf-1ffb-4830-b7c3-781decfd4708~2/","url":"https://api.uploadcare.com/groups/887577bf-1ffb-4830-b7c3-781decfd4708~2/"},{"id":"d61cba65-9048-4049-aaa7-6ee2be655c02~2","datetime_created":"2021-07-16T11:29:58.000333Z","datetime_stored":null,"files_count":2,"cdn_url":"https://ucarecdn.com/d61cba65-9048-4049-aaa7-6ee2be655c02~2/","url":"https://api.uploadcare.com/groups/d61cba65-9048-4049-aaa7-6ee2be655c02~2/"},{"id":"689ce311-0ce4-49c1-87f0-89bafd739f95~2","datetime_created":"2021-07-16T11:32:39.336824Z","datetime_stored":null,"files_count":2,"cdn_url":"https://ucarecdn.com/689ce311-0ce4-49c1-87f0-89bafd739f95~2/","url":"https://api.uploadcare.com/groups/689ce311-0ce4-49c1-87f0-89bafd739f95~2/"},{"id":"dbddbfc6-b5af-4998-8a9e-6a21069d7ae4~2","datetime_created":"2021-07-16T11:32:52.721781Z","datetime_stored":null,"files_count":2,"cdn_url":"https://ucarecdn.com/dbddbfc6-b5af-4998-8a9e-6a21069d7ae4~2/","url":"https://api.uploadcare.com/groups/dbddbfc6-b5af-4998-8a9e-6a21069d7ae4~2/"},{"id":"84baccdb-f236-41b5-96e2-bdc59f8226ff~2","datetime_created":"2021-07-16T11:38:32.424877Z","datetime_stored":null,"files_count":2,"cdn_url":"https://ucarecdn.com/84baccdb-f236-41b5-96e2-bdc59f8226ff~2/","url":"https://api.uploadcare.com/groups/84baccdb-f236-41b5-96e2-bdc59f8226ff~2/"},{"id":"b99de71f-0ae2-4ac5-806a-c6f0f1744369~2","datetime_created":"2021-07-16T11:40:25.934963Z","datetime_stored":null,"files_count":2,"cdn_url":"https://ucarecdn.com/b99de71f-0ae2-4ac5-806a-c6f0f1744369~2/","url":"https://api.uploadcare.com/groups/b99de71f-0ae2-4ac5-806a-c6f0f1744369~2/"},{"id":"09bfd2d7-7934-47ad-9c42-c942c90129f7~2","datetime_created":"2021-07-16T11:52:00.340559Z","datetime_stored":null,"files_count":2,"cdn_url":"https://ucarecdn.com/09bfd2d7-7934-47ad-9c42-c942c90129f7~2/","url":"https://api.uploadcare.com/groups/09bfd2d7-7934-47ad-9c42-c942c90129f7~2/"},{"id":"6661e015-05ed-4752-8ca5-0e27ce4e9835~2","datetime_created":"2021-07-16T11:52:11.846223Z","datetime_stored":null,"files_count":2,"cdn_url":"https://ucarecdn.com/6661e015-05ed-4752-8ca5-0e27ce4e9835~2/","url":"https://api.uploadcare.com/groups/6661e015-05ed-4752-8ca5-0e27ce4e9835~2/"},{"id":"018459c2-25d4-41d0-a69a-48a692c507c6~1","datetime_created":"2021-07-16T12:20:50.199423Z","datetime_stored":null,"files_count":1,"cdn_url":"https://ucarecdn.com/018459c2-25d4-41d0-a69a-48a692c507c6~1/","url":"https://api.uploadcare.com/groups/018459c2-25d4-41d0-a69a-48a692c507c6~1/"},{"id":"682c94f0-c839-4385-9bb1-e71f98accbc9~2","datetime_created":"2021-07-16T12:22:22.372921Z","datetime_stored":null,"files_count":2,"cdn_url":"https://ucarecdn.com/682c94f0-c839-4385-9bb1-e71f98accbc9~2/","url":"https://api.uploadcare.com/groups/682c94f0-c839-4385-9bb1-e71f98accbc9~2/"},{"id":"498c576a-8b56-41ae-9cc2-15b8cfc340ee~2","datetime_created":"2021-07-19T07:35:21.563300Z","datetime_stored":null,"files_count":2,"cdn_url":"https://ucarecdn.com/498c576a-8b56-41ae-9cc2-15b8cfc340ee~2/","url":"https://api.uploadcare.com/groups/498c576a-8b56-41ae-9cc2-15b8cfc340ee~2/"},{"id":"86eccca3-032a-4dee-a56b-16a8edf26c1f~2","datetime_created":"2021-07-19T08:15:04.317359Z","datetime_stored":null,"files_count":2,"cdn_url":"https://ucarecdn.com/86eccca3-032a-4dee-a56b-16a8edf26c1f~2/","url":"https://api.uploadcare.com/groups/86eccca3-032a-4dee-a56b-16a8edf26c1f~2/"},{"id":"0f181f24-7551-42e5-bebc-14b15d9d3838~2","datetime_created":"2021-07-19T08:44:43.797957Z","datetime_stored":null,"files_count":2,"cdn_url":"https://ucarecdn.com/0f181f24-7551-42e5-bebc-14b15d9d3838~2/","url":"https://api.uploadcare.com/groups/0f181f24-7551-42e5-bebc-14b15d9d3838~2/"},{"id":"65b7f73a-e0c6-430b-ade7-f1a4c622684d~2","datetime_created":"2021-07-19T09:21:31.305973Z","datetime_stored":null,"files_count":2,"cdn_url":"https://ucarecdn.com/65b7f73a-e0c6-430b-ade7-f1a4c622684d~2/","url":"https://api.uploadcare.com/groups/65b7f73a-e0c6-430b-ade7-f1a4c622684d~2/"},{"id":"783039f9-289a-4194-a466-cea706867d8b~2","datetime_created":"2021-07-19T09:21:38.038108Z","datetime_stored":null,"files_count":2,"cdn_url":"https://ucarecdn.com/783039f9-289a-4194-a466-cea706867d8b~2/","url":"https://api.uploadcare.com/groups/783039f9-289a-4194-a466-cea706867d8b~2/"},{"id":"fdca1b41-7b45-43b4-ade5-3ca264258066~2","datetime_created":"2021-07-19T09:21:44.770571Z","datetime_stored":null,"files_count":2,"cdn_url":"https://ucarecdn.com/fdca1b41-7b45-43b4-ade5-3ca264258066~2/","url":"https://api.uploadcare.com/groups/fdca1b41-7b45-43b4-ade5-3ca264258066~2/"},{"id":"923bf7ee-b31a-457e-9ebc-86c396bac271~2","datetime_created":"2021-07-19T09:22:02.197813Z","datetime_stored":null,"files_count":2,"cdn_url":"https://ucarecdn.com/923bf7ee-b31a-457e-9ebc-86c396bac271~2/","url":"https://api.uploadcare.com/groups/923bf7ee-b31a-457e-9ebc-86c396bac271~2/"},{"id":"0a6a2c58-e71e-49cc-af4a-6f282c3cc569~2","datetime_created":"2021-07-19T09:22:15.736620Z","datetime_stored":null,"files_count":2,"cdn_url":"https://ucarecdn.com/0a6a2c58-e71e-49cc-af4a-6f282c3cc569~2/","url":"https://api.uploadcare.com/groups/0a6a2c58-e71e-49cc-af4a-6f282c3cc569~2/"},{"id":"4f3c25c3-6964-4480-b205-bdb2aedc0c4c~2","datetime_created":"2021-07-19T09:22:30.424215Z","datetime_stored":null,"files_count":2,"cdn_url":"https://ucarecdn.com/4f3c25c3-6964-4480-b205-bdb2aedc0c4c~2/","url":"https://api.uploadcare.com/groups/4f3c25c3-6964-4480-b205-bdb2aedc0c4c~2/"},{"id":"3cf0f67c-ab20-4b05-bee8-005a638d403d~2","datetime_created":"2021-07-19T09:22:35.825436Z","datetime_stored":null,"files_count":2,"cdn_url":"https://ucarecdn.com/3cf0f67c-ab20-4b05-bee8-005a638d403d~2/","url":"https://api.uploadcare.com/groups/3cf0f67c-ab20-4b05-bee8-005a638d403d~2/"},{"id":"747a7cbe-6cbf-4cbb-a2c8-6b180b16dc8a~2","datetime_created":"2021-07-19T09:22:42.527020Z","datetime_stored":null,"files_count":2,"cdn_url":"https://ucarecdn.com/747a7cbe-6cbf-4cbb-a2c8-6b180b16dc8a~2/","url":"https://api.uploadcare.com/groups/747a7cbe-6cbf-4cbb-a2c8-6b180b16dc8a~2/"},{"id":"ae8c4e36-a288-42d0-9c16-79ce464d36b5~2","datetime_created":"2021-07-19T09:22:49.031555Z","datetime_stored":null,"files_count":2,"cdn_url":"https://ucarecdn.com/ae8c4e36-a288-42d0-9c16-79ce464d36b5~2/","url":"https://api.uploadcare.com/groups/ae8c4e36-a288-42d0-9c16-79ce464d36b5~2/"},{"id":"fd488edb-590d-4ba0-91de-d3fc66d00f97~2","datetime_created":"2021-07-19T09:22:54.017894Z","datetime_stored":null,"files_count":2,"cdn_url":"https://ucarecdn.com/fd488edb-590d-4ba0-91de-d3fc66d00f97~2/","url":"https://api.uploadcare.com/groups/fd488edb-590d-4ba0-91de-d3fc66d00f97~2/"},{"id":"963bfbb6-7f59-4808-a424-65bacfbd79cb~2","datetime_created":"2021-07-19T09:23:11.160566Z","datetime_stored":null,"files_count":2,"cdn_url":"https://ucarecdn.com/963bfbb6-7f59-4808-a424-65bacfbd79cb~2/","url":"https://api.uploadcare.com/groups/963bfbb6-7f59-4808-a424-65bacfbd79cb~2/"},{"id":"00cb8cb0-e96b-4988-94c3-878727f32294~2","datetime_created":"2021-07-19T09:23:49.278235Z","datetime_stored":null,"files_count":2,"cdn_url":"https://ucarecdn.com/00cb8cb0-e96b-4988-94c3-878727f32294~2/","url":"https://api.uploadcare.com/groups/00cb8cb0-e96b-4988-94c3-878727f32294~2/"},{"id":"88b11f41-d679-48f7-a61e-0f908dc89d7b~2","datetime_created":"2021-07-19T09:24:04.559382Z","datetime_stored":null,"files_count":2,"cdn_url":"https://ucarecdn.com/88b11f41-d679-48f7-a61e-0f908dc89d7b~2/","url":"https://api.uploadcare.com/groups/88b11f41-d679-48f7-a61e-0f908dc89d7b~2/"},{"id":"db510dc4-71d2-4eb3-a689-66465a3f18fa~2","datetime_created":"2021-07-19T09:24:22.320958Z","datetime_stored":null,"files_count":2,"cdn_url":"https://ucarecdn.com/db510dc4-71d2-4eb3-a689-66465a3f18fa~2/","url":"https://api.uploadcare.com/groups/db510dc4-71d2-4eb3-a689-66465a3f18fa~2/"},{"id":"f79f1beb-b921-4fc5-891e-8cd57b4b3b58~2","datetime_created":"2021-07-19T09:25:01.097313Z","datetime_stored":null,"files_count":2,"cdn_url":"https://ucarecdn.com/f79f1beb-b921-4fc5-891e-8cd57b4b3b58~2/","url":"https://api.uploadcare.com/groups/f79f1beb-b921-4fc5-891e-8cd57b4b3b58~2/"},{"id":"fe88fb2d-cd13-474c-8436-d8e366b7a61f~2","datetime_created":"2021-07-19T09:25:09.095580Z","datetime_stored":null,"files_count":2,"cdn_url":"https://ucarecdn.com/fe88fb2d-cd13-474c-8436-d8e366b7a61f~2/","url":"https://api.uploadcare.com/groups/fe88fb2d-cd13-474c-8436-d8e366b7a61f~2/"},{"id":"e24d0f53-7cff-451d-a9fb-c40ca9d04739~2","datetime_created":"2021-07-19T09:25:19.594070Z","datetime_stored":null,"files_count":2,"cdn_url":"https://ucarecdn.com/e24d0f53-7cff-451d-a9fb-c40ca9d04739~2/","url":"https://api.uploadcare.com/groups/e24d0f53-7cff-451d-a9fb-c40ca9d04739~2/"},{"id":"ea0c126a-e6b3-4d7d-a75d-927dce1d016b~2","datetime_created":"2021-07-19T09:25:37.776957Z","datetime_stored":null,"files_count":2,"cdn_url":"https://ucarecdn.com/ea0c126a-e6b3-4d7d-a75d-927dce1d016b~2/","url":"https://api.uploadcare.com/groups/ea0c126a-e6b3-4d7d-a75d-927dce1d016b~2/"},{"id":"c21014fe-77e5-4ff6-b523-c9762def217d~22","datetime_created":"2021-07-19T09:25:41.284098Z","datetime_stored":null,"files_count":22,"cdn_url":"https://ucarecdn.com/c21014fe-77e5-4ff6-b523-c9762def217d~22/","url":"https://api.uploadcare.com/groups/c21014fe-77e5-4ff6-b523-c9762def217d~22/"},{"id":"38483b4e-57fe-40e7-8e52-74fbdd73da14~2","datetime_created":"2021-07-19T09:26:40.663669Z","datetime_stored":"2021-07-22T09:16:37.000245Z","files_count":2,"cdn_url":"https://ucarecdn.com/38483b4e-57fe-40e7-8e52-74fbdd73da14~2/","url":"https://api.uploadcare.com/groups/38483b4e-57fe-40e7-8e52-74fbdd73da14~2/"},{"id":"cf34c5a1-8fcc-4db2-9ec5-62c389e84468~2","datetime_created":"2021-07-19T09:26:44.872842Z","datetime_stored":null,"files_count":2,"cdn_url":"https://ucarecdn.com/cf34c5a1-8fcc-4db2-9ec5-62c389e84468~2/","url":"https://api.uploadcare.com/groups/cf34c5a1-8fcc-4db2-9ec5-62c389e84468~2/"},{"id":"ee09578b-2311-40b6-9637-662477ac2b62~2","datetime_created":"2021-07-19T13:52:11.892694Z","datetime_stored":null,"files_count":2,"cdn_url":"https://ucarecdn.com/ee09578b-2311-40b6-9637-662477ac2b62~2/","url":"https://api.uploadcare.com/groups/ee09578b-2311-40b6-9637-662477ac2b62~2/"},{"id":"590205b8-2dbd-4866-8492-c755cd25d7a0~2","datetime_created":"2021-07-20T06:22:36.464612Z","datetime_stored":null,"files_count":2,"cdn_url":"https://ucarecdn.com/590205b8-2dbd-4866-8492-c755cd25d7a0~2/","url":"https://api.uploadcare.com/groups/590205b8-2dbd-4866-8492-c755cd25d7a0~2/"},{"id":"ef75d3ef-a455-414f-8423-3e73925608d2~2","datetime_created":"2021-07-20T06:22:46.958344Z","datetime_stored":null,"files_count":2,"cdn_url":"https://ucarecdn.com/ef75d3ef-a455-414f-8423-3e73925608d2~2/","url":"https://api.uploadcare.com/groups/ef75d3ef-a455-414f-8423-3e73925608d2~2/"},{"id":"aeaeeb8d-43bc-444d-954f-a171fd872e58~2","datetime_created":"2021-07-20T06:23:51.599069Z","datetime_stored":"2021-07-22T09:18:17.488344Z","files_count":2,"cdn_url":"https://ucarecdn.com/aeaeeb8d-43bc-444d-954f-a171fd872e58~2/","url":"https://api.uploadcare.com/groups/aeaeeb8d-43bc-444d-954f-a171fd872e58~2/"},{"id":"d9cd0f99-f1b8-4644-8333-fc5e0a422f52~2","datetime_created":"2021-07-20T06:29:32.799205Z","datetime_stored":null,"files_count":2,"cdn_url":"https://ucarecdn.com/d9cd0f99-f1b8-4644-8333-fc5e0a422f52~2/","url":"https://api.uploadcare.com/groups/d9cd0f99-f1b8-4644-8333-fc5e0a422f52~2/"},{"id":"1fdc93b6-f8c6-4e50-921c-72ac5d2c7476~2","datetime_created":"2021-07-20T09:39:28.219091Z","datetime_stored":null,"files_count":2,"cdn_url":"https://ucarecdn.com/1fdc93b6-f8c6-4e50-921c-72ac5d2c7476~2/","url":"https://api.uploadcare.com/groups/1fdc93b6-f8c6-4e50-921c-72ac5d2c7476~2/"},{"id":"60510ebe-1e52-4a25-88be-a7e2c37a2994~2","datetime_created":"2021-07-20T09:39:36.689685Z","datetime_stored":null,"files_count":2,"cdn_url":"https://ucarecdn.com/60510ebe-1e52-4a25-88be-a7e2c37a2994~2/","url":"https://api.uploadcare.com/groups/60510ebe-1e52-4a25-88be-a7e2c37a2994~2/"}]}'
56
+ recorded_at: Thu, 22 Jul 2021 09:22:32 GMT
57
+ recorded_with: VCR 6.0.0
@@ -0,0 +1,57 @@
1
+ ---
2
+ http_interactions:
3
+ - request:
4
+ method: put
5
+ uri: https://api.uploadcare.com/groups/aeaeeb8d-43bc-444d-954f-a171fd872e58~2/storage/
6
+ body:
7
+ encoding: UTF-8
8
+ string: ''
9
+ headers:
10
+ Content-Type:
11
+ - application/json
12
+ Accept:
13
+ - application/vnd.uploadcare-v0.5+json
14
+ User-Agent:
15
+ - UploadcareRuby/3.0.5/5d5bb5639e3f2df33674 (Ruby/2.7.0)
16
+ Date:
17
+ - Thu, 22 Jul 2021 09:22:32 GMT
18
+ Authorization:
19
+ - Uploadcare 5d5bb5639e3f2df33674:61efbd9d61b4e2457bb04f05b0175e076615e132
20
+ Connection:
21
+ - close
22
+ Host:
23
+ - api.uploadcare.com
24
+ response:
25
+ status:
26
+ code: 200
27
+ message: OK
28
+ headers:
29
+ Date:
30
+ - Thu, 22 Jul 2021 09:22:33 GMT
31
+ Content-Type:
32
+ - application/vnd.uploadcare-v0.5+json
33
+ Content-Length:
34
+ - '1169'
35
+ Connection:
36
+ - close
37
+ Server:
38
+ - nginx
39
+ Access-Control-Allow-Origin:
40
+ - https://uploadcare.com
41
+ Vary:
42
+ - Accept
43
+ Allow:
44
+ - OPTIONS, POST, PUT
45
+ X-Xss-Protection:
46
+ - 1; mode=block
47
+ X-Content-Type-Options:
48
+ - nosniff
49
+ X-Frame-Options:
50
+ - SAMEORIGIN
51
+ X-Robots-Tag:
52
+ - noindex, nofollow, nosnippet, noarchive
53
+ body:
54
+ encoding: ASCII-8BIT
55
+ string: '{"id":"aeaeeb8d-43bc-444d-954f-a171fd872e58~2","datetime_created":"2021-07-20T06:23:51.599069Z","datetime_stored":"2021-07-22T09:22:33.506397Z","files_count":2,"cdn_url":"https://ucarecdn.com/aeaeeb8d-43bc-444d-954f-a171fd872e58~2/","url":"https://api.uploadcare.com/groups/aeaeeb8d-43bc-444d-954f-a171fd872e58~2/","files":[{"datetime_removed":null,"datetime_stored":"2021-07-22T09:18:17.362876Z","datetime_uploaded":"2021-07-20T06:23:51.609975Z","image_info":null,"is_image":null,"is_ready":false,"mime_type":"","original_file_url":null,"original_filename":"thumbnail_0.jpg","size":0,"url":"https://api.uploadcare.com/files/b2cd0665-c21c-4e2f-aa64-019f52136ca8/","uuid":"b2cd0665-c21c-4e2f-aa64-019f52136ca8","source":null,"default_effects":""},{"datetime_removed":null,"datetime_stored":"2021-07-22T09:18:17.448478Z","datetime_uploaded":"2021-07-20T06:23:51.630723Z","image_info":null,"is_image":null,"is_ready":false,"mime_type":"","original_file_url":null,"original_filename":"thumbnail_1.jpg","size":0,"url":"https://api.uploadcare.com/files/104ebe73-48e2-48cc-a8c2-1134c57129f5/","uuid":"104ebe73-48e2-48cc-a8c2-1134c57129f5","source":null,"default_effects":""}]}'
56
+ recorded_at: Thu, 22 Jul 2021 09:22:33 GMT
57
+ recorded_with: VCR 6.0.0
@@ -0,0 +1,59 @@
1
+ ---
2
+ http_interactions:
3
+ - request:
4
+ method: get
5
+ uri: https://api.uploadcare.com/project/
6
+ body:
7
+ encoding: UTF-8
8
+ string: ''
9
+ headers:
10
+ Content-Type:
11
+ - application/json
12
+ Accept:
13
+ - application/vnd.uploadcare-v0.5+json
14
+ User-Agent:
15
+ - UploadcareRuby/3.0.5/demopublickey (Ruby/2.7.0)
16
+ Date:
17
+ - Thu, 22 Jul 2021 10:00:11 GMT
18
+ Authorization:
19
+ - Uploadcare demopublickey:3216f2c9fd76db88d056d392c5043cc1686f53a6
20
+ Connection:
21
+ - close
22
+ Host:
23
+ - api.uploadcare.com
24
+ response:
25
+ status:
26
+ code: 200
27
+ message: OK
28
+ headers:
29
+ Date:
30
+ - Thu, 22 Jul 2021 10:00:12 GMT
31
+ Content-Type:
32
+ - application/vnd.uploadcare-v0.5+json
33
+ Content-Length:
34
+ - '307'
35
+ Connection:
36
+ - close
37
+ Server:
38
+ - nginx
39
+ Warning:
40
+ - '199 Miscellaneous warning: You are using the demo project'
41
+ Access-Control-Allow-Origin:
42
+ - https://uploadcare.com
43
+ Vary:
44
+ - Accept
45
+ Allow:
46
+ - GET, HEAD, OPTIONS
47
+ X-Xss-Protection:
48
+ - 1; mode=block
49
+ X-Content-Type-Options:
50
+ - nosniff
51
+ X-Frame-Options:
52
+ - SAMEORIGIN
53
+ X-Robots-Tag:
54
+ - noindex, nofollow, nosnippet, noarchive
55
+ body:
56
+ encoding: ASCII-8BIT
57
+ string: '{"collaborators":[{"name":"dmitriy.cherevatenko@uploadcare.com","email":"dmitriy.cherevatenko@uploadcare.com"},{"name":"achernenko@uploadcare.com","email":"achernenko@uploadcare.com"},{"name":"os@uploadcare.com","email":"os@uploadcare.com"}],"name":"demo","pub_key":"demopublickey","autostore_enabled":true}'
58
+ recorded_at: Thu, 22 Jul 2021 10:00:12 GMT
59
+ recorded_with: VCR 6.0.0
@@ -0,0 +1,55 @@
1
+ ---
2
+ http_interactions:
3
+ - request:
4
+ method: post
5
+ uri: https://upload.uploadcare.com/base/
6
+ body:
7
+ encoding: ASCII-8BIT
8
+ string: !binary |-
9
+ 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
10
+ headers:
11
+ User-Agent:
12
+ - UploadcareRuby/3.0.5/demopublickey (Ruby/2.7.2)
13
+ Content-Type:
14
+ - multipart/form-data; boundary=---------------------29e9731f9a733aa1eb1f155930871d52bd93ed065a
15
+ Connection:
16
+ - close
17
+ Host:
18
+ - upload.uploadcare.com
19
+ response:
20
+ status:
21
+ code: 200
22
+ message: OK
23
+ headers:
24
+ Date:
25
+ - Fri, 23 Jul 2021 09:25:40 GMT
26
+ Content-Type:
27
+ - application/json
28
+ Content-Length:
29
+ - '54'
30
+ Connection:
31
+ - close
32
+ Server:
33
+ - nginx
34
+ Vary:
35
+ - Accept-Encoding
36
+ - Origin
37
+ Access-Control-Allow-Origin:
38
+ - "*"
39
+ Access-Control-Allow-Methods:
40
+ - POST, OPTIONS
41
+ Access-Control-Allow-Headers:
42
+ - DNT, X-PINGOTHER, X-UC-User-Agent
43
+ Access-Control-Max-Age:
44
+ - '1'
45
+ Access-Control-Allow-Credentials:
46
+ - 'true'
47
+ X-Xss-Protection:
48
+ - 1; mode=block
49
+ X-Content-Type-Options:
50
+ - nosniff
51
+ body:
52
+ encoding: ASCII-8BIT
53
+ string: '{"kitten.jpeg":"afbe9a51-17ee-49e0-863c-fd112592dc89"}'
54
+ recorded_at: Fri, 23 Jul 2021 09:25:40 GMT
55
+ recorded_with: VCR 6.0.0