AliExpress API

32918429590
USB Programming Cable/Cord CD Driver for Baofeng UV-5R / BF-888S handheld transceiver
originalPrice: US .97
salePrice: US .08
discount: 30%
Link
4000070342499
2-in-1 Camera Glass Redmi Note 7 9D Tempered Glass Screen Protector Xiaomi Redmi Note 7 Glass Film redmi note 7 screen protector
originalPrice: US .31
salePrice: US [insert_php]
$api=91644;
$fields=’productTitle,productUrl,imageUrl,productId,originalPrice,salePrice,discount’;
$cat=509;
$trID=’mivzakon’;
$li=’http://gw.api.alibaba.com/openapi/param2/2/portals.open/api.listPromotionProduct/’.$api.’?fields=’.$fields.’&categoryId=’.$cat.’&pageSize=5′;

$data = json_decode(file_get_contents($li));
//print_r($data->result->products);

//exit;
echo ‘

‘;
foreach($data->result->products as $k=>$d) {
echo ‘

‘;
echo $d->productId.’
‘;
echo $d->productTitle.’
‘;
echo ‘originalPrice: ‘.$d->originalPrice.’
‘;
echo ‘salePrice: ‘.$d->salePrice.’
‘;
echo ‘discount: ‘.$d->discount.’
‘;

$li=’http://gw.api.alibaba.com/openapi/param2/2/portals.open/api.getPromotionLinks/’.$api.’?fields=’.$fields.’&trackingId=’.$trID.’&urls=’.$d->productUrl.”;
$dataLink = json_decode(file_get_contents($li));
//print_r($dataLink->result->promotionUrls);
foreach($dataLink->result->promotionUrls as $kL=>$dL) {
echo ‘Link

32438261791
High Gain Retevis RHD-771 SMA-F Walkie Talkie Antenna VHF UHF Dual Band For Kenwood For Baofeng UV-5R UV-82 Bf-888S H-777 Radio
originalPrice: US .20
salePrice: US .57
discount: 15%
Link
33040409904
9D Curved Edge Tempered Glass On The For iPhone 7 8 Plus X XS Full Cover Screen Protective Glass For iPhone 7 8 6 6S Plus Film
originalPrice: US .18
salePrice: US .00
discount: 15%
Link
32857840376
ALLOET 11 in 1/8 in 1 Mobile Phones Opening Screen Pry Tools Repair Kit Mini Screwdrivers telephone Tools Set For iPhone Samsung
originalPrice: US [insert_php]
$api=91644;
$fields=’productTitle,productUrl,imageUrl,productId,originalPrice,salePrice,discount’;
$cat=509;
$trID=’mivzakon’;
$li=’http://gw.api.alibaba.com/openapi/param2/2/portals.open/api.listPromotionProduct/’.$api.’?fields=’.$fields.’&categoryId=’.$cat.’&pageSize=5′;

$data = json_decode(file_get_contents($li));
//print_r($data->result->products);

//exit;
echo ‘

‘;
foreach($data->result->products as $k=>$d) {
echo ‘

‘;
echo $d->productId.’
‘;
echo $d->productTitle.’
‘;
echo ‘originalPrice: ‘.$d->originalPrice.’
‘;
echo ‘salePrice: ‘.$d->salePrice.’
‘;
echo ‘discount: ‘.$d->discount.’
‘;

$li=’http://gw.api.alibaba.com/openapi/param2/2/portals.open/api.getPromotionLinks/’.$api.’?fields=’.$fields.’&trackingId=’.$trID.’&urls=’.$d->productUrl.”;
$dataLink = json_decode(file_get_contents($li));
//print_r($dataLink->result->promotionUrls);
foreach($dataLink->result->promotionUrls as $kL=>$dL) {
echo ‘‘;
foreach($data->result->products as $k=>$d) {
echo ‘

‘;
echo $d->productId.’
‘;
echo $d->productTitle.’
‘;
echo ‘originalPrice: ‘.$d->originalPrice.’
‘;
echo ‘salePrice: ‘.$d->salePrice.’
‘;
echo ‘discount: ‘.$d->discount.’
‘;

$li=’http://gw.api.alibaba.com/openapi/param2/2/portals.open/api.getPromotionLinks/’.$api.’?fields=’.$fields.’&trackingId=’.$trID.’&urls=’.$d->productUrl.”;
$dataLink = json_decode(file_get_contents($li));
//print_r($dataLink->result->promotionUrls);
foreach($dataLink->result->promotionUrls as $kL=>$dL) {
echo ‘Link

Pin It on Pinterest