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;
ThanksView more threads in the same category:
- Pässe online kaufen (https://highqualitydocs247.com) legalen amerikanischen Pass kauf
- buy passport’s, drivers licenses, id card’s, residence permit’s https://highqualitydo
- purchase passports online(https://highqualitydocs247.com)buy legal American passport,
- Buy real registered drivers license(https://www.highqualitydocs247.com)visa, passport
- Avoid These Mistakes And Follow These Steps While Relocating.
- What are the steps for Spectrum Webmail Server Settings?
- Google DEC 3 Broad Core Update
- Relatives Who Have Shifted Before Can Also Help You To Know Shifting Measures
- buy real registered passports, drivers license(https://highqualitydocs247.com)id card
- Why is Charter email not working?
Bookmarks