03 2010 档案

摘要:前面提到怎样获取网站的临时会话id和如何获取网站的验证码,下面代码比较简单,直接利用得到的验证码登录网站 如果要实现完全不用人工参与直接登录带验证码的网站,需要验证码识别技术,以后有机会献上代码!代码 阅读全文
posted @ 2010-03-30 16:29 A light heart lives long 阅读(1002) 评论(0) 推荐(0) 编辑
摘要:代码 阅读全文
posted @ 2010-03-30 16:19 A light heart lives long 阅读(4451) 评论(1) 推荐(0) 编辑
摘要:public static string GetSessionId(string URL) { WebRequest wrt; wrt = WebRequest.Create(URL); WebResponse wrp; wrp = wrt.GetResponse(); string html = new StreamReader(wrp.GetResponseStream(), Encoding... 阅读全文
posted @ 2010-03-30 16:01 A light heart lives long 阅读(1800) 评论(0) 推荐(0) 编辑
摘要:try { TopXmlRestClient client = new TopXmlRestClient("http://gw.api.taobao.com/router/rest", "appkey", "appsecret"); ItemAddRequest req = new ItemAddRequest(); req.ApproveStatus = "onsale"; req.Enlist... 阅读全文
posted @ 2010-03-24 11:47 A light heart lives long 阅读(2398) 评论(0) 推荐(0) 编辑
摘要:using System;using System.Collections.Generic;using Microsoft.VisualStudio.TestTools.UnitTesting;using Taobao.Top.Api.Request;using Taobao.Top.Api.Parser;using Taobao.Top.Api.Domain;namespace Taobao.T... 阅读全文
posted @ 2010-03-24 11:23 A light heart lives long 阅读(3537) 评论(0) 推荐(0) 编辑
摘要:不多说,上代码: 一.登录淘宝,获取session Response.Redirect("http://container.open.taobao.com/container?appkey=这个是你注册应用时得到的addkey"); 二.调用接口返回Xml格式数据//这个是正式环境 TopXmlRestClient client = new TopXmlRestClient("http://gw.... 阅读全文
posted @ 2010-03-19 15:55 A light heart lives long 阅读(2921) 评论(2) 推荐(0) 编辑
摘要:淘宝open平台 C#示例下载下来以后,一执行,果然好用,我兴奋不已,但是我需要真实环境的数据,示例给出的是测试环境的数据,这就需要你申请一个应用了一.应用申请申请步骤大家就看淘宝上给出的提示吧:申请成为开发者:http://wiki.open.taobao.com/index.php/申请一个新应用申请一个新应用:http://wiki.open.taobao.com/index.php/申请成... 阅读全文
posted @ 2010-03-19 15:38 A light heart lives long 阅读(5060) 评论(2) 推荐(0) 编辑

点击右上角即可分享
微信分享提示