To do express information display, such as the order has been shipped, where the goods, such information shows, how to call The courier company's API? Want to use Shun Fung Express, look at the development manual is very complex, read and understand, who knows how to use?
Reply content:
To do express information display, such as the order has been shipped, where the goods, such information shows, how to call The courier company's API? Want to use Shun Fung Express, look at the development manual is very complex, read and understand, who knows how to use?
Aggregated data and Baidu API are also available, some charges, there is a free trial
Reference: Courier Bird
We used KUAIDI100 's free interface. http://www.kuaidi100.com/
HTTPS://WWW.JUHE.CN/DOCS/API/ID/43 can look at the aggregated data of the comparative professional
Turn from a question previously answered: https://segmentfault.com/q/1010000005360416/a-1020000005369082
can use the Courier Bird API, give you a copy of Java Demo:https://github.com/wucao/common-api
Express Bird official website: http://www.kdniao.com/
Interface Documentation: Http://www.kdniao.com/YundanChaxunAPI.aspx
Free to use, no more than 3,000 times a day, you need to register before you can use. Express Company code: Http://www.kdniao.com/file/ExpressCode.xls
Use:
KdniaoService kdniaoService = new KdniaoService();kdniaoService.setApiId("API ID"); // API ID(商户ID)kdniaoService.setApiKey("API Key"); // API KeyList
list = kdniaoService.getTrace("YTO", "700192858115"); // 快递公司编码、快递单号for(KdniaoTrace trace : list) { System.out.println(trace.getTime() + " | " + trace.getMessage());}
Output:
2016-05-24 19:15:08 | 【广东省广州市白云区罗冲围公司】 取件人: 张定 已收件2016-05-24 20:15:35 | 【广东省广州市白云区罗冲围公司】 已收件2016-05-24 23:07:52 | 【广州转运中心】 已收入2016-05-24 23:13:35 | 【广州转运中心】 已发出 下一站 【上海转运中心】2016-05-26 02:18:40 | 【上海转运中心】 已收入2016-05-26 04:33:15 | 【上海转运中心】 已发出 下一站 【上海市闵行区虹桥公司】2016-05-26 07:37:59 | 【上海市闵行区虹桥公司】 已收入2016-05-26 07:38:03 | 【上海市闵行区虹桥公司】 派件人: 朱照耀 派件中 派件员电话183215393022016-05-26 11:55:09 | 客户 签收人: 邮件收发章 已签收 感谢使用圆通速递,期待再次为您服务