0.0.9 • Published 3 years ago

@ionia/tiktok v0.0.9

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

Tiktok module for Nest framework (node.js) 🗂

Installation

To begin using it, we first install the required dependency.

yarn add @ionia/tiktok

# or

npm install @ionia/tiktok

Getting started

Once the installation process is complete, to use the TikTokService, first import TikTokModule.

import { TikTokModule } from "@ionia/tiktok";

@Module({
  imports: [
    TikTokModule.register({
      appId: "Your AppId",
      appSecret: "Your AppSecret",
    }),
  ],
  providers: [MemberService],
})
export class MemberModule {}

Next, inject TikTokService using normal constructor injection.

@Injectable()
export class MemberService {
  constructor(private tikTokService: TikTokService) {}

  async login(@Body() dto: Code2SessionRequest): Promise<Code2SessionResult> {
    return await this.tikTokService.code2Session(dto);
  }
}
0.0.9

3 years ago

0.0.8

3 years ago

0.0.7

3 years ago

0.0.6

3 years ago

0.0.5

3 years ago

0.0.3

3 years ago

0.0.2

3 years ago

0.0.1

3 years ago