[insert_php]
$ch = curl_init(“https://epndeals.api.ebay.com/epndeals/v1?marketplace=us&campaignid=5337595923&toolid=100034&commissionable=true&rotationId=711-53200-19255-0&type=DAILY&format=json”);
curl_setopt($ch, CURLOPT_POST, FALSE);
curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, FALSE);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, TRUE);
$result = curl_exec($ch);
$arry = json_decode($result);
$status_v = curl_getinfo($ch, CURLINFO_HTTP_CODE);

echo ‘

‘;
foreach ($arry->items as $vitem)
{
$link = $vitem->dealUrl;
$title = mb_strimwidth($vitem->title, 0, 75, “…”);
$imgURL = $vitem->imageUrl;
$price = $vitem->price;
$wasprice = str_replace(‘$’, ‘$’, $vitem->originPrice);
$text = ‘*’.$title.’* for ‘.$price.’
was: ‘.$vitem->originPrice.’ ‘. $link;
$wlink = ‘https://api.whatsapp.com/send?text=’.rawurlencode($text);

echo ‘

‘;
echo ““.$title.”“;
echo ‘'.$title.'‘;
echo ““.$price.”“. ‘was ‘.$wasprice;
echo “ “. whatsapp.”“;
echo ‘

‘;
}
echo ‘

‘;
[/insert_php]