0.1.10 • Published 3 years ago

jdwl v0.1.10

Weekly downloads
2
License
ISC
Repository
github
Last release
3 years ago

jdwl NPM version

京东物流 Node SDK

Access Token 获取 https://open.jd.com/home/home#/doc/common?listId=880

获取 Code

https://open-oauth.jd.com/oauth2/to_login?app_key=APP_KEY&response_type=code&redirect_uri=http://localhost:7001/api/v3/logistics/callback&state=20180416&scope=snsapi_base

获取 Access Token

https://open-oauth.jd.com/oauth2/access_token?app_key=APP_KEY&app_secret=APP_SECRET&grant_type=authorization_code&code=1yxNgo

安装:

npm i jdwl

示例:

const JDWL = require('jdwl');

const jingdong = new JDWL({
  appKey:'123456780233FA31AD94AA59CFA65305',
  appSecret:'yourappSecret',
  accessToken:'12345678-b0e1-4d0c-9d10-a998d9597d75'
});

jingdong.ldop.receive.trace.get({ customerCode: '010K123456', waybillCode: 'VA45306123456' }).then(data => {
  console.dir(JSON.stringify(data));
});

jingdong.etms.waybillcode.get({ preNum: '100', customerCode: '010K123456', orderType: 0 }).then(data => {
  console.dir(JSON.stringify(data));
});
0.1.10

3 years ago

0.1.9

5 years ago

0.1.8

5 years ago

0.1.7

5 years ago

0.1.6

5 years ago

0.1.5

5 years ago

0.1.4

5 years ago

0.1.3

6 years ago

0.1.2

6 years ago

0.1.1

6 years ago

0.1.0

6 years ago

0.0.2

6 years ago

0.0.1

6 years ago