CJ网络服务问题

发布于 2024-10-20 02:26:14 字数 908 浏览 2 评论 0原文

我正在使用 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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

孤单情人 2024-10-27 02:26:14

看来您的请求与他们的文档示例相符。我唯一能想到的是,您确定您已接受该计划,而不仅仅是“等待”接受吗?
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

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文