1.0.0 • Published 4 years ago
node-kdniao-beta v1.0.0
快递鸟
安装
yarn add node-kdniao 或者 npm i node-kdniao --save
使用
import Kdniao from '../index';
const kdniao = new Kdniao({
EBusinessID: '商户ID',
key: '商户key',
});
const result = await kdniao.allApi({
type: '1002', // 请求指令类型
params: { // 接口参数 参考快递鸟文档
ShipperCode: 'YD', // 快递编号
LogisticCode: '快递号',
},
url: 'https://api.kdniao.com/Ebusiness/EbusinessOrderHandle.aspx', // 请求接口
});
文档
1.0.0
4 years ago