New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

nest-tiktok-sdk-applet

Package Overview
Dependencies
Maintainers
1
Versions
11
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

nest-tiktok-sdk-applet

tiktok-sdk-applet

  • 0.0.8
  • latest
  • npm
  • Socket score

Version published
Weekly downloads
0
decreased by-100%
Maintainers
1
Weekly downloads
 
Created
Source

Nest Logo

nest-tiktok-sdk-applet ⚠️temporary internal use

tiktok ISV SDK

内部测试版本请勿用于生产

Installation

Yarn

yarn nest-tiktok-sdk-applet
# APPID 三方小程序APPID
# AUTH_URL 获取授权地址
# COMPONENT_APPID ISV APPID

NPM

npm install nest-tiktok-sdk-applet

Getting Started

Let's register the ClickHouseModule in app.module.ts

import { Module } from '@nestjs/common'
import { TiktokSdkAppletModule} from 'nest-tiktok-sdk-applet'

@Module({
    imports: [
        TiktokSdkAppletModule.forRoot({
            APPID: configService.get('APPID'),
            AUTH_URL: configService.get('AUTH_URL'),
            COMPONENT_APPID: configService.get('COMPONENT_APPID'),
          }),
    ],
})
export class AppModule {}

With Async

import { Module } from '@nestjs/common';
import { TiktokSdkAppletModule} from 'nest-tiktok-sdk-applet'

@Module({
    imports: [
        TiktokSdkAppletModule.forRootAsync({
            useFactory: (configService: ConfigService) => ({
                APPID: configService.get('APPID'),
                AUTH_URL: configService.get('AUTH_URL'),
                COMPONENT_APPID: configService.get('COMPONENT_APPID'),
            }),
            inject:[ConfigService]
        }),
    ],
})
export class AppModule {}

And use in your service

import { Injectable } from '@nestjs/common';
import { TiktokSdkAppletService } from 'nest-tiktok-sdk-applet';

@Injectable()
export class TestService {
  constructor(
    private readonly tiktokSdkAppletService: TiktokSdkAppletService
  ) { }
}

Options

export interface ConfigModule {
    AUTH_URL: string;
    APPID: string;
    COMPONENT_APPID: string;
}

That's it!

Keywords

FAQs

Package last updated on 19 May 2022

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc