adds api constructor function
adds wishlist constructor function