快递100 node调用查询api,查询京东物流

您所在的位置:网站首页 京东快递物流公司查询 快递100 node调用查询api,查询京东物流

快递100 node调用查询api,查询京东物流

2024-03-28 14:09| 来源: 网络整理| 查看: 265

 快递100的接口文档 https://www.kuaidi100.com/openapi/api_post.shtml

 快递100提供了4种语言的请求方式,分别是php,java,c#,net。

本文提供js的请求方式,具体示例如下

key和customer需要自己去申请https://www.kuaidi100.com/openapi/applypoll.shtml

const axios = require("axios"); const crypto = require("crypto"); //加密模块 const Qs = require("qs"); function md5(data) { return crypto .createHash("md5") .update(data, "utf8") .digest("hex"); } var param = { com: "jd", num: "JD0004885123336" }; var key = "xxxxxxxxxx"; //快递100给的key var customer = "xxxxxxxxxxxxxxxxxxxxxxx"; //快递100给的customer var sign = md5(JSON.stringify(param) + key + customer).toUpperCase(); var dat


【本文地址】


今日新闻


推荐新闻


CopyRight 2018-2019 办公设备维修网 版权所有 豫ICP备15022753号-3