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,52 @@
1
+ ---
2
+ http_interactions:
3
+ - request:
4
+ method: post
5
+ uri: https://api.shutterstock.com/v2/images/collections
6
+ body:
7
+ encoding: UTF-8
8
+ string: '{"name":"test_collection"}'
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: 201
23
+ message: Created
24
+ headers:
25
+ Server:
26
+ - nginx
27
+ Date:
28
+ - Sat, 07 Jan 2017 06:28:32 GMT
29
+ Content-Type:
30
+ - application/json; charset=utf8
31
+ Content-Length:
32
+ - '17'
33
+ Connection:
34
+ - keep-alive
35
+ X-End-User-Request-Id:
36
+ - 02af797b-58a4-456f-841a-39ec291073b9
37
+ X-Shutterstock-Resource:
38
+ - "/v2/images/collections"
39
+ X-Shutterstock-App-Version:
40
+ - apitwo-739
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: '{"id":"55301587"}'
50
+ http_version:
51
+ recorded_at: Sat, 07 Jan 2017 06:28:32 GMT
52
+ recorded_with: VCR 3.0.3
@@ -0,0 +1,93 @@
1
+ ---
2
+ http_interactions:
3
+ - request:
4
+ method: delete
5
+ uri: https://api.shutterstock.com/v2/images/collections/55301587
6
+ body:
7
+ encoding: US-ASCII
8
+ string: ''
9
+ headers:
10
+ User-Agent:
11
+ - Faraday v0.10.1
12
+ Authorization:
13
+ - Bearer <SSTK_ACCESS_TOKEN>
14
+ Accept-Encoding:
15
+ - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
16
+ Accept:
17
+ - "*/*"
18
+ response:
19
+ status:
20
+ code: 204
21
+ message: No Content
22
+ headers:
23
+ Server:
24
+ - nginx
25
+ Date:
26
+ - Sat, 07 Jan 2017 06:28:37 GMT
27
+ Connection:
28
+ - keep-alive
29
+ X-End-User-Request-Id:
30
+ - d2a6809d-df16-4b1c-8001-e0caafdea614
31
+ X-Shutterstock-Resource:
32
+ - "/v2/images/collections/:id"
33
+ X-Shutterstock-App-Version:
34
+ - apitwo-739
35
+ Cache-Control:
36
+ - no-cache
37
+ X-End-User-User-Id:
38
+ - "<SSTK_USER_ID>"
39
+ X-End-User-Client-Id:
40
+ - "<SSTK_CLIENT_ID>"
41
+ body:
42
+ encoding: UTF-8
43
+ string: ''
44
+ http_version:
45
+ recorded_at: Sat, 07 Jan 2017 06:28:37 GMT
46
+ - request:
47
+ method: get
48
+ uri: https://api.shutterstock.com/v2/images/collections/55301587
49
+ body:
50
+ encoding: US-ASCII
51
+ string: ''
52
+ headers:
53
+ User-Agent:
54
+ - Faraday v0.10.1
55
+ Authorization:
56
+ - Bearer <SSTK_ACCESS_TOKEN>
57
+ Accept-Encoding:
58
+ - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
59
+ Accept:
60
+ - "*/*"
61
+ response:
62
+ status:
63
+ code: 404
64
+ message: Not Found
65
+ headers:
66
+ Server:
67
+ - nginx
68
+ Date:
69
+ - Sat, 07 Jan 2017 06:28:38 GMT
70
+ Content-Type:
71
+ - application/json; charset=utf8
72
+ Content-Length:
73
+ - '23'
74
+ Connection:
75
+ - keep-alive
76
+ X-End-User-Request-Id:
77
+ - aa162b42-269b-4d19-9adf-82114a63d4c5
78
+ X-Shutterstock-Resource:
79
+ - "/v2/images/collections/:id"
80
+ X-Shutterstock-App-Version:
81
+ - apitwo-739
82
+ Cache-Control:
83
+ - no-cache
84
+ X-End-User-User-Id:
85
+ - "<SSTK_USER_ID>"
86
+ X-End-User-Client-Id:
87
+ - "<SSTK_CLIENT_ID>"
88
+ body:
89
+ encoding: UTF-8
90
+ string: '{"message":"Not Found"}'
91
+ http_version:
92
+ recorded_at: Sat, 07 Jan 2017 06:28:38 GMT
93
+ recorded_with: VCR 3.0.3
@@ -0,0 +1,97 @@
1
+ ---
2
+ http_interactions:
3
+ - request:
4
+ method: get
5
+ uri: https://api.shutterstock.com/v2/images/collections/23712632
6
+ body:
7
+ encoding: US-ASCII
8
+ string: ''
9
+ headers:
10
+ User-Agent:
11
+ - Faraday v0.10.1
12
+ Authorization:
13
+ - Bearer <SSTK_ACCESS_TOKEN>
14
+ Accept-Encoding:
15
+ - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
16
+ Accept:
17
+ - "*/*"
18
+ response:
19
+ status:
20
+ code: 200
21
+ message: OK
22
+ headers:
23
+ Server:
24
+ - nginx
25
+ Date:
26
+ - Sat, 07 Jan 2017 06:28:27 GMT
27
+ Content-Type:
28
+ - application/json; charset=utf8
29
+ Content-Length:
30
+ - '138'
31
+ Connection:
32
+ - keep-alive
33
+ X-End-User-Request-Id:
34
+ - d4a6336b-3540-43c7-8369-e61590901ff7
35
+ X-Shutterstock-Resource:
36
+ - "/v2/images/collections/:id"
37
+ X-Shutterstock-App-Version:
38
+ - apitwo-739
39
+ Cache-Control:
40
+ - no-cache
41
+ Etag:
42
+ - 480fd22d20afa1aea132cf5989173fba
43
+ X-End-User-User-Id:
44
+ - "<SSTK_USER_ID>"
45
+ X-End-User-Client-Id:
46
+ - "<SSTK_CLIENT_ID>"
47
+ body:
48
+ encoding: UTF-8
49
+ string: '{"id":"23712632","name":"Romantic","total_item_count":28,"items_updated_time":"2017-01-07T01:22:25-05:00","cover_item":{"id":"550104544"}}'
50
+ http_version:
51
+ recorded_at: Sat, 07 Jan 2017 06:28:27 GMT
52
+ - request:
53
+ method: post
54
+ uri: https://api.shutterstock.com/v2/images/collections/23712632/items
55
+ body:
56
+ encoding: UTF-8
57
+ string: '{"items":[{"id":"550104544"}]}'
58
+ headers:
59
+ User-Agent:
60
+ - Faraday v0.10.1
61
+ Authorization:
62
+ - Bearer <SSTK_ACCESS_TOKEN>
63
+ Content-Type:
64
+ - application/json
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: 204
72
+ message: No Content
73
+ headers:
74
+ Server:
75
+ - nginx
76
+ Date:
77
+ - Sat, 07 Jan 2017 06:28:28 GMT
78
+ Connection:
79
+ - keep-alive
80
+ X-End-User-Request-Id:
81
+ - 318cf671-66ac-4133-92ed-74b72f9e8fbf
82
+ X-Shutterstock-Resource:
83
+ - "/v2/images/collections/:id/items"
84
+ X-Shutterstock-App-Version:
85
+ - apitwo-739
86
+ Cache-Control:
87
+ - no-cache
88
+ X-End-User-User-Id:
89
+ - "<SSTK_USER_ID>"
90
+ X-End-User-Client-Id:
91
+ - "<SSTK_CLIENT_ID>"
92
+ body:
93
+ encoding: UTF-8
94
+ string: ''
95
+ http_version:
96
+ recorded_at: Sat, 07 Jan 2017 06:28:28 GMT
97
+ recorded_with: VCR 3.0.3
@@ -0,0 +1,101 @@
1
+ ---
2
+ http_interactions:
3
+ - request:
4
+ method: get
5
+ uri: https://api.shutterstock.com/v2/images/collections/23712632
6
+ body:
7
+ encoding: US-ASCII
8
+ string: ''
9
+ headers:
10
+ User-Agent:
11
+ - Faraday v0.10.1
12
+ Authorization:
13
+ - Bearer <SSTK_ACCESS_TOKEN>
14
+ Accept-Encoding:
15
+ - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
16
+ Accept:
17
+ - "*/*"
18
+ response:
19
+ status:
20
+ code: 200
21
+ message: OK
22
+ headers:
23
+ Server:
24
+ - nginx
25
+ Date:
26
+ - Sat, 07 Jan 2017 06:28:24 GMT
27
+ Content-Type:
28
+ - application/json; charset=utf8
29
+ Content-Length:
30
+ - '138'
31
+ Connection:
32
+ - keep-alive
33
+ X-End-User-Request-Id:
34
+ - 633758d6-3c18-430e-b68e-ac71a366502e
35
+ X-Shutterstock-Resource:
36
+ - "/v2/images/collections/:id"
37
+ X-Shutterstock-App-Version:
38
+ - apitwo-739
39
+ Cache-Control:
40
+ - no-cache
41
+ Etag:
42
+ - 480fd22d20afa1aea132cf5989173fba
43
+ X-End-User-User-Id:
44
+ - "<SSTK_USER_ID>"
45
+ X-End-User-Client-Id:
46
+ - "<SSTK_CLIENT_ID>"
47
+ body:
48
+ encoding: UTF-8
49
+ string: '{"id":"23712632","name":"Romantic","total_item_count":28,"items_updated_time":"2017-01-07T01:22:25-05:00","cover_item":{"id":"550104544"}}'
50
+ http_version:
51
+ recorded_at: Sat, 07 Jan 2017 06:28:24 GMT
52
+ - request:
53
+ method: get
54
+ uri: https://api.shutterstock.com/v2/images/collections/23712632/items
55
+ body:
56
+ encoding: US-ASCII
57
+ string: ''
58
+ headers:
59
+ User-Agent:
60
+ - Faraday v0.10.1
61
+ Authorization:
62
+ - Bearer <SSTK_ACCESS_TOKEN>
63
+ Accept-Encoding:
64
+ - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
65
+ Accept:
66
+ - "*/*"
67
+ response:
68
+ status:
69
+ code: 200
70
+ message: OK
71
+ headers:
72
+ Server:
73
+ - nginx
74
+ Date:
75
+ - Sat, 07 Jan 2017 06:28:25 GMT
76
+ Content-Type:
77
+ - application/json; charset=utf8
78
+ Content-Length:
79
+ - '1677'
80
+ Connection:
81
+ - keep-alive
82
+ X-End-User-Request-Id:
83
+ - 04e6a771-8192-41b5-b5f7-df9330aa7348
84
+ X-Shutterstock-Resource:
85
+ - "/v2/images/collections/:id/items"
86
+ X-Shutterstock-App-Version:
87
+ - apitwo-739
88
+ Cache-Control:
89
+ - no-cache
90
+ Etag:
91
+ - 7d260e6b03e35f4ca2a77e664d25c23b
92
+ X-End-User-User-Id:
93
+ - "<SSTK_USER_ID>"
94
+ X-End-User-Client-Id:
95
+ - "<SSTK_CLIENT_ID>"
96
+ body:
97
+ encoding: UTF-8
98
+ string: '{"data":[{"id":"550104544","added_time":"2017-01-07T00:57:25-05:00"},{"id":"140853793","added_time":"2014-01-16T20:12:17-05:00"},{"id":"114317080","added_time":"2014-01-16T19:20:25-05:00"},{"id":"143450500","added_time":"2014-01-16T19:08:46-05:00"},{"id":"164383604","added_time":"2014-01-16T19:08:26-05:00"},{"id":"92978701","added_time":"2014-01-15T21:12:20-05:00"},{"id":"88028233","added_time":"2014-01-15T20:54:09-05:00"},{"id":"167864858","added_time":"2014-01-15T20:52:29-05:00"},{"id":"167864792","added_time":"2014-01-15T20:52:10-05:00"},{"id":"162812291","added_time":"2014-01-15T20:51:38-05:00"},{"id":"94904584","added_time":"2014-01-15T20:50:42-05:00"},{"id":"55998103","added_time":"2014-01-15T20:50:15-05:00"},{"id":"124099501","added_time":"2014-01-15T20:50:05-05:00"},{"id":"94010314","added_time":"2014-01-15T20:49:44-05:00"},{"id":"168629831","added_time":"2014-01-15T20:49:33-05:00"},{"id":"93616249","added_time":"2014-01-15T20:49:15-05:00"},{"id":"66534100","added_time":"2014-01-15T20:49:02-05:00"},{"id":"70205677","added_time":"2014-01-15T20:48:43-05:00"},{"id":"70358221","added_time":"2014-01-15T20:48:34-05:00"},{"id":"119991742","added_time":"2014-01-15T20:47:46-05:00"},{"id":"168979739","added_time":"2014-01-15T20:47:21-05:00"},{"id":"128033804","added_time":"2014-01-15T20:46:58-05:00"},{"id":"126851528","added_time":"2014-01-15T20:46:29-05:00"},{"id":"90323443","added_time":"2014-01-15T20:45:05-05:00"},{"id":"80318872","added_time":"2014-01-15T20:44:54-05:00"},{"id":"69671698","added_time":"2014-01-15T20:44:42-05:00"},{"id":"70106635","added_time":"2014-01-15T20:30:55-05:00"},{"id":"121972876","added_time":"2014-01-15T20:30:41-05:00"}]}'
99
+ http_version:
100
+ recorded_at: Sat, 07 Jan 2017 06:28:25 GMT
101
+ recorded_with: VCR 3.0.3
@@ -0,0 +1,52 @@
1
+ ---
2
+ http_interactions:
3
+ - request:
4
+ method: get
5
+ uri: https://api.shutterstock.com/v2/images/collections/23712632
6
+ body:
7
+ encoding: US-ASCII
8
+ string: ''
9
+ headers:
10
+ User-Agent:
11
+ - Faraday v0.10.1
12
+ Authorization:
13
+ - Bearer <SSTK_ACCESS_TOKEN>
14
+ Accept-Encoding:
15
+ - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
16
+ Accept:
17
+ - "*/*"
18
+ response:
19
+ status:
20
+ code: 200
21
+ message: OK
22
+ headers:
23
+ Server:
24
+ - nginx
25
+ Date:
26
+ - Sat, 07 Jan 2017 06:28:22 GMT
27
+ Content-Type:
28
+ - application/json; charset=utf8
29
+ Content-Length:
30
+ - '138'
31
+ Connection:
32
+ - keep-alive
33
+ X-End-User-Request-Id:
34
+ - f5694af2-24e3-490a-a9db-a1783f4d8f2e
35
+ X-Shutterstock-Resource:
36
+ - "/v2/images/collections/:id"
37
+ X-Shutterstock-App-Version:
38
+ - apitwo-739
39
+ Cache-Control:
40
+ - no-cache
41
+ Etag:
42
+ - 480fd22d20afa1aea132cf5989173fba
43
+ X-End-User-User-Id:
44
+ - "<SSTK_USER_ID>"
45
+ X-End-User-Client-Id:
46
+ - "<SSTK_CLIENT_ID>"
47
+ body:
48
+ encoding: UTF-8
49
+ string: '{"id":"23712632","name":"Romantic","total_item_count":28,"items_updated_time":"2017-01-07T01:22:25-05:00","cover_item":{"id":"550104544"}}'
50
+ http_version:
51
+ recorded_at: Sat, 07 Jan 2017 06:28:23 GMT
52
+ recorded_with: VCR 3.0.3
@@ -0,0 +1,50 @@
1
+ ---
2
+ http_interactions:
3
+ - request:
4
+ method: get
5
+ uri: https://api.shutterstock.com/v2/images/collections/12345678
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: 404
21
+ message: Not Found
22
+ headers:
23
+ Server:
24
+ - nginx
25
+ Date:
26
+ - Sat, 07 Jan 2017 06:28:26 GMT
27
+ Content-Type:
28
+ - application/json; charset=utf8
29
+ Content-Length:
30
+ - '23'
31
+ Connection:
32
+ - keep-alive
33
+ X-End-User-Request-Id:
34
+ - 40de1055-48f7-4faa-b47d-011bf59d500a
35
+ X-Shutterstock-Resource:
36
+ - "/v2/images/collections/:id"
37
+ X-Shutterstock-App-Version:
38
+ - apitwo-739
39
+ Cache-Control:
40
+ - no-cache
41
+ X-End-User-User-Id:
42
+ - "<SSTK_USER_ID>"
43
+ X-End-User-Client-Id:
44
+ - "<SSTK_CLIENT_ID>"
45
+ body:
46
+ encoding: UTF-8
47
+ string: '{"message":"Not Found"}'
48
+ http_version:
49
+ recorded_at: Sat, 07 Jan 2017 06:28:26 GMT
50
+ recorded_with: VCR 3.0.3