AliExpress API

4000660505977
Contact cleaner Falcon 530 spray 550ml
originalPrice: 3,62 €
salePrice: 3,62 €
discount: 0%
Link
4001150398060
Mobile Phone Strong Compatibility Touch Screen Stylus Ballpoint Metal Handwriting Pen Touch Screen Pen Suitable For Mobile phone
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

4000528570383
Baofeng NA-771 Antenna Gain NA771 Walkie Talkie Antenna SMA-F 39cm UHF VHF Signal Extend Amplifier for UV-5R BF-888S UV-82
originalPrice: US .52
salePrice: US .71
discount: 32%
Link
4000995122739
USB Programming Cable/Cord CD Driver for Baofeng UV-5R / BF-888S handheld transceiver
originalPrice: US .36
salePrice: US .09
discount: 20%
Link
4001324966798
SIM card Rostelecom (body 2) unlimited Internet in Russia 220 rubles/month.
originalPrice: 1 000,00 руб.
salePrice: 1 000,00 руб.
discount: 0%
Link

Pin It on Pinterest