|
@ -26,6 +26,23 @@ namespace BBWY.Test |
|
|
Console.WriteLine(JsonConvert.SerializeObject(response)); |
|
|
Console.WriteLine(JsonConvert.SerializeObject(response)); |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
public void GetSpu(IJdClient client, string token, string spu) |
|
|
|
|
|
{ |
|
|
|
|
|
var req_productList = new WareReadSearchWare4ValidRequest() |
|
|
|
|
|
{ |
|
|
|
|
|
orderField = "modified", |
|
|
|
|
|
orderType = "desc", |
|
|
|
|
|
pageSize = 50, |
|
|
|
|
|
pageNo = 1, |
|
|
|
|
|
field = "created,logo,brandName" |
|
|
|
|
|
}; |
|
|
|
|
|
|
|
|
|
|
|
req_productList.wareId = spu; |
|
|
|
|
|
|
|
|
|
|
|
var res = client.Execute(req_productList, token, DateTime.Now.ToLocalTime()); |
|
|
|
|
|
Console.WriteLine(JsonConvert.SerializeObject(res)); |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
public void QueryOrderCount(IJdClient client, string token) |
|
|
public void QueryOrderCount(IJdClient client, string token) |
|
|
{ |
|
|
{ |
|
|
var req = new ActyQueryRegistrationDataCountRequest(); |
|
|
var req = new ActyQueryRegistrationDataCountRequest(); |
|
|