이유혁

LINE API Key setting & runtime test finished

Showing 1 changed file with 3 additions and 3 deletions
...@@ -18,8 +18,8 @@ var client_id = 'xZMx34y7uru1v8lywZ2d'; ...@@ -18,8 +18,8 @@ var client_id = 'xZMx34y7uru1v8lywZ2d';
18 var client_secret = 'p6L7M7WsH9'; 18 var client_secret = 'p6L7M7WsH9';
19 19
20 const config = { 20 const config = {
21 - channelAccessToken: 'mnny0MJSezgBXzR9C3Ddcc1Csdb7Y9jkvy2nqV5saOmvR2YOJ1/kj/2M0CNsLA+57B2qDpdUQ7WbCTtIKx/LAJ6Kwfop4tX3up7EM8H9EZK1td6GMbhhCb6wvUFVdb1PcTO4joCv8mspd3ubo8a+gAdB04t89/1O/w1cDnyilFU=', 21 + channelAccessToken: 'TgqvFO0cHkSMEiRkJhLMCbfNzzO4Yhpdf8Ov+cr4tBPh2teSilW22TfEfTlxMHFBGufqslip3EYSdppQTCAThCEzf4xc6q8YEtPjF66hmyGOpLZoPK41VTWorrkOmBmmqysb11rElm50Wz6kvM/gogdB04t89/1O/w1cDnyilFU=',
22 - channelSecret: 'bde77633a16fc5bfbd532d5990c6170e', 22 + channelSecret: 'ff1a934d000f5bfa265ed9fe2eedb0e7',
23 }; 23 };
24 24
25 25
...@@ -33,7 +33,7 @@ const client = new line.Client(config); ...@@ -33,7 +33,7 @@ const client = new line.Client(config);
33 // about the middleware, please refer to doc 33 // about the middleware, please refer to doc
34 app.post('/webhook', line.middleware(config), (req, res) => { 34 app.post('/webhook', line.middleware(config), (req, res) => {
35 Promise 35 Promise
36 - .all(req.body.events.map(handleEvent)) 36 + .all(req.body.events.map(event => handleEvent(event)))
37 .then((result) => res.json(result)) 37 .then((result) => res.json(result))
38 .catch((err) => { 38 .catch((err) => {
39 console.error(err); 39 console.error(err);
......