淘宝客获取商品数据示例


error_reporting(0);

header("Content-type:text/html;charset=utf-8");

date_default_timezone_set('Etc/GMT-8');

include "TopSdk.php";

date_default_timezone_set('Asia/Shanghai');

$c = new TopClient;

$c->appkey = 'xxxxxxxx';

$c->secretKey = 'yyyyyyyyyyyyy';

$req = new TbkItemGetRequest;

$req->setFields("num_iid,title,pict_url,small_images,reserve_price,zk_final_price,user_type,provcity,item_url,seller_id,volume,nick");

$req->setQ("女装");

$resp = $c->execute($req);

var_dump($resp);

?>

你可能感兴趣的:(淘宝客获取商品数据示例)