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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: b9fb91e7903cb57cc4b94cf4e09e55d30363b54814e3b4a4772bb0afcc9e0688
4
- data.tar.gz: b485aefb061f8378d1dc26b2df501468102a4d03e5b38a0f765f215053489f61
3
+ metadata.gz: 0bab6fa0d7ec2605be61ecfd26792a640dca6ce7e02fc35b0dba6be18e3953f5
4
+ data.tar.gz: ba119fcdcf14faf716a8508c01256012a46d753c27dbc4ee10c7e9c1a131ecbd
5
5
  SHA512:
6
- metadata.gz: 56c2eec26670adaaec5954136b1b458ea0e28680ed56e4872b4eb5bcdd9788082a80067d1fb7b5a0706254349ffda1bb83e08bd4218b2144c2bf841e98659177
7
- data.tar.gz: 267c86d3a69163e1ebc3a4a9005ad999c86e1fd906fe38fd0b2e43cc11ce5e5a47bf6332abc0d37d849e8b72d03933fb2b281ab084e365fee4fe35ef245cb4ed
6
+ metadata.gz: 8fa2ea2af4567a60948c59b6e2270a38d368774b1f81d543dbe50e4bdab2f1ee605c917cd09e6259917b3b95b79306312cf4ff507c6aa7336416e686e96b6b4a
7
+ data.tar.gz: b96fda871132331ed69d0414b1e93dad0fb6383d82854ed35a33026de29d850191c2c413ed635c491b9976929329fe4b0c2768504d336af5a872ade62dc380fc
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
- catalog_items = Iterable::Catalogs.new(catalog)
265
- response = catalog_items.create
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
- catalog_items = Iterable::Catalogs.new(catalog)
275
- response = catalog_items.delete
274
+ catalogs = Iterable::Catalogs.new(catalog)
275
+ response = catalogs.delete
276
276
  ```
277
277
 
278
- #### Catalogs Delete
278
+ #### Catalogs Names
279
279
 
280
- Endpoint: `DELETE /catalogs/{catalogName}`
280
+ Endpoint: `GET /catalogs/{catalogName}`
281
281
 
282
282
  ```ruby
283
283
  catalog = 'my-catalog'
284
- catalog_items = Iterable::Catalogs.new(catalog)
284
+ catalogs = Iterable::Catalogs.new(catalog)
285
285
  params = { page: 1, pageSize: 20 }
286
- response = catalog_items.names(params)
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
- catalog_items = Iterable::CatalogFieldMappings.new(catalog)
300
- response = catalog_items.field_mappings
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
- catalog = Iterable::CatalogFieldMappings.new(catalog)
311
- catalog.update_field_mappings(field_mappings)
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 update with
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 = { update: item_attrs }
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.0
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: 2018-07-17 00:00:00.000000000 Z
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