1 |
|
2 |
|
3 |
|
4 |
|
5 |
|
6 |
|
7 |
|
8 |
|
9 |
|
10 |
|
11 |
|
12 | import { GetFriendsDemographicsResponse } from "../model/getFriendsDemographicsResponse.js";
|
13 | import { GetMessageEventResponse } from "../model/getMessageEventResponse.js";
|
14 | import { GetNumberOfFollowersResponse } from "../model/getNumberOfFollowersResponse.js";
|
15 | import { GetNumberOfMessageDeliveriesResponse } from "../model/getNumberOfMessageDeliveriesResponse.js";
|
16 | import { GetStatisticsPerUnitResponse } from "../model/getStatisticsPerUnitResponse.js";
|
17 | import * as Types from "../../types.js";
|
18 | interface httpClientConfig {
|
19 | baseURL?: string;
|
20 | channelAccessToken: string;
|
21 | }
|
22 | export declare class InsightClient {
|
23 | private httpClient;
|
24 | constructor(config: httpClientConfig);
|
25 | private parseHTTPResponse;
|
26 | /**
|
27 | * Retrieves the demographic attributes for a LINE Official Account\'s friends.You can only retrieve information about friends for LINE Official Accounts created by users in Japan (JP), Thailand (TH), Taiwan (TW) and Indonesia (ID).
|
28 | *
|
29 | * @see <a href="https://developers.line.biz/en/reference/messaging-api/#get-demographic"> Documentation</a>
|
30 | */
|
31 | getFriendsDemographics(): Promise<GetFriendsDemographicsResponse>;
|
32 | /**
|
33 | * Retrieves the demographic attributes for a LINE Official Account\'s friends.You can only retrieve information about friends for LINE Official Accounts created by users in Japan (JP), Thailand (TH), Taiwan (TW) and Indonesia (ID). .
|
34 | * This method includes HttpInfo object to return additional information.
|
35 | *
|
36 | * @see <a href="https://developers.line.biz/en/reference/messaging-api/#get-demographic"> Documentation</a>
|
37 | */
|
38 | getFriendsDemographicsWithHttpInfo(): Promise<Types.ApiResponseType<GetFriendsDemographicsResponse>>;
|
39 | /**
|
40 | * Returns statistics about how users interact with narrowcast messages or broadcast messages sent from your LINE Official Account.
|
41 | * @summary Get user interaction statistics
|
42 | * @param requestId Request ID of a narrowcast message or broadcast message. Each Messaging API request has a request ID.
|
43 | *
|
44 | * @see <a href="https://developers.line.biz/en/reference/messaging-api/#get-message-event">Get user interaction statistics Documentation</a>
|
45 | */
|
46 | getMessageEvent(requestId: string): Promise<GetMessageEventResponse>;
|
47 | /**
|
48 | * Returns statistics about how users interact with narrowcast messages or broadcast messages sent from your LINE Official Account. .
|
49 | * This method includes HttpInfo object to return additional information.
|
50 | * @summary Get user interaction statistics
|
51 | * @param requestId Request ID of a narrowcast message or broadcast message. Each Messaging API request has a request ID.
|
52 | *
|
53 | * @see <a href="https://developers.line.biz/en/reference/messaging-api/#get-message-event">Get user interaction statistics Documentation</a>
|
54 | */
|
55 | getMessageEventWithHttpInfo(requestId: string): Promise<Types.ApiResponseType<GetMessageEventResponse>>;
|
56 | /**
|
57 | * Returns the number of users who have added the LINE Official Account on or before a specified date.
|
58 | * @summary Get number of followers
|
59 | * @param date Date for which to retrieve the number of followers. Format: yyyyMMdd (e.g. 20191231) Timezone: UTC+9
|
60 | *
|
61 | * @see <a href="https://developers.line.biz/en/reference/messaging-api/#get-number-of-followers">Get number of followers Documentation</a>
|
62 | */
|
63 | getNumberOfFollowers(date?: string): Promise<GetNumberOfFollowersResponse>;
|
64 | /**
|
65 | * Returns the number of users who have added the LINE Official Account on or before a specified date. .
|
66 | * This method includes HttpInfo object to return additional information.
|
67 | * @summary Get number of followers
|
68 | * @param date Date for which to retrieve the number of followers. Format: yyyyMMdd (e.g. 20191231) Timezone: UTC+9
|
69 | *
|
70 | * @see <a href="https://developers.line.biz/en/reference/messaging-api/#get-number-of-followers">Get number of followers Documentation</a>
|
71 | */
|
72 | getNumberOfFollowersWithHttpInfo(date?: string): Promise<Types.ApiResponseType<GetNumberOfFollowersResponse>>;
|
73 | /**
|
74 | * Returns the number of messages sent from LINE Official Account on a specified day.
|
75 | * @summary Get number of message deliveries
|
76 | * @param date Date for which to retrieve number of sent messages. - Format: yyyyMMdd (e.g. 20191231) - Timezone: UTC+9
|
77 | *
|
78 | * @see <a href="https://developers.line.biz/en/reference/messaging-api/#get-number-of-delivery-messages">Get number of message deliveries Documentation</a>
|
79 | */
|
80 | getNumberOfMessageDeliveries(date: string): Promise<GetNumberOfMessageDeliveriesResponse>;
|
81 | /**
|
82 | * Returns the number of messages sent from LINE Official Account on a specified day. .
|
83 | * This method includes HttpInfo object to return additional information.
|
84 | * @summary Get number of message deliveries
|
85 | * @param date Date for which to retrieve number of sent messages. - Format: yyyyMMdd (e.g. 20191231) - Timezone: UTC+9
|
86 | *
|
87 | * @see <a href="https://developers.line.biz/en/reference/messaging-api/#get-number-of-delivery-messages">Get number of message deliveries Documentation</a>
|
88 | */
|
89 | getNumberOfMessageDeliveriesWithHttpInfo(date: string): Promise<Types.ApiResponseType<GetNumberOfMessageDeliveriesResponse>>;
|
90 | /**
|
91 | * You can check the per-unit statistics of how users interact with push messages and multicast messages sent from your LINE Official Account.
|
92 | * @param customAggregationUnit Name of aggregation unit specified when sending the message. Case-sensitive. For example, `Promotion_a` and `Promotion_A` are regarded as different unit names.
|
93 | * @param from Start date of aggregation period. Format: yyyyMMdd (e.g. 20210301) Time zone: UTC+9
|
94 | * @param to End date of aggregation period. The end date can be specified for up to 30 days later. For example, if the start date is 20210301, the latest end date is 20210331. Format: yyyyMMdd (e.g. 20210301) Time zone: UTC+9
|
95 | *
|
96 | * @see <a href="https://developers.line.biz/en/reference/messaging-api/#get-statistics-per-unit"> Documentation</a>
|
97 | */
|
98 | getStatisticsPerUnit(customAggregationUnit: string, from: string, to: string): Promise<GetStatisticsPerUnitResponse>;
|
99 | /**
|
100 | * You can check the per-unit statistics of how users interact with push messages and multicast messages sent from your LINE Official Account. .
|
101 | * This method includes HttpInfo object to return additional information.
|
102 | * @param customAggregationUnit Name of aggregation unit specified when sending the message. Case-sensitive. For example, `Promotion_a` and `Promotion_A` are regarded as different unit names.
|
103 | * @param from Start date of aggregation period. Format: yyyyMMdd (e.g. 20210301) Time zone: UTC+9
|
104 | * @param to End date of aggregation period. The end date can be specified for up to 30 days later. For example, if the start date is 20210301, the latest end date is 20210331. Format: yyyyMMdd (e.g. 20210301) Time zone: UTC+9
|
105 | *
|
106 | * @see <a href="https://developers.line.biz/en/reference/messaging-api/#get-statistics-per-unit"> Documentation</a>
|
107 | */
|
108 | getStatisticsPerUnitWithHttpInfo(customAggregationUnit: string, from: string, to: string): Promise<Types.ApiResponseType<GetStatisticsPerUnitResponse>>;
|
109 | }
|
110 | export {};
|
111 |
|
\ | No newline at end of file |