iterable-api-client 0.3.0 → 0.3.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- checksums.yaml.gz.sig +0 -0
- data.tar.gz.sig +0 -0
- data/README.md +12 -12
- data/lib/iterable/catalog_items.rb +2 -2
- metadata +2 -2
- metadata.gz.sig +0 -0
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 0bab6fa0d7ec2605be61ecfd26792a640dca6ce7e02fc35b0dba6be18e3953f5
|
4
|
+
data.tar.gz: ba119fcdcf14faf716a8508c01256012a46d753c27dbc4ee10c7e9c1a131ecbd
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 8fa2ea2af4567a60948c59b6e2270a38d368774b1f81d543dbe50e4bdab2f1ee605c917cd09e6259917b3b95b79306312cf4ff507c6aa7336416e686e96b6b4a
|
7
|
+
data.tar.gz: b96fda871132331ed69d0414b1e93dad0fb6383d82854ed35a33026de29d850191c2c413ed635c491b9976929329fe4b0c2768504d336af5a872ade62dc380fc
|
checksums.yaml.gz.sig
CHANGED
Binary file
|
data.tar.gz.sig
CHANGED
Binary file
|
data/README.md
CHANGED
@@ -261,8 +261,8 @@ Endpoint: `POST /catalogs/{catalogName}`
|
|
261
261
|
|
262
262
|
```ruby
|
263
263
|
catalog = 'my-catalog'
|
264
|
-
|
265
|
-
response =
|
264
|
+
catalogs = Iterable::Catalogs.new(catalog)
|
265
|
+
response = catalogs.create
|
266
266
|
```
|
267
267
|
|
268
268
|
#### Catalogs Delete
|
@@ -271,19 +271,19 @@ Endpoint: `DELETE /catalogs/{catalogName}`
|
|
271
271
|
|
272
272
|
```ruby
|
273
273
|
catalog = 'my-catalog'
|
274
|
-
|
275
|
-
response =
|
274
|
+
catalogs = Iterable::Catalogs.new(catalog)
|
275
|
+
response = catalogs.delete
|
276
276
|
```
|
277
277
|
|
278
|
-
#### Catalogs
|
278
|
+
#### Catalogs Names
|
279
279
|
|
280
|
-
Endpoint: `
|
280
|
+
Endpoint: `GET /catalogs/{catalogName}`
|
281
281
|
|
282
282
|
```ruby
|
283
283
|
catalog = 'my-catalog'
|
284
|
-
|
284
|
+
catalogs = Iterable::Catalogs.new(catalog)
|
285
285
|
params = { page: 1, pageSize: 20 }
|
286
|
-
response =
|
286
|
+
response = catalogs.names(params)
|
287
287
|
```
|
288
288
|
|
289
289
|
### Catalog Field Mappings
|
@@ -296,8 +296,8 @@ Endpoint: `GET /catalogs/{catalogName}/fieldMappings`
|
|
296
296
|
|
297
297
|
```ruby
|
298
298
|
catalog = 'my-catalog'
|
299
|
-
|
300
|
-
response =
|
299
|
+
catalog_field_mappings = Iterable::CatalogFieldMappings.new(catalog)
|
300
|
+
response = catalog_field_mappings.field_mappings
|
301
301
|
```
|
302
302
|
|
303
303
|
#### Catalog Field Mappings Update
|
@@ -307,8 +307,8 @@ Endpoint: `PUT /catalogs/{catalogName}/fieldMappings`
|
|
307
307
|
```ruby
|
308
308
|
catalog = 'my-catalog'
|
309
309
|
field_mappings = [{fieldName: 'test-field', fieldType: 'string'}]
|
310
|
-
|
311
|
-
|
310
|
+
catalog_field_mappings = Iterable::CatalogFieldMappings.new(catalog)
|
311
|
+
catalog_field_mappings.update_field_mappings(field_mappings)
|
312
312
|
```
|
313
313
|
|
314
314
|
### Catalog Items
|
@@ -45,11 +45,11 @@ module Iterable
|
|
45
45
|
#
|
46
46
|
# Create a catalog item
|
47
47
|
#
|
48
|
-
# @param item_attrs [Hash] Item attributes to save or
|
48
|
+
# @param item_attrs [Hash] Item attributes to save or replace with
|
49
49
|
#
|
50
50
|
# @return [Iterable::Response] A response object
|
51
51
|
def create(item_attrs = {})
|
52
|
-
body = {
|
52
|
+
body = { value: item_attrs }
|
53
53
|
Iterable.request(conf, base_path).put(body)
|
54
54
|
end
|
55
55
|
alias replace create
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: iterable-api-client
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.3.
|
4
|
+
version: 0.3.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Chavez
|
@@ -34,7 +34,7 @@ cert_chain:
|
|
34
34
|
6jerLBXBmcX53OXAzqUVvXdltwSkV6s8QU+HoX9UjEZJc0C8PZImFJK8luKAJyan
|
35
35
|
j5z5DqHqyQohXShIy6UFpAs4Jka/L7Uo7/iCYIeaE/0rRFLS
|
36
36
|
-----END CERTIFICATE-----
|
37
|
-
date:
|
37
|
+
date: 2020-05-11 00:00:00.000000000 Z
|
38
38
|
dependencies:
|
39
39
|
- !ruby/object:Gem::Dependency
|
40
40
|
name: multi_json
|
metadata.gz.sig
CHANGED
Binary file
|