shanji 3 years ago
parent
commit
35f1ef99c5
  1. 17
      BBWY.Test/JDProductAPITest.cs
  2. 31
      BBWY.Test/Program.cs

17
BBWY.Test/JDProductAPITest.cs

@ -7,6 +7,7 @@ using System;
using System.Collections.Generic; using System.Collections.Generic;
using System.Linq; using System.Linq;
using System.Text; using System.Text;
using BBWY.Common.Extensions;
namespace BBWY.Test namespace BBWY.Test
{ {
@ -25,6 +26,22 @@ namespace BBWY.Test
Console.WriteLine(JsonConvert.SerializeObject(response)); Console.WriteLine(JsonConvert.SerializeObject(response));
} }
public void QueryOrderCount(IJdClient client, string token)
{
var req = new ActyQueryRegistrationDataCountRequest();
req.skuId = 10067430949728;
//req.orderId = ;
req.beginDate = "2022-12-22";
//req.endDate = "20221221";
var response = client.Execute(req, token, DateTime.Now.ToLocalTime());
Console.WriteLine(JsonConvert.SerializeObject(response));
}
public void QueryTouTu(IJdClient client, string token) public void QueryTouTu(IJdClient client, string token)
{ {
var req = new TransparentImageReadFindByWareIdAndColorIdRequest(); var req = new TransparentImageReadFindByWareIdAndColorIdRequest();

31
BBWY.Test/Program.cs

@ -21,9 +21,9 @@ namespace BBWY.Test
////2ace3023200c4ea9aa682bbf8bffee18jztm 布莱特玩具 ////2ace3023200c4ea9aa682bbf8bffee18jztm 布莱特玩具
//var token = "0e61c4a8ec3e4df4b5836e10884db9220yth"; //"b46065ef5b894f2297686e28d39cb37a2mdy";//""; //var token = "0e61c4a8ec3e4df4b5836e10884db9220yth"; //"b46065ef5b894f2297686e28d39cb37a2mdy";//"";
var appkey = "E1AA9247D5583A6D87449CE6AB290185"; var appkey = "120EA9EC65AB017567D78CC1139EEEA5";
var appSecret = "e479558ddd9e40f8929cfc00c6cbbc9c"; var appSecret = "8a42bc2301e8439b896e99f5475e0a9b";
var token = "832ed917f2ec4accb849e4760dbab2a5myzw"; var token = "2ace3023200c4ea9aa682bbf8bffee18jztm";
//var path = @"C:\Users\pengcong001\Desktop\含赠品SKU.txt"; //var path = @"C:\Users\pengcong001\Desktop\含赠品SKU.txt";
//var j = JToken.Parse(System.IO.File.ReadAllText(path, System.Text.Encoding.UTF8)); //var j = JToken.Parse(System.IO.File.ReadAllText(path, System.Text.Encoding.UTF8));
@ -39,30 +39,9 @@ namespace BBWY.Test
//10022515718131 需要进行赠品上架的SPU //10022515718131 需要进行赠品上架的SPU
IJdClient client = GetJdClient(appkey, appSecret); IJdClient client = GetJdClient(appkey, appSecret);
var test1 = new JDProductAPITest(); var test1 = new JDProductAPITest();
test1.QueryOrderCount(client, token);
//Console.WriteLine("-------------获取包含赠品的sku-------------"); //test1.ShangJiaTest(client, token);
//test1.GetSkus(client,token, "10023500913672");
//Console.WriteLine("-------------获取需要进行赠品SKU上架的本款产品的sku-------------");
//test1.GetSkus(client, token, "10022515718131");
//Console.WriteLine("-------------查询本款产品透图-------------");
//test1.QueryTouTu(client,token, "10022515718131");
//Console.WriteLine("-------------查询本款产品细节图-------------");
//test1.FindImageByColor(client, token, "10022515718131");
//var testService = new JDServiceAPITest();
//testService.GetServiceDetail(client, token);
//var ddTest = new DingDingAPITest();
//ddTest.Send();
test1.ShangJiaTest(client, token);
//test1.修改属性别名(client, token); //test1.修改属性别名(client, token);
//test1.QueryTouTu(client,token); //test1.QueryTouTu(client,token);
Console.ReadKey(); Console.ReadKey();

Loading…
Cancel
Save