日期:2014-05-18 浏览次数:21034 次
using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Drawing; using System.Linq; using System.Text; using System.Windows.Forms; using Top.Api; using Top.Api.Domain; using Top.Api.Parser; using Top.Api.Request; using Top.Api.Response; using Top.Api.Util; namespace xhtAuto { public partial class Form1 : Form { public Form1() { InitializeComponent(); } private void Form1_Load(object sender, EventArgs e) { ITopClient client = new DefaultTopClient("http://gw.api.taobao.com/router/rest", "12304909", "4dcffaa6b6c368b444bbc39ef1332559"); UserGetRequest req = new UserGetRequest(); req.Fields = "user_id,uid,nick,sex,buyer_credit,seller_credit,location,created,last_visit,birthday,type,status,alipay_no,alipay_account,alipay_account,email,consumer_protection,alipay_bind"; req.Nick = "红头发疯疯"; UserGetResponse user = client.Execute(req); MessageBox.Show( user.User.UserId.ToString()); } } }
------解决方案--------------------
http://www.cnblogs.com/wuhuacong/archive/2010/03/26/1697005.html