- 到快递100(https://www.kuaidi100.com/openapi/applyapi.shtml),申请免费版本。
- 快递100授权key
- 快递查询API(适用于除EMS、顺丰、申通、圆通、中通、韵达之外的公司,可自定义公司与单号,返回xml与json数据,有几家快递公司不支持):http://www.kuaidi100.com/openapi/api_post.shtml
- HtmlAPI(适用于所有包括EMS、顺丰、申通、圆通、中通、韵达在内的公司,可自定公司与单号,请求后返回一个url,需要通过iframe来嵌套该url来显示最终结果,结果下方有快递100手机端的广告banner):http://www.kuaidi100.com/download/html_api(20140729).doc
- JAVA 版本:
-
/** * 解析结果封装成map * @param com 快递公司简称 * @param nu 快递单号 */ public static Map<String,Object> getResultLogistics(String com,String nu){ Map<String,Object> result = new HashMap<String,Object>(); String key="2ecf1eadd1cddaa9";//授权KEY 换成自己的即可 try { String str = getLogisticsInformation(key,com,nu); if(StringUtil.isEmpty(str)){ result.put("status", "3");//url配置错误
快递100 物流接口对接
最新推荐文章于 2024-05-22 17:10:32 发布