正文开始 ~~~
//使用淘宝开放平台API vendor('alitop.TopSdk'); $tb_top = new \TopClient; $tb_top->appkey = ''; $tb_top->secretKey = ""; $req = new \TbkSpreadGetRequest; $requests = new \TbkSpreadRequest; $requests->url="https://s.click.taobao.com/t?e=m%3D2%26s%3DRkbaIdrjouUcQipKwQzePOeEDrYVVa64r4ll3HtqqoxyINtkUhsv0H7Ak5837Hf%2BD1T1xKbHNhTALRbvvnk7H4hPzOjj0x%2B2MJRJP0QTw%2FQhD7J1%2FNQbpj8L3uChckdlQ46khh5diznz0UHHSyKWkToEPZ4O14zORAlvJcYTUyqiDwxIlGHYbCdXQhnIYf%2BlcSpj5qSCmbA%3D&scm=null&pvid=100_33.69.100.193_74127_3711639035897015539&app_pvid=59590_33.51.217.51_881_1639035897010&ptl=floorId:2836;originalFloorId:2836;pvid:100_33.69.100.193_74127_3711639035897015539;app_pvid:59590_33.51.217.51_881_1639035897010&xId=4lFWV85K8mAfPdXOfmHmWZYbLoZgzQhTyycQ9QK4TOTse4ugGaxzLrosK2MCr9st811El8hwIqzl05gX5zTtXMAmScqh7qEmVS3k70SjYxc5&union_lens=lensId%3AMAPI%401639035897%402133d933_0904_17d9e270543_c8fe%4001"; $req->setRequests(json_encode($requests)); $resp = $tb_top->execute($req); $resp = json_decode(json_encode($resp), 1); if(!isset($resp['results'])) { print_r($resp); exit; } $result = $resp['results']; $url = $result['tbk_spread']['content']; // print_r($url); // exit; $req = new \TbkTpwdCreateRequest; $req->setUrl($url); $req->setText("noMeaningValue"); $req->setLogo("noMeaningValue"); $req->setExt("noMeaningValue"); $req->setUserId("noMeaningValue"); $resp = $tb_top->execute($req); print_r($resp); exit; ~~~ 注意以下这些api都要申请获得权限才能使用。 【 淘宝客【公用】长链转短链 淘宝客【公用】淘口令生成 】 正文结束 |
阿里妈妈的adzoneid的意思 | 没有上一篇 |