I'm having trouble integrating with the Lomadee platform API.
When I get Json containing the partner products I want to display, many images are not available!
Here is the page I'm developing: Lomadee
Unfortunately, I can not remove the images that do not appear via code because the API provides a link that does not have an image. Does anyone know how to solve this?
Follow the code:
$requestURL = 'http://sandbox-api.lomadee.com/v2/{API-KEY}/product/_search?sourceId={SOURCE-ID}&size=9'.$q .'&page=' . $page;
$json = file_get_contents( $requestURL );
$product = json_decode( $json, true );
$paginas = $product['pagination']['totalPage'];
foreach ($product['products'] as $productItem)
{ echo $productItem['thumbnail']['url'] ; }