hubrise_client 2.0.6 → 2.0.7

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 9ec084acadf8cc23be2422bcf89bbcc26322efff9d33dfa74a2534829e93610e
4
- data.tar.gz: 14b9bce9ce0467ac3eadde32f3a74e5490cee27a0a074b06fb72a75a1a5c6779
3
+ metadata.gz: e149862ebfe2050a880b7a49c11b33e1847e8a648f9b4bc5672c71fdb42bfe7e
4
+ data.tar.gz: e6b13130f6fb60d439cef86049978f0b39ae7aa1115b089515610f73bda3c9c7
5
5
  SHA512:
6
- metadata.gz: 9e5a24a35da42f212dc95b9fe945d2ef21660dc800611c623ee88063fdb752b86170849594c4e26e8a1a81fa26a6f2cc05b3bb31fd7f8db572c48693d2882086
7
- data.tar.gz: e4df31dc16a7889e6144c76dcc731ded45c809c37488f29af48641f8d6819a86c2ae287411149c863c723310bc3d554f9b43d57328a7e22ceefe40817a139ae0
6
+ metadata.gz: d805fbe63e3e8ceddafe10acfa873692fce9f92741e4c73273ef81fc72919971cab6fdf917f8cbd30467f3022d0f9330b1f0544ce17b77419c47cfac70ad9401
7
+ data.tar.gz: f97f9f2029334cca28460597f95470aa7aa0e010971c8cdaeb1b61f1d24e06621851923b2476aa6254e3a5d625136d0873cc6b0072f56ad4aad6bac52fffcadf
data/V1_ENDPOINTS.md CHANGED
@@ -296,6 +296,19 @@ client = HubriseClient::V1.new(CLIENT_ID, CLIENT_SECRET, client_attrs)
296
296
  # [POST] /catalogs/zrk6b/images with { headers: { "Content-Type": "image/png" }, body: "bin1" }
297
297
  ```
298
298
 
299
+ ### GET_IMAGES
300
+
301
+ - Initialized with `client_attrs = { access_token: "access_token1" }`
302
+ ```ruby
303
+ client.get_images("wy3xz")
304
+ # [GET] /catalogs/wy3xz/images with { headers: { "X-Access-Token": "access_token1" }}
305
+ ```
306
+ - Initialized with `client_attrs = { access_token: "access_token1", catalog_id: "zrk6b" }`
307
+ ```ruby
308
+ client.get_images
309
+ # [GET] /catalogs/zrk6b/images with { headers: { "X-Access-Token": "access_token1" }}
310
+ ```
311
+
299
312
  ### GET_IMAGE
300
313
 
301
314
  - Initialized with `client_attrs = { access_token: "access_token1" }`
@@ -156,6 +156,10 @@ module HubriseClient
156
156
  json: false)
157
157
  end
158
158
 
159
+ def get_images(catalog_id = nil)
160
+ call_api("/catalogs/#{catalog_id_fallback(catalog_id)}/images")
161
+ end
162
+
159
163
  def get_image(image_id, catalog_id = nil)
160
164
  call_api("/catalogs/#{catalog_id_fallback(catalog_id)}/images/#{image_id}")
161
165
  end
@@ -1,4 +1,4 @@
1
1
  # frozen_string_literal: true
2
2
  module HubriseClient
3
- VERSION = "2.0.6"
3
+ VERSION = "2.0.7"
4
4
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: hubrise_client
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.0.6
4
+ version: 2.0.7
5
5
  platform: ruby
6
6
  authors:
7
7
  - Antoine Monnier
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2022-07-21 00:00:00.000000000 Z
12
+ date: 2022-07-29 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: rspec