fetchWishlist
Constants
- fetchWishlist ⇒ 
Promise.<Object> Fetch the wishlist.
- addToWishlist ⇒ 
Promise.<Object> Add a product to the wishlist.
- deleteFromWishlist ⇒ 
Promise.<Object> Delete a product from the wishlist.
fetchWishlist ⇒ Promise.<Object>
Fetch the wishlist.
Kind: global constant
Returns: Promise.<Object> - The response data.
Throws:
ErrorIf the response status is not 200.
| Param | Type | Description | 
|---|---|---|
| token | string | The authorization token. | 
addToWishlist ⇒ Promise.<Object>
Add a product to the wishlist.
Kind: global constant
Returns: Promise.<Object> - The response data.
Throws:
ErrorIf the response status is not 200.
| Param | Type | Description | 
|---|---|---|
| product | string | The id of the product. | 
| token | string | The authorization token. | 
deleteFromWishlist ⇒ Promise.<Object>
Delete a product from the wishlist.
Kind: global constant
Returns: Promise.<Object> - The response data.
Throws:
ErrorIf the response status is not 200.
| Param | Type | Description | 
|---|---|---|
| product | string | The id of the product. | 
| token | string | The authorization token. |