Hello All,
I am writing an REST API in magento to retrieve the wishlist data. I have written the below code, I got an "Invalid auth/bad request (got a 500, expected HTTP/1.1 20X or a redirect)" error message. Please suggest what is the issue.
PHP Code:
$customer = Mage::getSingleton('customer/session')->getCustomer();
$wishList = Mage::getSingleton(‘wishlist/wishlist’)->loadByCustomer($customer);
$wishListItemCollection = $wishList->getItemCollection();
if (count($wishListItemCollection)) {
$productId = array();
foreach ($wishListItemCollection as $item) {
$product = $item->getProduct();
$productId[] = $product->getId();
}
}
return $wishListItemCollection;
Thanks
View more threads in the same category:
- Transforming Karachi's Skylines with Fiber Shades
- Unveiling the Power of E911 Solutions Enhancing Caller Identification
- List of Top 10 Interior Designers in Pakistan
- buy registered drivers license online(legitcleandocs.com)passport,IELTS certific
- Malaysia Visit Visa from Dubai
- Buy Passport,Driver License,Age & ID Card,(Whatsapp:.......: +1 (551) 239-2904) Visas
- 슬롯사이트 추천 - 인터넷슬롯링크 2024 best 온라인슬롯
- Buy Passport,Driver License,Age & ID Card,(Whatsapp:.......: +1 (551) 239-2904) Visas
- Buy Passport,Driver License,Age & ID Card,Visas and Undetected Counterfeit Money. Ema
- Buy Passport,Driver License,Age & ID Card,(Whatsapp:.......: +1 (551) 239-2904) Visas
Bookmarks