Skip to main content

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:

  • 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.