UNPKG

4.54 kBTypeScriptView Raw
1/**
2 * LINE Messaging API
3 * This document describes LINE Messaging API.
4 *
5 * The version of the OpenAPI document: 0.0.1
6 *
7 *
8 * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9 * https://openapi-generator.tech
10 * Do not edit the class manually.
11 */
12import { AttachModuleResponse } from "../model/attachModuleResponse";
13import * as Types from "../../types";
14interface httpClientConfig {
15 baseURL?: string;
16 channelAccessToken: string;
17}
18export declare class LineModuleAttachClient {
19 private httpClient;
20 constructor(config: httpClientConfig);
21 private parseHTTPResponse;
22 /**
23 * Attach by operation of the module channel provider
24 * @param grantType authorization_code
25 * @param code Authorization code received from the LINE Platform.
26 * @param redirectUri Specify the redirect_uri specified in the URL for authentication and authorization.
27 * @param codeVerifier Specify when using PKCE (Proof Key for Code Exchange) defined in the OAuth 2.0 extension specification as a countermeasure against authorization code interception attacks.
28 * @param clientId Instead of using Authorization header, you can use this parameter to specify the channel ID of the module channel. You can find the channel ID of the module channel in the LINE Developers Console.
29 * @param clientSecret Instead of using Authorization header, you can use this parameter to specify the channel secret of the module channel. You can find the channel secret of the module channel in the LINE Developers Console.
30 * @param region If you specified a value for region in the URL for authentication and authorization, specify the same value.
31 * @param basicSearchId If you specified a value for basic_search_id in the URL for authentication and authorization, specify the same value.
32 * @param scope If you specified a value for scope in the URL for authentication and authorization, specify the same value.
33 * @param brandType If you specified a value for brand_type in the URL for authentication and authorization, specify the same value.
34 *
35 * @see <a href="https://developers.line.biz/en/reference/partner-docs/#link-attach-by-operation-module-channel-provider"> Documentation</a>
36 */
37 attachModule(grantType?: string, code?: string, redirectUri?: string, codeVerifier?: string, clientId?: string, clientSecret?: string, region?: string, basicSearchId?: string, scope?: string, brandType?: string): Promise<AttachModuleResponse>;
38 /**
39 * Attach by operation of the module channel provider.
40 * This method includes HttpInfo object to return additional information.
41 * @param grantType authorization_code
42 * @param code Authorization code received from the LINE Platform.
43 * @param redirectUri Specify the redirect_uri specified in the URL for authentication and authorization.
44 * @param codeVerifier Specify when using PKCE (Proof Key for Code Exchange) defined in the OAuth 2.0 extension specification as a countermeasure against authorization code interception attacks.
45 * @param clientId Instead of using Authorization header, you can use this parameter to specify the channel ID of the module channel. You can find the channel ID of the module channel in the LINE Developers Console.
46 * @param clientSecret Instead of using Authorization header, you can use this parameter to specify the channel secret of the module channel. You can find the channel secret of the module channel in the LINE Developers Console.
47 * @param region If you specified a value for region in the URL for authentication and authorization, specify the same value.
48 * @param basicSearchId If you specified a value for basic_search_id in the URL for authentication and authorization, specify the same value.
49 * @param scope If you specified a value for scope in the URL for authentication and authorization, specify the same value.
50 * @param brandType If you specified a value for brand_type in the URL for authentication and authorization, specify the same value.
51 *
52 * @see <a href="https://developers.line.biz/en/reference/partner-docs/#link-attach-by-operation-module-channel-provider"> Documentation</a>
53 */
54 attachModuleWithHttpInfo(grantType?: string, code?: string, redirectUri?: string, codeVerifier?: string, clientId?: string, clientSecret?: string, region?: string, basicSearchId?: string, scope?: string, brandType?: string): Promise<Types.ApiResponseType<AttachModuleResponse>>;
55}
56export {};