We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 074083b commit b655014Copy full SHA for b655014
README.md
@@ -27,10 +27,12 @@ const ItemsAPI = require('itemsapi')
27
28
(async () => {
29
const client = new ItemsAPI({
30
- host: 'http://127.0.0.1:3000'
+ host: 'http://127.0.0.1:3000',
31
+ // if needed
32
+ api_key: 'keykey135'
33
})
34
- const index = client.getIndex();
35
+ const index = client.getIndex(name);
36
37
let response = await index.updateConfig(config);
38
response = await index.addItems(items);
@@ -62,7 +64,7 @@ const ItemsAPI = require('itemsapi')
62
64
63
65
- Get index object:
66
-`client.getIndex()`
67
+`client.getIndex(name)`
68
69
### Items
70
0 commit comments