Showing
1 changed file
with
2 additions
and
2 deletions
... | @@ -80,7 +80,7 @@ function handleEvent(event) { | ... | @@ -80,7 +80,7 @@ function handleEvent(event) { |
80 | headers: {'X-Naver-Client-Id': client_id, 'X-Naver-Client-Secret': client_secret} | 80 | headers: {'X-Naver-Client-Id': client_id, 'X-Naver-Client-Secret': client_secret} |
81 | }; | 81 | }; |
82 | //papago 언어 감지 | 82 | //papago 언어 감지 |
83 | - request.post(detect_options,async (error,response,body)=>{ | 83 | + request.post(detect_options, (error,response,body)=>{ |
84 | if(!error && response.statusCode == 200){ | 84 | if(!error && response.statusCode == 200){ |
85 | var detect_body = JSON.parse(response.body); | 85 | var detect_body = JSON.parse(response.body); |
86 | var source = ''; | 86 | var source = ''; |
... | @@ -104,7 +104,7 @@ function handleEvent(event) { | ... | @@ -104,7 +104,7 @@ function handleEvent(event) { |
104 | }; | 104 | }; |
105 | 105 | ||
106 | // Naver Post API | 106 | // Naver Post API |
107 | - await request.post(options, function(error, response, body){ | 107 | + request.post(options, function(error, response, body){ |
108 | // Translate API Sucess | 108 | // Translate API Sucess |
109 | if(!error && response.statusCode == 200){ | 109 | if(!error && response.statusCode == 200){ |
110 | // JSON | 110 | // JSON | ... | ... |
-
Please register or login to post a comment