-
Notifications
You must be signed in to change notification settings - Fork 5
/
Client.d.ts
77 lines (77 loc) · 2.58 KB
/
Client.d.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
/// <reference types="google-apps-script" />
import * as Line from '@line/bot-sdk';
export declare class Client {
private config;
private static messagingUrl;
private static dataUrl;
constructor(config: Line.ClientConfig);
pushMessage(
to: string,
messages: Line.Message | Line.Message[],
notificationDisabled?: boolean
): Line.MessageAPIResponseBase;
replyMessage(
replyToken: string,
messages: Line.Message | Line.Message[],
notificationDisabled?: boolean
): Line.MessageAPIResponseBase;
multicast(
to: string[],
messages: Line.Message | Line.Message[],
notificationDisabled?: boolean
): Line.MessageAPIResponseBase;
getProfile(userId: string): Line.Profile;
getGroupMemberProfile(groupId: string, userId: string): Line.Profile;
getRoomMemberProfile(roomId: string, userId: string): Line.Profile;
getProfileWithEventSource(eventSource: Line.EventSource): Line.Profile;
getGroupMemberIds(groupId: string): string[];
getRoomMemberIds(roomId: string): string[];
getMessageContent(messageId: string): GoogleAppsScript.Base.Blob;
leaveGroup(groupId: string): unknown;
leaveRoom(roomId: string): unknown;
leaveWithEventSource(eventSource: Line.EventSource): unknown;
getRichMenu(richMenuId: string): Line.RichMenuResponse;
createRichMenu(richMenu: Line.RichMenu): string;
deleteRichMenu(richMenuId: string): unknown;
getRichMenuIdOfUser(userId: string): string;
linkRichMenuToUser(userId: string, richMenuId: string): unknown;
unlinkRichMenuFromUser(userId: string): unknown;
getRichMenuImage(richMenuId: string): GoogleAppsScript.Base.Blob;
setRichMenuImage(
richMenuId: string,
data: GoogleAppsScript.Base.Blob,
contentType?: string
): unknown;
getRichMenuList(): Line.RichMenuResponse[];
setDefaultRichMenu(richMenuId: string): Record<string, unknown>;
getDefaultRichMenuId(): string;
deleteDefaultRichMenu(): Record<string, unknown>;
private messagingApiUrl;
private dataApiUrl;
private pushUrl;
private replyUrl;
private multicastUrl;
private contentUrl;
private userProfileUrl;
private roomMemberProfileUrl;
private groupMemberProfileUrl;
private profileUrl;
private groupMemberIdsUrl;
private roomMemberIdsUrl;
private leaveGroupUrl;
private leaveRoomUrl;
private leaveUrl;
private richMenuUrl;
private richMenuListUrl;
private userRichMenuUrl;
private richMenuContentUrl;
private defaultRichMenuUrl;
private authHeader;
private httpGet;
private httpGetStream;
private httpPost;
private parseHTTPResponse;
private httpPostBinary;
private httpDelete;
private toArray;
}