using BBWY.Common.Http; using BBWY.Server.Model.Db; using com.alibaba.openapi.client; using com.alibaba.openapi.client.policy; using Jd.ACES; using Jd.Api; using Jd.Api.Request; using Jd.Api.Response; using Microsoft.Extensions.DependencyInjection; using Newtonsoft.Json; using Newtonsoft.Json.Linq; using System; using System.Linq; namespace BBWY.Test { internal class Program { private static IJdClient GetJdClient(string appKey, string appSecret) { return new DefaultJdClient("https://api.jd.com/routerjson", appKey, appSecret); } static void Main(string[] args) { var appkey = "120EA9EC65AB017567D78CC1139EEEA5"; var appSecret = "866a9877f5f24b03b537483b4defe75d"; var token = "2ace3023200c4ea9aa682bbf8bffee18jztm"; var jdClient = GetJdClient(appkey, appSecret); var req = new DspPlatformFinanceOpenapiQuerycostdetailsRequest(); //req.accessPin = "abc"; //req.authType = "abc"; //req.operatorPin = "abc"; req.beginDate = "2022-09-21"; req.endDate = "2022-09-27"; req.pageNo = 1; req.pageSize = 100; req.moneyType = 1; //req.subPin = "abc"; DspPlatformFinanceOpenapiQuerycostdetailsResponse response = jdClient.Execute(req, token, DateTime.Now.ToLocalTime()); Console.WriteLine(JsonConvert.SerializeObject(response)); Console.ReadKey(); } } }