首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >CJ webservice问题

CJ webservice问题
EN

Stack Overflow用户
提问于 2011-03-02 21:58:42
回答 1查看 530关注 0票数 0

我正在使用cj web服务来搜索使用php soap的产品。

使用advertiserid 2288710(TicketNetwork).Already创建了与此广告商的关系。当使用这段php代码时,我得到了完全的result=0

代码语言:javascript
复制
$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‘关键字,因为我也没有得到结果。

请任何人帮我弄清楚到底是怎么回事。

谢谢

EN

回答 1

Stack Overflow用户

发布于 2011-03-02 23:10:20

看起来您的请求与他们的文档示例相匹配。我能想到的唯一一件事是,你确定你被这个项目录取了吗,而不仅仅是“等待”录取?http://help.cj.com/en/web_services/web_services.htm#product_catalog_search_service_rest.htm

票数 0
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/5168445

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档