简体   繁体   中英

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.

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). I ran into a similar problem, but in the past I found there is a way to download the entire marketplace in .zip format.

https://support.clickbank.com/hc/en-us/articles/220376547-Marketplace-Feed

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM