hubrise_client 2.0.4 → 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: 58aebdf2e9ba790c1303eacf547aaaf5ccdf92f360a63195e6a6e9db1e200b42
4
- data.tar.gz: 3776550d4ef358b832c1e4f02094da4ef352b8fddb5ce2d174ae092c6f6ce504
3
+ metadata.gz: e149862ebfe2050a880b7a49c11b33e1847e8a648f9b4bc5672c71fdb42bfe7e
4
+ data.tar.gz: e6b13130f6fb60d439cef86049978f0b39ae7aa1115b089515610f73bda3c9c7
5
5
  SHA512:
6
- metadata.gz: 38787fe30bacac00daae63823a52d69f10347380276afb7b8e9c87386560aed7d97300c66a9abe29dcc03c3ccb3de43f11b9cfca14b3c2d432fd8426ab8ffe4c
7
- data.tar.gz: c8304210fb9fcb47b574d131b690f3e3ac11e7be4ce3633e37ef64aa320a3fcf3a1615066789558aa331bd18b5e61c54651d2e2ecbb6fd0fc681e9e6fa777934
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" }`
@@ -126,8 +126,9 @@ module HubriseClient
126
126
  call_api("/accounts/#{account_id}/catalogs")
127
127
  end
128
128
 
129
- def get_catalog(catalog_id = nil)
130
- call_api("/catalogs/#{catalog_id_fallback(catalog_id)}")
129
+ def get_catalog(catalog_id = nil, hide_data: false)
130
+ query_params = hide_data ? { hide_data: true } : {}
131
+ call_api("/catalogs/#{catalog_id_fallback(catalog_id)}", :get, data: query_params)
131
132
  end
132
133
 
133
134
  def create_account_catalog(params)
@@ -155,6 +156,10 @@ module HubriseClient
155
156
  json: false)
156
157
  end
157
158
 
159
+ def get_images(catalog_id = nil)
160
+ call_api("/catalogs/#{catalog_id_fallback(catalog_id)}/images")
161
+ end
162
+
158
163
  def get_image(image_id, catalog_id = nil)
159
164
  call_api("/catalogs/#{catalog_id_fallback(catalog_id)}/images/#{image_id}")
160
165
  end
@@ -1,4 +1,4 @@
1
1
  # frozen_string_literal: true
2
2
  module HubriseClient
3
- VERSION = "2.0.4"
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.4
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-04-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