当前位置:Gxlcms > PHP教程 > 淘宝客click链接转换不了,有没有人做过淘宝客的研究好几天了还是不行大家来帮帮我可送Q币或话费

淘宝客click链接转换不了,有没有人做过淘宝客的研究好几天了还是不行大家来帮帮我可送Q币或话费

时间:2021-07-01 10:21:17 帮助过:22人阅读

默认FTP:服务器:IP: 198.105.221.105 端口:21

用户名: hlwebcam 密码: dxO5212hCi

大家不要改我的密码
------------------------------------------------------------
demo1.php文件
访问地址 http://www.hlwebcam.com/demo1.php
$app_key = '21434106';$c->$secret='290598d1ed95a9eb5db95224a5e642b0';$req = new TaobaokeWidgetItemsConvertRequest;$req->setFields("num_iid,click_url,iid,commission,commission_rate,commission_num,commission_volume");$req->setOuterCode("bbs");$req->setNumIids("7642584420");$resp = $c->execute($req);print_r($resp);$click_url = $result['taobaokeItem']['click_url'];echo $req->$geturl;?>



最后网页上回复的内容是

Warning: Cannot modify header information - headers already sent by (output started at /home/hlwebcam/public_html/demo1.php:3) in /home/hlwebcam/public_html/demo1.php on line 9

Warning: Cannot modify header information - headers already sent by (output started at /home/hlwebcam/public_html/demo1.php:3) in /home/hlwebcam/public_html/demo1.php on line 10
3CA7E84E183F3C37F329FA55B4AF9281
请求失败,请重试,code:53
SimpleXMLElement Object ( [code] => 28 [msg] => Missing app key )
Fatal error: Cannot access empty property in /home/hlwebcam/public_html/demo1.php on line 39



-------------------------------------------------------
根本就不能获取clickurl地址,有谁获得过地址的 ,帮帮我


回复讨论(解决方案)

如果还不清楚的,可联系我的Q 87102146 或miaozilong@gmail.com

我的网站淘宝已经通过认证,可以做返利网站了

你把那行script移到下面去,看看

你把那行script移到下面去,看看 帅哥 script在html中位置无所谓的

把代码精简一下

app_key=$app_key;/*填写appkey */$c->secret=$secret;/*填入Appsecret'*/$req = new TaobaokeItemsGetRequest;$req->setFields("num_iid,title,nick,pic_url,price,click_url,commission,commission_rate,commission_num,commission_volume,shop_click_url,seller_credit_score,item_location,volume");$req->setKeyword("泳衣");echo $req->getClick_url();$resp = $c->execute($req);print_r($resp);?>



这样还是不行 打印出来的结果是SimpleXMLElement Object ( [code] => 28 [msg] => Missing app key )
真窝火!!!

include "TopSdk.php";
include("top/TopClient.php");
include("top/request/ItemGetRequest.php");

为何要载入三遍

其次 一楼的那段必须在JSSDK组件实现吧?

人气教程排行