准备做淘宝客相关的生成工具。
private void button1_Click(object sender, EventArgs e) { ITopClient client = new DefaultTopClient("http://gw.api.taobao.com/router/rest", "12109937", "9fa6141132a49eb66484ab34fac2aca1"); TaobaokeItemsGetRequest req = new TaobaokeItemsGetRequest(); req.Fields = "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.Nick = "huolili19822003"; req.Keyword = "舒友阁"; TaobaokeItemsGetResponse response = client.Execute(req); if (response.IsError == true) { } }
其中Nick就是淘宝的账户,根据这个生成PID,佣金的得住。
http://api.taobao.com/apitools/apiTools.htm?catId=38&apiName=taobao.taobaoke.items.get
具体的可以到这里来测试。也包括了生成各种各样代码。
相应的SDK下载:(需要登录后,才能下载:http://open.taobao.com/index.htm)
http://api.taobao.com/myresources/mySdkDownload.do?id=2&&fileName=L1tVSaXA0dXXXXXXXX
有了以上这些内容,开发淘宝客相关程序,易如反掌。
===================================================================
共享资料下载:点击下载
共享资料下载:点击下载