-
Notifications
You must be signed in to change notification settings - Fork 30
/
Copy pathmodule-attach.yml
109 lines (102 loc) · 3.98 KB
/
module-attach.yml
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
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
---
openapi: 3.0.0
info:
title: LINE Messaging API
version: "0.0.1"
description:
This document describes LINE Messaging API.
servers:
- url: "https://manager.line.biz"
security:
- basicAuth: []
tags:
- name: line-module-attach
paths:
"/module/auth/v1/token":
post:
externalDocs:
url: https://developers.line.biz/en/reference/partner-docs/#link-attach-by-operation-module-channel-provider
tags:
- line-module-attach
operationId: attachModule
description: "Attach by operation of the module channel provider"
requestBody:
required: true
content:
application/x-www-form-urlencoded:
schema:
description: "request of the attachModule"
type: object
properties:
grant_type:
type: string
description: "authorization_code"
example: authorization_code
code:
type: string
description: "Authorization code received from the LINE Platform."
redirect_uri:
type: string
description: "Specify the redirect_uri specified in the URL for authentication and authorization."
code_verifier:
type: string
description: "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."
client_id:
type: string
description: |+
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.
client_secret:
type: string
description: |+
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.
region:
type: string
description: |+
If you specified a value for region in the URL for authentication and authorization, specify the same value.
basic_search_id:
type: string
description: "If you specified a value for basic_search_id in the URL for authentication and authorization, specify the same value."
scope:
type: string
description: "If you specified a value for scope in the URL for authentication and authorization, specify the same value."
brand_type:
type: string
description: "If you specified a value for brand_type in the URL for authentication and authorization, specify the same value."
required:
- grant_type
- code
- redirect_uri
responses:
"200":
content:
"application/json":
schema:
$ref: "#/components/schemas/AttachModuleResponse"
example:
bot_id: U45c5c51f0050ef0f0ee7261d57fd3c56
scopes:
- message:send
- message:receive
description: "OK"
components:
securitySchemes:
basicAuth:
type: http
scheme: basic
schemas:
AttachModuleResponse:
description: "Attach by operation of the module channel provider"
required:
- bot_id
- scopes
properties:
bot_id:
type: string
description: "User ID of the bot on the LINE Official Account."
scopes:
type: array
description: "Permissions (scope) granted by the LINE Official Account admin."
items:
type: string