Skip to main content

fetchWishlist

Constants

fetchWishlistPromise.<Object>

Fetch the wishlist.

addToWishlistPromise.<Object>

Add a product to the wishlist.

deleteFromWishlistPromise.<Object>

Delete a product from the wishlist.

fetchWishlist ⇒ Promise.<Object>

Fetch the wishlist.

Kind: global constant
Returns: Promise.<Object> - The response data.
Throws:

  • Error If the response status is not 200.
ParamTypeDescription
tokenstringThe authorization token.

addToWishlist ⇒ Promise.<Object>

Add a product to the wishlist.

Kind: global constant
Returns: Promise.<Object> - The response data.
Throws:

  • Error If the response status is not 200.
ParamTypeDescription
productstringThe id of the product.
tokenstringThe authorization token.

deleteFromWishlist ⇒ Promise.<Object>

Delete a product from the wishlist.

Kind: global constant
Returns: Promise.<Object> - The response data.
Throws:

  • Error If the response status is not 200.
ParamTypeDescription
productstringThe id of the product.
tokenstringThe authorization token.