We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent fea1069 commit 576c91cCopy full SHA for 576c91c
source/includes/_products.md.erb
@@ -486,7 +486,24 @@ curl 'https://<%= config[:api_endpoint] %>/products/cart?did=DEVICE_ID&shop_id=S
486
```
487
488
```jsx
489
-// Not implemented yet.
+ cart() {
490
+ return new Promise((resolve, reject) => {
491
+ this.push((() => {
492
+ try {
493
+ request('products/cart', {
494
+ params: {
495
+ shop_id: this.shop_id,
496
+ },
497
+ }).then( res => {
498
+ resolve(res)
499
+ });
500
+ } catch (error) {
501
+ reject(error)
502
+ }
503
+ }));
504
+ })
505
506
+
507
508
509
### HTTP Request
0 commit comments