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.
38 lines
1.5 KiB
38 lines
1.5 KiB
using BBWY.Common.Models;
|
|
using BBWY.JDSDK.Request;
|
|
using BBWY.Server.Model.Dto;
|
|
using Jd.Api;
|
|
using Jd.Api.Request;
|
|
using Newtonsoft.Json;
|
|
using Newtonsoft.Json.Linq;
|
|
using System;
|
|
using System.Collections.Generic;
|
|
using System.Linq;
|
|
using System.Text;
|
|
using System.Text.RegularExpressions;
|
|
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 jdClient = GetJdClient("120EA9EC65AB017567D78CC1139EEEA5", "866a9877f5f24b03b537483b4defe75d");
|
|
var response = jdClient.Execute(new FceAlphaGetVenderCarrierRequest(), "940b1e24d84843ffbbee3833984a6f0bwyjf", DateTime.Now.ToLocalTime());
|
|
if (response.IsError)
|
|
throw new BusinessException($"{response.RealErrorMsg}");
|
|
//if (response.Json == null)
|
|
// response.Json = JObject.Parse(response.Body);
|
|
|
|
Console.Write(JsonConvert.SerializeObject(response));
|
|
//orderCount = sopResponse.Json["jingdong_pop_order_enSearch_responce"]["searchorderinfo_result"].Value<int>("orderTotal");
|
|
//orderJtokens.AddRange((JArray)sopResponse.Json["jingdong_pop_order_enSearch_responce"]["searchorderinfo_result"]["orderInfoList"]);
|
|
Console.ReadKey();
|
|
}
|
|
}
|
|
}
|
|
|