Get WishList Hash

GetWishListHash()

Fetches wishlist hash if the user has a wishlist already created and existing. Or creates a new one if needed. Please refer to the example.
You can call this method once the window.WishListHero_SDK object is initialized.

Request Example

// You can gets the current wishlist hash if it exists
window.WishListHero_SDK.GetWishListHash(); 

// OR the call below to create the Wishlist if not existing already.
await window.WishListHero_SDK.GetWishListHash(true); 
                
Response Example

//Response Example
'KA8ZXypPBJiLMexKQnkw'