은승우

app.js

File mode changed
...@@ -14,18 +14,18 @@ var languagedetect_api_url = 'https://openapi.naver.com/v1/papago/detectLangs' ...@@ -14,18 +14,18 @@ var languagedetect_api_url = 'https://openapi.naver.com/v1/papago/detectLangs'
14 14
15 // Naver Auth Key 15 // Naver Auth Key
16 //새로 발급받은 naver papago api id, pw 입력 16 //새로 발급받은 naver papago api id, pw 입력
17 -var client_id = 'xZMx34y7uru1v8lywZ2d'; 17 +var client_id = 'bIYcswH22VlQqT8OkkLm';
18 -var client_secret = 'p6L7M7WsH9'; 18 +var client_secret = 'qLaERoks0u';
19 19
20 const config = { 20 const config = {
21 - channelAccessToken: 'mnny0MJSezgBXzR9C3Ddcc1Csdb7Y9jkvy2nqV5saOmvR2YOJ1/kj/2M0CNsLA+57B2qDpdUQ7WbCTtIKx/LAJ6Kwfop4tX3up7EM8H9EZK1td6GMbhhCb6wvUFVdb1PcTO4joCv8mspd3ubo8a+gAdB04t89/1O/w1cDnyilFU=', 21 + channelAccessToken: 'dWno95uZ/FLPM5BoTUIM1kPenQ+UsEHYSWphPWcOxyjS7eylg6jhocxvJCeV8YumuVvYf+3bE/696ZSkOPJitxhXbXDe+1p2WoyCbHzD8KxxF1EKo6zvHfnhsIA8kZS93lNzUTQr1FVWaMmRKl7NzwdB04t89/1O/w1cDnyilFU=',
22 - channelSecret: 'bde77633a16fc5bfbd532d5990c6170e', 22 + channelSecret: '75a2fd95ec26d716cac6fcdd520b9b9c'
23 +
23 }; 24 };
24 25
25 26
26 // create LINE SDK client 27 // create LINE SDK client
27 const client = new line.Client(config); 28 const client = new line.Client(config);
28 -
29 // create Express app 29 // create Express app
30 // about Express itself: https://expressjs.com/ 30 // about Express itself: https://expressjs.com/
31 31
...@@ -54,7 +54,7 @@ function handleEvent(event) { ...@@ -54,7 +54,7 @@ function handleEvent(event) {
54 form : {'query': event.message.text}, 54 form : {'query': event.message.text},
55 headers: {'X-Naver-Client-Id': client_id, 'X-Naver-Client-Secret': client_secret} 55 headers: {'X-Naver-Client-Id': client_id, 'X-Naver-Client-Secret': client_secret}
56 }; 56 };
57 - 57 + console.log("1");
58 //papago 언어 감지 58 //papago 언어 감지
59 request.post(detect_options,function(error,response,body){ 59 request.post(detect_options,function(error,response,body){
60 console.log(response.statusCode); 60 console.log(response.statusCode);
......
No preview for this file type