From 4b9f49c12f6ea8fef00f882e99f674188d72eeed Mon Sep 17 00:00:00 2001 From: azabroflovski Date: Fri, 10 Jun 2022 21:38:30 +0500 Subject: [PATCH] docs(readme): add examples --- README.md | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) diff --git a/README.md b/README.md index 56f2f88..367fce8 100644 --- a/README.md +++ b/README.md @@ -45,10 +45,32 @@ Example async function doSomething() { const response = await MXIKSearch('search query', { limit: 10 }) } + + async function doAnother() { + const response = await MXIKSearchByCode('06109001001000000', { limit: 10 }) + } ``` +## Examples + +### Search items + +```js +async function doSomething() { + const response = await MXIKSearch('search query', { limit: 10 }) +} +``` + + +### Get items by mxik code + +```js +async function doSomething() { + const response = await MXIKSearchByCode('06109001001000000', { limit: 10 }) +} +``` ## API