有维易接口客户问:聚划算接口怎么用?
taobao.ju.items.search( 聚划算商品搜索接口 )
接口地址: http://open.taobao.com/api.htm?docId=28762&docType=2
这个接口其实很简单,就是搜索聚划算的产品:
如下例,在聚划算中搜索“女装”产品。
$c->appkey = '1212345656'; $c->secretKey = '....'; $req = new JuItemsSearchRequest; $param_top_item_query = new TopItemQuery; $param_top_item_query->current_page="1"; $param_top_item_query->page_size="20"; $param_top_item_query->pid="mm_11111111_222222_33333"; $param_top_item_query->postage="true"; $param_top_item_query->status="2"; #$param_top_item_query->taobao_category_id="1000"; $param_top_item_query->word="女装"; $req->setParamTopItemQuery(json_encode($param_top_item_query)); $resp = $c->execute($req);
聚划算产品搜索接口返回值如下: