Skip to content

Commit

Permalink
Update readme
Browse files Browse the repository at this point in the history
  • Loading branch information
sonufrienko committed Aug 18, 2018
1 parent 196a06e commit 799bd47
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 24 deletions.
32 changes: 15 additions & 17 deletions README.md
Expand Up @@ -11,7 +11,7 @@ Client include:
Install with:

```
npm install cezerin-client
npm i cezerin-client
```


Expand All @@ -29,7 +29,6 @@ const api = new CezerinClient({
## Usage

```javascript

// fetch all categories with await
const categoriesResponse = await api.productCategories.list();
const categories = categoriesResponse.json;
Expand Down Expand Up @@ -90,21 +89,20 @@ api.productCategories.create({ name: 'Shoes' })
* `api.productCategories.uploadImage(categoryId, formData)`
* `api.productCategories.deleteImage(id)`
* `api.products.list({`
- offset: 0,
- limit: 10,
- fields: 'id, name, price',
- category_id: '<id>',
- active: true,
- discontinued: false,
- search: '',
- on_sale: true,
- stock_status: 'available',
- price_from: 0,
- price_to: 100,
- sku: '',
- ids: '<id>,<id>,<id>',
- sort: 'regular_price,-stock_quantity'
})
- `offset: 0,`
- `limit: 10,`
- `fields: 'id, name, price',`
- `category_id: '<id>',`
- `active: true,`
- `discontinued: false,`
- `search: '',`
- `on_sale: true,`
- `stock_status: 'available',`
- `price_from: 0,`
- `price_to: 100,`
- `sku: '',`
- `ids: '<id>,<id>,<id>',`
- `sort: 'regular_price,-stock_quantity'})`
* `api.products.retrieve(id)`
* `api.products.create(data)`
* `api.products.update(id, data)`
Expand Down
5 changes: 0 additions & 5 deletions SUMMARY.md

This file was deleted.

2 changes: 0 additions & 2 deletions example.md

This file was deleted.

0 comments on commit 799bd47

Please sign in to comment.