6 changed files with 70 additions and 23 deletions
@ -0,0 +1,30 @@ |
|||
using Jd.Api; |
|||
using Jd.Api.Request; |
|||
using Newtonsoft.Json; |
|||
using System; |
|||
using System.Collections.Generic; |
|||
using System.Text; |
|||
|
|||
namespace BBWY.Test |
|||
{ |
|||
public class JDServiceAPITest |
|||
{ |
|||
public void GetServiceDetail(IJdClient client, string token) |
|||
{ |
|||
|
|||
var req = new AscQueryViewRequest(); |
|||
|
|||
req.buId = "10598776"; |
|||
req.operatePin = "布莱特玩具"; |
|||
req.operateNick = "布莱特玩具"; |
|||
req.serviceId = 1597963593; |
|||
req.orderId = 256149123505; |
|||
|
|||
//req.extJsonStr = "abc";
|
|||
|
|||
|
|||
var response = client.Execute(req, token, DateTime.Now.ToLocalTime()); |
|||
Console.WriteLine(JsonConvert.SerializeObject(response)); |
|||
} |
|||
} |
|||
} |
@ -0,0 +1,25 @@ |
|||
using Jd.Api; |
|||
using Jd.Api.Request; |
|||
using Newtonsoft.Json; |
|||
using System; |
|||
using System.Collections.Generic; |
|||
using System.Text; |
|||
|
|||
namespace BBWY.Test |
|||
{ |
|||
public class ProductAPITest |
|||
{ |
|||
public void GetSkus(IJdClient client, string token, string spu) |
|||
{ |
|||
var req_skuList = new SkuReadSearchSkuListRequest() |
|||
{ |
|||
pageSize = 50,//50
|
|||
field = "logo,saleAttrs,status,created,barCode,categoryId,multiCateProps" |
|||
}; |
|||
|
|||
req_skuList.wareId = spu; |
|||
var response = client.Execute(req_skuList, token, DateTime.Now.ToLocalTime()); |
|||
Console.WriteLine(JsonConvert.SerializeObject(response)); |
|||
} |
|||
} |
|||
} |
Loading…
Reference in new issue