UNPKG

@intocode-io/fireliff-cli

Version:

Command line interface for building LIFF app on Firebase

14 lines (12 loc) 351 B
import { RichMenuRequest } from './rich-menu-request'; export class RichMenuLinkUserRequest extends RichMenuRequest { constructor(options) { super(options); this.endpoint = 'https://api.line.me/v2/bot'; } send(richMenuId, userId) { return this.axios.post( `${this.endpoint}/user/${userId}/richmenu/${richMenuId}` ); } }