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.
26 lines
710 B
26 lines
710 B
3 years ago
|
using Jd.Api;
|
||
|
using Jd.Api.Request;
|
||
|
using Newtonsoft.Json;
|
||
|
using System;
|
||
|
using System.Collections.Generic;
|
||
|
using System.Text;
|
||
|
|
||
|
namespace BBWY.Test
|
||
|
{
|
||
3 years ago
|
public class JDProductAPITest
|
||
3 years ago
|
{
|
||
|
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));
|
||
|
}
|
||
|
}
|
||
|
}
|