1 |
|
2 |
|
3 |
|
4 |
|
5 |
|
6 |
|
7 |
|
8 |
|
9 |
|
10 |
|
11 |
|
12 |
|
13 | import { GetMessageContentTranscodingResponse } from "../model/getMessageContentTranscodingResponse.js";
|
14 | import * as Types from "../../types.js";
|
15 | import { Readable } from "node:stream";
|
16 | interface httpClientConfig {
|
17 | baseURL?: string;
|
18 | channelAccessToken: string;
|
19 | }
|
20 | export declare class MessagingApiBlobClient {
|
21 | private httpClient;
|
22 | constructor(config: httpClientConfig);
|
23 | private parseHTTPResponse;
|
24 | /**
|
25 | * Download image, video, and audio data sent from users.
|
26 | * @param messageId Message ID of video or audio
|
27 | *
|
28 | * @see <a href="https://developers.line.biz/en/reference/messaging-api/#get-content"> Documentation</a>
|
29 | */
|
30 | getMessageContent(messageId: string): Promise<Readable>;
|
31 | /**
|
32 | * Download image, video, and audio data sent from users..
|
33 | * This method includes HttpInfo object to return additional information.
|
34 | * @param messageId Message ID of video or audio
|
35 | *
|
36 | * @see <a href="https://developers.line.biz/en/reference/messaging-api/#get-content"> Documentation</a>
|
37 | */
|
38 | getMessageContentWithHttpInfo(messageId: string): Promise<Types.ApiResponseType<Readable>>;
|
39 | /**
|
40 | * Get a preview image of the image or video
|
41 | * @param messageId Message ID of image or video
|
42 | *
|
43 | * @see <a href="https://developers.line.biz/en/reference/messaging-api/#get-image-or-video-preview"> Documentation</a>
|
44 | */
|
45 | getMessageContentPreview(messageId: string): Promise<Readable>;
|
46 | /**
|
47 | * Get a preview image of the image or video.
|
48 | * This method includes HttpInfo object to return additional information.
|
49 | * @param messageId Message ID of image or video
|
50 | *
|
51 | * @see <a href="https://developers.line.biz/en/reference/messaging-api/#get-image-or-video-preview"> Documentation</a>
|
52 | */
|
53 | getMessageContentPreviewWithHttpInfo(messageId: string): Promise<Types.ApiResponseType<Readable>>;
|
54 | /**
|
55 | * Verify the preparation status of a video or audio for getting
|
56 | * @param messageId Message ID of video or audio
|
57 | *
|
58 | * @see <a href="https://developers.line.biz/en/reference/messaging-api/#verify-video-or-audio-preparation-status"> Documentation</a>
|
59 | */
|
60 | getMessageContentTranscodingByMessageId(messageId: string): Promise<GetMessageContentTranscodingResponse>;
|
61 | /**
|
62 | * Verify the preparation status of a video or audio for getting.
|
63 | * This method includes HttpInfo object to return additional information.
|
64 | * @param messageId Message ID of video or audio
|
65 | *
|
66 | * @see <a href="https://developers.line.biz/en/reference/messaging-api/#verify-video-or-audio-preparation-status"> Documentation</a>
|
67 | */
|
68 | getMessageContentTranscodingByMessageIdWithHttpInfo(messageId: string): Promise<Types.ApiResponseType<GetMessageContentTranscodingResponse>>;
|
69 | /**
|
70 | * Download rich menu image.
|
71 | * @param richMenuId ID of the rich menu with the image to be downloaded
|
72 | *
|
73 | * @see <a href="https://developers.line.biz/en/reference/messaging-api/#download-rich-menu-image"> Documentation</a>
|
74 | */
|
75 | getRichMenuImage(richMenuId: string): Promise<Readable>;
|
76 | /**
|
77 | * Download rich menu image..
|
78 | * This method includes HttpInfo object to return additional information.
|
79 | * @param richMenuId ID of the rich menu with the image to be downloaded
|
80 | *
|
81 | * @see <a href="https://developers.line.biz/en/reference/messaging-api/#download-rich-menu-image"> Documentation</a>
|
82 | */
|
83 | getRichMenuImageWithHttpInfo(richMenuId: string): Promise<Types.ApiResponseType<Readable>>;
|
84 | /**
|
85 | * Upload rich menu image
|
86 | * @param richMenuId The ID of the rich menu to attach the image to
|
87 | * @param body
|
88 | *
|
89 | * @see <a href="https://developers.line.biz/en/reference/messaging-api/#upload-rich-menu-image"> Documentation</a>
|
90 | */
|
91 | setRichMenuImage(richMenuId: string, body?: Blob): Promise<Types.MessageAPIResponseBase>;
|
92 | /**
|
93 | * Upload rich menu image.
|
94 | * This method includes HttpInfo object to return additional information.
|
95 | * @param richMenuId The ID of the rich menu to attach the image to
|
96 | * @param body
|
97 | *
|
98 | * @see <a href="https://developers.line.biz/en/reference/messaging-api/#upload-rich-menu-image"> Documentation</a>
|
99 | */
|
100 | setRichMenuImageWithHttpInfo(richMenuId: string, body?: Blob): Promise<Types.ApiResponseType<Types.MessageAPIResponseBase>>;
|
101 | }
|
102 | export {};
|
103 |
|
\ | No newline at end of file |