shutterstock-v2 0.0.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (136) hide show
  1. checksums.yaml +7 -0
  2. data/.gitignore +27 -0
  3. data/.rspec +3 -0
  4. data/.rubocop.yml +6 -0
  5. data/.travis.yml +6 -0
  6. data/Dockerfile +17 -0
  7. data/Gemfile +3 -0
  8. data/Guardfile +9 -0
  9. data/README.md +377 -0
  10. data/Rakefile +19 -0
  11. data/lib/client/auth.rb +48 -0
  12. data/lib/client/categories.rb +11 -0
  13. data/lib/client/category.rb +16 -0
  14. data/lib/client/client.rb +72 -0
  15. data/lib/client/collection.rb +151 -0
  16. data/lib/client/collections.rb +16 -0
  17. data/lib/client/configuration.rb +20 -0
  18. data/lib/client/contributor.rb +15 -0
  19. data/lib/client/driver.rb +38 -0
  20. data/lib/client/error.rb +20 -0
  21. data/lib/client/image.rb +139 -0
  22. data/lib/client/image_assets.rb +56 -0
  23. data/lib/client/image_size_details.rb +26 -0
  24. data/lib/client/images.rb +27 -0
  25. data/lib/client/license.rb +67 -0
  26. data/lib/client/licenses.rb +23 -0
  27. data/lib/client/model.rb +15 -0
  28. data/lib/client/models.rb +11 -0
  29. data/lib/client/request.rb +41 -0
  30. data/lib/client/subscription.rb +35 -0
  31. data/lib/client/subscription_allotment.rb +19 -0
  32. data/lib/client/subscription_license_format.rb +16 -0
  33. data/lib/client/subscription_license_formats.rb +12 -0
  34. data/lib/client/subscription_price.rb +13 -0
  35. data/lib/client/subscriptions.rb +37 -0
  36. data/lib/client/thumbnail.rb +17 -0
  37. data/lib/client/user.rb +68 -0
  38. data/lib/client/version.rb +3 -0
  39. data/lib/shutterstock-v2.rb +31 -0
  40. data/shutterstock-v2.gemspec +30 -0
  41. data/spec/cassettes/Shutterstock_Auth_get_access_token/returns_hash_with_access_token.yml +86 -0
  42. data/spec/cassettes/Shutterstock_Auth_get_authorize_url/returns_URL_to_redirect_user_to_passing_redirect_url_an.yml +48 -0
  43. data/spec/cassettes/Shutterstock_Categories/parses_params_correctly.yml +53 -0
  44. data/spec/cassettes/Shutterstock_Categories/returns_all_cats_for_an_image.yml +53 -0
  45. data/spec/cassettes/Shutterstock_Collection/add_image_adds_image_using_Image_new.yml +48 -0
  46. data/spec/cassettes/Shutterstock_Collection/add_image_adds_image_using_id.yml +48 -0
  47. data/spec/cassettes/Shutterstock_Collection/add_image_error_raises_error_if_collection_does_not_exist.yml +52 -0
  48. data/spec/cassettes/Shutterstock_Collection/create_creates_a_collection.yml +52 -0
  49. data/spec/cassettes/Shutterstock_Collection/destroy_destroys_a_collection.yml +93 -0
  50. data/spec/cassettes/Shutterstock_Collection/find_adds_an_image.yml +97 -0
  51. data/spec/cassettes/Shutterstock_Collection/find_converts_list_to_images.yml +101 -0
  52. data/spec/cassettes/Shutterstock_Collection/find_finds_a_collection_given_an_id.yml +52 -0
  53. data/spec/cassettes/Shutterstock_Collection/find_raises_error_for_invalid_collection_id.yml +50 -0
  54. data/spec/cassettes/Shutterstock_Collection/find_removes_an_image.yml +95 -0
  55. data/spec/cassettes/Shutterstock_Collection/list_returns_all_collections_for_the_current_user.yml +53 -0
  56. data/spec/cassettes/Shutterstock_Collection/remove_image_removes_image_using_Image_new.yml +46 -0
  57. data/spec/cassettes/Shutterstock_Collection/remove_image_removes_image_using_id.yml +46 -0
  58. data/spec/cassettes/Shutterstock_Collection/update_changes_the_name_of_a_collection.yml +97 -0
  59. data/spec/cassettes/Shutterstock_Collections/returns_all_collections_for_current_user.yml +53 -0
  60. data/spec/cassettes/Shutterstock_Image/fill_fills_all_details_of_current_image.yml +109 -0
  61. data/spec/cassettes/Shutterstock_Image/fills_all_details_of_current_image.yml +109 -0
  62. data/spec/cassettes/Shutterstock_Image/find_places_image_data_into_correct_fields.yml +56 -0
  63. data/spec/cassettes/Shutterstock_Image/find_places_more_image_data_into_correct_fields.yml +53 -0
  64. data/spec/cassettes/Shutterstock_Image/find_returns_an_Image_object.yml +56 -0
  65. data/spec/cassettes/Shutterstock_Image/finds_similar_images_given_an_image.yml +125 -0
  66. data/spec/cassettes/Shutterstock_Image/returns_an_Image_object.yml +56 -0
  67. data/spec/cassettes/Shutterstock_Image/returns_similar_images.yml +72 -0
  68. data/spec/cassettes/Shutterstock_Image/search_searches_for_images_based_on_searchterm.yml +73 -0
  69. data/spec/cassettes/Shutterstock_Image/search_searches_using_more_than_one_parameter.yml +77 -0
  70. data/spec/cassettes/Shutterstock_Image/searches_for_images_based_on_searchterm.yml +73 -0
  71. data/spec/cassettes/Shutterstock_Image/searches_using_more_than_one_parameter.yml +77 -0
  72. data/spec/cassettes/Shutterstock_Image/similar_finds_similar_images_given_an_image.yml +125 -0
  73. data/spec/cassettes/Shutterstock_Image/similar_returns_similar_images.yml +72 -0
  74. data/spec/cassettes/Shutterstock_ImageAssets/find_calculates_fields_correctly.yml +53 -0
  75. data/spec/cassettes/Shutterstock_ImageAssets/find_places_image_data_into_correct_fields.yml +53 -0
  76. data/spec/cassettes/Shutterstock_Images/fill_fills_details_of_all_images_in_list_all_images_now_have_keywords.yml +1144 -0
  77. data/spec/cassettes/Shutterstock_Images/returns_similar_images.yml +126 -0
  78. data/spec/cassettes/Shutterstock_License/license_editorial_acknowledgement_returns_error_if_requesting_an_image.yml +53 -0
  79. data/spec/cassettes/Shutterstock_License/license_editorial_acknowledgement_returns_licenced_image_if_ed_ack_is_.yml +52 -0
  80. data/spec/cassettes/Shutterstock_License/license_license_from_image_object_sends_editorial_acknowledgement_when.yml +160 -0
  81. data/spec/cassettes/Shutterstock_License/license_license_from_image_object_using_found_subscription.yml +108 -0
  82. data/spec/cassettes/Shutterstock_License/license_license_from_image_object_vector_image.yml +108 -0
  83. data/spec/cassettes/Shutterstock_License/license_multiple_licenses_multiple_images.yml +52 -0
  84. data/spec/cassettes/Shutterstock_License/license_multiple_licenses_multiple_images_from_Image_new.yml +52 -0
  85. data/spec/cassettes/Shutterstock_License/license_multiple_returns_error_in_Licenses_when_incorrect_image_used.yml +53 -0
  86. data/spec/cassettes/Shutterstock_License/license_single_licencing_same_image_twice_does_not_give_error.yml +101 -0
  87. data/spec/cassettes/Shutterstock_License/license_single_license_fails_when_subscription_doesn_t_allow.yml +49 -0
  88. data/spec/cassettes/Shutterstock_License/license_single_licenses_single_image.yml +52 -0
  89. data/spec/cassettes/Shutterstock_License/license_single_licenses_single_image_from_Image_new.yml +52 -0
  90. data/spec/cassettes/Shutterstock_License/license_single_licenses_single_image_from_hash.yml +52 -0
  91. data/spec/cassettes/Shutterstock_License/license_single_licenses_single_image_with_smaller_size.yml +52 -0
  92. data/spec/cassettes/Shutterstock_License/license_single_licenses_vector_image.yml +52 -0
  93. data/spec/cassettes/Shutterstock_License/license_single_licensing_same_image_twice_does_not_give_error.yml +101 -0
  94. data/spec/cassettes/Shutterstock_License/license_single_returns_error_when_incorrect_image_used.yml +103 -0
  95. data/spec/cassettes/Shutterstock_License/license_single_returns_error_when_incorrect_subscription_used.yml +53 -0
  96. data/spec/cassettes/Shutterstock_Models/parses_params_correctly.yml +53 -0
  97. data/spec/cassettes/Shutterstock_Models/returns_all_models_for_an_image.yml +53 -0
  98. data/spec/cassettes/Shutterstock_Subscription/allows_image_size_download_correctly_finds_if_image_size_is_possi.yml +59 -0
  99. data/spec/cassettes/Shutterstock_Subscription/new_parses_info_on_user_correctly.yml +59 -0
  100. data/spec/cassettes/Shutterstock_Subscription/new_returns_a_subscription_for_current_user.yml +59 -0
  101. data/spec/cassettes/Shutterstock_SubscriptionLicenseFormat/new_parses_info_correctly.yml +59 -0
  102. data/spec/cassettes/Shutterstock_SubscriptionLicenseFormat/new_returns_a_subscription_license_format_for_curren.yml +59 -0
  103. data/spec/cassettes/Shutterstock_Subscriptions/subscriptions_active_expired_total_subscriptions.yml +59 -0
  104. data/spec/cassettes/Shutterstock_Subscriptions/subscriptions_active_returns_only_active_subscriptions.yml +59 -0
  105. data/spec/cassettes/Shutterstock_Subscriptions/subscriptions_downloads_left_only_subscriptions_with_downloads_l.yml +59 -0
  106. data/spec/cassettes/Shutterstock_Subscriptions/subscriptions_expired_returns_only_expired_subscriptions.yml +59 -0
  107. data/spec/cassettes/Shutterstock_Subscriptions/subscriptions_find_subscription_for_image_size_finds_subs_to_use.yml +59 -0
  108. data/spec/cassettes/Shutterstock_Subscriptions/subscriptions_returns_all_subscriptions_for_current_user.yml +59 -0
  109. data/spec/cassettes/Shutterstock_User/find_parses_info_on_user_correctly.yml +52 -0
  110. data/spec/cassettes/Shutterstock_User/find_returns_object_for_current_user.yml +52 -0
  111. data/spec/client/auth_spec.rb +36 -0
  112. data/spec/client/categories_spec.rb +26 -0
  113. data/spec/client/category_spec.rb +16 -0
  114. data/spec/client/client_spec.rb +32 -0
  115. data/spec/client/collection_spec.rb +159 -0
  116. data/spec/client/collections_spec.rb +18 -0
  117. data/spec/client/configuration_spec.rb +10 -0
  118. data/spec/client/contributor_spec.rb +14 -0
  119. data/spec/client/driver_spec.rb +20 -0
  120. data/spec/client/image_assets_spec.rb +51 -0
  121. data/spec/client/image_size_details_spec.rb +33 -0
  122. data/spec/client/image_spec.rb +102 -0
  123. data/spec/client/images_spec.rb +31 -0
  124. data/spec/client/license_spec.rb +234 -0
  125. data/spec/client/model_spec.rb +14 -0
  126. data/spec/client/models_spec.rb +23 -0
  127. data/spec/client/request_spec.rb +79 -0
  128. data/spec/client/subscription_allotment_spec.rb +25 -0
  129. data/spec/client/subscription_license_format_spec.rb +29 -0
  130. data/spec/client/subscription_price_spec.rb +17 -0
  131. data/spec/client/subscription_spec.rb +60 -0
  132. data/spec/client/subscriptions_spec.rb +54 -0
  133. data/spec/client/thumbnail_spec.rb +21 -0
  134. data/spec/client/user_spec.rb +37 -0
  135. data/spec/spec_helper.rb +88 -0
  136. metadata +467 -0
@@ -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:32:51 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
+ - 1e31e74f-a71b-4f5b-ba39-a184f045501d
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:32:51 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:32:52 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
+ - 23033ed6-0e16-4209-89a0-19b0970d9c36
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:32:53 GMT
109
+ recorded_with: VCR 3.0.3
@@ -0,0 +1,56 @@
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
+ - Sun, 08 Jan 2017 00:08:34 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
+ - e47562af-3dc6-4102-a1af-71a74c1f2554
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: Sun, 08 Jan 2017 00:08:34 GMT
56
+ 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/356308322
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:19:59 GMT
27
+ Content-Type:
28
+ - application/json; charset=utf8
29
+ Content-Length:
30
+ - '1794'
31
+ Connection:
32
+ - keep-alive
33
+ X-End-User-Request-Id:
34
+ - 5145550c-d306-464b-81b7-3554c5c80d71
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
+ - c409f7b27c1558af18f802e849c94d28
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":"356308322","added_date":"2015-12-29","aspect":1.498,"assets":{"small_jpg":{"display_name":"Small","dpi":72,"file_size":128000,"format":"jpg","height":334,"is_licensable":true,"width":500},"medium_jpg":{"display_name":"Med","dpi":300,"file_size":417792,"format":"jpg","height":668,"is_licensable":true,"width":1000},"huge_jpg":{"display_name":"Huge","dpi":300,"file_size":5781504,"format":"jpg","height":3691,"is_licensable":true,"width":5529},"huge_tiff":{"display_name":"Huge","dpi":300,"file_size":61222617,"format":"tiff","height":3691,"is_licensable":false,"width":5529},"preview":{"height":300,"url":"https://image.shutterstock.com/display_pic_with_logo/2396102/356308322/stock-photo-cute-asian-children-lying-on-white-bed-356308322.jpg","width":450},"small_thumb":{"height":67,"url":"https://thumb9.shutterstock.com/thumb_small/2396102/356308322/stock-photo-cute-asian-children-lying-on-white-bed-356308322.jpg","width":100},"large_thumb":{"height":100,"url":"https://thumb9.shutterstock.com/thumb_large/2396102/356308322/stock-photo-cute-asian-children-lying-on-white-bed-356308322.jpg","width":150}},"categories":[{"id":"13","name":"People"},{"id":"20","name":"NOT-CATEGORIZED"}],"contributor":{"id":"2396102"},"description":"Cute
50
+ asian children lying on white bed","image_type":"photo","is_adult":false,"has_model_release":true,"keywords":["asia","asian","background","bed","boy","brother","cheerful","child","childhood","cute","face","family","filter","friendship","fun","girl","happiness","happy","hug","japan","japanese","kid","korea","korean","laugh","little","look","love","lying","people","person","play","playful","portrait","sibling","sister","smile","toddler","two","vintage","white","young","youth"],"media_type":"image","models":[{"id":"17856134"},{"id":"15233887"}]}'
51
+ http_version:
52
+ recorded_at: Sun, 08 Jan 2017 00:19:59 GMT
53
+ recorded_with: VCR 3.0.3
@@ -0,0 +1,56 @@
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:22:03 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
+ - 4643b3ff-27c1-426e-9d06-8eca9369c146
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:22:03 GMT
56
+ recorded_with: VCR 3.0.3
@@ -0,0 +1,125 @@
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 06:28:45 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
+ - e7ca944e-3473-4dfa-86ac-8e7f59343ae9
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 06:28:45 GMT
56
+ - request:
57
+ method: get
58
+ uri: https://api.shutterstock.com/v2/images/118139110/similar
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 06:28:46 GMT
80
+ Content-Type:
81
+ - application/json; charset=utf8
82
+ Content-Length:
83
+ - '15319'
84
+ Connection:
85
+ - keep-alive
86
+ X-End-User-Request-Id:
87
+ - 3cfafbbc-20e1-4b62-90e9-0ce4d6648a20
88
+ X-Shutterstock-Resource:
89
+ - "/v2/images/:id/similar"
90
+ X-Shutterstock-App-Version:
91
+ - apitwo-739
92
+ Cache-Control:
93
+ - 'private; max-age: 3600'
94
+ Etag:
95
+ - 3cefe49868fd48fd1d6a9550417e9278
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: '{"page":1,"per_page":20,"total_count":200,"search_id":"","data":[{"id":"145400341","aspect":1.5002,"assets":{"preview":{"height":299,"url":"https://image.shutterstock.com/display_pic_with_logo/1306729/145400341/stock-photo-alert-labrador-puppy-with-toy-145400341.jpg","width":450},"small_thumb":{"height":67,"url":"https://thumb7.shutterstock.com/thumb_small/1306729/145400341/stock-photo-alert-labrador-puppy-with-toy-145400341.jpg","width":100},"large_thumb":{"height":100,"url":"https://thumb7.shutterstock.com/thumb_large/1306729/145400341/stock-photo-alert-labrador-puppy-with-toy-145400341.jpg","width":150}},"contributor":{"id":"1306729"},"description":"Alert
103
+ Labrador Puppy with Toy","image_type":"photo","media_type":"image"},{"id":"145400368","aspect":1.5,"assets":{"preview":{"height":300,"url":"https://image.shutterstock.com/display_pic_with_logo/1306729/145400368/stock-photo-cute-labrador-puppy-playing-with-a-toy-on-white-backdrop-145400368.jpg","width":450},"small_thumb":{"height":67,"url":"https://thumb1.shutterstock.com/thumb_small/1306729/145400368/stock-photo-cute-labrador-puppy-playing-with-a-toy-on-white-backdrop-145400368.jpg","width":100},"large_thumb":{"height":100,"url":"https://thumb1.shutterstock.com/thumb_large/1306729/145400368/stock-photo-cute-labrador-puppy-playing-with-a-toy-on-white-backdrop-145400368.jpg","width":150}},"contributor":{"id":"1306729"},"description":"Cute
104
+ Labrador Puppy Playing with a Toy on White Backdrop","image_type":"photo","media_type":"image"},{"id":"278945048","aspect":1.5099,"assets":{"preview":{"height":298,"url":"https://image.shutterstock.com/display_pic_with_logo/1135340/278945048/stock-photo-portrait-of-a-beagle-dog-lying-isolated-on-white-background-278945048.jpg","width":450},"small_thumb":{"height":66,"url":"https://thumb1.shutterstock.com/thumb_small/1135340/278945048/stock-photo-portrait-of-a-beagle-dog-lying-isolated-on-white-background-278945048.jpg","width":100},"large_thumb":{"height":99,"url":"https://thumb1.shutterstock.com/thumb_large/1135340/278945048/stock-photo-portrait-of-a-beagle-dog-lying-isolated-on-white-background-278945048.jpg","width":150}},"contributor":{"id":"1135340"},"description":"Portrait
105
+ of a beagle dog lying isolated on white background","image_type":"photo","media_type":"image"},{"id":"408004243","aspect":1.2822,"assets":{"preview":{"height":350,"url":"https://image.shutterstock.com/display_pic_with_logo/89296/408004243/stock-photo-sad-puppy-dog-isolated-over-white-background-408004243.jpg","width":450},"small_thumb":{"height":78,"url":"https://thumb10.shutterstock.com/thumb_small/89296/408004243/stock-photo-sad-puppy-dog-isolated-over-white-background-408004243.jpg","width":100},"large_thumb":{"height":117,"url":"https://thumb10.shutterstock.com/thumb_large/89296/408004243/stock-photo-sad-puppy-dog-isolated-over-white-background-408004243.jpg","width":150}},"contributor":{"id":"89296"},"description":"sad
106
+ puppy dog isolated over white background","image_type":"photo","media_type":"image"},{"id":"265616159","aspect":1.4998,"assets":{"preview":{"height":300,"url":"https://image.shutterstock.com/display_pic_with_logo/441070/265616159/stock-photo-a-portrait-of-a-golden-retriever-dog-laying-over-white-background-265616159.jpg","width":450},"small_thumb":{"height":67,"url":"https://thumb7.shutterstock.com/thumb_small/441070/265616159/stock-photo-a-portrait-of-a-golden-retriever-dog-laying-over-white-background-265616159.jpg","width":100},"large_thumb":{"height":100,"url":"https://thumb7.shutterstock.com/thumb_large/441070/265616159/stock-photo-a-portrait-of-a-golden-retriever-dog-laying-over-white-background-265616159.jpg","width":150}},"contributor":{"id":"441070"},"description":"A
107
+ portrait of a golden retriever dog laying over white background","image_type":"photo","media_type":"image"},{"id":"118139113","aspect":1.5,"assets":{"preview":{"height":300,"url":"https://image.shutterstock.com/display_pic_with_logo/1306729/118139113/stock-photo-adorable-labrador-puppy-playing-with-a-chew-toy-on-white-backdrop-118139113.jpg","width":450},"small_thumb":{"height":67,"url":"https://thumb10.shutterstock.com/thumb_small/1306729/118139113/stock-photo-adorable-labrador-puppy-playing-with-a-chew-toy-on-white-backdrop-118139113.jpg","width":100},"large_thumb":{"height":100,"url":"https://thumb10.shutterstock.com/thumb_large/1306729/118139113/stock-photo-adorable-labrador-puppy-playing-with-a-chew-toy-on-white-backdrop-118139113.jpg","width":150}},"contributor":{"id":"1306729"},"description":"Adorable
108
+ Labrador Puppy Playing with a Chew Toy on White Backdrop","image_type":"photo","media_type":"image"},{"id":"443698735","aspect":1.5939,"assets":{"preview":{"height":282,"url":"https://image.shutterstock.com/display_pic_with_logo/1450490/443698735/stock-photo-puppy-labrador-retriever-in-the-white-studio-443698735.jpg","width":450},"small_thumb":{"height":63,"url":"https://thumb7.shutterstock.com/thumb_small/1450490/443698735/stock-photo-puppy-labrador-retriever-in-the-white-studio-443698735.jpg","width":100},"large_thumb":{"height":94,"url":"https://thumb7.shutterstock.com/thumb_large/1450490/443698735/stock-photo-puppy-labrador-retriever-in-the-white-studio-443698735.jpg","width":150}},"contributor":{"id":"1450490"},"description":"Puppy
109
+ labrador retriever in the white studio","image_type":"photo","media_type":"image"},{"id":"400840462","aspect":1.6698,"assets":{"preview":{"height":269,"url":"https://image.shutterstock.com/display_pic_with_logo/89296/400840462/stock-photo-puppy-dog-isolated-over-white-background-400840462.jpg","width":450},"small_thumb":{"height":60,"url":"https://thumb9.shutterstock.com/thumb_small/89296/400840462/stock-photo-puppy-dog-isolated-over-white-background-400840462.jpg","width":100},"large_thumb":{"height":90,"url":"https://thumb9.shutterstock.com/thumb_large/89296/400840462/stock-photo-puppy-dog-isolated-over-white-background-400840462.jpg","width":150}},"contributor":{"id":"89296"},"description":"puppy
110
+ dog isolated over white background","image_type":"photo","media_type":"image"},{"id":"11220493","aspect":1.4595,"assets":{"preview":{"height":308,"url":"https://image.shutterstock.com/display_pic_with_logo/3053/3053,1204813354,1/stock-photo-a-golden-retriever-and-cocker-spaniel-puppy-in-the-studio-11220493.jpg","width":450},"small_thumb":{"height":69,"url":"https://thumb7.shutterstock.com/thumb_small/3053/3053,1204813354,1/stock-photo-a-golden-retriever-and-cocker-spaniel-puppy-in-the-studio-11220493.jpg","width":100},"large_thumb":{"height":103,"url":"https://thumb7.shutterstock.com/thumb_large/3053/3053,1204813354,1/stock-photo-a-golden-retriever-and-cocker-spaniel-puppy-in-the-studio-11220493.jpg","width":150}},"contributor":{"id":"3053"},"description":"A
111
+ golden retriever and cocker spaniel puppy in the studio","image_type":"photo","media_type":"image"},{"id":"11220508","aspect":1.4595,"assets":{"preview":{"height":308,"url":"https://image.shutterstock.com/display_pic_with_logo/3053/3053,1204817287,1/stock-photo-a-golden-retriever-and-cocker-spaniel-puppy-in-the-studio-11220508.jpg","width":450},"small_thumb":{"height":69,"url":"https://thumb7.shutterstock.com/thumb_small/3053/3053,1204817287,1/stock-photo-a-golden-retriever-and-cocker-spaniel-puppy-in-the-studio-11220508.jpg","width":100},"large_thumb":{"height":103,"url":"https://thumb7.shutterstock.com/thumb_large/3053/3053,1204817287,1/stock-photo-a-golden-retriever-and-cocker-spaniel-puppy-in-the-studio-11220508.jpg","width":150}},"contributor":{"id":"3053"},"description":"A
112
+ golden retriever and cocker spaniel puppy in the studio","image_type":"photo","media_type":"image"},{"id":"42056902","aspect":1.4704,"assets":{"preview":{"height":306,"url":"https://image.shutterstock.com/display_pic_with_logo/5487/5487,1259779912,1/stock-photo-studio-portrait-of-a-beautiful-and-cute-labrador-dog-breed-42056902.jpg","width":450},"small_thumb":{"height":68,"url":"https://thumb7.shutterstock.com/thumb_small/5487/5487,1259779912,1/stock-photo-studio-portrait-of-a-beautiful-and-cute-labrador-dog-breed-42056902.jpg","width":100},"large_thumb":{"height":102,"url":"https://thumb7.shutterstock.com/thumb_large/5487/5487,1259779912,1/stock-photo-studio-portrait-of-a-beautiful-and-cute-labrador-dog-breed-42056902.jpg","width":150}},"contributor":{"id":"5487"},"description":"Studio
113
+ portrait of a beautiful and cute labrador dog breed","image_type":"photo","media_type":"image"},{"id":"432433657","aspect":0.6667,"assets":{"preview":{"height":450,"url":"https://image.shutterstock.com/display_pic_with_logo/146/432433657/stock-photo-young-labrador-retriever-dog-on-white-background-432433657.jpg","width":300},"small_thumb":{"height":100,"url":"https://thumb10.shutterstock.com/thumb_small/146/432433657/stock-photo-young-labrador-retriever-dog-on-white-background-432433657.jpg","width":67},"large_thumb":{"height":150,"url":"https://thumb10.shutterstock.com/thumb_large/146/432433657/stock-photo-young-labrador-retriever-dog-on-white-background-432433657.jpg","width":100}},"contributor":{"id":"146"},"description":"Young
114
+ labrador retriever dog on white background","image_type":"photo","media_type":"image"},{"id":"90493837","aspect":0.6667,"assets":{"preview":{"height":450,"url":"https://image.shutterstock.com/display_pic_with_logo/304216/304216,1323398590,1/stock-photo-golden-retriever-dog-puppy-isolated-on-white-background-90493837.jpg","width":300},"small_thumb":{"height":100,"url":"https://thumb7.shutterstock.com/thumb_small/304216/304216,1323398590,1/stock-photo-golden-retriever-dog-puppy-isolated-on-white-background-90493837.jpg","width":67},"large_thumb":{"height":150,"url":"https://thumb7.shutterstock.com/thumb_large/304216/304216,1323398590,1/stock-photo-golden-retriever-dog-puppy-isolated-on-white-background-90493837.jpg","width":100}},"contributor":{"id":"304216"},"description":"Golden
115
+ retriever dog puppy isolated on white background","image_type":"photo","media_type":"image"},{"id":"89122411","aspect":1.5,"assets":{"preview":{"height":300,"url":"https://image.shutterstock.com/display_pic_with_logo/304216/304216,1321716617,1/stock-photo-golden-retriever-dog-puppy-isolated-on-white-background-89122411.jpg","width":450},"small_thumb":{"height":67,"url":"https://thumb7.shutterstock.com/thumb_small/304216/304216,1321716617,1/stock-photo-golden-retriever-dog-puppy-isolated-on-white-background-89122411.jpg","width":100},"large_thumb":{"height":100,"url":"https://thumb7.shutterstock.com/thumb_large/304216/304216,1321716617,1/stock-photo-golden-retriever-dog-puppy-isolated-on-white-background-89122411.jpg","width":150}},"contributor":{"id":"304216"},"description":"Golden
116
+ retriever dog puppy isolated on white background","image_type":"photo","media_type":"image"},{"id":"41340892","aspect":1,"assets":{"preview":{"height":450,"url":"https://image.shutterstock.com/display_pic_with_logo/305215/305215,1258822612,61/stock-photo-seated-puppy-labrador-retriever-cream-in-front-of-white-background-41340892.jpg","width":450},"small_thumb":{"height":100,"url":"https://thumb7.shutterstock.com/thumb_small/305215/305215,1258822612,61/stock-photo-seated-puppy-labrador-retriever-cream-in-front-of-white-background-41340892.jpg","width":100},"large_thumb":{"height":150,"url":"https://thumb7.shutterstock.com/thumb_large/305215/305215,1258822612,61/stock-photo-seated-puppy-labrador-retriever-cream-in-front-of-white-background-41340892.jpg","width":150}},"contributor":{"id":"305215"},"description":"seated
117
+ Puppy Labrador retriever cream in front of white background","image_type":"photo","media_type":"image"},{"id":"256149367","aspect":1.4633,"assets":{"preview":{"height":307,"url":"https://image.shutterstock.com/display_pic_with_logo/80789/256149367/stock-photo-young-golden-retriever-in-front-of-white-background-256149367.jpg","width":450},"small_thumb":{"height":68,"url":"https://thumb10.shutterstock.com/thumb_small/80789/256149367/stock-photo-young-golden-retriever-in-front-of-white-background-256149367.jpg","width":100},"large_thumb":{"height":103,"url":"https://thumb10.shutterstock.com/thumb_large/80789/256149367/stock-photo-young-golden-retriever-in-front-of-white-background-256149367.jpg","width":150}},"contributor":{"id":"80789"},"description":"young
118
+ golden retriever in front of white background","image_type":"photo","media_type":"image"},{"id":"408004390","aspect":1.4998,"assets":{"preview":{"height":300,"url":"https://image.shutterstock.com/display_pic_with_logo/89296/408004390/stock-photo-sad-puppy-dog-isolated-over-white-background-408004390.jpg","width":450},"small_thumb":{"height":67,"url":"https://thumb1.shutterstock.com/thumb_small/89296/408004390/stock-photo-sad-puppy-dog-isolated-over-white-background-408004390.jpg","width":100},"large_thumb":{"height":100,"url":"https://thumb1.shutterstock.com/thumb_large/89296/408004390/stock-photo-sad-puppy-dog-isolated-over-white-background-408004390.jpg","width":150}},"contributor":{"id":"89296"},"description":"sad
119
+ puppy dog isolated over white background","image_type":"photo","media_type":"image"},{"id":"214857589","aspect":1.5028,"assets":{"preview":{"height":299,"url":"https://image.shutterstock.com/display_pic_with_logo/89296/214857589/stock-photo-sad-puppy-dog-isolated-over-white-background-214857589.jpg","width":450},"small_thumb":{"height":67,"url":"https://thumb7.shutterstock.com/thumb_small/89296/214857589/stock-photo-sad-puppy-dog-isolated-over-white-background-214857589.jpg","width":100},"large_thumb":{"height":100,"url":"https://thumb7.shutterstock.com/thumb_large/89296/214857589/stock-photo-sad-puppy-dog-isolated-over-white-background-214857589.jpg","width":150}},"contributor":{"id":"89296"},"description":"sad
120
+ puppy dog isolated over white background","image_type":"photo","media_type":"image"},{"id":"189960602","aspect":1.5028,"assets":{"preview":{"height":299,"url":"https://image.shutterstock.com/display_pic_with_logo/948514/189960602/stock-photo-golden-retriever-dog-isolated-on-white-189960602.jpg","width":450},"small_thumb":{"height":67,"url":"https://thumb9.shutterstock.com/thumb_small/948514/189960602/stock-photo-golden-retriever-dog-isolated-on-white-189960602.jpg","width":100},"large_thumb":{"height":100,"url":"https://thumb9.shutterstock.com/thumb_large/948514/189960602/stock-photo-golden-retriever-dog-isolated-on-white-189960602.jpg","width":150}},"contributor":{"id":"948514"},"description":"Golden
121
+ retriever dog isolated on white","image_type":"photo","media_type":"image"},{"id":"96777595","aspect":1.5002,"assets":{"preview":{"height":299,"url":"https://image.shutterstock.com/display_pic_with_logo/80789/80789,1330954962,5/stock-photo--purebred-labrador-retriever-in-front-of-a-white-background-96777595.jpg","width":450},"small_thumb":{"height":67,"url":"https://thumb7.shutterstock.com/thumb_small/80789/80789,1330954962,5/stock-photo--purebred-labrador-retriever-in-front-of-a-white-background-96777595.jpg","width":100},"large_thumb":{"height":100,"url":"https://thumb7.shutterstock.com/thumb_large/80789/80789,1330954962,5/stock-photo--purebred-labrador-retriever-in-front-of-a-white-background-96777595.jpg","width":150}},"contributor":{"id":"80789"},"description":"
122
+ purebred labrador retriever in front of a white background","image_type":"photo","media_type":"image"}]}'
123
+ http_version:
124
+ recorded_at: Sat, 07 Jan 2017 06:28:47 GMT
125
+ recorded_with: VCR 3.0.3
@@ -0,0 +1,56 @@
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 06:28:43 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
+ - 749f64ab-9367-4f74-9709-fc5da2b59664
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 06:28:43 GMT
56
+ recorded_with: VCR 3.0.3