AliExpress API

32880064572
Protective tempered glass for iphone 6 7 6 6s 8 plus 11 pro XS max XR glass iphone 7 8 x screen protector glass on iphone 7 6S 8
originalPrice: US .20
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

32918429590
USB Programming Cable/Cord CD Driver for Baofeng UV-5R / BF-888S handheld transceiver
originalPrice: US .97
salePrice: US .08
discount: 30%
Link
32918436021
9D protective glass for iPhone 6 6S 7 8 plus X glass on iphone 7 6 8 X R XS MAX screen protector iPhone 7 6 screen protection XR
originalPrice: US .30
salePrice: US .61
discount: 30%
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

32911336066
Phone Screen Protector for Huawei P20 Lite P10 Plus 9H HD Film Glass on Huawei P8 P9 Lite 2017 Tempered Glass for P20 Pro P10
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

Pin It on Pinterest