uploadcare-rails 2.1.1 → 3.2.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/uploadcare/rails/api/rest/addons_api.rb +54 -0
- data/lib/uploadcare/rails/api/rest/conversion_api.rb +8 -8
- data/lib/uploadcare/rails/api/rest/file_api.rb +20 -13
- data/lib/uploadcare/rails/api/rest/file_metadata_api.rb +42 -0
- data/lib/uploadcare/rails/api/rest/group_api.rb +12 -6
- data/lib/uploadcare/rails/api/rest/project_api.rb +1 -1
- data/lib/uploadcare/rails/api/rest/webhook_api.rb +6 -6
- data/lib/uploadcare/rails/api/upload/upload_api.rb +4 -4
- data/lib/uploadcare/rails/objects/group.rb +1 -3
- data/lib/uploadcare/rails/version.rb +1 -1
- data/lib/uploadcare-rails.rb +2 -0
- data/spec/fixtures/vcr_cassettes/conversion_api_convert_document.yml +1 -1
- data/spec/fixtures/vcr_cassettes/conversion_api_convert_document_with_error.yml +1 -1
- data/spec/fixtures/vcr_cassettes/conversion_api_convert_video.yml +1 -1
- data/spec/fixtures/vcr_cassettes/conversion_api_convert_video_with_error.yml +1 -1
- data/spec/fixtures/vcr_cassettes/conversion_api_get_document_conversion_status.yml +2 -2
- data/spec/fixtures/vcr_cassettes/conversion_api_get_video_conversion_status.yml +2 -2
- data/spec/fixtures/vcr_cassettes/file_api_copy_file.yml +2 -2
- data/spec/fixtures/vcr_cassettes/file_api_delete_file.yml +16 -13
- data/spec/fixtures/vcr_cassettes/file_api_delete_files.yml +2 -2
- data/spec/fixtures/vcr_cassettes/file_api_get_file.yml +15 -12
- data/spec/fixtures/vcr_cassettes/file_api_get_files.yml +2 -2
- data/spec/fixtures/vcr_cassettes/file_api_load_file.yml +2 -2
- data/spec/fixtures/vcr_cassettes/file_api_store_file.yml +15 -12
- data/spec/fixtures/vcr_cassettes/file_api_store_files.yml +2 -2
- data/spec/fixtures/vcr_cassettes/group_api_create_group.yml +17 -13
- data/spec/fixtures/vcr_cassettes/group_api_get_group.yml +12 -8
- data/spec/fixtures/vcr_cassettes/group_api_get_groups.yml +2 -2
- data/spec/fixtures/vcr_cassettes/group_api_store_group.yml +132 -12
- data/spec/fixtures/vcr_cassettes/project_api_get_project.yml +2 -2
- data/spec/fixtures/vcr_cassettes/upload_upload_many_files.yml +13 -9
- data/spec/fixtures/vcr_cassettes/upload_upload_one_file_from_cdn.yml +2 -2
- data/spec/fixtures/vcr_cassettes/webhook_api_create_webhook.yml +2 -2
- data/spec/fixtures/vcr_cassettes/webhook_api_delete_webhook.yml +11 -9
- data/spec/fixtures/vcr_cassettes/webhook_api_get_webhooks.yml +2 -2
- data/spec/fixtures/vcr_cassettes/webhook_api_update_webhook.yml +4 -4
- data/spec/spec_helper.rb +1 -0
- data/spec/uploadcare/rails/api/rest/file_api_spec.rb +4 -13
- data/spec/uploadcare/rails/api/rest/group_api_spec.rb +4 -4
- data/spec/uploadcare/rails/objects/file_spec.rb +2 -2
- data/spec/uploadcare/rails/objects/group_spec.rb +3 -25
- metadata +59 -43
@@ -10,7 +10,7 @@ http_interactions:
|
|
10
10
|
Content-Type:
|
11
11
|
- application/json
|
12
12
|
Accept:
|
13
|
-
- application/vnd.uploadcare-v0.
|
13
|
+
- application/vnd.uploadcare-v0.7+json
|
14
14
|
User-Agent:
|
15
15
|
- UploadcareRuby/3.0.5/5d5bb5639e3f2df33674 (Ruby/3.0.0)
|
16
16
|
Date:
|
@@ -29,7 +29,7 @@ http_interactions:
|
|
29
29
|
Date:
|
30
30
|
- Thu, 22 Jul 2021 07:17:45 GMT
|
31
31
|
Content-Type:
|
32
|
-
- application/vnd.uploadcare-v0.
|
32
|
+
- application/vnd.uploadcare-v0.7+json
|
33
33
|
Content-Length:
|
34
34
|
- '3841'
|
35
35
|
Connection:
|
@@ -10,7 +10,7 @@ http_interactions:
|
|
10
10
|
Content-Type:
|
11
11
|
- application/json
|
12
12
|
Accept:
|
13
|
-
- application/vnd.uploadcare-v0.
|
13
|
+
- application/vnd.uploadcare-v0.7+json
|
14
14
|
User-Agent:
|
15
15
|
- UploadcareRuby/3.0.5/5d5bb5639e3f2df33674 (Ruby/2.7.2)
|
16
16
|
Date:
|
@@ -29,7 +29,7 @@ http_interactions:
|
|
29
29
|
Date:
|
30
30
|
- Tue, 27 Jul 2021 09:38:00 GMT
|
31
31
|
Content-Type:
|
32
|
-
- application/vnd.uploadcare-v0.
|
32
|
+
- application/vnd.uploadcare-v0.7+json
|
33
33
|
Content-Length:
|
34
34
|
- '619'
|
35
35
|
Connection:
|
@@ -2,7 +2,7 @@
|
|
2
2
|
http_interactions:
|
3
3
|
- request:
|
4
4
|
method: put
|
5
|
-
uri: https://api.uploadcare.com/files/
|
5
|
+
uri: https://api.uploadcare.com/files/2254146d-3652-4419-abf6-305d36ef30a8/storage/
|
6
6
|
body:
|
7
7
|
encoding: UTF-8
|
8
8
|
string: ''
|
@@ -10,13 +10,13 @@ http_interactions:
|
|
10
10
|
Content-Type:
|
11
11
|
- application/json
|
12
12
|
Accept:
|
13
|
-
- application/vnd.uploadcare-v0.
|
13
|
+
- application/vnd.uploadcare-v0.7+json
|
14
14
|
User-Agent:
|
15
|
-
- UploadcareRuby/
|
15
|
+
- UploadcareRuby/4.0.0/5d5bb5639e3f2df33674 (Ruby/2.7.6)
|
16
16
|
Date:
|
17
|
-
-
|
17
|
+
- Sat, 29 Oct 2022 16:40:21 GMT
|
18
18
|
Authorization:
|
19
|
-
- Uploadcare 5d5bb5639e3f2df33674:
|
19
|
+
- Uploadcare 5d5bb5639e3f2df33674:6fc08b718da982137cda33a4762dcd79b86f91e4
|
20
20
|
Connection:
|
21
21
|
- close
|
22
22
|
Host:
|
@@ -27,15 +27,17 @@ http_interactions:
|
|
27
27
|
message: OK
|
28
28
|
headers:
|
29
29
|
Date:
|
30
|
-
-
|
30
|
+
- Sat, 29 Oct 2022 16:40:22 GMT
|
31
31
|
Content-Type:
|
32
|
-
- application/vnd.uploadcare-v0.
|
32
|
+
- application/vnd.uploadcare-v0.7+json
|
33
33
|
Content-Length:
|
34
|
-
- '
|
34
|
+
- '706'
|
35
35
|
Connection:
|
36
36
|
- close
|
37
37
|
Server:
|
38
38
|
- nginx
|
39
|
+
Warning:
|
40
|
+
- '199 Miscellaneous warning: Please use API version 0.5, not 0.7'
|
39
41
|
Access-Control-Allow-Origin:
|
40
42
|
- https://uploadcare.com
|
41
43
|
Vary:
|
@@ -46,13 +48,14 @@ http_interactions:
|
|
46
48
|
- 1; mode=block
|
47
49
|
X-Content-Type-Options:
|
48
50
|
- nosniff
|
51
|
+
X-Uploadcare-Request-Id:
|
52
|
+
- '0810aef4-8cd5-474c-8194-35a01459dbd7'
|
49
53
|
X-Frame-Options:
|
50
54
|
- SAMEORIGIN
|
51
55
|
X-Robots-Tag:
|
52
56
|
- noindex, nofollow, nosnippet, noarchive
|
53
57
|
body:
|
54
58
|
encoding: ASCII-8BIT
|
55
|
-
string: '{"datetime_removed":null,"datetime_stored":"
|
56
|
-
|
57
|
-
|
58
|
-
recorded_with: VCR 6.0.0
|
59
|
+
string: '{"datetime_removed":null,"datetime_stored":"2022-10-25T11:11:47.239294Z","datetime_uploaded":"2022-10-25T11:11:47.120330Z","is_image":true,"is_ready":true,"mime_type":"image/png","original_file_url":"https://ucarecdn.com/2254146d-3652-4419-abf6-305d36ef30a8/image.png","original_filename":"image.png","size":2182,"url":"https://api.uploadcare.com/files/2254146d-3652-4419-abf6-305d36ef30a8/","uuid":"2254146d-3652-4419-abf6-305d36ef30a8","variations":null,"content_info":{"mime":{"mime":"image/png","type":"image","subtype":"png"},"image":{"dpi":null,"width":50,"format":"PNG","height":42,"sequence":false,"color_mode":"RGBA","orientation":null,"geo_location":null,"datetime_original":null}},"metadata":{}}'
|
60
|
+
recorded_at: Sat, 29 Oct 2022 16:40:22 GMT
|
61
|
+
recorded_with: VCR 6.1.0
|
@@ -10,7 +10,7 @@ http_interactions:
|
|
10
10
|
Content-Type:
|
11
11
|
- application/json
|
12
12
|
Accept:
|
13
|
-
- application/vnd.uploadcare-v0.
|
13
|
+
- application/vnd.uploadcare-v0.7+json
|
14
14
|
User-Agent:
|
15
15
|
- UploadcareRuby/3.0.5/5d5bb5639e3f2df33674 (Ruby/2.7.0)
|
16
16
|
Date:
|
@@ -29,7 +29,7 @@ http_interactions:
|
|
29
29
|
Date:
|
30
30
|
- Thu, 22 Jul 2021 08:38:38 GMT
|
31
31
|
Content-Type:
|
32
|
-
- application/vnd.uploadcare-v0.
|
32
|
+
- application/vnd.uploadcare-v0.7+json
|
33
33
|
Content-Length:
|
34
34
|
- '670'
|
35
35
|
Connection:
|
@@ -5,15 +5,15 @@ http_interactions:
|
|
5
5
|
uri: https://upload.uploadcare.com/group/
|
6
6
|
body:
|
7
7
|
encoding: UTF-8
|
8
|
-
string: "-----------------------
|
9
|
-
form-data; name=\"pub_key\"\r\n\r\n5d5bb5639e3f2df33674\r\n-----------------------
|
10
|
-
form-data; name=\"files[0]\"\r\n\r\
|
11
|
-
form-data; name=\"files[1]\"\r\n\r\
|
8
|
+
string: "-----------------------dafb93cbc30d698e13a17f04d5c1b66386c88c822f\r\nContent-Disposition:
|
9
|
+
form-data; name=\"pub_key\"\r\n\r\n5d5bb5639e3f2df33674\r\n-----------------------dafb93cbc30d698e13a17f04d5c1b66386c88c822f\r\nContent-Disposition:
|
10
|
+
form-data; name=\"files[0]\"\r\n\r\n272cbffa-4a27-4aba-98f1-a36e2e017e24/resize/x600\r\n-----------------------dafb93cbc30d698e13a17f04d5c1b66386c88c822f\r\nContent-Disposition:
|
11
|
+
form-data; name=\"files[1]\"\r\n\r\n36892dd8-ccb1-4225-bc48-96a0fde93b33/resize/x600\r\n-----------------------dafb93cbc30d698e13a17f04d5c1b66386c88c822f--\r\n"
|
12
12
|
headers:
|
13
13
|
User-Agent:
|
14
|
-
- UploadcareRuby/
|
14
|
+
- UploadcareRuby/4.0.0/5d5bb5639e3f2df33674 (Ruby/2.7.6)
|
15
15
|
Content-Type:
|
16
|
-
- multipart/form-data; boundary=---------------------
|
16
|
+
- multipart/form-data; boundary=---------------------dafb93cbc30d698e13a17f04d5c1b66386c88c822f
|
17
17
|
Connection:
|
18
18
|
- close
|
19
19
|
Host:
|
@@ -24,11 +24,11 @@ http_interactions:
|
|
24
24
|
message: OK
|
25
25
|
headers:
|
26
26
|
Date:
|
27
|
-
-
|
27
|
+
- Sat, 29 Oct 2022 19:26:05 GMT
|
28
28
|
Content-Type:
|
29
29
|
- application/json
|
30
30
|
Content-Length:
|
31
|
-
- '
|
31
|
+
- '1732'
|
32
32
|
Connection:
|
33
33
|
- close
|
34
34
|
Server:
|
@@ -41,17 +41,21 @@ http_interactions:
|
|
41
41
|
Access-Control-Allow-Methods:
|
42
42
|
- GET, POST, HEAD, OPTIONS
|
43
43
|
Access-Control-Allow-Headers:
|
44
|
-
- DNT, X-
|
44
|
+
- DNT, X-UC-User-Agent, X-PINGOTHER
|
45
45
|
Access-Control-Max-Age:
|
46
46
|
- '1'
|
47
47
|
Access-Control-Allow-Credentials:
|
48
48
|
- 'true'
|
49
|
+
Access-Control-Expose-Headers:
|
50
|
+
- Warning, Retry-After
|
49
51
|
X-Xss-Protection:
|
50
52
|
- 1; mode=block
|
51
53
|
X-Content-Type-Options:
|
52
54
|
- nosniff
|
55
|
+
X-Uploadcare-Request-Id:
|
56
|
+
- 711a2fa2-0c02-42be-9f48-49e77c187346
|
53
57
|
body:
|
54
|
-
encoding:
|
55
|
-
string: '{"id":"
|
56
|
-
recorded_at:
|
57
|
-
recorded_with: VCR 6.
|
58
|
+
encoding: UTF-8
|
59
|
+
string: '{"id":"2e82a787-0059-4214-8ee2-d1493ac49e84~2","datetime_created":"2022-10-29T19:26:05.356641Z","datetime_stored":null,"files_count":2,"cdn_url":"https://ucarecdn.com/2e82a787-0059-4214-8ee2-d1493ac49e84~2/","url":"https://api.uploadcare.com/groups/2e82a787-0059-4214-8ee2-d1493ac49e84~2/","files":[{"size":2766,"total":2766,"done":2766,"uuid":"272cbffa-4a27-4aba-98f1-a36e2e017e24","file_id":"272cbffa-4a27-4aba-98f1-a36e2e017e24","original_filename":"image.png","is_image":true,"is_stored":true,"image_info":{"dpi":null,"width":50,"format":"PNG","height":42,"sequence":false,"color_mode":"RGBA","orientation":null,"geo_location":null,"datetime_original":null},"video_info":null,"content_info":{"mime":{"mime":"image/png","type":"image","subtype":"png"},"image":{"dpi":null,"width":50,"format":"PNG","height":42,"sequence":false,"color_mode":"RGBA","orientation":null,"geo_location":null,"datetime_original":null}},"is_ready":true,"filename":"image.png","mime_type":"image/png","metadata":{},"default_effects":""},{"size":2950,"total":2950,"done":2950,"uuid":"36892dd8-ccb1-4225-bc48-96a0fde93b33","file_id":"36892dd8-ccb1-4225-bc48-96a0fde93b33","original_filename":"image.png","is_image":true,"is_stored":true,"image_info":{"dpi":null,"width":50,"format":"PNG","height":42,"sequence":false,"color_mode":"RGBA","orientation":null,"geo_location":null,"datetime_original":null},"video_info":null,"content_info":{"mime":{"mime":"image/png","type":"image","subtype":"png"},"image":{"dpi":null,"width":50,"format":"PNG","height":42,"sequence":false,"color_mode":"RGBA","orientation":null,"geo_location":null,"datetime_original":null}},"is_ready":true,"filename":"image.png","mime_type":"image/png","metadata":{},"default_effects":""}]}'
|
60
|
+
recorded_at: Sat, 29 Oct 2022 19:26:05 GMT
|
61
|
+
recorded_with: VCR 6.1.0
|
@@ -2,13 +2,13 @@
|
|
2
2
|
http_interactions:
|
3
3
|
- request:
|
4
4
|
method: get
|
5
|
-
uri: https://upload.uploadcare.com/group/info/?group_id=
|
5
|
+
uri: https://upload.uploadcare.com/group/info/?group_id=6053b054-b8d4-4f57-992d-94b8f1d6ba65~2&pub_key=demopublickey
|
6
6
|
body:
|
7
7
|
encoding: UTF-8
|
8
8
|
string: ''
|
9
9
|
headers:
|
10
10
|
User-Agent:
|
11
|
-
- UploadcareRuby/
|
11
|
+
- UploadcareRuby/4.0.0/5d5bb5639e3f2df33674 (Ruby/3.0.0)
|
12
12
|
Connection:
|
13
13
|
- close
|
14
14
|
Host:
|
@@ -19,11 +19,11 @@ http_interactions:
|
|
19
19
|
message: OK
|
20
20
|
headers:
|
21
21
|
Date:
|
22
|
-
-
|
22
|
+
- Sun, 30 Oct 2022 20:30:29 GMT
|
23
23
|
Content-Type:
|
24
24
|
- application/json
|
25
25
|
Content-Length:
|
26
|
-
- '
|
26
|
+
- '1732'
|
27
27
|
Connection:
|
28
28
|
- close
|
29
29
|
Server:
|
@@ -41,12 +41,16 @@ http_interactions:
|
|
41
41
|
- '1'
|
42
42
|
Access-Control-Allow-Credentials:
|
43
43
|
- 'true'
|
44
|
+
Access-Control-Expose-Headers:
|
45
|
+
- Warning, Retry-After
|
44
46
|
X-Xss-Protection:
|
45
47
|
- 1; mode=block
|
46
48
|
X-Content-Type-Options:
|
47
49
|
- nosniff
|
50
|
+
X-Uploadcare-Request-Id:
|
51
|
+
- 90a2fabe-2413-4f08-bd81-bc00c5ccf0e9
|
48
52
|
body:
|
49
|
-
encoding:
|
50
|
-
string: '{"id":"
|
51
|
-
recorded_at:
|
52
|
-
recorded_with: VCR 6.
|
53
|
+
encoding: UTF-8
|
54
|
+
string: '{"id":"6053b054-b8d4-4f57-992d-94b8f1d6ba65~2","datetime_created":"2022-10-29T16:53:33.220316Z","datetime_stored":null,"files_count":2,"cdn_url":"https://ucarecdn.com/6053b054-b8d4-4f57-992d-94b8f1d6ba65~2/","url":"https://api.uploadcare.com/groups/6053b054-b8d4-4f57-992d-94b8f1d6ba65~2/","files":[{"size":2766,"total":2766,"done":2766,"uuid":"272cbffa-4a27-4aba-98f1-a36e2e017e24","file_id":"272cbffa-4a27-4aba-98f1-a36e2e017e24","original_filename":"image.png","is_image":true,"is_stored":true,"image_info":{"dpi":null,"width":50,"format":"PNG","height":42,"sequence":false,"color_mode":"RGBA","orientation":null,"geo_location":null,"datetime_original":null},"video_info":null,"content_info":{"mime":{"mime":"image/png","type":"image","subtype":"png"},"image":{"dpi":null,"width":50,"format":"PNG","height":42,"sequence":false,"color_mode":"RGBA","orientation":null,"geo_location":null,"datetime_original":null}},"is_ready":true,"filename":"image.png","mime_type":"image/png","metadata":{},"default_effects":""},{"size":2950,"total":2950,"done":2950,"uuid":"36892dd8-ccb1-4225-bc48-96a0fde93b33","file_id":"36892dd8-ccb1-4225-bc48-96a0fde93b33","original_filename":"image.png","is_image":true,"is_stored":true,"image_info":{"dpi":null,"width":50,"format":"PNG","height":42,"sequence":false,"color_mode":"RGBA","orientation":null,"geo_location":null,"datetime_original":null},"video_info":null,"content_info":{"mime":{"mime":"image/png","type":"image","subtype":"png"},"image":{"dpi":null,"width":50,"format":"PNG","height":42,"sequence":false,"color_mode":"RGBA","orientation":null,"geo_location":null,"datetime_original":null}},"is_ready":true,"filename":"image.png","mime_type":"image/png","metadata":{},"default_effects":""}]}'
|
55
|
+
recorded_at: Sun, 30 Oct 2022 20:30:29 GMT
|
56
|
+
recorded_with: VCR 6.1.0
|
@@ -10,7 +10,7 @@ http_interactions:
|
|
10
10
|
Content-Type:
|
11
11
|
- application/json
|
12
12
|
Accept:
|
13
|
-
- application/vnd.uploadcare-v0.
|
13
|
+
- application/vnd.uploadcare-v0.7+json
|
14
14
|
User-Agent:
|
15
15
|
- UploadcareRuby/3.0.5/5d5bb5639e3f2df33674 (Ruby/2.7.0)
|
16
16
|
Date:
|
@@ -29,7 +29,7 @@ http_interactions:
|
|
29
29
|
Date:
|
30
30
|
- Thu, 22 Jul 2021 09:22:32 GMT
|
31
31
|
Content-Type:
|
32
|
-
- application/vnd.uploadcare-v0.
|
32
|
+
- application/vnd.uploadcare-v0.7+json
|
33
33
|
Content-Length:
|
34
34
|
- '15548'
|
35
35
|
Connection:
|
@@ -1,8 +1,124 @@
|
|
1
1
|
---
|
2
2
|
http_interactions:
|
3
|
+
- request:
|
4
|
+
method: get
|
5
|
+
uri: https://api.uploadcare.com/groups/6053b054-b8d4-4f57-992d-94b8f1d6ba65~2/
|
6
|
+
body:
|
7
|
+
encoding: UTF-8
|
8
|
+
string: ''
|
9
|
+
headers:
|
10
|
+
Content-Type:
|
11
|
+
- application/json
|
12
|
+
Accept:
|
13
|
+
- application/vnd.uploadcare-v0.7+json
|
14
|
+
User-Agent:
|
15
|
+
- UploadcareRuby/4.0.0/5d5bb5639e3f2df33674 (Ruby/3.0.0)
|
16
|
+
Date:
|
17
|
+
- Sun, 30 Oct 2022 20:22:18 GMT
|
18
|
+
Authorization:
|
19
|
+
- Uploadcare 5d5bb5639e3f2df33674:9f967887320b67d4040b5670a146815937687a9e
|
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
|
+
- Sun, 30 Oct 2022 20:22:18 GMT
|
31
|
+
Content-Type:
|
32
|
+
- application/vnd.uploadcare-v0.7+json
|
33
|
+
Content-Length:
|
34
|
+
- '1733'
|
35
|
+
Connection:
|
36
|
+
- close
|
37
|
+
Server:
|
38
|
+
- nginx
|
39
|
+
Warning:
|
40
|
+
- '199 Miscellaneous warning: Please use API version 0.5, not 0.7'
|
41
|
+
Access-Control-Allow-Origin:
|
42
|
+
- https://uploadcare.com
|
43
|
+
Vary:
|
44
|
+
- Accept
|
45
|
+
Allow:
|
46
|
+
- DELETE, GET, HEAD, OPTIONS
|
47
|
+
X-Xss-Protection:
|
48
|
+
- 1; mode=block
|
49
|
+
X-Content-Type-Options:
|
50
|
+
- nosniff
|
51
|
+
X-Uploadcare-Request-Id:
|
52
|
+
- 4ab0a977-1047-44c3-8468-44dfec0dd624
|
53
|
+
X-Frame-Options:
|
54
|
+
- SAMEORIGIN
|
55
|
+
X-Robots-Tag:
|
56
|
+
- noindex, nofollow, nosnippet, noarchive
|
57
|
+
body:
|
58
|
+
encoding: ASCII-8BIT
|
59
|
+
string: '{"id":"6053b054-b8d4-4f57-992d-94b8f1d6ba65~2","datetime_created":"2022-10-29T16:53:33.220316Z","files_count":2,"cdn_url":"https://ucarecdn.com/6053b054-b8d4-4f57-992d-94b8f1d6ba65~2/","url":"https://api.uploadcare.com/groups/6053b054-b8d4-4f57-992d-94b8f1d6ba65~2/","files":[{"datetime_removed":null,"datetime_stored":"2022-10-23T22:47:38.127212Z","datetime_uploaded":"2022-10-23T22:47:38.086167Z","is_image":true,"is_ready":true,"mime_type":"image/png","original_file_url":"https://ucarecdn.com/272cbffa-4a27-4aba-98f1-a36e2e017e24/image.png","original_filename":"image.png","size":2766,"url":"https://api.uploadcare.com/files/272cbffa-4a27-4aba-98f1-a36e2e017e24/","uuid":"272cbffa-4a27-4aba-98f1-a36e2e017e24","variations":null,"content_info":{"mime":{"mime":"image/png","type":"image","subtype":"png"},"image":{"dpi":null,"width":50,"format":"PNG","height":42,"sequence":false,"color_mode":"RGBA","orientation":null,"geo_location":null,"datetime_original":null}},"metadata":{},"default_effects":""},{"datetime_removed":null,"datetime_stored":"2022-10-23T22:15:16.698017Z","datetime_uploaded":"2022-10-23T22:15:16.642664Z","is_image":true,"is_ready":true,"mime_type":"image/png","original_file_url":"https://ucarecdn.com/36892dd8-ccb1-4225-bc48-96a0fde93b33/image.png","original_filename":"image.png","size":2950,"url":"https://api.uploadcare.com/files/36892dd8-ccb1-4225-bc48-96a0fde93b33/","uuid":"36892dd8-ccb1-4225-bc48-96a0fde93b33","variations":null,"content_info":{"mime":{"mime":"image/png","type":"image","subtype":"png"},"image":{"dpi":null,"width":50,"format":"PNG","height":42,"sequence":false,"color_mode":"RGBA","orientation":null,"geo_location":null,"datetime_original":null}},"metadata":{},"default_effects":""}]}'
|
60
|
+
recorded_at: Sun, 30 Oct 2022 20:22:18 GMT
|
61
|
+
- request:
|
62
|
+
method: put
|
63
|
+
uri: https://api.uploadcare.com/files/272cbffa-4a27-4aba-98f1-a36e2e017e24/storage/
|
64
|
+
body:
|
65
|
+
encoding: UTF-8
|
66
|
+
string: ''
|
67
|
+
headers:
|
68
|
+
Content-Type:
|
69
|
+
- application/json
|
70
|
+
Accept:
|
71
|
+
- application/vnd.uploadcare-v0.7+json
|
72
|
+
User-Agent:
|
73
|
+
- UploadcareRuby/4.0.0/5d5bb5639e3f2df33674 (Ruby/3.0.0)
|
74
|
+
Date:
|
75
|
+
- Sun, 30 Oct 2022 20:22:18 GMT
|
76
|
+
Authorization:
|
77
|
+
- Uploadcare 5d5bb5639e3f2df33674:e33dcb2d132a8ecaa9efb4638d3e69d6557a7b92
|
78
|
+
Connection:
|
79
|
+
- close
|
80
|
+
Host:
|
81
|
+
- api.uploadcare.com
|
82
|
+
response:
|
83
|
+
status:
|
84
|
+
code: 200
|
85
|
+
message: OK
|
86
|
+
headers:
|
87
|
+
Date:
|
88
|
+
- Sun, 30 Oct 2022 20:22:19 GMT
|
89
|
+
Content-Type:
|
90
|
+
- application/vnd.uploadcare-v0.7+json
|
91
|
+
Content-Length:
|
92
|
+
- '706'
|
93
|
+
Connection:
|
94
|
+
- close
|
95
|
+
Server:
|
96
|
+
- nginx
|
97
|
+
Warning:
|
98
|
+
- '199 Miscellaneous warning: Please use API version 0.5, not 0.7'
|
99
|
+
Access-Control-Allow-Origin:
|
100
|
+
- https://uploadcare.com
|
101
|
+
Vary:
|
102
|
+
- Accept
|
103
|
+
Allow:
|
104
|
+
- DELETE, GET, HEAD, OPTIONS, POST, PUT
|
105
|
+
X-Xss-Protection:
|
106
|
+
- 1; mode=block
|
107
|
+
X-Content-Type-Options:
|
108
|
+
- nosniff
|
109
|
+
X-Uploadcare-Request-Id:
|
110
|
+
- 48e83852-da3f-41a9-855d-b5de85a49cf1
|
111
|
+
X-Frame-Options:
|
112
|
+
- SAMEORIGIN
|
113
|
+
X-Robots-Tag:
|
114
|
+
- noindex, nofollow, nosnippet, noarchive
|
115
|
+
body:
|
116
|
+
encoding: ASCII-8BIT
|
117
|
+
string: '{"datetime_removed":null,"datetime_stored":"2022-10-23T22:47:38.127212Z","datetime_uploaded":"2022-10-23T22:47:38.086167Z","is_image":true,"is_ready":true,"mime_type":"image/png","original_file_url":"https://ucarecdn.com/272cbffa-4a27-4aba-98f1-a36e2e017e24/image.png","original_filename":"image.png","size":2766,"url":"https://api.uploadcare.com/files/272cbffa-4a27-4aba-98f1-a36e2e017e24/","uuid":"272cbffa-4a27-4aba-98f1-a36e2e017e24","variations":null,"content_info":{"mime":{"mime":"image/png","type":"image","subtype":"png"},"image":{"dpi":null,"width":50,"format":"PNG","height":42,"sequence":false,"color_mode":"RGBA","orientation":null,"geo_location":null,"datetime_original":null}},"metadata":{}}'
|
118
|
+
recorded_at: Sun, 30 Oct 2022 20:22:19 GMT
|
3
119
|
- request:
|
4
120
|
method: put
|
5
|
-
uri: https://api.uploadcare.com/
|
121
|
+
uri: https://api.uploadcare.com/files/36892dd8-ccb1-4225-bc48-96a0fde93b33/storage/
|
6
122
|
body:
|
7
123
|
encoding: UTF-8
|
8
124
|
string: ''
|
@@ -10,13 +126,13 @@ http_interactions:
|
|
10
126
|
Content-Type:
|
11
127
|
- application/json
|
12
128
|
Accept:
|
13
|
-
- application/vnd.uploadcare-v0.
|
129
|
+
- application/vnd.uploadcare-v0.7+json
|
14
130
|
User-Agent:
|
15
|
-
- UploadcareRuby/
|
131
|
+
- UploadcareRuby/4.0.0/5d5bb5639e3f2df33674 (Ruby/3.0.0)
|
16
132
|
Date:
|
17
|
-
-
|
133
|
+
- Sun, 30 Oct 2022 20:22:19 GMT
|
18
134
|
Authorization:
|
19
|
-
- Uploadcare 5d5bb5639e3f2df33674:
|
135
|
+
- Uploadcare 5d5bb5639e3f2df33674:9a015f8f68d3018770700c47e28908cceeb7f9b5
|
20
136
|
Connection:
|
21
137
|
- close
|
22
138
|
Host:
|
@@ -27,31 +143,35 @@ http_interactions:
|
|
27
143
|
message: OK
|
28
144
|
headers:
|
29
145
|
Date:
|
30
|
-
-
|
146
|
+
- Sun, 30 Oct 2022 20:22:20 GMT
|
31
147
|
Content-Type:
|
32
|
-
- application/vnd.uploadcare-v0.
|
148
|
+
- application/vnd.uploadcare-v0.7+json
|
33
149
|
Content-Length:
|
34
|
-
- '
|
150
|
+
- '706'
|
35
151
|
Connection:
|
36
152
|
- close
|
37
153
|
Server:
|
38
154
|
- nginx
|
155
|
+
Warning:
|
156
|
+
- '199 Miscellaneous warning: Please use API version 0.5, not 0.7'
|
39
157
|
Access-Control-Allow-Origin:
|
40
158
|
- https://uploadcare.com
|
41
159
|
Vary:
|
42
160
|
- Accept
|
43
161
|
Allow:
|
44
|
-
- OPTIONS, POST, PUT
|
162
|
+
- DELETE, GET, HEAD, OPTIONS, POST, PUT
|
45
163
|
X-Xss-Protection:
|
46
164
|
- 1; mode=block
|
47
165
|
X-Content-Type-Options:
|
48
166
|
- nosniff
|
167
|
+
X-Uploadcare-Request-Id:
|
168
|
+
- 7ae2f4cf-e401-4837-928e-a0966f9824fc
|
49
169
|
X-Frame-Options:
|
50
170
|
- SAMEORIGIN
|
51
171
|
X-Robots-Tag:
|
52
172
|
- noindex, nofollow, nosnippet, noarchive
|
53
173
|
body:
|
54
174
|
encoding: ASCII-8BIT
|
55
|
-
string: '{"
|
56
|
-
recorded_at:
|
57
|
-
recorded_with: VCR 6.
|
175
|
+
string: '{"datetime_removed":null,"datetime_stored":"2022-10-23T22:15:16.698017Z","datetime_uploaded":"2022-10-23T22:15:16.642664Z","is_image":true,"is_ready":true,"mime_type":"image/png","original_file_url":"https://ucarecdn.com/36892dd8-ccb1-4225-bc48-96a0fde93b33/image.png","original_filename":"image.png","size":2950,"url":"https://api.uploadcare.com/files/36892dd8-ccb1-4225-bc48-96a0fde93b33/","uuid":"36892dd8-ccb1-4225-bc48-96a0fde93b33","variations":null,"content_info":{"mime":{"mime":"image/png","type":"image","subtype":"png"},"image":{"dpi":null,"width":50,"format":"PNG","height":42,"sequence":false,"color_mode":"RGBA","orientation":null,"geo_location":null,"datetime_original":null}},"metadata":{}}'
|
176
|
+
recorded_at: Sun, 30 Oct 2022 20:22:20 GMT
|
177
|
+
recorded_with: VCR 6.1.0
|
@@ -10,7 +10,7 @@ http_interactions:
|
|
10
10
|
Content-Type:
|
11
11
|
- application/json
|
12
12
|
Accept:
|
13
|
-
- application/vnd.uploadcare-v0.
|
13
|
+
- application/vnd.uploadcare-v0.7+json
|
14
14
|
User-Agent:
|
15
15
|
- UploadcareRuby/3.0.5/demopublickey (Ruby/2.7.0)
|
16
16
|
Date:
|
@@ -29,7 +29,7 @@ http_interactions:
|
|
29
29
|
Date:
|
30
30
|
- Thu, 22 Jul 2021 10:00:12 GMT
|
31
31
|
Content-Type:
|
32
|
-
- application/vnd.uploadcare-v0.
|
32
|
+
- application/vnd.uploadcare-v0.7+json
|
33
33
|
Content-Length:
|
34
34
|
- '307'
|
35
35
|
Connection:
|
@@ -6,12 +6,12 @@ http_interactions:
|
|
6
6
|
body:
|
7
7
|
encoding: ASCII-8BIT
|
8
8
|
string: !binary |-
|
9
|
-
|
9
|
+
LS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0zM2YxZmY3YTM3YjEwZWFkNWEzZTY1OWJlYmVlNzU1YWU3ZmQyODFlMjUNCkNvbnRlbnQtRGlzcG9zaXRpb246IGZvcm0tZGF0YTsgbmFtZT0iVVBMT0FEQ0FSRV9QVUJfS0VZIg0KDQpkZW1vcHVibGlja2V5DQotLS0tLS0tLS0tLS0tLS0tLS0tLS0tLTMzZjFmZjdhMzdiMTBlYWQ1YTNlNjU5YmViZWU3NTVhZTdmZDI4MWUyNQ0KQ29udGVudC1EaXNwb3NpdGlvbjogZm9ybS1kYXRhOyBuYW1lPSJVUExPQURDQVJFX1NUT1JFIg0KDQphdXRvDQotLS0tLS0tLS0tLS0tLS0tLS0tLS0tLTMzZjFmZjdhMzdiMTBlYWQ1YTNlNjU5YmViZWU3NTVhZTdmZDI4MWUyNQ0KQ29udGVudC1EaXNwb3NpdGlvbjogZm9ybS1kYXRhOyBuYW1lPSJraXR0ZW4uanBlZyI7IGZpbGVuYW1lPSJraXR0ZW4uanBlZyINCkNvbnRlbnQtVHlwZTogaW1hZ2UvanBlZw0KDQr/2P/gABBKRklGAAEBAQBgAGAAAP/+ADtDUkVBVE9SOiBnZC1qcGVnIHYxLjAgKHVzaW5nIElKRyBKUEVHIHY2MiksIHF1YWxpdHkgPSA2NQr/2wBDAAsICAoIBwsKCQoNDAsNERwSEQ8PESIZGhQcKSQrKigkJyctMkA3LTA9MCcnOEw5PUNFSElIKzZPVU5GVEBHSEX/2wBDAQwNDREPESESEiFFLicuRUVFRUVFRUVFRUVFRUVFRUVFRUVFRUVFRUVFRUVFRUVFRUVFRUVFRUVFRUVFRUVFRUX/wAARCAAyADIDASIAAhEBAxEB/8QAHwAAAQUBAQEBAQEAAAAAAAAAAAECAwQFBgcICQoL/8QAtRAAAgEDAwIEAwUFBAQAAAF9AQIDAAQRBRIhMUEGE1FhByJxFDKBkaEII0KxwRVS0fAkM2JyggkKFhcYGRolJicoKSo0NTY3ODk6Q0RFRkdISUpTVFVWV1hZWmNkZWZnaGlqc3R1dnd4eXqDhIWGh4iJipKTlJWWl5iZmqKjpKWmp6ipqrKztLW2t7i5usLDxMXGx8jJytLT1NXW19jZ2uHi4+Tl5ufo6erx8vP09fb3+Pn6/8QAHwEAAwEBAQEBAQEBAQAAAAAAAAECAwQFBgcICQoL/8QAtREAAgECBAQDBAcFBAQAAQJ3AAECAxEEBSExBhJBUQdhcRMiMoEIFEKRobHBCSMzUvAVYnLRChYkNOEl8RcYGRomJygpKjU2Nzg5OkNERUZHSElKU1RVVldYWVpjZGVmZ2hpanN0dXZ3eHl6goOEhYaHiImKkpOUlZaXmJmaoqOkpaanqKmqsrO0tba3uLm6wsPExcbHyMnK0tPU1dbX2Nna4uPk5ebn6Onq8vP09fb3+Pn6/9oADAMBAAIRAxEAPwDQ0bTNP0czESm5MpBJnwduM9OOOtaw1C1jHyiMfQAV5cbq5UnddlgR0JpPOmfl7hwB/dY1r7VLZEcjPVn1RIlBZtoYZHvULa9AuMzL+dc5PcwSWFtBMjSl4UO0ZBIx1z2PvSW2g6HOFfN2fZpR+XSpVbujSVJrZnZW12l5aLMjBlJIyKTdl1x6GqWniG0g+yWsIjt4ySuGJJJPNWl/1yH/AGT/AEpSlzaolJx0ZYHQUU4LwKKgZ4QAxY4fGR1JqQCXGOG9hXUxeHWdwioWPbjrV8+EDEA1xJEnquct+QFU4W3BO5KVV9J068bI3W6xEn/ZyP6VU0xpbu7IktPs8C8IwbOR65remubObTUsYl2pAAqDvx/Wsi5JuUiiiYptIyBkZwfas2knqaJ30NnTLiZnkS5g8l1Yhec7l7GtZW+dT7H+lUBuMdtIwwSSpGParW/a6H2P9KtL3TNu7NIfdH0oqNZBtH0opAY91JHptp5ka4kk4B9BXN3OoSvvdHLYxitXxLdeXKI1I+UbQOwFc3HIApQEFj2Y9qU5XdzSEbKxIk+9w6khmOGH9avWxaOZQ3rWYVMLEoGI7j0p0WomOdEkG49j7VlfuW49jtXkHkQDsGz+lMnuEjRXdgqjuTioJpANPtpQchn4/KqGrvutLcesy/zrdfCYPc1f7ZtRwZun+yf8KKsiU4FFVyknKeJSftknPrWHBy7Z54NFFc8jpiS27sJYwGOCvrUurgCGJgMHPWiip6D6m9ESfD1jyf8AWf0NNv8A/j3tv+uy/wA6KK6I/AYS+I2cn1ooorQg/9kNCi0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tMzNmMWZmN2EzN2IxMGVhZDVhM2U2NTliZWJlZTc1NWFlN2ZkMjgxZTI1LS0NCg==
|
10
10
|
headers:
|
11
11
|
User-Agent:
|
12
|
-
- UploadcareRuby/
|
12
|
+
- UploadcareRuby/4.0.0/demopublickey (Ruby/3.0.0)
|
13
13
|
Content-Type:
|
14
|
-
- multipart/form-data; boundary=---------------------
|
14
|
+
- multipart/form-data; boundary=---------------------33f1ff7a37b10ead5a3e659bebee755ae7fd281e25
|
15
15
|
Connection:
|
16
16
|
- close
|
17
17
|
Host:
|
@@ -22,7 +22,7 @@ http_interactions:
|
|
22
22
|
message: OK
|
23
23
|
headers:
|
24
24
|
Date:
|
25
|
-
-
|
25
|
+
- Sun, 30 Oct 2022 11:44:19 GMT
|
26
26
|
Content-Type:
|
27
27
|
- application/json
|
28
28
|
Content-Length:
|
@@ -39,17 +39,21 @@ http_interactions:
|
|
39
39
|
Access-Control-Allow-Methods:
|
40
40
|
- POST, OPTIONS
|
41
41
|
Access-Control-Allow-Headers:
|
42
|
-
-
|
42
|
+
- X-UC-User-Agent, X-PINGOTHER, DNT
|
43
43
|
Access-Control-Max-Age:
|
44
44
|
- '1'
|
45
45
|
Access-Control-Allow-Credentials:
|
46
46
|
- 'true'
|
47
|
+
Access-Control-Expose-Headers:
|
48
|
+
- Warning, Retry-After
|
47
49
|
X-Xss-Protection:
|
48
50
|
- 1; mode=block
|
49
51
|
X-Content-Type-Options:
|
50
52
|
- nosniff
|
53
|
+
X-Uploadcare-Request-Id:
|
54
|
+
- 6e446888-307b-49f9-ac8f-7c8256d4e079
|
51
55
|
body:
|
52
|
-
encoding:
|
53
|
-
string: '{"kitten.jpeg":"
|
54
|
-
recorded_at:
|
55
|
-
recorded_with: VCR 6.
|
56
|
+
encoding: UTF-8
|
57
|
+
string: '{"kitten.jpeg":"1fad2026-8c95-4027-bc2d-ca01bc876b23"}'
|
58
|
+
recorded_at: Sun, 30 Oct 2022 11:44:19 GMT
|
59
|
+
recorded_with: VCR 6.1.0
|
@@ -62,7 +62,7 @@ http_interactions:
|
|
62
62
|
Content-Type:
|
63
63
|
- application/json
|
64
64
|
Accept:
|
65
|
-
- application/vnd.uploadcare-v0.
|
65
|
+
- application/vnd.uploadcare-v0.7+json
|
66
66
|
User-Agent:
|
67
67
|
- UploadcareRuby/3.0.5/demopublickey (Ruby/2.7.2)
|
68
68
|
Date:
|
@@ -81,7 +81,7 @@ http_interactions:
|
|
81
81
|
Date:
|
82
82
|
- Fri, 23 Jul 2021 09:07:38 GMT
|
83
83
|
Content-Type:
|
84
|
-
- application/vnd.uploadcare-v0.
|
84
|
+
- application/vnd.uploadcare-v0.7+json
|
85
85
|
Content-Length:
|
86
86
|
- '614'
|
87
87
|
Connection:
|
@@ -10,7 +10,7 @@ http_interactions:
|
|
10
10
|
Content-Type:
|
11
11
|
- application/json
|
12
12
|
Accept:
|
13
|
-
- application/vnd.uploadcare-v0.
|
13
|
+
- application/vnd.uploadcare-v0.7+json
|
14
14
|
User-Agent:
|
15
15
|
- UploadcareRuby/3.0.5/demopublickey (Ruby/2.7.0)
|
16
16
|
Date:
|
@@ -29,7 +29,7 @@ http_interactions:
|
|
29
29
|
Date:
|
30
30
|
- Thu, 22 Jul 2021 10:18:35 GMT
|
31
31
|
Content-Type:
|
32
|
-
- application/vnd.uploadcare-v0.
|
32
|
+
- application/vnd.uploadcare-v0.7+json
|
33
33
|
Content-Length:
|
34
34
|
- '228'
|
35
35
|
Connection:
|