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 +4 -4
- data/V1_ENDPOINTS.md +13 -0
- data/lib/hubrise_client/v1.rb +4 -0
- data/lib/hubrise_client/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: e149862ebfe2050a880b7a49c11b33e1847e8a648f9b4bc5672c71fdb42bfe7e
|
4
|
+
data.tar.gz: e6b13130f6fb60d439cef86049978f0b39ae7aa1115b089515610f73bda3c9c7
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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" }`
|
data/lib/hubrise_client/v1.rb
CHANGED
@@ -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
|
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
|
+
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-
|
12
|
+
date: 2022-07-29 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: rspec
|