nestjs-douyin-api
v0.1.1
Published
基于 douyin-api 封装的抖音生态服务端接口
Downloads
13
Maintainers
Readme
NESTJS DOUYIN API
基于 douyin-api 封装的抖音生态服务端接口
使用
导入模块:
import { DouyinAppModule } from 'nestjs-douyin-api'
@Module({
imports: [
DouyinAppModule.forRoot({ appid: '', secret: '' })
]
})
使用:
import { DouyinAppService } from 'nestjs-douyin-api'
@Injectable()
export class UserService {
constructor(private readonly douyinAppService: DouyinAppService) {}
}
当成工具类使用:
import { DouyinAppService } from 'nestjs-douyin-api'
const douyinApp = new DouyinAppService({ appid: '', secret: '' })