【文件属性】:
文件名称:aftership-sdk-nodejs:AfterShip API的node.js SDK
文件大小:122KB
文件格式:ZIP
更新时间:2021-04-29 00:02:45
nodejs sdk aftership-api node-sdk couriers
船后SDK节点
适用于AfterShip API的node.js SDK
主要特征
现在,SDK是同构的,您可以在客户端和服务器端使用它。
在IDE中支持IntelliSense
支持打字稿
安装
npm install aftership
快速开始
const { AfterShip } = require ( 'aftership' ) ;
const aftership = new AfterShip ( 'YOUR_API_KEY' ) ;
aftership . courier . listAllCouriers ( )
. then ( result => console . log ( result ) )
. catch ( err => console . log ( err ) ) ;
/** Console
{ total: 335,
cou
【文件预览】:
aftership-sdk-nodejs-master
----yarn.lock(169KB)
----src()
--------endpoint()
--------index.ts(3KB)
--------implementation()
--------model()
--------lib()
--------error()
----scripts()
--------ci()
----.npmignore(3KB)
----.publishignore(244B)
----CONTRIBUTING.md(2KB)
----.travis.yml(303B)
----example()
--------courier.js(753B)
--------tracking.js(2KB)
--------notification.js(1KB)
--------last_checkpoint.js(548B)
----tsconfig.json(636B)
----LICENSE(1KB)
----jest.config.js(48B)
----__tests__()
--------test_notification.js(22KB)
--------test_tracking.js(17KB)
--------test_aftership.js(3KB)
--------test_courier.js(7KB)
--------test_last_checkpoint.js(8KB)
--------e2e.test.js(8KB)
--------.gitignore(0B)
--------test_util.js(6KB)
----tslint.json(3KB)
----README.md(12KB)
----.editorconfig(569B)
----.gitignore(3KB)
----CHANGELOG.md(804B)
----package.json(1KB)