.net-demo 是由快递100官方提供的c# sdk,方便调试使用。
.net-demo 集成了实时查询、订阅推送、智能判断、云打印相关、电子面单相关、短信等接口。
- 提供了快递100接口请求参数实体类、返回实体类。
- 提供测试类调试。
.net-demo使用和测试可参考test。
# git clone https://github.com/kuaidi100-api/.net-demo.git
class Program
{
//快递100的基础账号信息,可以在这里获取 (需要填写完整才能测试)
//https://api.kuaidi100.com/manager/v2/myinfo/enterprise
private static KuaiDi100Config config = new KuaiDi100Config()
{
key = "",
customer = "",
secret = "",
userid = "",
siid = "",
tid = "",
};
static void Main(string[] args)
{
// testQueryTrack();
// testSubscribe();
// testQueryTrackWithMap();
// testSubscribeWithMap();
// testPrintImg();
// testPrintHtml();
// testPrintCloud();
// testSendSms();
// testAutoNum();
// testBOrderQuery();
// testBOrder();
// testBOrderCancel();
// testInternationalShipment();
// testCloudPrintCustom();
// testCloudAttachment();
// testCloudDevStatus();
// testCloudPrintCommand();
// testCloudPrintOld();
// testCloudPrintParcelsBill();
// testThirdPlatformStoreAuth();
// testThirdPlatformCommitTask();
// testThirdPlatformUploadNum();
// testSameCityStoreAuth();
// testSameCityOrder();
// testSameCityQuery();
// testSameCityCancel();
// testThirdPlatformAuth();
// testThirdPlatBranchInfo();
// testLabelCancel();
// testOcr();
// testBOrderOfficialQueryDetail();
// testLabelOrder();
// testLabelRepeatPrint();
// testLabelCustomPrint();
// testCOrder();
// testCOrderCancel();
// testCOrderQueryPrice();
//testExpressReachable();
//testBsamecityPrice();
//testBsamecityOrder();
//testBsamecityPrecancel();
//testBsamecityAddfee();
//testDeliveryTime();
//testBackOrder();
//testInterceptOrder();
//testAddressResolution();
//testIntAddressResolution();
}
/// <summary>
/// 轨迹物流查询
/// </summary>
static void testQueryTrack()
{
var queryTrackParam = new QueryTrackParam()
{
com = "zhongtong",
num = "7537****693697",
phone = "15****98256"
};
QueryTrack.query(new QueryTrackReq()
{
customer = config.customer,
sign = SignUtils.GetMD5(queryTrackParam.ToString() + config.key + config.customer),
param = queryTrackParam
});
}
/// <summary>
/// 轨迹订阅
/// </summary>
static void testSubscribe()
{
var subscribeParameters = new SubscribeParameters()
{
phone = "159*****256",
resultv2 = "1",
callbackurl = "http://www.xxxx.com"
};
var subscribeParam = new SubscribeParam()
{
company = "zhongtong",
number = "7537****693697",
key = config.key,
parameters = subscribeParameters
};
Subscribe.subscribe(new SubscribeReq()
{
schema = ApiInfoConstant.SUBSCRIBE_SCHEMA,
param = subscribeParam,
});
}
/// <summary>
/// 地图轨迹物流查询
/// </summary>
static void testQueryTrackWithMap()
{
var queryTrackParam = new QueryTrackParam()
{
com = "zhongtong",
num = "7537****693697",
phone = "159****8256",
from = "北京海淀区",
to = "深圳南山区"
};
QueryTrackWithMap.query(new QueryTrackReq()
{
customer = config.customer,
sign = SignUtils.GetMD5(queryTrackParam.ToString() + config.key + config.customer),
param = queryTrackParam
});
}
/// <summary>
/// 地图轨迹订阅
/// </summary>
static void testSubscribeWithMap()
{
var subscribeParameters = new SubscribeParameters()
{
phone = "159****8256",
resultv2 = "1",
callbackurl = "http://www.xxxx.com"
};
var subscribeParam = new SubscribeParam()
{
company = "zhongtong",
number = "7537****3697",
key = config.key,
parameters = subscribeParameters,
from = "北京海淀区",
to = "深圳南山区"
};
SubscribeWithMap.subscribe(new SubscribeReq()
{
schema = ApiInfoConstant.SUBSCRIBE_SCHEMA,
param = subscribeParam,
});
}
/// <summary>
/// 电子面单V2打印接口
/// </summary>
static void testLabelOrder()
{
var orderParam = new OrderParam()
{
kuaidicom = "zhaijisong",
sendMan = new ManInfo()
{
name = "张三",
mobile = "15****98256",
printAddr = "西藏日喀则市定日县珠穆朗玛峰",
},
recMan = new ManInfo()
{
name = "李四",
mobile = "15****98256",
printAddr = "西藏日喀则市定日县珠穆朗玛峰",
},
count = 1,
siid = config.siid,
tempId = "60f6c17c7c223700131d8bc3",
printType = "CLOUD"
};
var timestamp = DateUtils.GetTimestamp();
LabelV2.order(new BaseReq<OrderParam>()
{
method = ApiInfoConstant.ORDER,
key = config.key,
t = timestamp,
sign = SignUtils.GetMD5(orderParam.ToString() + timestamp + config.key + config.secret),
param = orderParam,
});
}
/// <summary>
/// 电子面单V2复打接口
/// </summary>
static void testLabelRepeatPrint()
{
var orderParam = new RepeatPrintParam()
{
taskId = "638687EEB4744396A40F693541114E44"
};
var timestamp = DateUtils.GetTimestamp();
LabelV2.repeatPrint(new BaseReq<RepeatPrintParam>()
{
method = ApiInfoConstant.CLOUD_PRINT_OLD_METHOD,
key = config.key,
t = timestamp,
sign = SignUtils.GetMD5(orderParam.ToString() + timestamp + config.key + config.secret),
param = orderParam,
});
}
/// <summary>
/// 自定义接口
/// </summary>
static void testLabelCustomPrint()
{
var customParam = new Dictionary<string, object>();
customParam.Add( "qrcode","888888888");
var orderParam = new CustomPrintParam()
{
siid = config.siid,
tempId = "41b9d19ee56b45b5a23d7b6ace4f9029",
printType = "IMAGE",
customParam = customParam
};
var timestamp = DateUtils.GetTimestamp();
LabelV2.customPrint(new BaseReq<CustomPrintParam>()
{
method = ApiInfoConstant.CUSTOM,
key = config.key,
t = timestamp,
sign = SignUtils.GetMD5(orderParam.ToString() + timestamp + config.key + config.secret),
param = orderParam,
});
}
/// <summary>
/// 快递预估时效查询接口
/// </summary>
static void testDeliveryTime()
{
var deliveryTimeParam = new DeliveryTimeParam()
{
kuaidicom = "jd",
from = "广东省深圳市南山区",
to = "广东省深圳市南山区",
orderTime = "2023-10-12 10:00:00",
expType = "特惠送"
};
var timestamp = DateUtils.GetTimestamp();
LabelV2.deliveryTime(new BaseReq<DeliveryTimeParam>()
{
method = ApiInfoConstant.TIME,
key = config.key,
t = timestamp,
sign = SignUtils.GetMD5(deliveryTimeParam.ToString() + timestamp + config.key + config.secret),
param = deliveryTimeParam,
});
}
/// <summary>
/// 运单附件查询接口
/// </summary>
static void testBackOrder()
{
var backOrderParam = new BackOrderParam()
{
kuaidicom = "shunfeng",
kuaidinum = "SF1234567",
imgType = 1,
partnerId = "12345678",
partnerKey = "12345678",
phone = "13088888888"
};
var timestamp = DateUtils.GetTimestamp();
LabelV2.backOrder(new BaseReq<BackOrderParam>()
{
method = ApiInfoConstant.BACKORDER,
key = config.key,
t = timestamp,
sign = SignUtils.GetMD5(backOrderParam.ToString() + timestamp + config.key + config.secret),
param = backOrderParam,
});
}
/// <summary>
/// 订单拦截接口
/// </summary>
static void testInterceptOrder()
{
var interceptOrderParam = new InterceptOrderParam()
{
callbackUrl="http=//api.kuaidi100.com/test/callback",
interceptPayType="THIRDPARTY",
interceptType="MODIFY_ADDR",
kuaidicom="jtexpress",
kuaidinum="JT12345678",
orderId="123456789",
orderRole="1",
partnerId="12345678",
partnerKey="12345678",
reason="测试拦截",
salt="kuaidi1000api@salt",
recManInfo = new ManInfo()
{
name = "张三",
mobile = "130******66",
printAddr = "东省深圳市南山区粤海街道科技南十二路金蝶软件园",
},
};
var timestamp = DateUtils.GetTimestamp();
LabelV2.InterceptOrder(new BaseReq<InterceptOrderParam>()
{
method = ApiInfoConstant.INTERCEPTORDER,
key = config.key,
t = timestamp,
sign = SignUtils.GetMD5(interceptOrderParam.ToString() + timestamp + config.key + config.secret),
param = interceptOrderParam,
});
}
/// <summary>
/// 地址解析接口
/// </summary>
static void testAddressResolution()
{
var addressResolutionParam = new AddressResolutionParam()
{
content = "张三广东省深圳市南山区粤海街道科技南十二路金蝶软件园13088888888"
};
var timestamp = DateUtils.GetTimestamp();
AddressResolution.addressResolution(new AddressResolutionReq<AddressResolutionParam>()
{
key = config.key,
t = timestamp,
sign = SignUtils.GetMD5(addressResolutionParam.ToString() + timestamp + config.key + config.secret),
param = addressResolutionParam,
});
}
/// <summary>
/// 国际地址解析接口
/// </summary>
static void testIntAddressResolution()
{
var intAddressResolutionParam = new IntAddressResolutionParam()
{
code = "US",
address = "24300 Nandina Ave Moreno Valley, CA",
language = "zh"
};
var timestamp = DateUtils.GetTimestamp();
IntAddressResolution.addressResolution(new AddressResolutionReq<IntAddressResolutionParam>()
{
key = config.key,
t = timestamp,
sign = SignUtils.GetMD5(intAddressResolutionParam.ToString() + timestamp + config.key + config.secret),
param = intAddressResolutionParam
});
}
/// <summary>
/// 电子面单图片接口(v1版本示例,建议使用v2)
/// </summary>
static void testPrintImg()
{
var printImgParam = new PrintImgParam()
{
kuaidicom = "zhaijisong",
sendManName = "张三",
sendManMobile = "159****8256",
sendManPrintAddr = "广东省深圳市南山区科技南十二路",
recManName = "李四",
recManMobile = "159****8256",
recManPrintAddr = "北京市海淀区xxx路",
type = "10",
tempid = "180c7c8f646742ca871a92c976392b05",
count = "1",
width = "76",
height = "130",
};
var timestamp = DateUtils.GetTimestamp();
PrintImg.query(new PrintImgReq()
{
method = ApiInfoConstant.ELECTRONIC_ORDER_PIC_METHOD,
key = config.key,
t = timestamp,
sign = SignUtils.GetMD5(printImgParam.ToString() + timestamp + config.key + config.secret),
param = printImgParam,
});
}
/// <summary>
/// 电子面单html接口(v1版本示例,建议使用v2)
/// </summary>
static void testPrintHtml()
{
var printHtmlParam = new PrintHtmlParam()
{
kuaidicom = "zhaijisong",
sendMan = new ManInfo()
{
name = "张三",
mobile = "159****8256",
printAddr = "广东省深圳市南山区科技南十二路",
},
recMan = new ManInfo()
{
name = "李四",
mobile = "159****8256",
printAddr = "北京市海淀区xxx路",
},
count = "1",
needTemplate = "1", //如果需要返回电子面单,需要设置
};
var timestamp = DateUtils.GetTimestamp();
PrintHtml.query(new PrintHtmlReq()
{
method = ApiInfoConstant.ELECTRONIC_ORDER_HTML_METHOD,
key = config.key,
t = timestamp,
sign = SignUtils.GetMD5(printHtmlParam.ToString() + timestamp + config.key + config.secret),
param = printHtmlParam,
});
}
/// <summary>
/// 电子面单打印接口(v1版本示例,建议使用v2)
/// </summary>
static void testPrintCloud()
{
var printCloudParam = new PrintCloudParam()
{
kuaidicom = "zhaijisong",
sendMan = new ManInfo()
{
name = "张三",
mobile = "15****98256",
printAddr = "广东省深圳市南山区科技南十二路",
},
recMan = new ManInfo()
{
name = "李四",
mobile = "15****98256",
printAddr = "北京市海淀区xxx路",
},
count = "1",
siid = config.siid,
tempid = "180c7c8f646742ca871a92c976392b05",
width = "76",
height = "130"
};
var timestamp = DateUtils.GetTimestamp();
PrintCloud.query(new PrintCloudReq()
{
method = ApiInfoConstant.ELECTRONIC_ORDER_PRINT_METHOD,
key = config.key,
t = timestamp,
sign = SignUtils.GetMD5(printCloudParam.ToString() + timestamp + config.key + config.secret),
param = printCloudParam,
});
}
/// <summary>
/// 发送短信
/// </summary>
static void testSendSms()
{
var content = new Hashtable();
content.Add("username", "测试用户");
SendSms.query(new SendSmsReq()
{
content = JsonConvert.SerializeObject(content),
phone = "xxx",
seller = "测试",
userid = config.userid,
tid = config.tid,
sign = SignUtils.GetMD5(config.key + config.userid)
});
}
/// <summary>
/// 智能识别
/// </summary>
static void testAutoNum()
{
AutoNum.query("773039762404825", config.key);
}
/// <summary>
/// 商家寄件查询价格
/// </summary>
static void testBOrderQuery()
{
var timestamp = DateUtils.GetTimestamp();
var baseParam = new BOrderOfficialQueryPriceParam()
{
sendManPrintAddr = "福田区华强北",
kuaidiCom = "jtexpress",
recManPrintAddr = "北京海淀区"
};
BaseReq<BOrderOfficialQueryPriceParam> baseReq = new BaseReq<BOrderOfficialQueryPriceParam>()
{
key = config.key,
t = timestamp,
sign = SignUtils.GetMD5(baseParam.ToString() + timestamp + config.key + config.secret),
param = baseParam
};
BOrderOfficial.queryPrice(baseReq);
}
/// <summary>
/// 商家寄件下单
/// 注意保存一下返回值(taskId和orderId),用于获取验证码或者取消订单
/// </summary>
static void testBOrder()
{
var timestamp = DateUtils.GetTimestamp();
var baseParam = new BOrderOfficialOrderParam()
{
kuaidicom = "jtexpress",
recManName = "张三",
recManMobile = "159953225555",
recManPrintAddr = "西藏日喀则市定日县珠穆朗玛峰",
sendManName = "李四",
sendManMobile = "15333333333",
sendManPrintAddr = "西藏日喀则市定日县珠穆朗玛峰",
cargo = "文件",
weight = "1",
remark = "测试单,待会取消",
salt = "123",
callBackUrl = "http://www.xxxx.com",
serviceType = "标准快递"
};
BaseReq<BOrderOfficialOrderParam> baseReq = new BaseReq<BOrderOfficialOrderParam>()
{
key = config.key,
t = timestamp,
sign = SignUtils.GetMD5(baseParam.ToString() + timestamp + config.key + config.secret),
param = baseParam
};
BOrderOfficial.order(baseReq);
}
/// <summary>
/// 商家寄件取消寄件
/// 入参为下单接口返回的taskId和orderId
/// </summary>
static void testBOrderCancel()
{
var timestamp = DateUtils.GetTimestamp();
var baseParam = new BOrderOfficialCancelParam()
{
taskId = "9406BFCD6******1E0E00D23047FFB",
orderId = "169**740",
cancelMsg = "测试单"
};
BaseReq<BOrderOfficialCancelParam> baseReq = new BaseReq<BOrderOfficialCancelParam>()
{
key = config.key,
t = timestamp,
sign = SignUtils.GetMD5(baseParam.ToString() + timestamp + config.key + config.secret),
param = baseParam
};
BOrderOfficial.cancel(baseReq);
}
/// <summary>
/// 国际电子面单API
/// </summary>
static void testInternationalShipment()
{
var timestamp = DateUtils.GetTimestamp();
List<PackageInfo> packageInfoList = new List<PackageInfo>();
var packageInfo = new PackageInfo()
{
length = 10.00,
width = 20.00,
height = 10.00,
weight = 50.00
};
packageInfoList.Add(packageInfo);
List<ExportInfo> exportInfoList = new List<ExportInfo>();
var exportInfo = new ExportInfo()
{
desc = "test",
grossWeight = 50.00,
quantity = 1,
quantityUnitOfMeasurement = "PCS",
manufacturingCountryCode = "CN",
unitPrice = 100
};
exportInfoList.Add(exportInfo);
var baseParam = new ShipmentReq()
{
partnerId = "",
partnerKey = "",
partnerSecret = "",
code = "",
kuaidicom = "fedex",
cargo = "invoice",
expType = "FedEx International First®",
unitOfMeasurement = "SU",
weight = 50.00,
customsValue = 1000.00,
sendMan = new InterManInfo()
{
name = "test",
mobile = "1688888888",
countryCode = "CN",
city = "SHENZHEN",
addr = "Hi-tech Park,Nanshang District",
zipcode = "518057",
email = "TEST@QQ.COM"
},
recMan = new InterManInfo()
{
name = "test",
mobile = "1688888888",
countryCode = "US",
city = "NEW YORK",
addr = " 70 Washington Square South",
zipcode = "10012",
stateOrProvinceCode = "NY",
email = "TEST@QQ.COM"
},
packageInfos = packageInfoList,
exportInfos = exportInfoList,
customsClearance = new CustomsClearance()
{
purpose = "GIFT",
isDocument = true,
}
};
BaseReq<ShipmentReq> baseReq = new BaseReq<ShipmentReq>()
{
key = config.key,
t = timestamp,
sign = SignUtils.GetMD5(baseParam.ToString() + timestamp + config.key + config.secret),
param = baseParam
};
InternationalShipment.getLabel(baseReq);
}
/// <summary>
/// 自定义打印接口(v1版本示例,建议使用v2)
/// </summary>
static void testCloudPrintCustom()
{
var timestamp = DateUtils.GetTimestamp();
var baseParam = new CustomParam()
{
tempid = "180c7c8f646742ca871a92c976392b05",
callBackUrl = "http://www.xxxx.com",
siid = config.siid,
};
BaseReq<CustomParam> baseReq = new BaseReq<CustomParam>()
{
key = config.key,
t = timestamp,
sign = SignUtils.GetMD5(baseParam.ToString() + timestamp + config.key + config.secret),
param = baseParam
};
CloudPrint.custom(baseReq);
}
/// <summary>
/// 云打印附件
/// </summary>
static void testCloudAttachment()
{
string filePath = "C:\\Users\\Administrator.-20171106WFEKLN\\Desktop\\2.png";
string filename = "2.png";
var timestamp = DateUtils.GetTimestamp();
var baseParam = new AttachmentParam()
{
callBackUrl = "http://www.xxxx.com",
siid = config.siid,
};
BaseReq<AttachmentParam> baseReq = new BaseReq<AttachmentParam>()
{
key = config.key,
t = timestamp,
sign = SignUtils.GetMD5(baseParam.ToString() + timestamp + config.key + config.secret),
param = baseParam
};
CloudPrint.attachment(baseReq, filePath, filename);
}
/// <summary>
/// 复打
/// </summary>
static void testCloudPrintOld()
{
var timestamp = DateUtils.GetTimestamp();
var baseParam = new PrintOldParam()
{
taskId = "0E0D2AC5D******463DAF1DA5F9"
};
BaseReq<PrintOldParam> baseReq = new BaseReq<PrintOldParam>()
{
key = config.key,
t = timestamp,
sign = SignUtils.GetMD5(baseParam.ToString() + timestamp + config.key + config.secret),
param = baseParam
};
CloudPrint.printOld(baseReq);
}
/// <summary>
/// 指令打印接口
/// </summary>
static void testCloudPrintCommand()
{
var timestamp = DateUtils.GetTimestamp();
var baseParam = new CommandParam()
{
content = "H4sIAAAAAAAAAO1cXWwdx3We9RpZQpC0BvoQPQhdgnnoDxbW3fu71yC48V9RAbWTWmoa9CmF0aIB4oQOApQBBO7SBMo8FOZr3whKD7ULu7Ajyo5t2VzqKr4KFYuUFVEBWld7tU2IBjG0FB80lFczPefs7uXey2Vs0kaBtneku3O038y3M2fOnDkzu9CJ43/15LBVKj1cGn7uOdOyE+HQgSeOP/Pk4yePf+3p4dKhA4//2YlDBx47fvKpR78+bNVNq1Jrms26aZfMkikHaZAGaZAGaZAGaZAG6f9oCqVsQRbDbwbEjpRzXawNPyOSoTCk1KWM9sk/LaXPmJHxz0gxyrTY5nijy3/QQf7Z2P08/AFjmtS6/N6QEimeTvxDxr75Pabn+AOmEP8ElyzHf1DfF7/HmMuYTnLGr4pRp80nuAB+0o/HXHmY2jDLlH3xc8pUOd2RyH/UmeF8XDT5FrafASh1A/iPqvvgn9Rllx/GtyNDfpBpkc+MH+b5F/fLf8qRszzmxA+knZWM//fZ0Bbqh00aHMFIxuqex9eXMfIn7YfM6LSB35lJ+an9n4+fM4349ZmQ+KdD0H87xw/2k/JDQ/bKz1ziB/0Q/2G3E6honwHnMrCVbH7FmowYky/Cb4/8Tq794tSk07lD/D7w+0e69rl/fiPWZzL++NSY0RFaxv/CkBIz5nwe/vgr+n3gR/8GKo5HRx3wQALmG/ALbU4iP8w6lyvEP00+aQ+Jf0WTwA8UBvCLMdsF/jjl1+eghHBwDkaKFG5HqHvlj56dzvOfGnNBtIeY4oNX8qBH0H72bCQ7DOx4KX5gr/oJwiXJNF16KupHxGOygL8VyaUhNzZa++YXMO9hfBP/xiaOMGU14Uf9qEsd2RpyhDEdH94r/3QYoH/zj3I95Qf1T46VZAT8MxJnnBNGS1IF//wlXc7O7lH/aidy9ODLvh3380t02K2EX5XaYdDhPvgZG3L1wOoEWwbwy0iHOweBX43u3wfnpxI/14R+WJWeI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eW58/+7I3zy6tvnH/31as3l1fPrn/4q+t3ri1fF2v//N7aH65eyNFYJatZxHPh4wtvrlx4d81++6d/lBUvlxqmVet/bBn+jOCjqpU3zuOjFu4NW90nVM1y1S6qUa6UFl56NFeu2ugvRw15K7xy98bZG7+68Yu1K21+bWNpbXn10kcrv7z00dpH1+/85J3l02+FZ+czHqu6mwIX7lybX379/H92S9Zts2HVi4ou/va8uPzBwu3l6+fFpcvnfrn25plX3ns1+dc7d5L8zEs9RNVyEdH5i1T05V8sr3587uLCveXrly63X76xduaV5WtX/gUfMX/m4r0eonqhEs5dxGoL917/+OK9D6++9ypaw8Ll1+K34jOv/Pj0h1cvvXlp5Wc/7yFqVouI3n9z9acrp6/8x5XN+dOvxTde++A3b7fmT7feubb6zr++/W/zp99//3J07lKeyC6Xiohe/7j167XlpcUryz+/NX+mW6G8m07LpbJ1zIK/tXzZaqHtlcuPlBqPlJv5knatqCTwZYXqFcts1gufvXD3mv9jHK/HHn3m8a898eRwBb8JseHZVtkewe9xLChaMUFjltVslJt2tVKu15p546wWqjNhHqZkVWpWo96sla1yfprWCyuevbA6//67acVG5Y8hVZu1Uu6JlfKnVYR6VfAY/fVqhfU+k1/ASZ+nsgup+t1Cw4LbpWrhAH149ep/LV/Lqd4um7V6KdU8aJtUXzXru6ieRrVZaIEF+sbS4NAKHWPejwwnDRquN5qmDQNvWeWMoVmDbhca/G9unB/JlbILG7X423MfpeTgW2HqNOyKWclulKt9Nyr9Jar9JWqVWu8N1HbuhgXKxFvQiVo5K9OsNXsrWaVKz506/rO3Vg3/0xL4wcwoHTrw58lo1etQolKqmE+ZNfNR6OTIyDZWbQCHDVAlgf7uBz8Yf+TYsb//m29PfPu7Dz///MPPfu+5Y88f+943//LEE0/97Xe+f+JP/+L7je+On/jGd54Glq8/c/xpmNqmdejAfwNd3t+nZUUAAA==",
siid = config.siid
};
BaseReq<CommandParam> baseReq = new BaseReq<CommandParam>()
{
key = config.key,
t = timestamp,
sign = SignUtils.GetMD5(baseParam.ToString() + timestamp + config.key + config.secret),
param = baseParam
};
CloudPrint.commandPrint(baseReq);
}
/// <summary>
/// 发货单接口
/// </summary>
static void testCloudPrintParcelsBill()
{
var timestamp = DateUtils.GetTimestamp();
//OrderGoods 表格对象,可以自行自定义即可,这里仅供参考
var baseParam = new ParcelsBillsParam<OrderGoods>()
{
tempid = "164509714515858026",
siid = config.siid
};
BaseReq<ParcelsBillsParam<OrderGoods>> baseReq = new BaseReq<ParcelsBillsParam<OrderGoods>>()
{
key = config.key,
t = timestamp,
sign = SignUtils.GetMD5(baseParam.ToString() + timestamp + config.key + config.secret),
param = baseParam
};
CloudPrint.billParcels(baseReq);
}
/// <summary>
/// 硬件状态接口
/// </summary>
static void testCloudDevStatus()
{
var timestamp = DateUtils.GetTimestamp();
var baseParam = new DevStatusParam()
{
siid = config.siid
};
BaseReq<DevStatusParam> baseReq = new BaseReq<DevStatusParam>()
{
key = config.key,
t = timestamp,
sign = SignUtils.GetMD5(baseParam.ToString() + timestamp + config.key + config.secret),
param = baseParam
};
CloudPrint.devStatus(baseReq);
}
/// <summary>
/// 获取店铺授权超链接接口
/// </summary>
static void testThirdPlatformStoreAuth()
{
var baseParam = new StoreAuthParam()
{
shopType = "TAOBAO",
callBackUrl = "http://www.xxxx.com",
salt = "123"
};
BaseReq<StoreAuthParam> baseReq = new BaseReq<StoreAuthParam>()
{
key = config.key,
sign = SignUtils.GetMD5(baseParam.ToString() + config.key + config.secret),
param = baseParam
};
ThirdPlatformOrder.auth(baseReq);
}
/// <summary>
/// 提交订单获取任务接口
/// </summary>
static void testThirdPlatformCommitTask()
{
var baseParam = new CommitTaskParam()
{
shopType = "TAOBAO",
shopId = "41****377",
orderStatus = "UNSHIP",
updateAtMin = "2022-02-17 16:00:00",
updateAtMax = "2022-02-17 16:30:00",
callbackUrl = "http://www.xxxx.com",
salt = "123"
};
BaseReq<CommitTaskParam> baseReq = new BaseReq<CommitTaskParam>()
{
key = config.key,
sign = SignUtils.GetMD5(baseParam.ToString() + config.key + config.secret),
param = baseParam
};
ThirdPlatformOrder.commitTask(baseReq);
}
/// <summary>
/// 快递单号回传及订单发货接口
/// </summary>
static void testThirdPlatformUploadNum()
{
var baseParam = new UploadNumParam()
{
shopType = "TAOBAO",
shopId = "41****77",
orderNum = "240*****8072",
kuaidiCom = "yunda",
kuaidiNum = "1ds23456"
};
BaseReq<UploadNumParam> baseReq = new BaseReq<UploadNumParam>()
{
key = config.key,
sign = SignUtils.GetMD5(baseParam.ToString() + config.key + config.secret),
param = baseParam
};
ThirdPlatformOrder.uploadNum(baseReq);
}
/// <summary>
/// 同城配送账号授权接口
/// </summary>
static void testSameCityStoreAuth()
{
var timestamp = DateUtils.GetTimestamp();
var baseParam = new SameCityAuthParam()
{
com = "shansong",
storeId = "123456",
callbackUrl = "http://www.xxxx.com"
};
BaseReq<SameCityAuthParam> baseReq = new BaseReq<SameCityAuthParam>()
{
key = config.key,
t = timestamp,
sign = SignUtils.GetMD5(baseParam.ToString() + timestamp + config.key + config.secret),
param = baseParam
};
SameCity.auth(baseReq);
}
/// <summary>
/// 同城配送下单
/// </summary>
static void testSameCityOrder()
{
var timestamp = DateUtils.GetTimestamp();
var baseParam = new SameCityOrderParam()
{
partnerId = "199****601",
partnerKey = "806cdf87*******dfb000326375d",
com = "kfw",
storeId = "123456",
recManName = "张三",
recManMobile = "1599*****912",
recManPrintAddr = "西藏日喀则市定日县珠穆朗玛峰",
sendManName = "李四",
sendManMobile = "153******3333",
sendManPrintAddr = "西藏日喀则市定日县珠穆朗玛峰",
price = 100,
orderSourceType = "饿了么",
weight = 1,
remark = "测试单,待会取消",
serviceType = "火锅",
salt = "123",
callbackUrl = "http://www.xxxx.com",
orderSourceNo = "1233",
orderType = 0
};
BaseReq<SameCityOrderParam> baseReq = new BaseReq<SameCityOrderParam>()
{
key = config.key,
t = timestamp,
sign = SignUtils.GetMD5(baseParam.ToString() + timestamp + config.key + config.secret),
param = baseParam
};
SameCity.order(baseReq);
}
/// <summary>
/// 同城配送查询订单
/// </summary>
static void testSameCityQuery()
{
var timestamp = DateUtils.GetTimestamp();
var baseParam = new SameCityQueryParam()
{
taskId = "EE815B30*****2FEE0EBFEC3",
orderId = "10003****SWiZ",
};
BaseReq<SameCityQueryParam> baseReq = new BaseReq<SameCityQueryParam>()
{
key = config.key,
t = timestamp,
sign = SignUtils.GetMD5(baseParam.ToString() + timestamp + config.key + config.secret),
param = baseParam
};
SameCity.query(baseReq);
}
/// <summary>
/// 同城配送取消下单接口
/// </summary>
static void testSameCityCancel()
{
var timestamp = DateUtils.GetTimestamp();
var baseParam = new SameCityCancelParam()
{
taskId = "EE815B30B5*****B8D522FEE0EBFEC3",
orderId = "1000****WiZ",
cancelMsg = "地址信息填错啦,重新下单"
};
BaseReq<SameCityCancelParam> baseReq = new BaseReq<SameCityCancelParam>()
{
key = config.key,
t = timestamp,
sign = SignUtils.GetMD5(baseParam.ToString() + timestamp + config.key + config.secret),
param = baseParam
};
SameCity.cancel(baseReq);
}
/// <summary>
/// 第三方电商平台账号授权
/// </summary>
static void testThirdPlatformAuth()
{
var timestamp = DateUtils.GetTimestamp();
var baseParam = new PlatformAuthParam()
{
net = "taobao",
callbackUrl = "http://www.xxx.com"
};
BaseReq<PlatformAuthParam> baseReq = new BaseReq<PlatformAuthParam>()
{
key = config.key,
t = timestamp,
sign = SignUtils.GetMD5(baseParam.ToString() + timestamp + config.key + config.secret),
param = baseParam
};
ThirdPlatformOrder.platformAuth(baseReq);
}
/// <summary>
/// 第三方平台面单余额接口
/// </summary>
static void testThirdPlatBranchInfo()
{
var timestamp = DateUtils.GetTimestamp();
var baseParam = new BranchInfoParam()
{
partnerId = "343****2875",
partnerKey = "6201d13dee73*********557aa3431402875",
net = "taobao"
};
BaseReq<BranchInfoParam> baseReq = new BaseReq<BranchInfoParam>()
{
key = config.key,
t = timestamp,
sign = SignUtils.GetMD5(baseParam.ToString() + timestamp + config.key + config.secret),
param = baseParam
};
ThirdPlatformOrder.branchInfo(baseReq);
}
/// <summary>
/// 电子面单取消接口
/// </summary>
static void testLabelCancel()
{
var timestamp = DateUtils.GetTimestamp();
var baseParam = new CancelPrint()
{
partnerId = "",
partnerKey = "",
net = "",
kuaidicom = "shunfeng",
kuaidinum = "SF136*****3507",
orderId = "016455*****25zosNIq",
reason = "地址错误"
};
BaseReq<CancelPrint> baseReq = new BaseReq<CancelPrint>()
{
key = config.key,
t = timestamp,
sign = SignUtils.GetMD5(baseParam.ToString() + timestamp + config.key + config.secret),
param = baseParam
};
PrintCloud.cancel(baseReq);
}
/// <summary>
/// 快递面单OCR识别接口
/// </summary>
static void testOcr()
{
var baseParam = new OcrParam()
{
image = "132"
};
BaseReq<OcrParam> baseReq = new BaseReq<OcrParam>()
{
key = config.key,
param = baseParam
};
Ocr.ocr(baseReq);
}
/// <summary>
/// 商家寄件查询订单详情
/// </summary>
static void testBOrderOfficialQueryDetail()
{
var baseParam = new BOrderOfficialQueryDetailParam()
{
taskId = "9FC293CA417E431F33046E64F4C4EC20"
};
var timestamp = DateUtils.GetTimestamp();
BaseReq<BOrderOfficialQueryDetailParam> baseReq = new BaseReq<BOrderOfficialQueryDetailParam>()
{
key = config.key,
param = baseParam,
method = ApiInfoConstant.ORDER,
t = timestamp,
sign = SignUtils.GetMD5(baseParam.ToString() + timestamp + config.key + config.secret)
};
BOrderOfficial.queryDetail(baseReq);
}
/// <summary>
/// C端寄件下单接口
/// 注意保存一下返回值(taskId和orderId)
/// </summary>
static void testCOrder()
{
var timestamp = DateUtils.GetTimestamp();
var baseParam = new COrderParam()
{
kuaidicom = "shunfeng",
recManName = "张三",
recManMobile = "12345678910",
recManPrintAddr = "西藏日喀则市定日县珠穆朗玛峰",
sendManName = "李四",
sendManMobile = "12345678910",
sendManPrintAddr = "西藏日喀则市定日县珠穆朗玛峰",
cargo = "文件",
weight = "1",
remark = "测试单,待会取消",
salt = "123",
callBackUrl = "http://www.xxxx.com"
};
BaseReq<COrderParam> baseReq = new BaseReq<COrderParam>()
{
key = config.key,
t = timestamp,
sign = SignUtils.GetMD5(baseParam.ToString() + timestamp + config.key + config.secret),
param = baseParam
};
Corder.order(baseReq);
}
/// <summary>
/// C端寄件下单取消接口
/// 入参为下单接口返回的taskId和orderId
/// </summary>
static void testCOrderCancel()
{
var timestamp = DateUtils.GetTimestamp();
var baseParam = new COrderCancelParam()
{
taskId = "B25F2F0C7990889559107CEEC3B3045C",
orderId = "26743813",
cancelMsg = "测试单"
};
BaseReq<COrderCancelParam> baseReq = new BaseReq<COrderCancelParam>()
{
key = config.key,
t = timestamp,
sign = SignUtils.GetMD5(baseParam.ToString() + timestamp + config.key + config.secret),
param = baseParam
};
Corder.cancel(baseReq);
}
/// <summary>
/// C端寄件价格查询接口
/// 入参为下单接口返回的taskId和orderId
/// </summary>
static void testCOrderQueryPrice()
{
var timestamp = DateUtils.GetTimestamp();
var baseParam = new COrderQueryPriceParam()
{
kuaidicom = "shunfeng",
sendManPrintAddr = "广东深圳市南山区",
recManPrintAddr = "北京海淀区"
};
BaseReq<COrderQueryPriceParam> baseReq = new BaseReq<COrderQueryPriceParam>()
{
key = config.key,
t = timestamp,
sign = SignUtils.GetMD5(baseParam.ToString() + timestamp + config.key + config.secret),
param = baseParam
};
Corder.queryPrice(baseReq);
}
/// <summary>
/// 快递可用性接口
/// </summary>
static void testExpressReachable()
{
var timestamp = DateUtils.GetTimestamp();
var baseParam = new ExpressReachableParam()
{
kuaidicom = "shunfeng",
recManName = "张三",
recManMobile = "12345678910",
recManPrintAddr = "西藏日喀则市定日县珠穆朗玛峰",
sendManName = "李四",
sendManMobile = "12345678910",
sendManPrintAddr = "西藏日喀则市定日县珠穆朗玛峰"
};
BaseReq<ExpressReachableParam> baseReq = new BaseReq<ExpressReachableParam>()
{
key = config.key,
t = timestamp,
sign = SignUtils.GetMD5(baseParam.ToString() + timestamp + config.key + config.secret),
param = baseParam
};
ExpressReachable.query(baseReq);
}
/// <summary>
/// 同城寄件-预下单
/// </summary>
static void testBsamecityPrice()
{
var timestamp = DateUtils.GetTimestamp();
var mygoods = new Goods(){
name = "外卖",
type = "食品",
count = 1
};
var baseParam = new BsamecityOrderParam()
{
kuaidicom = "shunfengtongcheng",
lbsType = 2,
recManName = "顺丰同城",
recManMobile = "12345678910",
recManProvince = "北京市",
recManCity = "北京市",
recManDistrict = "海淀区",
recManAddr = "学清嘉创大厦A座15层",
recManLat = "40.014838",
recManLng = "116.352569",
sendManName = "测试",
sendManMobile = "12345678910",
sendManProvince = "北京",
sendManCity = "北京市",
sendManDistrict = "海淀区",
sendManAddr = "清华大学",
sendManLat = "40.002436",
sendManLng = "116.326582",
weight = "1",
remark = "测试下单",
volume = "",
orderType = 0,
expectPickupTime = "",
expectFinishTime = "",
insurance = "",
price = "0",
goods = new List<Goods>(){mygoods}
};
BaseReq<BsamecityOrderParam> baseReq = new BaseReq<BsamecityOrderParam>()
{
key = config.key,
t = timestamp,
sign = SignUtils.GetMD5(baseParam.ToString() + timestamp + config.key + config.secret),
param = baseParam
};
BsamecityOrder.price(baseReq);
}
/// <summary>
/// 同城寄件-下单
/// </summary>
static void testBsamecityOrder()
{
var timestamp = DateUtils.GetTimestamp();
var mygoods = new Goods(){
name = "外卖",
type = "食品",
count = 1
};
var baseParam = new BsamecityOrderParam()
{
kuaidicom = "shunfengtongcheng",
lbsType = 2,
recManName = "顺丰同城",
recManMobile = "12345678910",
recManProvince = "北京市",
recManCity = "北京市",
recManDistrict = "海淀区",
recManAddr = "学清嘉创大厦A座15层",
recManLat = "40.014838",
recManLng = "116.352569",
sendManName = "测试",
sendManMobile = "12345678910",
sendManProvince = "北京",
sendManCity = "北京市",
sendManDistrict = "海淀区",
sendManAddr = "清华大学",
sendManLat = "40.002436",
sendManLng = "116.326582",
weight = "1",
remark = "测试下单",
volume = "",
salt = "",
orderType = 0,
expectPickupTime = "",
expectFinishTime = "",
insurance = "",
price = "0",
goods = new List<Goods>(){mygoods},
callbackUrl = "http://www.baidu.com"
};
BaseReq<BsamecityOrderParam> baseReq = new BaseReq<BsamecityOrderParam>()
{
key = config.key,
t = timestamp,
sign = SignUtils.GetMD5(baseParam.ToString() + timestamp + config.key + config.secret),
param = baseParam
};
BsamecityOrder.order(baseReq);
}
/// <summary>
/// 同城寄件-预取消
/// </summary>
static void testBsamecityPrecancel()
{
var timestamp = DateUtils.GetTimestamp();
var baseParam = new BsamecityCancelParam()
{
orderId = "100241",
cancelMsgType = 1,
cancelMsg = "测试寄件",
taskId = "DE49A5C45B0845328CE0AE8EF9951EC5"
};
BaseReq<BsamecityCancelParam> baseReq = new BaseReq<BsamecityCancelParam>()
{
key = config.key,
t = timestamp,
sign = SignUtils.GetMD5(baseParam.ToString() + timestamp + config.key + config.secret),
param = baseParam
};
BsamecityOrder.precancel(baseReq);
}
/// <summary>
/// 同城寄件-取消
/// </summary>
static void testBsamecityCancel()
{
var timestamp = DateUtils.GetTimestamp();
var baseParam = new BsamecityCancelParam()
{
orderId = "100241",
cancelMsgType = 1,
cancelMsg = "测试寄件",
taskId = "DE49A5C45B0845328CE0AE8EF9951EC5"
};
BaseReq<BsamecityCancelParam> baseReq = new BaseReq<BsamecityCancelParam>()
{
key = config.key,
t = timestamp,
sign = SignUtils.GetMD5(baseParam.ToString() + timestamp + config.key + config.secret),
param = baseParam
};
BsamecityOrder.cancel(baseReq);
}
/// <summary>
/// 同城寄件-加小费
/// </summary>
static void testBsamecityAddfee()
{
var timestamp = DateUtils.GetTimestamp();
var baseParam = new BsamecityAddfeeParam()
{
orderId = "100213",
remark = "",
taskId = "0E1536182BAE416080AC3C5DE6896F03",
tips = "10"
};
BaseReq<BsamecityAddfeeParam> baseReq = new BaseReq<BsamecityAddfeeParam>()
{
key = config.key,
t = timestamp,
sign = SignUtils.GetMD5(baseParam.ToString() + timestamp + config.key + config.secret),
param = baseParam
};
BsamecityOrder.addfee(baseReq);
}
/// <summary>
/// 价格查询接口
/// </summary>
static void testPriceQuery()
{
var priceParam = new PriceQueryParam()
{
sendAddr = "广东深圳",
recAddr = "北京海淀",
kuaidicom = "jd",
weight = 10.0
};
var timestamp = DateUtils.GetTimestamp();
PriceQuery.query(new BaseReq<PriceQueryParam>()
{
method = ApiInfoConstant.PRICE,
key = config.key,
t = timestamp,
sign = SignUtils.GetMD5(priceParam.ToString() + timestamp + config.key + config.secret),
param = priceParam,
});
}
}