根据淘宝客产品ID获取拥金等相关信息

 //此函数可以根据淘宝客产品ID获取拥金等相关信息
include "TopSdk.php";
include "top/TopClient.php";
include "top/request/TaobaokeItemsConvertRequest.php";
//实例化TopClient类
$client = new TopClient;
$client->appkey = "xxxxx";
$client->secretKey = "xxxxxx";

$req = new TaobaokeItemsConvertRequest;
$req->setFields("num_iid,click_url,iid,price,volume,commission,commission_rate,commission_num,commission_volume");
//$req->setNick("hz0799");
//$req->setOuterCode("bbs");
$req->setNumIids("6817511075");
$req->setPid(xxxxxxx);
$resp = $client->execute($req);
echo '<pre>';print_r($resp);
exit;
300*300
 文章首页关于迷茫时代关于我写意人生
版权所有:迷茫时代 All rights reserved   
执行时间:0.00493 秒