CJ网络服务问题
我正在使用 cj Web 服务使用 php Soap 搜索产品。
使用advertiserid 2288710(TicketNetwork)。已与该广告商建立关系。 我得到的总结果=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);
使用此 php 代码时,如果假设我使用“advertiserIds”=>, ”,它将返回整个结果,但我只需要来自该广告商的结果。我还尝试使用“joined”关键字,但我也没有得到任何结果。
请任何人帮我弄清楚发生了什么事。
谢谢
i'm using cj web service for searching products using php soap.
using advertiserid 2288710(TicketNetwork).Already created relationship with this advertiser. While using this php code i'm getting total 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);
if suppose i'm using "advertiserIds" => '', it will return whole result, but i need only result from that advertiser. I also tried with 'joined' keyword, for that also i'm getting no result.
please anyone help me to figure out whats going on.
thanks
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
看来您的请求与他们的文档示例相符。我唯一能想到的是,您确定您已接受该计划,而不仅仅是“等待”接受吗?
http://help.cj.com/en/web_services/web_services.htm #product_catalog_search_service_rest.htm
It looks like your request matches their documentation example. The only thing I can think is are you sure your accepted into the program, and not just "pending" acceptance?
http://help.cj.com/en/web_services/web_services.htm#product_catalog_search_service_rest.htm