You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
25 lines
710 B
25 lines
710 B
using Jd.Api;
|
|
using Jd.Api.Request;
|
|
using Newtonsoft.Json;
|
|
using System;
|
|
using System.Collections.Generic;
|
|
using System.Text;
|
|
|
|
namespace BBWY.Test
|
|
{
|
|
public class JDProductAPITest
|
|
{
|
|
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));
|
|
}
|
|
}
|
|
}
|
|
|