@lantsang/nestjs-ali-express
v0.0.2
Published
自用nestjs 阿里云快递物流查询插件
Downloads
5
Readme
Nest.js 阿里云-全国快递物流查询API接口-插件
注意:仍在开发中,目前仅在内部使用 产品地址:https://market.aliyun.com/products/57126001/cmapi011120.html
使用说明
- 外部人员仅供参考,请不要用于生产环境,因此导致的事故后果请自行承担。
- 目前仅支持App Code验证方式,计划2.x版本支持App Key验证方式。
- TS target es2017
安装
$ npm i @lantsang/nestjs-ali-express
or
$ yarn add @lantsang/nestjs-ali-express
推荐使用yarn
配置
import { AliExpressModule } from '@lantsang/nestjs-ali-express'
@Module({
imports: [
AliExpressModule.forRoot({
appCode: config.Ali.Express.AppCode, //账号,appCode,appKey和appSecret
appKey: config.Ali.Express.AppKey,
appSecret: config.Ali.Express.AppSecret,
})
]
})
export class AppModule { }