문성준

Merge branch 'feature/MovieList'(for version 1.0)

...@@ -4,7 +4,6 @@ var config = require('./config.json'); ...@@ -4,7 +4,6 @@ var config = require('./config.json');
4 const TARGET_URL = 'https://api.line.me/v2/bot/message/reply' 4 const TARGET_URL = 'https://api.line.me/v2/bot/message/reply'
5 const TOKEN = config.TOKEN; 5 const TOKEN = config.TOKEN;
6 const KOFIC_URL = 'http://www.kobis.or.kr/kobisopenapi/webservice/rest' 6 const KOFIC_URL = 'http://www.kobis.or.kr/kobisopenapi/webservice/rest'
7 -const bodyParser = require('body-parser');
8 7
9 //Enter a movie title in the message variable. 8 //Enter a movie title in the message variable.
10 //It will then return the movie title, director, and actor information to Line Messenger. 9 //It will then return the movie title, director, and actor information to Line Messenger.
...@@ -12,7 +11,7 @@ exports.movielist = function (replyToken, message) { ...@@ -12,7 +11,7 @@ exports.movielist = function (replyToken, message) {
12 var encodedMessage = encodeURI(message); 11 var encodedMessage = encodeURI(message);
13 request.get( 12 request.get(
14 { 13 {
15 - url: KOFIC_URL+`/movie/searchMovieList.json?key=${config.KOFIC_KEY_MovieList}&movieNm=${encodedMessage}`, 14 + url: KOFIC_URL+`/movie/searchMovieList.json?key=${config.KOFIC_KEY}&movieNm=${encodedMessage}`,
16 json:true 15 json:true
17 },(error, response, body) => { 16 },(error, response, body) => {
18 if(!error && response.statusCode == 200) { 17 if(!error && response.statusCode == 200) {
......