Toggle navigation
Toggle navigation
This project
Loading...
Sign in
이유혁
/
OSS_Project_Chatbot
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Graphs
Network
Create a new issue
Commits
Issue Boards
Authored by
이유혁
2019-11-13 15:41:38 +0900
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
3cec1995b28a724a078fe377baac88e4d297f1af
3cec1995
1 parent
7c91e9c5
LINE API Key setting & runtime test finished
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
app.js
app.js
View file @
3cec199
...
...
@@ -18,8 +18,8 @@ var client_id = 'xZMx34y7uru1v8lywZ2d';
var
client_secret
=
'p6L7M7WsH9'
;
const
config
=
{
channelAccessToken
:
'
mnny0MJSezgBXzR9C3Ddcc1Csdb7Y9jkvy2nqV5saOmvR2YOJ1/kj/2M0CNsLA+57B2qDpdUQ7WbCTtIKx/LAJ6Kwfop4tX3up7EM8H9EZK1td6GMbhhCb6wvUFVdb1PcTO4joCv8mspd3ubo8a+gA
dB04t89/1O/w1cDnyilFU='
,
channelSecret
:
'
bde77633a16fc5bfbd532d5990c6170e
'
,
channelAccessToken
:
'
TgqvFO0cHkSMEiRkJhLMCbfNzzO4Yhpdf8Ov+cr4tBPh2teSilW22TfEfTlxMHFBGufqslip3EYSdppQTCAThCEzf4xc6q8YEtPjF66hmyGOpLZoPK41VTWorrkOmBmmqysb11rElm50Wz6kvM/gog
dB04t89/1O/w1cDnyilFU='
,
channelSecret
:
'
ff1a934d000f5bfa265ed9fe2eedb0e7
'
,
};
...
...
@@ -33,7 +33,7 @@ const client = new line.Client(config);
// about the middleware, please refer to doc
app
.
post
(
'/webhook'
,
line
.
middleware
(
config
),
(
req
,
res
)
=>
{
Promise
.
all
(
req
.
body
.
events
.
map
(
handleEvent
))
.
all
(
req
.
body
.
events
.
map
(
event
=>
handleEvent
(
event
)
))
.
then
((
result
)
=>
res
.
json
(
result
))
.
catch
((
err
)
=>
{
console
.
error
(
err
);
...
...
Please
register
or
login
to post a comment