line-app-connect
v1.0.2
Published
To connect Line Messaging API
Downloads
3
Readme
Quickstart
To connect Line Messaging API
1. Install
npm install line-app-connect
2. Import LineConnectModule to AppModule (ES6 module syntax)
import { Module } from "@nestjs/common";
import { LineConnectModule } from "line-app-connect";
@Module({
imports: [
LineConnectModule.forRoot({
channelAccessToken: "[Your Channel Access Token]",
}),
],
controllers: [],
providers: [],
})
export class AppModule {}
3. Connect (ES6 module syntax)
import { LineConnectService } from 'line-app-connect';
.
.
.
constructor(private _LineConnectService: LineConnectService) {}
.
.
const profile = await _LineConnectService.getProfile("UXXXXXXXXXXXX");