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,126 @@
|
|
1
|
+
---
|
2
|
+
http_interactions:
|
3
|
+
- request:
|
4
|
+
method: get
|
5
|
+
uri: https://api.shutterstock.com/v2/images/32329852
|
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:37:11 GMT
|
27
|
+
Content-Type:
|
28
|
+
- application/json; charset=utf8
|
29
|
+
Content-Length:
|
30
|
+
- '2178'
|
31
|
+
Connection:
|
32
|
+
- keep-alive
|
33
|
+
X-End-User-Request-Id:
|
34
|
+
- c3807078-42a0-4ee2-a16f-2403eca73b7c
|
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
|
+
- 3b68e77b47065984408d771b7b1af2bf
|
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":"32329852","added_date":"2009-06-19","aspect":0.6667,"assets":{"small_jpg":{"display_name":"Small","dpi":72,"file_size":147456,"format":"jpg","height":500,"is_licensable":true,"width":333},"medium_jpg":{"display_name":"Med","dpi":300,"file_size":424960,"format":"jpg","height":1000,"is_licensable":true,"width":667},"huge_jpg":{"display_name":"Huge","dpi":300,"file_size":2125824,"format":"jpg","height":3480,"is_licensable":true,"width":2320},"supersize_jpg":{"display_name":"Super","dpi":300,"file_size":5022216,"format":"jpg","height":6960,"is_licensable":false,"width":4640},"huge_tiff":{"display_name":"Huge","dpi":300,"file_size":24220800,"format":"tiff","height":3480,"is_licensable":false,"width":2320},"supersize_tiff":{"display_name":"Super","dpi":300,"file_size":96883200,"format":"tiff","height":6960,"is_licensable":false,"width":4640},"preview":{"height":450,"url":"https://image.shutterstock.com/display_pic_with_logo/130585/130585,1245447002,2/stock-photo-orange-beach-umbrella-over-blue-sky-background-space-for-copy-jpeg-file-with-clipping-path-32329852.jpg","width":300},"small_thumb":{"height":100,"url":"https://thumb9.shutterstock.com/thumb_small/130585/130585,1245447002,2/stock-photo-orange-beach-umbrella-over-blue-sky-background-space-for-copy-jpeg-file-with-clipping-path-32329852.jpg","width":67},"large_thumb":{"height":150,"url":"https://thumb9.shutterstock.com/thumb_large/130585/130585,1245447002,2/stock-photo-orange-beach-umbrella-over-blue-sky-background-space-for-copy-jpeg-file-with-clipping-path-32329852.jpg","width":100}},"categories":[{"id":"18","name":"Sports/Recreation"},{"id":"9","name":"Objects"}],"contributor":{"id":"130585"},"description":"Orange
|
50
|
+
beach umbrella over blue sky background. Space for copy. Jpeg file with clipping
|
51
|
+
path included.","image_type":"photo","is_adult":false,"keywords":["beach","blue","card","clear","copy","cut","fun","greeting","holiday","isolated","leisure","marine","object","orange","outdoor","parasol","relax","relaxation","sea","seashore","seaside","season","seasonal","sky","space","summer","sun","sunlight","tourism","travel","umbrella","vacation","vertical","yellow"],"media_type":"image"}'
|
52
|
+
http_version:
|
53
|
+
recorded_at: Sat, 07 Jan 2017 13:37:12 GMT
|
54
|
+
- request:
|
55
|
+
method: get
|
56
|
+
uri: https://api.shutterstock.com/v2/images/32329852/similar
|
57
|
+
body:
|
58
|
+
encoding: US-ASCII
|
59
|
+
string: ''
|
60
|
+
headers:
|
61
|
+
User-Agent:
|
62
|
+
- Faraday v0.10.1
|
63
|
+
Authorization:
|
64
|
+
- Bearer <SSTK_ACCESS_TOKEN>
|
65
|
+
Accept-Encoding:
|
66
|
+
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
67
|
+
Accept:
|
68
|
+
- "*/*"
|
69
|
+
response:
|
70
|
+
status:
|
71
|
+
code: 200
|
72
|
+
message: OK
|
73
|
+
headers:
|
74
|
+
Server:
|
75
|
+
- nginx
|
76
|
+
Date:
|
77
|
+
- Sat, 07 Jan 2017 13:37:13 GMT
|
78
|
+
Content-Type:
|
79
|
+
- application/json; charset=utf8
|
80
|
+
Content-Length:
|
81
|
+
- '15340'
|
82
|
+
Connection:
|
83
|
+
- keep-alive
|
84
|
+
X-End-User-Request-Id:
|
85
|
+
- aeb84241-4bf5-41fc-9b01-d3f8e11f1857
|
86
|
+
X-Shutterstock-Resource:
|
87
|
+
- "/v2/images/:id/similar"
|
88
|
+
X-Shutterstock-App-Version:
|
89
|
+
- apitwo-739
|
90
|
+
Cache-Control:
|
91
|
+
- 'private; max-age: 3600'
|
92
|
+
Etag:
|
93
|
+
- e0100d48cdc43982d2e054b0f8308045
|
94
|
+
X-End-User-User-Id:
|
95
|
+
- "<SSTK_USER_ID>"
|
96
|
+
X-End-User-Client-Id:
|
97
|
+
- "<SSTK_CLIENT_ID>"
|
98
|
+
body:
|
99
|
+
encoding: UTF-8
|
100
|
+
string: '{"page":1,"per_page":20,"total_count":200,"search_id":"","data":[{"id":"431539351","aspect":1,"assets":{"preview":{"height":450,"url":"https://image.shutterstock.com/display_pic_with_logo/4003009/431539351/stock-vector-hot-dog-fast-food-vector-illustration-flat-icon-431539351.jpg","width":450},"small_thumb":{"height":100,"url":"https://thumb7.shutterstock.com/thumb_small/4003009/431539351/stock-vector-hot-dog-fast-food-vector-illustration-flat-icon-431539351.jpg","width":100},"large_thumb":{"height":150,"url":"https://thumb7.shutterstock.com/thumb_large/4003009/431539351/stock-vector-hot-dog-fast-food-vector-illustration-flat-icon-431539351.jpg","width":150}},"contributor":{"id":"4003009"},"description":"Hot
|
101
|
+
dog fast food. Vector illustration. Flat icon.","image_type":"vector","media_type":"image"},{"id":"458743414","aspect":1,"assets":{"preview":{"height":450,"url":"https://image.shutterstock.com/display_pic_with_logo/1813235/458743414/stock-vector-isolated-roasted-chicken-retro-fast-food-vector-illustration-458743414.jpg","width":450},"small_thumb":{"height":100,"url":"https://thumb1.shutterstock.com/thumb_small/1813235/458743414/stock-vector-isolated-roasted-chicken-retro-fast-food-vector-illustration-458743414.jpg","width":100},"large_thumb":{"height":150,"url":"https://thumb1.shutterstock.com/thumb_large/1813235/458743414/stock-vector-isolated-roasted-chicken-retro-fast-food-vector-illustration-458743414.jpg","width":150}},"contributor":{"id":"1813235"},"description":"Isolated
|
102
|
+
roasted chicken, Retro fast food, Vector illustration","image_type":"vector","media_type":"image"},{"id":"46084678","aspect":1.2407,"assets":{"preview":{"height":362,"url":"https://image.shutterstock.com/display_pic_with_logo/10684/10684,1265484341,4/stock-vector-stylised-fish-skeleton-46084678.jpg","width":450},"small_thumb":{"height":81,"url":"https://thumb1.shutterstock.com/thumb_small/10684/10684,1265484341,4/stock-vector-stylised-fish-skeleton-46084678.jpg","width":100},"large_thumb":{"height":121,"url":"https://thumb1.shutterstock.com/thumb_large/10684/10684,1265484341,4/stock-vector-stylised-fish-skeleton-46084678.jpg","width":150}},"contributor":{"id":"10684"},"description":"Stylised
|
103
|
+
fish skeleton","image_type":"vector","media_type":"image"},{"id":"513129607","aspect":1,"assets":{"preview":{"height":450,"url":"https://image.shutterstock.com/display_pic_with_logo/161227930/513129607/stock-vector-croissant-icon-and-background-sunrise-style-on-pastel-light-brown-color-tone-513129607.jpg","width":450},"small_thumb":{"height":100,"url":"https://thumb10.shutterstock.com/thumb_small/161227930/513129607/stock-vector-croissant-icon-and-background-sunrise-style-on-pastel-light-brown-color-tone-513129607.jpg","width":100},"large_thumb":{"height":150,"url":"https://thumb10.shutterstock.com/thumb_large/161227930/513129607/stock-vector-croissant-icon-and-background-sunrise-style-on-pastel-light-brown-color-tone-513129607.jpg","width":150}},"contributor":{"id":"161227930"},"description":"Croissant
|
104
|
+
icon and background sunrise style on pastel light brown color tone","image_type":"vector","media_type":"image"},{"id":"481436413","aspect":1,"assets":{"preview":{"height":450,"url":"https://image.shutterstock.com/display_pic_with_logo/2861395/481436413/stock-vector-piece-salmon-fish-slice-isolated-on-white-background-and-freshness-cut-delicious-diet-eat-fish-481436413.jpg","width":450},"small_thumb":{"height":100,"url":"https://thumb10.shutterstock.com/thumb_small/2861395/481436413/stock-vector-piece-salmon-fish-slice-isolated-on-white-background-and-freshness-cut-delicious-diet-eat-fish-481436413.jpg","width":100},"large_thumb":{"height":150,"url":"https://thumb10.shutterstock.com/thumb_large/2861395/481436413/stock-vector-piece-salmon-fish-slice-isolated-on-white-background-and-freshness-cut-delicious-diet-eat-fish-481436413.jpg","width":150}},"contributor":{"id":"2861395"},"description":"Piece
|
105
|
+
salmon fish slice isolated on white background and freshness cut delicious
|
106
|
+
diet eat fish slice vector","image_type":"vector","media_type":"image"},{"id":"20769595","aspect":1.3332,"assets":{"preview":{"height":337,"url":"https://image.shutterstock.com/display_pic_with_logo/139573/139573,1227083509,2/stock-vector-crystal-flower-20769595.jpg","width":450},"small_thumb":{"height":75,"url":"https://thumb9.shutterstock.com/thumb_small/139573/139573,1227083509,2/stock-vector-crystal-flower-20769595.jpg","width":100},"large_thumb":{"height":113,"url":"https://thumb9.shutterstock.com/thumb_large/139573/139573,1227083509,2/stock-vector-crystal-flower-20769595.jpg","width":150}},"contributor":{"id":"139573"},"description":"Crystal
|
107
|
+
Flower","image_type":"vector","media_type":"image"},{"id":"133193405","aspect":1.1468,"assets":{"preview":{"height":392,"url":"https://image.shutterstock.com/display_pic_with_logo/615430/133193405/stock-vector-colorful-yellow-fish-with-red-stripes-isolated-vector-illustration-on-white-background-133193405.jpg","width":450},"small_thumb":{"height":87,"url":"https://thumb7.shutterstock.com/thumb_small/615430/133193405/stock-vector-colorful-yellow-fish-with-red-stripes-isolated-vector-illustration-on-white-background-133193405.jpg","width":100},"large_thumb":{"height":131,"url":"https://thumb7.shutterstock.com/thumb_large/615430/133193405/stock-vector-colorful-yellow-fish-with-red-stripes-isolated-vector-illustration-on-white-background-133193405.jpg","width":150}},"contributor":{"id":"615430"},"description":"Colorful
|
108
|
+
yellow fish with red stripes. Isolated vector illustration on white background","image_type":"vector","media_type":"image"},{"id":"1817649","aspect":0.8044,"assets":{"preview":{"height":450,"url":"https://image.shutterstock.com/display_pic_with_logo/5128/5128,1157852315,2/stock-vector-background-with-curved-lines-and-gradient-1817649.jpg","width":361},"small_thumb":{"height":100,"url":"https://thumb9.shutterstock.com/thumb_small/5128/5128,1157852315,2/stock-vector-background-with-curved-lines-and-gradient-1817649.jpg","width":80},"large_thumb":{"height":150,"url":"https://thumb9.shutterstock.com/thumb_large/5128/5128,1157852315,2/stock-vector-background-with-curved-lines-and-gradient-1817649.jpg","width":121}},"contributor":{"id":"5128"},"description":"Background
|
109
|
+
with curved lines and gradient","image_type":"vector","media_type":"image"},{"id":"310998512","aspect":1,"assets":{"preview":{"height":450,"url":"https://image.shutterstock.com/display_pic_with_logo/1569788/310998512/stock-vector-sushi-isolated-illustration-on-white-background-310998512.jpg","width":450},"small_thumb":{"height":100,"url":"https://thumb9.shutterstock.com/thumb_small/1569788/310998512/stock-vector-sushi-isolated-illustration-on-white-background-310998512.jpg","width":100},"large_thumb":{"height":150,"url":"https://thumb9.shutterstock.com/thumb_large/1569788/310998512/stock-vector-sushi-isolated-illustration-on-white-background-310998512.jpg","width":150}},"contributor":{"id":"1569788"},"description":"Sushi
|
110
|
+
isolated illustration on white background","image_type":"vector","media_type":"image"},{"id":"167873624","aspect":1.5,"assets":{"preview":{"height":300,"url":"https://image.shutterstock.com/display_pic_with_logo/462202/167873624/stock-photo-realistic-d-render-of-liver-167873624.jpg","width":450},"small_thumb":{"height":67,"url":"https://thumb1.shutterstock.com/thumb_small/462202/167873624/stock-photo-realistic-d-render-of-liver-167873624.jpg","width":100},"large_thumb":{"height":100,"url":"https://thumb1.shutterstock.com/thumb_large/462202/167873624/stock-photo-realistic-d-render-of-liver-167873624.jpg","width":150}},"contributor":{"id":"462202"},"description":"realistic
|
111
|
+
3d render of liver","image_type":"photo","media_type":"image"},{"id":"490162351","aspect":1,"assets":{"preview":{"height":450,"url":"https://image.shutterstock.com/display_pic_with_logo/968654/490162351/stock-vector-horizontal-seamless-pattern-of-sea-motif-stripes-hand-drawn-490162351.jpg","width":450},"small_thumb":{"height":100,"url":"https://thumb7.shutterstock.com/thumb_small/968654/490162351/stock-vector-horizontal-seamless-pattern-of-sea-motif-stripes-hand-drawn-490162351.jpg","width":100},"large_thumb":{"height":150,"url":"https://thumb7.shutterstock.com/thumb_large/968654/490162351/stock-vector-horizontal-seamless-pattern-of-sea-motif-stripes-hand-drawn-490162351.jpg","width":150}},"contributor":{"id":"968654"},"description":"Horizontal
|
112
|
+
seamless pattern of sea motif, stripes. Hand drawn.","image_type":"vector","media_type":"image"},{"id":"80503540","aspect":1.0118,"assets":{"preview":{"height":444,"url":"https://image.shutterstock.com/display_pic_with_logo/194326/194326,1309931804,2/stock-vector-vector-tropical-fish-80503540.jpg","width":450},"small_thumb":{"height":99,"url":"https://thumb9.shutterstock.com/thumb_small/194326/194326,1309931804,2/stock-vector-vector-tropical-fish-80503540.jpg","width":100},"large_thumb":{"height":148,"url":"https://thumb9.shutterstock.com/thumb_large/194326/194326,1309931804,2/stock-vector-vector-tropical-fish-80503540.jpg","width":150}},"contributor":{"id":"194326"},"description":"Vector
|
113
|
+
tropical fish","image_type":"vector","media_type":"image"},{"id":"490177678","aspect":1,"assets":{"preview":{"height":450,"url":"https://image.shutterstock.com/display_pic_with_logo/968654/490177678/stock-photo-horizontal-seamless-pattern-of-sea-motif-stripes-hand-drawn-490177678.jpg","width":450},"small_thumb":{"height":100,"url":"https://thumb1.shutterstock.com/thumb_small/968654/490177678/stock-photo-horizontal-seamless-pattern-of-sea-motif-stripes-hand-drawn-490177678.jpg","width":100},"large_thumb":{"height":150,"url":"https://thumb1.shutterstock.com/thumb_large/968654/490177678/stock-photo-horizontal-seamless-pattern-of-sea-motif-stripes-hand-drawn-490177678.jpg","width":150}},"contributor":{"id":"968654"},"description":"Horizontal
|
114
|
+
seamless pattern of sea motif, stripes. Hand drawn.","image_type":"photo","media_type":"image"},{"id":"41402194","aspect":1.3643,"assets":{"preview":{"height":329,"url":"https://image.shutterstock.com/display_pic_with_logo/350272/350272,1258905549,10/stock-photo-abstract-element-41402194.jpg","width":450},"small_thumb":{"height":73,"url":"https://thumb1.shutterstock.com/thumb_small/350272/350272,1258905549,10/stock-photo-abstract-element-41402194.jpg","width":100},"large_thumb":{"height":110,"url":"https://thumb1.shutterstock.com/thumb_large/350272/350272,1258905549,10/stock-photo-abstract-element-41402194.jpg","width":150}},"contributor":{"id":"350272"},"description":"Abstract
|
115
|
+
element","image_type":"photo","media_type":"image"},{"id":"13804285","aspect":1.1888,"assets":{"preview":{"height":378,"url":"https://image.shutterstock.com/display_pic_with_logo/78981/78981,1213446831,5/stock-vector-flaming-match-13804285.jpg","width":450},"small_thumb":{"height":84,"url":"https://thumb7.shutterstock.com/thumb_small/78981/78981,1213446831,5/stock-vector-flaming-match-13804285.jpg","width":100},"large_thumb":{"height":126,"url":"https://thumb7.shutterstock.com/thumb_large/78981/78981,1213446831,5/stock-vector-flaming-match-13804285.jpg","width":150}},"contributor":{"id":"78981"},"description":"flaming
|
116
|
+
match","image_type":"vector","media_type":"image"},{"id":"259360085","aspect":1.4981,"assets":{"preview":{"height":300,"url":"https://image.shutterstock.com/display_pic_with_logo/1377379/259360085/stock-photo-china-fan-isolated-on-white-background-259360085.jpg","width":450},"small_thumb":{"height":67,"url":"https://thumb7.shutterstock.com/thumb_small/1377379/259360085/stock-photo-china-fan-isolated-on-white-background-259360085.jpg","width":100},"large_thumb":{"height":100,"url":"https://thumb7.shutterstock.com/thumb_large/1377379/259360085/stock-photo-china-fan-isolated-on-white-background-259360085.jpg","width":150}},"contributor":{"id":"1377379"},"description":"China
|
117
|
+
fan isolated on white background","image_type":"photo","media_type":"image"},{"id":"231930946","aspect":1.0145,"assets":{"preview":{"height":443,"url":"https://image.shutterstock.com/display_pic_with_logo/2532697/231930946/stock-vector-color-of-autumn-leaf-on-white-background-231930946.jpg","width":450},"small_thumb":{"height":99,"url":"https://thumb9.shutterstock.com/thumb_small/2532697/231930946/stock-vector-color-of-autumn-leaf-on-white-background-231930946.jpg","width":100},"large_thumb":{"height":148,"url":"https://thumb9.shutterstock.com/thumb_large/2532697/231930946/stock-vector-color-of-autumn-leaf-on-white-background-231930946.jpg","width":150}},"contributor":{"id":"2532697"},"description":"Color
|
118
|
+
of Autumn leaf on white Background","image_type":"vector","media_type":"image"},{"id":"542327914","aspect":1,"assets":{"preview":{"height":450,"url":"https://image.shutterstock.com/display_pic_with_logo/615877/542327914/stock-photo-art-fairy-illustration-of-tree-stylized-eco-symbol-insight-image-on-season-idea-beautiful-plant-542327914.jpg","width":450},"small_thumb":{"height":100,"url":"https://thumb1.shutterstock.com/thumb_small/615877/542327914/stock-photo-art-fairy-illustration-of-tree-stylized-eco-symbol-insight-image-on-season-idea-beautiful-plant-542327914.jpg","width":100},"large_thumb":{"height":150,"url":"https://thumb1.shutterstock.com/thumb_large/615877/542327914/stock-photo-art-fairy-illustration-of-tree-stylized-eco-symbol-insight-image-on-season-idea-beautiful-plant-542327914.jpg","width":150}},"contributor":{"id":"615877"},"description":"Art
|
119
|
+
fairy illustration of tree, stylized eco symbol. Insight image on season idea,
|
120
|
+
beautiful plant.","image_type":"photo","media_type":"image"},{"id":"478781389","aspect":1,"assets":{"preview":{"height":450,"url":"https://image.shutterstock.com/display_pic_with_logo/615877/478781389/stock-vector-art-fairy-illustration-of-tree-stylized-eco-symbol-insight-vector-image-on-season-idea-beautiful-478781389.jpg","width":450},"small_thumb":{"height":100,"url":"https://thumb7.shutterstock.com/thumb_small/615877/478781389/stock-vector-art-fairy-illustration-of-tree-stylized-eco-symbol-insight-vector-image-on-season-idea-beautiful-478781389.jpg","width":100},"large_thumb":{"height":150,"url":"https://thumb7.shutterstock.com/thumb_large/615877/478781389/stock-vector-art-fairy-illustration-of-tree-stylized-eco-symbol-insight-vector-image-on-season-idea-beautiful-478781389.jpg","width":150}},"contributor":{"id":"615877"},"description":"Art
|
121
|
+
fairy illustration of tree, stylized eco symbol. Insight vector image on season
|
122
|
+
idea, beautiful plant.","image_type":"vector","media_type":"image"},{"id":"47854045","aspect":0.9306,"assets":{"preview":{"height":450,"url":"https://image.shutterstock.com/display_pic_with_logo/553351/553351,1267615340,6/stock-photo-illustration-of-isolated-an-umbrella-on-white-background-47854045.jpg","width":418},"small_thumb":{"height":100,"url":"https://thumb9.shutterstock.com/thumb_small/553351/553351,1267615340,6/stock-photo-illustration-of-isolated-an-umbrella-on-white-background-47854045.jpg","width":93},"large_thumb":{"height":150,"url":"https://thumb9.shutterstock.com/thumb_large/553351/553351,1267615340,6/stock-photo-illustration-of-isolated-an-umbrella-on-white-background-47854045.jpg","width":140}},"contributor":{"id":"553351"},"description":"illustration
|
123
|
+
of isolated an umbrella on white background","image_type":"photo","media_type":"image"}]}'
|
124
|
+
http_version:
|
125
|
+
recorded_at: Sat, 07 Jan 2017 13:37:13 GMT
|
126
|
+
recorded_with: VCR 3.0.3
|
@@ -0,0 +1,53 @@
|
|
1
|
+
---
|
2
|
+
http_interactions:
|
3
|
+
- request:
|
4
|
+
method: post
|
5
|
+
uri: https://api.shutterstock.com/v2/images/licenses?subscription_id=s30187600
|
6
|
+
body:
|
7
|
+
encoding: UTF-8
|
8
|
+
string: '{"images":[{"image_id":"204501694"}]}'
|
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: 200
|
23
|
+
message: OK
|
24
|
+
headers:
|
25
|
+
Server:
|
26
|
+
- nginx
|
27
|
+
Date:
|
28
|
+
- Thu, 12 Jan 2017 03:08:45 GMT
|
29
|
+
Content-Type:
|
30
|
+
- application/json; charset=utf8
|
31
|
+
Content-Length:
|
32
|
+
- '179'
|
33
|
+
Connection:
|
34
|
+
- keep-alive
|
35
|
+
X-End-User-Request-Id:
|
36
|
+
- 1bcaa8e7-b52b-45ba-8855-00af6d99f5f7
|
37
|
+
X-Shutterstock-Resource:
|
38
|
+
- "/v2/images/licenses"
|
39
|
+
X-Shutterstock-App-Version:
|
40
|
+
- apitwo-742
|
41
|
+
Cache-Control:
|
42
|
+
- no-cache
|
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":[{"image_id":"204501694","error":"Editorial status must be
|
50
|
+
acknowledged"}],"errors":[{"message":"Failed to license 1 image","items":[{"image_id":"204501694","index":0}]}]}'
|
51
|
+
http_version:
|
52
|
+
recorded_at: Thu, 12 Jan 2017 03:08:45 GMT
|
53
|
+
recorded_with: VCR 3.0.3
|
@@ -0,0 +1,52 @@
|
|
1
|
+
---
|
2
|
+
http_interactions:
|
3
|
+
- request:
|
4
|
+
method: post
|
5
|
+
uri: https://api.shutterstock.com/v2/images/licenses?subscription_id=s30187600
|
6
|
+
body:
|
7
|
+
encoding: UTF-8
|
8
|
+
string: '{"images":[{"image_id":"204501694","editorial_acknowledgement":true}]}'
|
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: 200
|
23
|
+
message: OK
|
24
|
+
headers:
|
25
|
+
Server:
|
26
|
+
- nginx
|
27
|
+
Date:
|
28
|
+
- Thu, 12 Jan 2017 03:12:38 GMT
|
29
|
+
Content-Type:
|
30
|
+
- application/json; charset=utf8
|
31
|
+
Content-Length:
|
32
|
+
- '300'
|
33
|
+
Connection:
|
34
|
+
- keep-alive
|
35
|
+
X-End-User-Request-Id:
|
36
|
+
- 74300739-0838-4c3f-8730-6188fba2f7f0
|
37
|
+
X-Shutterstock-Resource:
|
38
|
+
- "/v2/images/licenses"
|
39
|
+
X-Shutterstock-App-Version:
|
40
|
+
- apitwo-742
|
41
|
+
Cache-Control:
|
42
|
+
- no-cache
|
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":[{"image_id":"204501694","download":{"url":"https://download.shutterstock.com/gatekeeper/W3siZSI6MTQ4NDIxOTU1NywiayI6InBob3RvLzIwNDUwMTY5NC9odWdlLmpwZyIsIm0iOiIxIiwiZCI6InNodXR0ZXJzdG9jay1tZWRpYSJ9LCJJdXNWMlFsS0YxUW1UYmZUdnd6RjF0WTBYcXMiXQ/shutterstock_204501694.jpg"},"allotment_charge":1}]}'
|
50
|
+
http_version:
|
51
|
+
recorded_at: Thu, 12 Jan 2017 03:12:38 GMT
|
52
|
+
recorded_with: VCR 3.0.3
|
@@ -0,0 +1,160 @@
|
|
1
|
+
---
|
2
|
+
http_interactions:
|
3
|
+
- request:
|
4
|
+
method: get
|
5
|
+
uri: https://api.shutterstock.com/v2/images/204501694
|
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
|
+
- Thu, 12 Jan 2017 03:15:43 GMT
|
27
|
+
Content-Type:
|
28
|
+
- application/json; charset=utf8
|
29
|
+
Content-Length:
|
30
|
+
- '2295'
|
31
|
+
Connection:
|
32
|
+
- keep-alive
|
33
|
+
X-End-User-Request-Id:
|
34
|
+
- 1894b222-09aa-4b66-801a-23bf6647b938
|
35
|
+
X-Shutterstock-Resource:
|
36
|
+
- "/v2/images/:id"
|
37
|
+
X-Shutterstock-App-Version:
|
38
|
+
- apitwo-742
|
39
|
+
Cache-Control:
|
40
|
+
- 'private; max-age: 60'
|
41
|
+
Etag:
|
42
|
+
- 0cae240d87744e43d0046d3922470eb2
|
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":"204501694","added_date":"2014-07-12","aspect":1.5028,"assets":{"small_jpg":{"display_name":"Small","dpi":72,"file_size":274432,"format":"jpg","height":333,"is_licensable":true,"width":500},"medium_jpg":{"display_name":"Med","dpi":300,"file_size":959488,"format":"jpg","height":665,"is_licensable":true,"width":1000},"huge_jpg":{"display_name":"Huge","dpi":300,"file_size":12215296,"format":"jpg","height":2832,"is_licensable":true,"width":4256},"supersize_jpg":{"display_name":"Super","dpi":300,"file_size":41443416,"format":"jpg","height":5664,"is_licensable":false,"width":8512},"huge_tiff":{"display_name":"Huge","dpi":300,"file_size":36158976,"format":"tiff","height":2832,"is_licensable":false,"width":4256},"supersize_tiff":{"display_name":"Super","dpi":300,"file_size":144635904,"format":"tiff","height":5664,"is_licensable":false,"width":8512},"preview":{"height":299,"url":"https://image.shutterstock.com/display_pic_with_logo/1877909/204501694/stock-photo-fort-worth-texas-usa-march-rodeo-at-fort-worth-stockyards-historic-district-former-204501694.jpg","width":450},"small_thumb":{"height":67,"url":"https://thumb1.shutterstock.com/thumb_small/1877909/204501694/stock-photo-fort-worth-texas-usa-march-rodeo-at-fort-worth-stockyards-historic-district-former-204501694.jpg","width":100},"large_thumb":{"height":100,"url":"https://thumb1.shutterstock.com/thumb_large/1877909/204501694/stock-photo-fort-worth-texas-usa-march-rodeo-at-fort-worth-stockyards-historic-district-former-204501694.jpg","width":150}},"categories":[{"id":"13","name":"People"},{"id":"18","name":"Sports/Recreation"}],"contributor":{"id":"1877909"},"description":"Fort
|
50
|
+
Worth, Texas, USA, March. 24, 2012: Rodeo at Fort Worth Stockyards Historic
|
51
|
+
District, former livestock market, now main tourist attraction in Fort Worth,
|
52
|
+
TX","image_type":"photo","is_adult":false,"is_editorial":true,"keywords":["actions","agriculture","airborne","america","american","animal","arena","boots","bronco","bucking","bull","competition","cowboy","danger","extreme","fence","fitness","flag","fort","gripping","helmet","heritage","horns","horse","jumping","outdoors","person","rearing","rider","riding","rodeo","rope","rough","safety","spectators","sport","stockyard","usa","west","western","wild","worth"],"media_type":"image"}'
|
53
|
+
http_version:
|
54
|
+
recorded_at: Thu, 12 Jan 2017 03:15:43 GMT
|
55
|
+
- request:
|
56
|
+
method: get
|
57
|
+
uri: https://api.shutterstock.com/v2/user/subscriptions
|
58
|
+
body:
|
59
|
+
encoding: US-ASCII
|
60
|
+
string: ''
|
61
|
+
headers:
|
62
|
+
User-Agent:
|
63
|
+
- Faraday v0.10.1
|
64
|
+
Authorization:
|
65
|
+
- Bearer <SSTK_ACCESS_TOKEN>
|
66
|
+
Accept-Encoding:
|
67
|
+
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
68
|
+
Accept:
|
69
|
+
- "*/*"
|
70
|
+
response:
|
71
|
+
status:
|
72
|
+
code: 200
|
73
|
+
message: OK
|
74
|
+
headers:
|
75
|
+
Server:
|
76
|
+
- nginx
|
77
|
+
Date:
|
78
|
+
- Thu, 12 Jan 2017 03:15:45 GMT
|
79
|
+
Content-Type:
|
80
|
+
- application/json; charset=utf8
|
81
|
+
Content-Length:
|
82
|
+
- '3544'
|
83
|
+
Connection:
|
84
|
+
- keep-alive
|
85
|
+
X-End-User-Request-Id:
|
86
|
+
- a2e75fde-49af-4da8-9cba-cff53d66be58
|
87
|
+
X-Shutterstock-Resource:
|
88
|
+
- "/v2/user/subscriptions"
|
89
|
+
X-Shutterstock-App-Version:
|
90
|
+
- apitwo-742
|
91
|
+
Cache-Control:
|
92
|
+
- no-cache
|
93
|
+
Etag:
|
94
|
+
- c69312831541631d73b4175e972a7c33
|
95
|
+
X-End-User-User-Id:
|
96
|
+
- "<SSTK_USER_ID>"
|
97
|
+
X-End-User-Client-Id:
|
98
|
+
- "<SSTK_CLIENT_ID>"
|
99
|
+
body:
|
100
|
+
encoding: UTF-8
|
101
|
+
string: '{"data":[{"id":"s29729296","expiration_time":"2016-12-28T09:36:49-05:00","license":"standard","description":"Monthly
|
102
|
+
Subscription","formats":[{"size":"huge","format":"jpg","media_type":"image","min_resolution":4000000,"description":"Huge"},{"size":"medium","format":"jpg","media_type":"image","min_resolution":1000,"description":"Med"},{"size":"supersize","format":"jpg","media_type":"image","min_resolution":16000000,"description":"Super"},{"size":"small","format":"jpg","media_type":"image","min_resolution":500,"description":"Small"},{"size":"vector","format":"eps","media_type":"image","description":"Vector"}]},{"id":"s14235337","expiration_time":"2015-08-08T22:43:27-04:00","license":"standard","description":"Images
|
103
|
+
On Demand","formats":[{"size":"medium","format":"jpg","media_type":"image","min_resolution":1000,"description":"Med"},{"size":"small","format":"jpg","media_type":"image","min_resolution":500,"description":"Small"}]},{"id":"s13218524","expiration_time":"2015-05-27T01:35:45-04:00","license":"standard","description":"Images
|
104
|
+
On Demand","formats":[{"size":"medium","format":"jpg","media_type":"image","min_resolution":1000,"description":"Med"},{"size":"small","format":"jpg","media_type":"image","min_resolution":500,"description":"Small"}]},{"id":"s8250890","expiration_time":"2015-05-21T03:56:18-04:00","license":"standard","description":"25-A-Day
|
105
|
+
Subscription","formats":[{"size":"huge","format":"jpg","media_type":"image","min_resolution":4000000,"description":"Huge"},{"size":"medium","format":"jpg","media_type":"image","min_resolution":1000,"description":"Med"},{"size":"supersize","format":"jpg","media_type":"image","min_resolution":16000000,"description":"Super"},{"size":"small","format":"jpg","media_type":"image","min_resolution":500,"description":"Small"},{"size":"vector","format":"eps","media_type":"image","description":"Vector"}]},{"id":"s30187600","expiration_time":"2017-02-05T23:29:10-05:00","license":"standard","description":"Monthly
|
106
|
+
Subscription","allotment":{"start_time":"2017-01-05T23:29:11-05:00","end_time":"2017-02-05T23:29:10-05:00","downloads_left":317,"downloads_limit":350},"formats":[{"size":"huge","format":"jpg","media_type":"image","min_resolution":4000000,"description":"Huge"},{"size":"medium","format":"jpg","media_type":"image","min_resolution":1000,"description":"Med"},{"size":"supersize","format":"jpg","media_type":"image","min_resolution":16000000,"description":"Super"},{"size":"small","format":"jpg","media_type":"image","min_resolution":500,"description":"Small"},{"size":"vector","format":"eps","media_type":"image","description":"Vector"}]},{"id":"s19375703","expiration_time":"2016-12-12T12:47:21-05:00","license":"standard","description":"Monthly
|
107
|
+
Subscription","formats":[{"size":"huge","format":"jpg","media_type":"image","min_resolution":4000000,"description":"Huge"},{"size":"medium","format":"jpg","media_type":"image","min_resolution":1000,"description":"Med"},{"size":"supersize","format":"jpg","media_type":"image","min_resolution":16000000,"description":"Super"},{"size":"small","format":"jpg","media_type":"image","min_resolution":500,"description":"Small"},{"size":"vector","format":"eps","media_type":"image","description":"Vector"}]},{"id":"s12406385","expiration_time":"2015-03-31T10:16:29-04:00","license":"standard","description":"Images
|
108
|
+
On Demand","formats":[{"size":"medium","format":"jpg","media_type":"image","min_resolution":1000,"description":"Med"},{"size":"small","format":"jpg","media_type":"image","min_resolution":500,"description":"Small"}]}]}'
|
109
|
+
http_version:
|
110
|
+
recorded_at: Thu, 12 Jan 2017 03:15:46 GMT
|
111
|
+
- request:
|
112
|
+
method: post
|
113
|
+
uri: https://api.shutterstock.com/v2/images/licenses?subscription_id=s30187600
|
114
|
+
body:
|
115
|
+
encoding: UTF-8
|
116
|
+
string: '{"images":[{"image_id":"204501694","editorial_acknowledgement":true}]}'
|
117
|
+
headers:
|
118
|
+
User-Agent:
|
119
|
+
- Faraday v0.10.1
|
120
|
+
Authorization:
|
121
|
+
- Bearer <SSTK_ACCESS_TOKEN>
|
122
|
+
Content-Type:
|
123
|
+
- application/json
|
124
|
+
Accept-Encoding:
|
125
|
+
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
126
|
+
Accept:
|
127
|
+
- "*/*"
|
128
|
+
response:
|
129
|
+
status:
|
130
|
+
code: 200
|
131
|
+
message: OK
|
132
|
+
headers:
|
133
|
+
Server:
|
134
|
+
- nginx
|
135
|
+
Date:
|
136
|
+
- Thu, 12 Jan 2017 03:15:47 GMT
|
137
|
+
Content-Type:
|
138
|
+
- application/json; charset=utf8
|
139
|
+
Content-Length:
|
140
|
+
- '300'
|
141
|
+
Connection:
|
142
|
+
- keep-alive
|
143
|
+
X-End-User-Request-Id:
|
144
|
+
- beaa2c2b-ec01-46e9-a916-94a21fcace57
|
145
|
+
X-Shutterstock-Resource:
|
146
|
+
- "/v2/images/licenses"
|
147
|
+
X-Shutterstock-App-Version:
|
148
|
+
- apitwo-742
|
149
|
+
Cache-Control:
|
150
|
+
- no-cache
|
151
|
+
X-End-User-User-Id:
|
152
|
+
- "<SSTK_USER_ID>"
|
153
|
+
X-End-User-Client-Id:
|
154
|
+
- "<SSTK_CLIENT_ID>"
|
155
|
+
body:
|
156
|
+
encoding: UTF-8
|
157
|
+
string: '{"data":[{"image_id":"204501694","download":{"url":"https://download.shutterstock.com/gatekeeper/W3siZSI6MTQ4NDIxOTc0NywiayI6InBob3RvLzIwNDUwMTY5NC9odWdlLmpwZyIsIm0iOiIxIiwiZCI6InNodXR0ZXJzdG9jay1tZWRpYSJ9LCJCWXFmVkdMdndqM0huRmhzTHZ0eDZibGdEdnMiXQ/shutterstock_204501694.jpg"},"allotment_charge":0}]}'
|
158
|
+
http_version:
|
159
|
+
recorded_at: Thu, 12 Jan 2017 03:15:47 GMT
|
160
|
+
recorded_with: VCR 3.0.3
|
@@ -0,0 +1,108 @@
|
|
1
|
+
---
|
2
|
+
http_interactions:
|
3
|
+
- request:
|
4
|
+
method: get
|
5
|
+
uri: https://api.shutterstock.com/v2/user/subscriptions
|
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 07:56:01 GMT
|
27
|
+
Content-Type:
|
28
|
+
- application/json; charset=utf8
|
29
|
+
Content-Length:
|
30
|
+
- '3544'
|
31
|
+
Connection:
|
32
|
+
- keep-alive
|
33
|
+
X-End-User-Request-Id:
|
34
|
+
- 1a490f85-e728-4c98-8993-8dce7f3813e7
|
35
|
+
X-Shutterstock-Resource:
|
36
|
+
- "/v2/user/subscriptions"
|
37
|
+
X-Shutterstock-App-Version:
|
38
|
+
- apitwo-739
|
39
|
+
Cache-Control:
|
40
|
+
- no-cache
|
41
|
+
Etag:
|
42
|
+
- 4978025129d5563dbdc2c46adf80d919
|
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":"s29729296","expiration_time":"2016-12-28T09:36:49-05:00","license":"standard","description":"Monthly
|
50
|
+
Subscription","formats":[{"size":"huge","format":"jpg","media_type":"image","min_resolution":4000000,"description":"Huge"},{"size":"medium","format":"jpg","media_type":"image","min_resolution":1000,"description":"Med"},{"size":"supersize","format":"jpg","media_type":"image","min_resolution":16000000,"description":"Super"},{"size":"small","format":"jpg","media_type":"image","min_resolution":500,"description":"Small"},{"size":"vector","format":"eps","media_type":"image","description":"Vector"}]},{"id":"s14235337","expiration_time":"2015-08-08T22:43:27-04:00","license":"standard","description":"Images
|
51
|
+
On Demand","formats":[{"size":"medium","format":"jpg","media_type":"image","min_resolution":1000,"description":"Med"},{"size":"small","format":"jpg","media_type":"image","min_resolution":500,"description":"Small"}]},{"id":"s13218524","expiration_time":"2015-05-27T01:35:45-04:00","license":"standard","description":"Images
|
52
|
+
On Demand","formats":[{"size":"medium","format":"jpg","media_type":"image","min_resolution":1000,"description":"Med"},{"size":"small","format":"jpg","media_type":"image","min_resolution":500,"description":"Small"}]},{"id":"s8250890","expiration_time":"2015-05-21T03:56:18-04:00","license":"standard","description":"25-A-Day
|
53
|
+
Subscription","formats":[{"size":"huge","format":"jpg","media_type":"image","min_resolution":4000000,"description":"Huge"},{"size":"medium","format":"jpg","media_type":"image","min_resolution":1000,"description":"Med"},{"size":"supersize","format":"jpg","media_type":"image","min_resolution":16000000,"description":"Super"},{"size":"small","format":"jpg","media_type":"image","min_resolution":500,"description":"Small"},{"size":"vector","format":"eps","media_type":"image","description":"Vector"}]},{"id":"s30187600","expiration_time":"2017-02-05T23:29:10-05:00","license":"standard","description":"Monthly
|
54
|
+
Subscription","allotment":{"start_time":"2017-01-05T23:29:11-05:00","end_time":"2017-02-05T23:29:10-05:00","downloads_left":341,"downloads_limit":350},"formats":[{"size":"huge","format":"jpg","media_type":"image","min_resolution":4000000,"description":"Huge"},{"size":"medium","format":"jpg","media_type":"image","min_resolution":1000,"description":"Med"},{"size":"supersize","format":"jpg","media_type":"image","min_resolution":16000000,"description":"Super"},{"size":"small","format":"jpg","media_type":"image","min_resolution":500,"description":"Small"},{"size":"vector","format":"eps","media_type":"image","description":"Vector"}]},{"id":"s19375703","expiration_time":"2016-12-12T12:47:21-05:00","license":"standard","description":"Monthly
|
55
|
+
Subscription","formats":[{"size":"huge","format":"jpg","media_type":"image","min_resolution":4000000,"description":"Huge"},{"size":"medium","format":"jpg","media_type":"image","min_resolution":1000,"description":"Med"},{"size":"supersize","format":"jpg","media_type":"image","min_resolution":16000000,"description":"Super"},{"size":"small","format":"jpg","media_type":"image","min_resolution":500,"description":"Small"},{"size":"vector","format":"eps","media_type":"image","description":"Vector"}]},{"id":"s12406385","expiration_time":"2015-03-31T10:16:29-04:00","license":"standard","description":"Images
|
56
|
+
On Demand","formats":[{"size":"medium","format":"jpg","media_type":"image","min_resolution":1000,"description":"Med"},{"size":"small","format":"jpg","media_type":"image","min_resolution":500,"description":"Small"}]}]}'
|
57
|
+
http_version:
|
58
|
+
recorded_at: Sun, 08 Jan 2017 07:56:01 GMT
|
59
|
+
- request:
|
60
|
+
method: post
|
61
|
+
uri: https://api.shutterstock.com/v2/images/licenses?subscription_id=s30187600
|
62
|
+
body:
|
63
|
+
encoding: UTF-8
|
64
|
+
string: '{"images":[{"image_id":"42194962"}]}'
|
65
|
+
headers:
|
66
|
+
User-Agent:
|
67
|
+
- Faraday v0.10.1
|
68
|
+
Authorization:
|
69
|
+
- Bearer <SSTK_ACCESS_TOKEN>
|
70
|
+
Content-Type:
|
71
|
+
- application/json
|
72
|
+
Accept-Encoding:
|
73
|
+
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
74
|
+
Accept:
|
75
|
+
- "*/*"
|
76
|
+
response:
|
77
|
+
status:
|
78
|
+
code: 200
|
79
|
+
message: OK
|
80
|
+
headers:
|
81
|
+
Server:
|
82
|
+
- nginx
|
83
|
+
Date:
|
84
|
+
- Sun, 08 Jan 2017 07:56:04 GMT
|
85
|
+
Content-Type:
|
86
|
+
- application/json; charset=utf8
|
87
|
+
Content-Length:
|
88
|
+
- '296'
|
89
|
+
Connection:
|
90
|
+
- keep-alive
|
91
|
+
X-End-User-Request-Id:
|
92
|
+
- 4cc1f761-864a-4088-84b4-a6ee716ede5d
|
93
|
+
X-Shutterstock-Resource:
|
94
|
+
- "/v2/images/licenses"
|
95
|
+
X-Shutterstock-App-Version:
|
96
|
+
- apitwo-739
|
97
|
+
Cache-Control:
|
98
|
+
- no-cache
|
99
|
+
X-End-User-User-Id:
|
100
|
+
- "<SSTK_USER_ID>"
|
101
|
+
X-End-User-Client-Id:
|
102
|
+
- "<SSTK_CLIENT_ID>"
|
103
|
+
body:
|
104
|
+
encoding: UTF-8
|
105
|
+
string: '{"data":[{"image_id":"42194962","download":{"url":"https://download.shutterstock.com/gatekeeper/W3siZSI6MTQ4Mzg5MDk2MywiayI6InBob3RvLzQyMTk0OTYyL2h1Z2UuanBnIiwibSI6IjEiLCJkIjoic2h1dHRlcnN0b2NrLW1lZGlhIn0sIjlyTVNtWDdQbGVZMktLYU1uK2V6ck5sMFZKTSJd/shutterstock_42194962.jpg"},"allotment_charge":1}]}'
|
106
|
+
http_version:
|
107
|
+
recorded_at: Sun, 08 Jan 2017 07:56:04 GMT
|
108
|
+
recorded_with: VCR 3.0.3
|