我正在使用cj web服务来搜索使用php soap的产品。
使用advertiserid 2288710(TicketNetwork).Already创建了与此广告商的关系。当使用这段php代码时,我得到了完全的result=0
$developerKey = "my developer id here";
$websiteId = "my web site id here";
$ini = ini_set("soap.wsdl_cache_enabled","0");
try {
$client = new SoapClient("https://product.api.cj.com/wsdl/version2/productSearchServiceV2.wsdl", array('trace'=> true));
$results = $client->search(array("developerKey" => $developerKey,
"websiteId" => $websiteId,
"advertiserIds" => '2288710',
"keywords" => 'lady gaga',
"serviceableArea" => 'US',
"sortBy" => 'price',
"sortOrder" => 'asc',
"maxResults" => 10));
// The entire response structure will be printed in the next line
echo "<pre>";
print_r($results);假设我使用的是"advertiserIds“=> '',它将返回整个结果,但我只需要来自那个广告商的结果。我也尝试了'joined‘关键字,因为我也没有得到结果。
请任何人帮我弄清楚到底是怎么回事。
谢谢
发布于 2011-03-02 23:10:20
看起来您的请求与他们的文档示例相匹配。我能想到的唯一一件事是,你确定你被这个项目录取了吗,而不仅仅是“等待”录取?http://help.cj.com/en/web_services/web_services.htm#product_catalog_search_service_rest.htm
https://stackoverflow.com/questions/5168445
复制相似问题