forked from FelixPrime/AliExpress
-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.php
26 lines (18 loc) · 867 Bytes
/
index.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
<?php
require_once 'aliexpress/AliExpress.php';
$ali = new AliExpress();
//get category list
$catList = $ali->getListCategory();
//get product list by categoryID
//sort: commissionRateDown
//filter: commissionRateFrom from 0.5
$productListByCategory = $ali->getListProduct(100002612, array('sort'=>'commissionRateDown', 'commissionRateFrom'=>0.5));
//get product list by Keyword
$productListByKeyword = $ali->getListProduct('shoes');
//get product list by CategoryID and Keyword
//filter: commissionRateFrom from 0.5
$productList = $ali->getListProduct(322, array('keywords'=>'man shoes', 'commissionRateFrom'=>0.5));
//get product by ID
$product = $ali->getProduct(32213749383);
//get promotion link(s)
$link = $ali->getPromotionLinks('<your_tracking_ID>', "http://www.aliexpress.com/item//32213749383.html,http://www.aliexpress.com/item//1786034050.html");