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;
using System.Threading;

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 = "8a42bc2301e8439b896e99f5475e0a9b";
            var token = "2ace3023200c4ea9aa682bbf8bffee18jztm"; //"b46065ef5b894f2297686e28d39cb37a2mdy";//"2ace3023200c4ea9aa682bbf8bffee18jztm";

            IJdClient client = GetJdClient(appkey, appSecret);
            var test1 = new JDBaoBiaoAPITest();
            test1.Test1(client, token);

            Console.WriteLine();
            Console.WriteLine();

            //test1.Test2(client, token);

            Console.ReadKey();
        }
    }
}