Skip to content

Commit

Permalink
docs(readme): add examples
Browse files Browse the repository at this point in the history
  • Loading branch information
azabroflovski committed Jun 10, 2022
1 parent b8da85c commit 4b9f49c
Showing 1 changed file with 22 additions and 0 deletions.
22 changes: 22 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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 })
}
</script>
</body>
```

## 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

Expand Down

0 comments on commit 4b9f49c

Please sign in to comment.