Skip to content

Commit

Permalink
readme
Browse files Browse the repository at this point in the history
  • Loading branch information
cigolpl committed Nov 1, 2020
1 parent 074083b commit b655014
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -27,10 +27,12 @@ const ItemsAPI = require('itemsapi')

(async () => {
const client = new ItemsAPI({
host: 'http://127.0.0.1:3000'
host: 'http://127.0.0.1:3000',
// if needed
api_key: 'keykey135'
})

const index = client.getIndex();
const index = client.getIndex(name);

let response = await index.updateConfig(config);
response = await index.addItems(items);
Expand Down Expand Up @@ -62,7 +64,7 @@ const ItemsAPI = require('itemsapi')

- Get index object:

`client.getIndex()`
`client.getIndex(name)`

### Items

Expand Down

0 comments on commit b655014

Please sign in to comment.