以下是引用狐狸爸爸在2011-9-5 9:28:00的发言:
我在foxtable的命令窗口,测试下面的代码,得到的结果是79:
Dim client2 As Top.Api.ITopClient
client2= New Top.Api.DefaultTopClient("http://gw.api.taobao.com/router/rest", "12331621", "176b9b899ddd386d825897408268be04")
Dim request As Top.Api.Request.TradesSoldGetRequest = New Top.Api.Request.TradesSoldGetRequest
request.Fields= "seller_nick, buyer_nick, title, type, created, tid, seller_rate, buyer_rate, status, payment, discount_fee, adjust_fee, post_fee, total_fee, pay_time, end_time, modified, consign_time, buyer_obtain_point_fee, point_fee, real_point_fee, received_payment, commission_fee, pic_path, num_iid, num, price, cod_fee, cod_status, shipping_type, receiver_name, receiver_state, receiver_city, receiver_district, receiver_address, receiver_zip, receiver_mobile, receiver_phone"
request.StartCreated = DateTime.Parse("2011-08-29 00:00:00")
request.EndCreated = DateTime.Parse("2011-08-30 00:00:00")
request.Status="TRADE_FINISHED"
request.PageSize=100
request.PageNo=1
Dim response As Top.Api.Response.TradesSoldGetResponse= client2.Execute(request)
Dim trades As List(Of Top.Api.Domain.Trade) = response.Trades
messagebox.show(trades.count)
output.show(trades.Orders.count)
这个值传回看看。