步步为盈
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.

49 lines
1.6 KiB

using Jd.Api;
3 years ago
using Jd.Api.Request;
3 years ago
using Jd.Api.Response;
3 years ago
using Newtonsoft.Json;
using Newtonsoft.Json.Linq;
using System;
namespace BBWY.Test
{
internal class Program
{
3 years ago
private static IJdClient GetJdClient(string appKey, string appSecret)
{
return new DefaultJdClient("https://api.jd.com/routerjson", appKey, appSecret);
}
static void Main(string[] args)
{
3 years ago
var appKey = "120EA9EC65AB017567D78CC1139EEEA5";
var appSecret = "866a9877f5f24b03b537483b4defe75d";
3 years ago
var token = "2ace3023200c4ea9aa682bbf8bffee18jztm";
3 years ago
var jdClient = GetJdClient(appKey, appSecret);
//var req = new AscQueryListRequest();
//req.buId = "10598776";
//req.operatePin = "开发测试";
//req.operateNick = "开发测试";
//req.pageNumber = "1";
//req.pageSize ="50";
//req.serviceId = 1472302469;
//AscQueryListResponse response1 = jdClient.Execute(req, token, DateTime.Now.ToLocalTime());
3 years ago
//Console.WriteLine(JsonConvert.SerializeObject(response1));
3 years ago
//250134673037
3 years ago
AscServiceAndRefundViewRequest req = new AscServiceAndRefundViewRequest();
3 years ago
req.orderId = 250134673037;
req.pageNumber = 1.ToString();
req.pageSize = 10.ToString();
var response = jdClient.Execute(req, token, DateTime.Now.ToLocalTime());
Console.WriteLine(JsonConvert.SerializeObject(response));
Console.ReadKey();
}
}
}