Skip to content

Commit

Permalink
docs(products): get clients shopping cart
Browse files Browse the repository at this point in the history
Signed-off-by: Aleksandr_Zavadkin <[email protected]>
  • Loading branch information
gochicus committed Jun 19, 2024
1 parent fea1069 commit 576c91c
Showing 1 changed file with 18 additions and 1 deletion.
19 changes: 18 additions & 1 deletion source/includes/_products.md.erb
Original file line number Diff line number Diff line change
Expand Up @@ -486,7 +486,24 @@ curl 'https://<%= config[:api_endpoint] %>/products/cart?did=DEVICE_ID&shop_id=S
```

```jsx
// Not implemented yet.
cart() {
return new Promise((resolve, reject) => {
this.push((() => {
try {
request('products/cart', {
params: {
shop_id: this.shop_id,
},
}).then( res => {
resolve(res)
});
} catch (error) {
reject(error)
}
}));
})
}

```

### HTTP Request
Expand Down

0 comments on commit 576c91c

Please sign in to comment.