1.1.0 • Published 7 years ago

kdniaosdk v1.1.0

Weekly downloads
4
License
ISC
Repository
github
Last release
7 years ago

快递鸟SDK Node.js实现

使用方法

安装

npm install kdniaosdk

运行测试

运行测试之前,请先设置AppKey以及EBusinessID

npm test

基本配置

const config = {
  EBusinessID: 'xxx', //商户id
  AppKey: 'xxx' //秘钥
}

demo(同步查询快递信息)

  import assert from 'assert';
  import KDNService from '../src/index';

  const service = new KDNService(config);
  const order = {
    code: 'xxxx', //订单号
    shipper: 'ZTO' //快递提供商
  };

  service.makeOrderTraceSync(order)
  .then(ret => {
    assert(ret.Success, ret.Reason);
  });

Todo List

  • 物流轨迹(订阅查询)
  • 物流轨迹(即时查询)
  • 异步推送
  • 在线下单
1.1.0

7 years ago

1.0.8

7 years ago

1.0.7

7 years ago

1.0.6

7 years ago

1.0.5

7 years ago

1.0.4

7 years ago

1.0.3

7 years ago

1.0.2

7 years ago

1.0.1

7 years ago

1.0.0

7 years ago