using BBWY.Common.Models; using BBWY.JDSDK.Request; using BBWY.Server.Model.Db; using BBWY.Server.Model.Dto; using Jd.Api; using Jd.Api.Request; using Jd.Api.Response; using Newtonsoft.Json; using Newtonsoft.Json.Linq; using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Text.RegularExpressions; using System.Threading.Tasks; using io = System.IO; 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 = "940b1e24d84843ffbbee3833984a6f0bwyjf"; var jdClient = GetJdClient(appKey, appSecret); PopAfsSoaRefundapplyQueryPageListRequest req = new PopAfsSoaRefundapplyQueryPageListRequest(); //req.ids = "1428310918"; req.orderId = "249207996365"; req.checkTimeStart = DateTime.Now.AddDays(-7).ToString("yyyy-MM-dd HH:mm:ss"); req.checkTimeEnd = DateTime.Now.ToString("yyyy-MM-dd HH:mm:ss"); req.pageIndex =1; req.pageSize = 50; PopAfsSoaRefundapplyQueryPageListResponse response = jdClient.Execute(req, token, DateTime.Now.ToLocalTime()); Console.WriteLine(JsonConvert.SerializeObject(response)); Console.ReadKey(); } } }