[英]How to get a product from click bank API?
I am working in click bank API.In that API, I want to display product list for that API.I am beginner in click bank API. 我正在使用Click Bank API。在该API中,我要显示该API的产品列表。我是Click Bank API的初学者。
For example 例如
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL,"https://api.clickbank.com/rest/1.3/products/");
curl_setopt($ch, CURLOPT_HEADER, true);
curl_setopt($ch, CURLOPT_HTTPGET, true);
curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, false);
curl_setopt($ch, CURLOPT_HTTPHEADER, array("Accept: application/xml", "Authorization:DEV-DEVAPIKEY:API-CLERKAPIKEY"));
$result = curl_exec($ch);
curl_close($ch);
print $result;
How to solve it.Please advice me ASAP. 如何解决。请尽快给我建议。
尝试
curl_setopt($ch, CURLOPT_URL,"https://api.clickbank.com/rest/1.3/products/list");
I believe the products API is only for your products as a seller, and i don't think it will give you all the products on the marketplace (if that is what you are after). 我相信产品API仅适用于您作为卖方的产品,而且我认为它不会为您提供市场上的所有产品(如果您所追求的就是这种产品)。 I ran into a similar problem, but in the past I found there is a way to download the entire marketplace in .zip format. 我遇到了类似的问题,但过去我发现有一种方法可以下载.zip格式的整个市场。
https://support.clickbank.com/hc/en-us/articles/220376547-Marketplace-Feed https://support.clickbank.com/hc/en-us/articles/220376547-Marketplace-Feed
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.