快递100api讲解

/**
 * 快递100Api
 * @param name  快递公司编码
 * @param no    快递单号
 * @returns {Promise}
 * {
 *  "message": "ok",
 *  "nu": "3373360521434",      //订单号
 *  "ischeck": "0",
 *  "condition": "00",
 *  "com": "shentong",          //快递公司编码
 *  "status": "200",
 *  "state": "0",               //下面说
 *  "data": [{
 *      "time": "2018-08-29 16:09:00",
 *      "ftime": "2018-08-29 16:09:00",
 *      "context": "【深圳福田西丽大学城】已收入",
 *      "location": ""
 *  },]
 * }
 * state:
 *      0:在途,即货物处于运输过程中;
 *      1:揽件,货物已由快递公司揽收并且产生了第一条跟踪信息;
 *      2:疑难,货物寄送过程出了问题;
 *      3:签收,收件人已签收;
 *      4:退签,即货物由于用户拒签、超区等原因退回,而且发件人已经签收;
 *      5:派件,即快递正在进行同城派件;
 *      6:退回,货物正处于退回发件人的途中;
 *
 * https://m.kuaidi100.com/index_all.html?type=shentong&postid=3373360521434#result     html
 * https://m.kuaidi100.com/query?type=shentong&postid=3373360521434                     json
 * https://www.kuaidi100.com/openapi/mobileapi.shtml
 */

ionic+ng用

你可能感兴趣的:(快递100api讲解)