문성준

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

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