如何从点击银行API的产品? [英] How to get a product from click bank API?

查看:136
本文介绍了如何从点击银行API的产品?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在点击银行​​API.In该API的工作,我想显示的产品列表中点击银行的API,API.I上午初学者。

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.

例如

$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;

如何解决it.Please建议我尽快。

How to solve it.Please advice me ASAP.

推荐答案

尝试

curl_setopt($ch, CURLOPT_URL,"https://api.clickbank.com/rest/1.3/products/list");

这篇关于如何从点击银行API的产品?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆