shutterstock-v2 0.0.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/.gitignore +27 -0
- data/.rspec +3 -0
- data/.rubocop.yml +6 -0
- data/.travis.yml +6 -0
- data/Dockerfile +17 -0
- data/Gemfile +3 -0
- data/Guardfile +9 -0
- data/README.md +377 -0
- data/Rakefile +19 -0
- data/lib/client/auth.rb +48 -0
- data/lib/client/categories.rb +11 -0
- data/lib/client/category.rb +16 -0
- data/lib/client/client.rb +72 -0
- data/lib/client/collection.rb +151 -0
- data/lib/client/collections.rb +16 -0
- data/lib/client/configuration.rb +20 -0
- data/lib/client/contributor.rb +15 -0
- data/lib/client/driver.rb +38 -0
- data/lib/client/error.rb +20 -0
- data/lib/client/image.rb +139 -0
- data/lib/client/image_assets.rb +56 -0
- data/lib/client/image_size_details.rb +26 -0
- data/lib/client/images.rb +27 -0
- data/lib/client/license.rb +67 -0
- data/lib/client/licenses.rb +23 -0
- data/lib/client/model.rb +15 -0
- data/lib/client/models.rb +11 -0
- data/lib/client/request.rb +41 -0
- data/lib/client/subscription.rb +35 -0
- data/lib/client/subscription_allotment.rb +19 -0
- data/lib/client/subscription_license_format.rb +16 -0
- data/lib/client/subscription_license_formats.rb +12 -0
- data/lib/client/subscription_price.rb +13 -0
- data/lib/client/subscriptions.rb +37 -0
- data/lib/client/thumbnail.rb +17 -0
- data/lib/client/user.rb +68 -0
- data/lib/client/version.rb +3 -0
- data/lib/shutterstock-v2.rb +31 -0
- data/shutterstock-v2.gemspec +30 -0
- data/spec/cassettes/Shutterstock_Auth_get_access_token/returns_hash_with_access_token.yml +86 -0
- data/spec/cassettes/Shutterstock_Auth_get_authorize_url/returns_URL_to_redirect_user_to_passing_redirect_url_an.yml +48 -0
- data/spec/cassettes/Shutterstock_Categories/parses_params_correctly.yml +53 -0
- data/spec/cassettes/Shutterstock_Categories/returns_all_cats_for_an_image.yml +53 -0
- data/spec/cassettes/Shutterstock_Collection/add_image_adds_image_using_Image_new.yml +48 -0
- data/spec/cassettes/Shutterstock_Collection/add_image_adds_image_using_id.yml +48 -0
- data/spec/cassettes/Shutterstock_Collection/add_image_error_raises_error_if_collection_does_not_exist.yml +52 -0
- data/spec/cassettes/Shutterstock_Collection/create_creates_a_collection.yml +52 -0
- data/spec/cassettes/Shutterstock_Collection/destroy_destroys_a_collection.yml +93 -0
- data/spec/cassettes/Shutterstock_Collection/find_adds_an_image.yml +97 -0
- data/spec/cassettes/Shutterstock_Collection/find_converts_list_to_images.yml +101 -0
- data/spec/cassettes/Shutterstock_Collection/find_finds_a_collection_given_an_id.yml +52 -0
- data/spec/cassettes/Shutterstock_Collection/find_raises_error_for_invalid_collection_id.yml +50 -0
- data/spec/cassettes/Shutterstock_Collection/find_removes_an_image.yml +95 -0
- data/spec/cassettes/Shutterstock_Collection/list_returns_all_collections_for_the_current_user.yml +53 -0
- data/spec/cassettes/Shutterstock_Collection/remove_image_removes_image_using_Image_new.yml +46 -0
- data/spec/cassettes/Shutterstock_Collection/remove_image_removes_image_using_id.yml +46 -0
- data/spec/cassettes/Shutterstock_Collection/update_changes_the_name_of_a_collection.yml +97 -0
- data/spec/cassettes/Shutterstock_Collections/returns_all_collections_for_current_user.yml +53 -0
- data/spec/cassettes/Shutterstock_Image/fill_fills_all_details_of_current_image.yml +109 -0
- data/spec/cassettes/Shutterstock_Image/fills_all_details_of_current_image.yml +109 -0
- data/spec/cassettes/Shutterstock_Image/find_places_image_data_into_correct_fields.yml +56 -0
- data/spec/cassettes/Shutterstock_Image/find_places_more_image_data_into_correct_fields.yml +53 -0
- data/spec/cassettes/Shutterstock_Image/find_returns_an_Image_object.yml +56 -0
- data/spec/cassettes/Shutterstock_Image/finds_similar_images_given_an_image.yml +125 -0
- data/spec/cassettes/Shutterstock_Image/returns_an_Image_object.yml +56 -0
- data/spec/cassettes/Shutterstock_Image/returns_similar_images.yml +72 -0
- data/spec/cassettes/Shutterstock_Image/search_searches_for_images_based_on_searchterm.yml +73 -0
- data/spec/cassettes/Shutterstock_Image/search_searches_using_more_than_one_parameter.yml +77 -0
- data/spec/cassettes/Shutterstock_Image/searches_for_images_based_on_searchterm.yml +73 -0
- data/spec/cassettes/Shutterstock_Image/searches_using_more_than_one_parameter.yml +77 -0
- data/spec/cassettes/Shutterstock_Image/similar_finds_similar_images_given_an_image.yml +125 -0
- data/spec/cassettes/Shutterstock_Image/similar_returns_similar_images.yml +72 -0
- data/spec/cassettes/Shutterstock_ImageAssets/find_calculates_fields_correctly.yml +53 -0
- data/spec/cassettes/Shutterstock_ImageAssets/find_places_image_data_into_correct_fields.yml +53 -0
- data/spec/cassettes/Shutterstock_Images/fill_fills_details_of_all_images_in_list_all_images_now_have_keywords.yml +1144 -0
- data/spec/cassettes/Shutterstock_Images/returns_similar_images.yml +126 -0
- data/spec/cassettes/Shutterstock_License/license_editorial_acknowledgement_returns_error_if_requesting_an_image.yml +53 -0
- data/spec/cassettes/Shutterstock_License/license_editorial_acknowledgement_returns_licenced_image_if_ed_ack_is_.yml +52 -0
- data/spec/cassettes/Shutterstock_License/license_license_from_image_object_sends_editorial_acknowledgement_when.yml +160 -0
- data/spec/cassettes/Shutterstock_License/license_license_from_image_object_using_found_subscription.yml +108 -0
- data/spec/cassettes/Shutterstock_License/license_license_from_image_object_vector_image.yml +108 -0
- data/spec/cassettes/Shutterstock_License/license_multiple_licenses_multiple_images.yml +52 -0
- data/spec/cassettes/Shutterstock_License/license_multiple_licenses_multiple_images_from_Image_new.yml +52 -0
- data/spec/cassettes/Shutterstock_License/license_multiple_returns_error_in_Licenses_when_incorrect_image_used.yml +53 -0
- data/spec/cassettes/Shutterstock_License/license_single_licencing_same_image_twice_does_not_give_error.yml +101 -0
- data/spec/cassettes/Shutterstock_License/license_single_license_fails_when_subscription_doesn_t_allow.yml +49 -0
- data/spec/cassettes/Shutterstock_License/license_single_licenses_single_image.yml +52 -0
- data/spec/cassettes/Shutterstock_License/license_single_licenses_single_image_from_Image_new.yml +52 -0
- data/spec/cassettes/Shutterstock_License/license_single_licenses_single_image_from_hash.yml +52 -0
- data/spec/cassettes/Shutterstock_License/license_single_licenses_single_image_with_smaller_size.yml +52 -0
- data/spec/cassettes/Shutterstock_License/license_single_licenses_vector_image.yml +52 -0
- data/spec/cassettes/Shutterstock_License/license_single_licensing_same_image_twice_does_not_give_error.yml +101 -0
- data/spec/cassettes/Shutterstock_License/license_single_returns_error_when_incorrect_image_used.yml +103 -0
- data/spec/cassettes/Shutterstock_License/license_single_returns_error_when_incorrect_subscription_used.yml +53 -0
- data/spec/cassettes/Shutterstock_Models/parses_params_correctly.yml +53 -0
- data/spec/cassettes/Shutterstock_Models/returns_all_models_for_an_image.yml +53 -0
- data/spec/cassettes/Shutterstock_Subscription/allows_image_size_download_correctly_finds_if_image_size_is_possi.yml +59 -0
- data/spec/cassettes/Shutterstock_Subscription/new_parses_info_on_user_correctly.yml +59 -0
- data/spec/cassettes/Shutterstock_Subscription/new_returns_a_subscription_for_current_user.yml +59 -0
- data/spec/cassettes/Shutterstock_SubscriptionLicenseFormat/new_parses_info_correctly.yml +59 -0
- data/spec/cassettes/Shutterstock_SubscriptionLicenseFormat/new_returns_a_subscription_license_format_for_curren.yml +59 -0
- data/spec/cassettes/Shutterstock_Subscriptions/subscriptions_active_expired_total_subscriptions.yml +59 -0
- data/spec/cassettes/Shutterstock_Subscriptions/subscriptions_active_returns_only_active_subscriptions.yml +59 -0
- data/spec/cassettes/Shutterstock_Subscriptions/subscriptions_downloads_left_only_subscriptions_with_downloads_l.yml +59 -0
- data/spec/cassettes/Shutterstock_Subscriptions/subscriptions_expired_returns_only_expired_subscriptions.yml +59 -0
- data/spec/cassettes/Shutterstock_Subscriptions/subscriptions_find_subscription_for_image_size_finds_subs_to_use.yml +59 -0
- data/spec/cassettes/Shutterstock_Subscriptions/subscriptions_returns_all_subscriptions_for_current_user.yml +59 -0
- data/spec/cassettes/Shutterstock_User/find_parses_info_on_user_correctly.yml +52 -0
- data/spec/cassettes/Shutterstock_User/find_returns_object_for_current_user.yml +52 -0
- data/spec/client/auth_spec.rb +36 -0
- data/spec/client/categories_spec.rb +26 -0
- data/spec/client/category_spec.rb +16 -0
- data/spec/client/client_spec.rb +32 -0
- data/spec/client/collection_spec.rb +159 -0
- data/spec/client/collections_spec.rb +18 -0
- data/spec/client/configuration_spec.rb +10 -0
- data/spec/client/contributor_spec.rb +14 -0
- data/spec/client/driver_spec.rb +20 -0
- data/spec/client/image_assets_spec.rb +51 -0
- data/spec/client/image_size_details_spec.rb +33 -0
- data/spec/client/image_spec.rb +102 -0
- data/spec/client/images_spec.rb +31 -0
- data/spec/client/license_spec.rb +234 -0
- data/spec/client/model_spec.rb +14 -0
- data/spec/client/models_spec.rb +23 -0
- data/spec/client/request_spec.rb +79 -0
- data/spec/client/subscription_allotment_spec.rb +25 -0
- data/spec/client/subscription_license_format_spec.rb +29 -0
- data/spec/client/subscription_price_spec.rb +17 -0
- data/spec/client/subscription_spec.rb +60 -0
- data/spec/client/subscriptions_spec.rb +54 -0
- data/spec/client/thumbnail_spec.rb +21 -0
- data/spec/client/user_spec.rb +37 -0
- data/spec/spec_helper.rb +88 -0
- metadata +467 -0
@@ -0,0 +1,95 @@
|
|
1
|
+
---
|
2
|
+
http_interactions:
|
3
|
+
- request:
|
4
|
+
method: get
|
5
|
+
uri: https://api.shutterstock.com/v2/images/collections/23712632
|
6
|
+
body:
|
7
|
+
encoding: US-ASCII
|
8
|
+
string: ''
|
9
|
+
headers:
|
10
|
+
User-Agent:
|
11
|
+
- Faraday v0.10.1
|
12
|
+
Authorization:
|
13
|
+
- Bearer <SSTK_ACCESS_TOKEN>
|
14
|
+
Accept-Encoding:
|
15
|
+
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
16
|
+
Accept:
|
17
|
+
- "*/*"
|
18
|
+
response:
|
19
|
+
status:
|
20
|
+
code: 200
|
21
|
+
message: OK
|
22
|
+
headers:
|
23
|
+
Server:
|
24
|
+
- nginx
|
25
|
+
Date:
|
26
|
+
- Sat, 07 Jan 2017 06:28:30 GMT
|
27
|
+
Content-Type:
|
28
|
+
- application/json; charset=utf8
|
29
|
+
Content-Length:
|
30
|
+
- '138'
|
31
|
+
Connection:
|
32
|
+
- keep-alive
|
33
|
+
X-End-User-Request-Id:
|
34
|
+
- de33d6fd-e3ab-411f-9288-4e5cd49f9146
|
35
|
+
X-Shutterstock-Resource:
|
36
|
+
- "/v2/images/collections/:id"
|
37
|
+
X-Shutterstock-App-Version:
|
38
|
+
- apitwo-739
|
39
|
+
Cache-Control:
|
40
|
+
- no-cache
|
41
|
+
Etag:
|
42
|
+
- d9d16b44e08cfe52ee388719401fc555
|
43
|
+
X-End-User-User-Id:
|
44
|
+
- "<SSTK_USER_ID>"
|
45
|
+
X-End-User-Client-Id:
|
46
|
+
- "<SSTK_CLIENT_ID>"
|
47
|
+
body:
|
48
|
+
encoding: UTF-8
|
49
|
+
string: '{"id":"23712632","name":"Romantic","total_item_count":28,"items_updated_time":"2017-01-07T01:28:28-05:00","cover_item":{"id":"550104544"}}'
|
50
|
+
http_version:
|
51
|
+
recorded_at: Sat, 07 Jan 2017 06:28:30 GMT
|
52
|
+
- request:
|
53
|
+
method: delete
|
54
|
+
uri: https://api.shutterstock.com/v2/images/collections/23712632/items?id=550104544
|
55
|
+
body:
|
56
|
+
encoding: US-ASCII
|
57
|
+
string: ''
|
58
|
+
headers:
|
59
|
+
User-Agent:
|
60
|
+
- Faraday v0.10.1
|
61
|
+
Authorization:
|
62
|
+
- Bearer <SSTK_ACCESS_TOKEN>
|
63
|
+
Accept-Encoding:
|
64
|
+
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
65
|
+
Accept:
|
66
|
+
- "*/*"
|
67
|
+
response:
|
68
|
+
status:
|
69
|
+
code: 204
|
70
|
+
message: No Content
|
71
|
+
headers:
|
72
|
+
Server:
|
73
|
+
- nginx
|
74
|
+
Date:
|
75
|
+
- Sat, 07 Jan 2017 06:28:31 GMT
|
76
|
+
Connection:
|
77
|
+
- keep-alive
|
78
|
+
X-End-User-Request-Id:
|
79
|
+
- 32896412-3aca-41aa-9a73-d78ae87348c2
|
80
|
+
X-Shutterstock-Resource:
|
81
|
+
- "/v2/images/collections/:id/items"
|
82
|
+
X-Shutterstock-App-Version:
|
83
|
+
- apitwo-739
|
84
|
+
Cache-Control:
|
85
|
+
- no-cache
|
86
|
+
X-End-User-User-Id:
|
87
|
+
- "<SSTK_USER_ID>"
|
88
|
+
X-End-User-Client-Id:
|
89
|
+
- "<SSTK_CLIENT_ID>"
|
90
|
+
body:
|
91
|
+
encoding: UTF-8
|
92
|
+
string: ''
|
93
|
+
http_version:
|
94
|
+
recorded_at: Sat, 07 Jan 2017 06:28:31 GMT
|
95
|
+
recorded_with: VCR 3.0.3
|
data/spec/cassettes/Shutterstock_Collection/list_returns_all_collections_for_the_current_user.yml
ADDED
@@ -0,0 +1,53 @@
|
|
1
|
+
---
|
2
|
+
http_interactions:
|
3
|
+
- request:
|
4
|
+
method: get
|
5
|
+
uri: https://api.shutterstock.com/v2/images/collections
|
6
|
+
body:
|
7
|
+
encoding: US-ASCII
|
8
|
+
string: ''
|
9
|
+
headers:
|
10
|
+
User-Agent:
|
11
|
+
- Faraday v0.10.1
|
12
|
+
Authorization:
|
13
|
+
- Bearer <SSTK_ACCESS_TOKEN>
|
14
|
+
Accept-Encoding:
|
15
|
+
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
16
|
+
Accept:
|
17
|
+
- "*/*"
|
18
|
+
response:
|
19
|
+
status:
|
20
|
+
code: 200
|
21
|
+
message: OK
|
22
|
+
headers:
|
23
|
+
Server:
|
24
|
+
- nginx
|
25
|
+
Date:
|
26
|
+
- Sat, 07 Jan 2017 06:28:33 GMT
|
27
|
+
Content-Type:
|
28
|
+
- application/json; charset=utf8
|
29
|
+
Content-Length:
|
30
|
+
- '1459'
|
31
|
+
Connection:
|
32
|
+
- keep-alive
|
33
|
+
X-End-User-Request-Id:
|
34
|
+
- 21ba8543-88b2-4c6e-a6f5-4858a5fdd9c6
|
35
|
+
X-Shutterstock-Resource:
|
36
|
+
- "/v2/images/collections"
|
37
|
+
X-Shutterstock-App-Version:
|
38
|
+
- apitwo-739
|
39
|
+
Cache-Control:
|
40
|
+
- no-cache
|
41
|
+
Etag:
|
42
|
+
- b4a864bfafa2c36b6f444e598c7225ef
|
43
|
+
X-End-User-User-Id:
|
44
|
+
- "<SSTK_USER_ID>"
|
45
|
+
X-End-User-Client-Id:
|
46
|
+
- "<SSTK_CLIENT_ID>"
|
47
|
+
body:
|
48
|
+
encoding: UTF-8
|
49
|
+
string: '{"data":[{"id":"55301587","name":"test_collection","total_item_count":0,"items_updated_time":"2017-01-07T01:28:32-05:00"},{"id":"23712632","name":"Romantic","total_item_count":28,"items_updated_time":"2017-01-07T01:28:28-05:00","cover_item":{"id":"121972876"}},{"id":"55300691","name":"test_collection","total_item_count":0,"items_updated_time":"2017-01-07T00:57:29-05:00"},{"id":"55299017","name":"testcollection","total_item_count":0,"items_updated_time":"2017-01-06T23:58:07-05:00"},{"id":"29921401","name":"Trick","total_item_count":7,"items_updated_time":"2014-10-09T01:50:37-04:00","cover_item":{"id":"121085917"}},{"id":"24032255","name":"Easter","total_item_count":28,"items_updated_time":"2014-01-30T01:17:56-05:00","cover_item":{"id":"130576694"}},{"id":"23740163","name":"penguin","total_item_count":14,"items_updated_time":"2014-01-16T21:27:27-05:00","cover_item":{"id":"129297719"}},{"id":"23713583","name":"Advent","total_item_count":21,"items_updated_time":"2014-01-16T21:23:36-05:00","cover_item":{"id":"155370152"}},{"id":"23713508","name":"Design
|
50
|
+
plates for cookie","total_item_count":20,"items_updated_time":"2014-01-16T20:11:39-05:00","cover_item":{"id":"141690064"}},{"id":"23738516","name":"decal","total_item_count":1,"items_updated_time":"2014-01-16T18:56:56-05:00","cover_item":{"id":"156928727"}},{"id":"23738507","name":"decal","total_item_count":1,"items_updated_time":"2014-01-16T18:56:31-05:00","cover_item":{"id":"147448373"}}]}'
|
51
|
+
http_version:
|
52
|
+
recorded_at: Sat, 07 Jan 2017 06:28:33 GMT
|
53
|
+
recorded_with: VCR 3.0.3
|
@@ -0,0 +1,46 @@
|
|
1
|
+
---
|
2
|
+
http_interactions:
|
3
|
+
- request:
|
4
|
+
method: delete
|
5
|
+
uri: https://api.shutterstock.com/v2/images/collections/23712632/items?id=987654321
|
6
|
+
body:
|
7
|
+
encoding: US-ASCII
|
8
|
+
string: ''
|
9
|
+
headers:
|
10
|
+
User-Agent:
|
11
|
+
- Faraday v0.10.1
|
12
|
+
Authorization:
|
13
|
+
- Bearer <SSTK_ACCESS_TOKEN>
|
14
|
+
Accept-Encoding:
|
15
|
+
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
16
|
+
Accept:
|
17
|
+
- "*/*"
|
18
|
+
response:
|
19
|
+
status:
|
20
|
+
code: 204
|
21
|
+
message: No Content
|
22
|
+
headers:
|
23
|
+
Server:
|
24
|
+
- nginx
|
25
|
+
Date:
|
26
|
+
- Sun, 08 Jan 2017 03:26:43 GMT
|
27
|
+
Connection:
|
28
|
+
- keep-alive
|
29
|
+
X-End-User-Request-Id:
|
30
|
+
- c7aea1f9-0189-4ef9-897e-e1e9de176cfd
|
31
|
+
X-Shutterstock-Resource:
|
32
|
+
- "/v2/images/collections/:id/items"
|
33
|
+
X-Shutterstock-App-Version:
|
34
|
+
- apitwo-739
|
35
|
+
Cache-Control:
|
36
|
+
- no-cache
|
37
|
+
X-End-User-User-Id:
|
38
|
+
- "<SSTK_USER_ID>"
|
39
|
+
X-End-User-Client-Id:
|
40
|
+
- "<SSTK_CLIENT_ID>"
|
41
|
+
body:
|
42
|
+
encoding: UTF-8
|
43
|
+
string: ''
|
44
|
+
http_version:
|
45
|
+
recorded_at: Sun, 08 Jan 2017 03:26:43 GMT
|
46
|
+
recorded_with: VCR 3.0.3
|
@@ -0,0 +1,46 @@
|
|
1
|
+
---
|
2
|
+
http_interactions:
|
3
|
+
- request:
|
4
|
+
method: delete
|
5
|
+
uri: https://api.shutterstock.com/v2/images/collections/23712632/items?id=987654321
|
6
|
+
body:
|
7
|
+
encoding: US-ASCII
|
8
|
+
string: ''
|
9
|
+
headers:
|
10
|
+
User-Agent:
|
11
|
+
- Faraday v0.10.1
|
12
|
+
Authorization:
|
13
|
+
- Bearer <SSTK_ACCESS_TOKEN>
|
14
|
+
Accept-Encoding:
|
15
|
+
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
16
|
+
Accept:
|
17
|
+
- "*/*"
|
18
|
+
response:
|
19
|
+
status:
|
20
|
+
code: 204
|
21
|
+
message: No Content
|
22
|
+
headers:
|
23
|
+
Server:
|
24
|
+
- nginx
|
25
|
+
Date:
|
26
|
+
- Sun, 08 Jan 2017 03:26:42 GMT
|
27
|
+
Connection:
|
28
|
+
- keep-alive
|
29
|
+
X-End-User-Request-Id:
|
30
|
+
- 1706ea9c-f9a0-4795-8596-5ee3ba3dac0b
|
31
|
+
X-Shutterstock-Resource:
|
32
|
+
- "/v2/images/collections/:id/items"
|
33
|
+
X-Shutterstock-App-Version:
|
34
|
+
- apitwo-739
|
35
|
+
Cache-Control:
|
36
|
+
- no-cache
|
37
|
+
X-End-User-User-Id:
|
38
|
+
- "<SSTK_USER_ID>"
|
39
|
+
X-End-User-Client-Id:
|
40
|
+
- "<SSTK_CLIENT_ID>"
|
41
|
+
body:
|
42
|
+
encoding: UTF-8
|
43
|
+
string: ''
|
44
|
+
http_version:
|
45
|
+
recorded_at: Sun, 08 Jan 2017 03:26:42 GMT
|
46
|
+
recorded_with: VCR 3.0.3
|
@@ -0,0 +1,97 @@
|
|
1
|
+
---
|
2
|
+
http_interactions:
|
3
|
+
- request:
|
4
|
+
method: post
|
5
|
+
uri: https://api.shutterstock.com/v2/images/collections/55301587
|
6
|
+
body:
|
7
|
+
encoding: UTF-8
|
8
|
+
string: '{"name":"test_collection_new_name"}'
|
9
|
+
headers:
|
10
|
+
User-Agent:
|
11
|
+
- Faraday v0.10.1
|
12
|
+
Authorization:
|
13
|
+
- Bearer <SSTK_ACCESS_TOKEN>
|
14
|
+
Content-Type:
|
15
|
+
- application/json
|
16
|
+
Accept-Encoding:
|
17
|
+
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
18
|
+
Accept:
|
19
|
+
- "*/*"
|
20
|
+
response:
|
21
|
+
status:
|
22
|
+
code: 204
|
23
|
+
message: No Content
|
24
|
+
headers:
|
25
|
+
Server:
|
26
|
+
- nginx
|
27
|
+
Date:
|
28
|
+
- Sat, 07 Jan 2017 06:28:34 GMT
|
29
|
+
Connection:
|
30
|
+
- keep-alive
|
31
|
+
X-End-User-Request-Id:
|
32
|
+
- 17c07b03-670f-43fa-9e49-027f706956af
|
33
|
+
X-Shutterstock-Resource:
|
34
|
+
- "/v2/images/collections/:id"
|
35
|
+
X-Shutterstock-App-Version:
|
36
|
+
- apitwo-739
|
37
|
+
Cache-Control:
|
38
|
+
- no-cache
|
39
|
+
X-End-User-User-Id:
|
40
|
+
- "<SSTK_USER_ID>"
|
41
|
+
X-End-User-Client-Id:
|
42
|
+
- "<SSTK_CLIENT_ID>"
|
43
|
+
body:
|
44
|
+
encoding: UTF-8
|
45
|
+
string: ''
|
46
|
+
http_version:
|
47
|
+
recorded_at: Sat, 07 Jan 2017 06:28:35 GMT
|
48
|
+
- request:
|
49
|
+
method: get
|
50
|
+
uri: https://api.shutterstock.com/v2/images/collections/55301587
|
51
|
+
body:
|
52
|
+
encoding: US-ASCII
|
53
|
+
string: ''
|
54
|
+
headers:
|
55
|
+
User-Agent:
|
56
|
+
- Faraday v0.10.1
|
57
|
+
Authorization:
|
58
|
+
- Bearer <SSTK_ACCESS_TOKEN>
|
59
|
+
Accept-Encoding:
|
60
|
+
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
61
|
+
Accept:
|
62
|
+
- "*/*"
|
63
|
+
response:
|
64
|
+
status:
|
65
|
+
code: 200
|
66
|
+
message: OK
|
67
|
+
headers:
|
68
|
+
Server:
|
69
|
+
- nginx
|
70
|
+
Date:
|
71
|
+
- Sat, 07 Jan 2017 06:28:36 GMT
|
72
|
+
Content-Type:
|
73
|
+
- application/json; charset=utf8
|
74
|
+
Content-Length:
|
75
|
+
- '121'
|
76
|
+
Connection:
|
77
|
+
- keep-alive
|
78
|
+
X-End-User-Request-Id:
|
79
|
+
- d94b92ac-f6e6-4daf-82e5-e9de322c9997
|
80
|
+
X-Shutterstock-Resource:
|
81
|
+
- "/v2/images/collections/:id"
|
82
|
+
X-Shutterstock-App-Version:
|
83
|
+
- apitwo-739
|
84
|
+
Cache-Control:
|
85
|
+
- no-cache
|
86
|
+
Etag:
|
87
|
+
- 45d404e8218e5da045f7a457ffbe61fb
|
88
|
+
X-End-User-User-Id:
|
89
|
+
- "<SSTK_USER_ID>"
|
90
|
+
X-End-User-Client-Id:
|
91
|
+
- "<SSTK_CLIENT_ID>"
|
92
|
+
body:
|
93
|
+
encoding: UTF-8
|
94
|
+
string: '{"id":"55301587","name":"test_collection_new_name","total_item_count":0,"items_updated_time":"2017-01-07T01:28:34-05:00"}'
|
95
|
+
http_version:
|
96
|
+
recorded_at: Sat, 07 Jan 2017 06:28:36 GMT
|
97
|
+
recorded_with: VCR 3.0.3
|
@@ -0,0 +1,53 @@
|
|
1
|
+
---
|
2
|
+
http_interactions:
|
3
|
+
- request:
|
4
|
+
method: get
|
5
|
+
uri: https://api.shutterstock.com/v2/images/collections
|
6
|
+
body:
|
7
|
+
encoding: US-ASCII
|
8
|
+
string: ''
|
9
|
+
headers:
|
10
|
+
User-Agent:
|
11
|
+
- Faraday v0.10.1
|
12
|
+
Authorization:
|
13
|
+
- Bearer <SSTK_ACCESS_TOKEN>
|
14
|
+
Accept-Encoding:
|
15
|
+
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
16
|
+
Accept:
|
17
|
+
- "*/*"
|
18
|
+
response:
|
19
|
+
status:
|
20
|
+
code: 200
|
21
|
+
message: OK
|
22
|
+
headers:
|
23
|
+
Server:
|
24
|
+
- nginx
|
25
|
+
Date:
|
26
|
+
- Sun, 08 Jan 2017 00:30:45 GMT
|
27
|
+
Content-Type:
|
28
|
+
- application/json; charset=utf8
|
29
|
+
Content-Length:
|
30
|
+
- '1346'
|
31
|
+
Connection:
|
32
|
+
- keep-alive
|
33
|
+
X-End-User-Request-Id:
|
34
|
+
- b9cc9e10-0147-4ea6-b03b-d7d00c7f60d8
|
35
|
+
X-Shutterstock-Resource:
|
36
|
+
- "/v2/images/collections"
|
37
|
+
X-Shutterstock-App-Version:
|
38
|
+
- apitwo-739
|
39
|
+
Cache-Control:
|
40
|
+
- no-cache
|
41
|
+
Etag:
|
42
|
+
- a6496d97bc2f1e8ea44a434196ccb200
|
43
|
+
X-End-User-User-Id:
|
44
|
+
- "<SSTK_USER_ID>"
|
45
|
+
X-End-User-Client-Id:
|
46
|
+
- "<SSTK_CLIENT_ID>"
|
47
|
+
body:
|
48
|
+
encoding: UTF-8
|
49
|
+
string: '{"data":[{"id":"23712632","name":"Romantic","total_item_count":28,"items_updated_time":"2017-01-07T01:28:28-05:00","cover_item":{"id":"121972876"}},{"id":"55300691","name":"test_collection","total_item_count":0,"items_updated_time":"2017-01-07T00:57:29-05:00"},{"id":"55299017","name":"testcollection","total_item_count":0,"items_updated_time":"2017-01-06T23:58:07-05:00"},{"id":"29921401","name":"Trick","total_item_count":7,"items_updated_time":"2014-10-09T01:50:37-04:00","cover_item":{"id":"121085917"}},{"id":"24032255","name":"Easter","total_item_count":28,"items_updated_time":"2014-01-30T01:17:56-05:00","cover_item":{"id":"130576694"}},{"id":"23740163","name":"penguin","total_item_count":14,"items_updated_time":"2014-01-16T21:27:27-05:00","cover_item":{"id":"129297719"}},{"id":"23713583","name":"Advent","total_item_count":21,"items_updated_time":"2014-01-16T21:23:36-05:00","cover_item":{"id":"155370152"}},{"id":"23713508","name":"Design
|
50
|
+
plates for cookie","total_item_count":20,"items_updated_time":"2014-01-16T20:11:39-05:00","cover_item":{"id":"141690064"}},{"id":"23738516","name":"decal","total_item_count":1,"items_updated_time":"2014-01-16T18:56:56-05:00","cover_item":{"id":"156928727"}},{"id":"23738507","name":"decal","total_item_count":1,"items_updated_time":"2014-01-16T18:56:31-05:00","cover_item":{"id":"147448373"}}]}'
|
51
|
+
http_version:
|
52
|
+
recorded_at: Sun, 08 Jan 2017 00:30:45 GMT
|
53
|
+
recorded_with: VCR 3.0.3
|
@@ -0,0 +1,109 @@
|
|
1
|
+
---
|
2
|
+
http_interactions:
|
3
|
+
- request:
|
4
|
+
method: get
|
5
|
+
uri: https://api.shutterstock.com/v2/images/118139110
|
6
|
+
body:
|
7
|
+
encoding: US-ASCII
|
8
|
+
string: ''
|
9
|
+
headers:
|
10
|
+
User-Agent:
|
11
|
+
- Faraday v0.10.1
|
12
|
+
Authorization:
|
13
|
+
- Bearer <SSTK_ACCESS_TOKEN>
|
14
|
+
Accept-Encoding:
|
15
|
+
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
16
|
+
Accept:
|
17
|
+
- "*/*"
|
18
|
+
response:
|
19
|
+
status:
|
20
|
+
code: 200
|
21
|
+
message: OK
|
22
|
+
headers:
|
23
|
+
Server:
|
24
|
+
- nginx
|
25
|
+
Date:
|
26
|
+
- Sat, 07 Jan 2017 13:33:38 GMT
|
27
|
+
Content-Type:
|
28
|
+
- application/json; charset=utf8
|
29
|
+
Content-Length:
|
30
|
+
- '1977'
|
31
|
+
Connection:
|
32
|
+
- keep-alive
|
33
|
+
X-End-User-Request-Id:
|
34
|
+
- 200c027d-b38f-473a-8426-495203cac192
|
35
|
+
X-Shutterstock-Resource:
|
36
|
+
- "/v2/images/:id"
|
37
|
+
X-Shutterstock-App-Version:
|
38
|
+
- apitwo-739
|
39
|
+
Cache-Control:
|
40
|
+
- 'private; max-age: 60'
|
41
|
+
Etag:
|
42
|
+
- db9c662516f46908753c30d5174e75e9
|
43
|
+
X-End-User-User-Id:
|
44
|
+
- "<SSTK_USER_ID>"
|
45
|
+
X-End-User-Client-Id:
|
46
|
+
- "<SSTK_CLIENT_ID>"
|
47
|
+
body:
|
48
|
+
encoding: UTF-8
|
49
|
+
string: '{"id":"118139110","added_date":"2012-11-09","aspect":1.5,"assets":{"small_jpg":{"display_name":"Small","dpi":72,"file_size":88064,"format":"jpg","height":333,"is_licensable":true,"width":500},"medium_jpg":{"display_name":"Med","dpi":300,"file_size":301056,"format":"jpg","height":667,"is_licensable":true,"width":1000},"huge_jpg":{"display_name":"Huge","dpi":300,"file_size":2790400,"format":"jpg","height":3090,"is_licensable":true,"width":4635},"supersize_jpg":{"display_name":"Super","dpi":300,"file_size":10112609,"format":"jpg","height":6180,"is_licensable":false,"width":9270},"huge_tiff":{"display_name":"Huge","dpi":300,"file_size":42966450,"format":"tiff","height":3090,"is_licensable":false,"width":4635},"supersize_tiff":{"display_name":"Super","dpi":300,"file_size":171865800,"format":"tiff","height":6180,"is_licensable":false,"width":9270},"preview":{"height":300,"url":"https://image.shutterstock.com/display_pic_with_logo/1306729/118139110/stock-photo-adorable-labrador-puppy-playing-with-a-chew-toy-on-white-backdrop-118139110.jpg","width":450},"small_thumb":{"height":67,"url":"https://thumb1.shutterstock.com/thumb_small/1306729/118139110/stock-photo-adorable-labrador-puppy-playing-with-a-chew-toy-on-white-backdrop-118139110.jpg","width":100},"large_thumb":{"height":100,"url":"https://thumb1.shutterstock.com/thumb_large/1306729/118139110/stock-photo-adorable-labrador-puppy-playing-with-a-chew-toy-on-white-backdrop-118139110.jpg","width":150}},"categories":[{"id":"1","name":"Animals/Wildlife"},{"id":"20","name":"NOT-CATEGORIZED"}],"contributor":{"id":"1306729"},"description":"Adorable
|
50
|
+
Labrador Puppy Playing with a Chew Toy on White Backdrop","image_type":"photo","is_adult":false,"keywords":["animal","animal
|
51
|
+
themes","backgrounds","cute","dog","domestic animals","friendship","full length","isolated","labrador","labrador
|
52
|
+
retriever","one animal","pets","play","puppy","purebred dog","studio shot","toy","yellow","young
|
53
|
+
animal"],"media_type":"image"}'
|
54
|
+
http_version:
|
55
|
+
recorded_at: Sat, 07 Jan 2017 13:33:38 GMT
|
56
|
+
- request:
|
57
|
+
method: get
|
58
|
+
uri: https://api.shutterstock.com/v2/images/118139110
|
59
|
+
body:
|
60
|
+
encoding: US-ASCII
|
61
|
+
string: ''
|
62
|
+
headers:
|
63
|
+
User-Agent:
|
64
|
+
- Faraday v0.10.1
|
65
|
+
Authorization:
|
66
|
+
- Bearer <SSTK_ACCESS_TOKEN>
|
67
|
+
Accept-Encoding:
|
68
|
+
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
69
|
+
Accept:
|
70
|
+
- "*/*"
|
71
|
+
response:
|
72
|
+
status:
|
73
|
+
code: 200
|
74
|
+
message: OK
|
75
|
+
headers:
|
76
|
+
Server:
|
77
|
+
- nginx
|
78
|
+
Date:
|
79
|
+
- Sat, 07 Jan 2017 13:33:39 GMT
|
80
|
+
Content-Type:
|
81
|
+
- application/json; charset=utf8
|
82
|
+
Content-Length:
|
83
|
+
- '1977'
|
84
|
+
Connection:
|
85
|
+
- keep-alive
|
86
|
+
X-End-User-Request-Id:
|
87
|
+
- aa3719e2-7a6c-4f62-be1b-9e950b1303b1
|
88
|
+
X-Shutterstock-Resource:
|
89
|
+
- "/v2/images/:id"
|
90
|
+
X-Shutterstock-App-Version:
|
91
|
+
- apitwo-739
|
92
|
+
Cache-Control:
|
93
|
+
- 'private; max-age: 60'
|
94
|
+
Etag:
|
95
|
+
- db9c662516f46908753c30d5174e75e9
|
96
|
+
X-End-User-User-Id:
|
97
|
+
- "<SSTK_USER_ID>"
|
98
|
+
X-End-User-Client-Id:
|
99
|
+
- "<SSTK_CLIENT_ID>"
|
100
|
+
body:
|
101
|
+
encoding: UTF-8
|
102
|
+
string: '{"id":"118139110","added_date":"2012-11-09","aspect":1.5,"assets":{"small_jpg":{"display_name":"Small","dpi":72,"file_size":88064,"format":"jpg","height":333,"is_licensable":true,"width":500},"medium_jpg":{"display_name":"Med","dpi":300,"file_size":301056,"format":"jpg","height":667,"is_licensable":true,"width":1000},"huge_jpg":{"display_name":"Huge","dpi":300,"file_size":2790400,"format":"jpg","height":3090,"is_licensable":true,"width":4635},"supersize_jpg":{"display_name":"Super","dpi":300,"file_size":10112609,"format":"jpg","height":6180,"is_licensable":false,"width":9270},"huge_tiff":{"display_name":"Huge","dpi":300,"file_size":42966450,"format":"tiff","height":3090,"is_licensable":false,"width":4635},"supersize_tiff":{"display_name":"Super","dpi":300,"file_size":171865800,"format":"tiff","height":6180,"is_licensable":false,"width":9270},"preview":{"height":300,"url":"https://image.shutterstock.com/display_pic_with_logo/1306729/118139110/stock-photo-adorable-labrador-puppy-playing-with-a-chew-toy-on-white-backdrop-118139110.jpg","width":450},"small_thumb":{"height":67,"url":"https://thumb1.shutterstock.com/thumb_small/1306729/118139110/stock-photo-adorable-labrador-puppy-playing-with-a-chew-toy-on-white-backdrop-118139110.jpg","width":100},"large_thumb":{"height":100,"url":"https://thumb1.shutterstock.com/thumb_large/1306729/118139110/stock-photo-adorable-labrador-puppy-playing-with-a-chew-toy-on-white-backdrop-118139110.jpg","width":150}},"categories":[{"id":"1","name":"Animals/Wildlife"},{"id":"20","name":"NOT-CATEGORIZED"}],"contributor":{"id":"1306729"},"description":"Adorable
|
103
|
+
Labrador Puppy Playing with a Chew Toy on White Backdrop","image_type":"photo","is_adult":false,"keywords":["animal","animal
|
104
|
+
themes","backgrounds","cute","dog","domestic animals","friendship","full length","isolated","labrador","labrador
|
105
|
+
retriever","one animal","pets","play","puppy","purebred dog","studio shot","toy","yellow","young
|
106
|
+
animal"],"media_type":"image"}'
|
107
|
+
http_version:
|
108
|
+
recorded_at: Sat, 07 Jan 2017 13:33:39 GMT
|
109
|
+
recorded_with: VCR 3.0.3
|