0.1.1 • Published 2 years ago

nest-douyin v0.1.1

Weekly downloads
-
License
MIT
Repository
github
Last release
2 years ago

NEST DOUYIN

基于 Nest 封装的抖音小程序 API,持续完善中。

使用

导入模块:

import { DouyinAppModule } from 'nest-douyin';

@Module({
  imports: [
    DouyinAppModule.forRoot({ appid: '', secret: '' }),
  ],
})

使用:

import { DouyinAppService } from 'nest-douyin';

@Injectable()
export class UserService {
  constructor(private readonly douyinAppService: DouyinAppService) {}
}

当成工具类使用:

import { DouyinAppService } from 'nest-douyin';

const douyinApp = new DouyinAppService({ appid: '', secret: '' });

使用文档

License

MIT