php 快递100接口接入(手机)

/**

* 参考文档:https://www.kuaidi100.com/openapi/mobileapi.shtml

 * 查询快递
 * @param $postcom  快递公司编码
 * @param $getNu  快递单号
 * @return array  物流跟踪信息数组
 */


function queryExpress($postcom , $getNu) {

 $url = "https://m.kuaidi100.com/query?type=".$postcom."&postid=".$getNu."&id=1&valicode=&temp=0.49738534969422676";

    $resp = httpRequest($url,"GET");


    return json_decode($resp,true);
}

猜你喜欢

转载自blog.csdn.net/m0_37711659/article/details/80096361