Skip to content

Commit

Permalink
add doc
Browse files Browse the repository at this point in the history
  • Loading branch information
brucexiong committed Nov 12, 2018
1 parent 7f107fd commit f618e77
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 1 deletion.
20 changes: 20 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,26 @@
# sfwl
顺丰物流 Node SDK

```JS
const SFWL = require('sfwl');

const sfwl = new SFWL({ clientCode: 'ABCDEF', checkWord: 'asdf1234' });

sfwl.order({
orderid: 'test12345woody01',
is_gen_bill_no: 1,
j_company: '小木屋',
j_contact: '胡迪测试',
j_tel: '15500001111',
j_address: '北京市海淀区海淀路19-1中成大厦1109',
d_company: '测试公司',
d_contact: '测试收件人',
d_tel: '15511110000',
d_address: '广东省深圳市南山区科技中二路深圳软件园一期7-305',
pay_method: 2,
}).then(res => console.log(JSON.stringify(res)));
```

## 接口规范说明

1. 报文及报文编码
Expand Down
4 changes: 3 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,9 @@
},
"keywords": [
"sf",
"express"
"sf express",
"顺丰",
"顺丰物流"
],
"author": "Bruce Xiong",
"license": "ISC",
Expand Down

0 comments on commit f618e77

Please sign in to comment.