Showing
1 changed file
with
2 additions
and
3 deletions
... | @@ -5,14 +5,14 @@ const config = require('./config.json'); | ... | @@ -5,14 +5,14 @@ const config = require('./config.json'); |
5 | //============================================================= | 5 | //============================================================= |
6 | const LINE_URL = 'https://api.line.me/v2/bot/message/reply' | 6 | const LINE_URL = 'https://api.line.me/v2/bot/message/reply' |
7 | const TOKEN = config.TOKEN; | 7 | const TOKEN = config.TOKEN; |
8 | -const BOXOFFICE_URL = 'http://www.kobis.or.kr/kobisopenapi/webservice/rest/boxoffice/searchDailyBoxOfficeList.json' | 8 | +const KOFIC_URL = 'http://www.kobis.or.kr/kobisopenapi/webservice/rest' |
9 | const KOFIC_KEY = config.KOFIC_KEY; | 9 | const KOFIC_KEY = config.KOFIC_KEY; |
10 | //============================================================= | 10 | //============================================================= |
11 | 11 | ||
12 | export function MovieInfo(replyToken, message) { | 12 | export function MovieInfo(replyToken, message) { |
13 | request.get( | 13 | request.get( |
14 | { | 14 | { |
15 | - url: KOFIC_URL+`?key=${KOFIC_KEY}&movieCd=${message}`, | 15 | + url: KOFIC_URL+`/movie/searchMovieInfo.json?key=${KOFIC_KEY}&movieCd=${message}`, |
16 | json:true | 16 | json:true |
17 | },(error, response, body) => { | 17 | },(error, response, body) => { |
18 | if(!error && response.statusCode == 200) { | 18 | if(!error && response.statusCode == 200) { |
... | @@ -53,5 +53,4 @@ export function MovieInfo(replyToken, message) { | ... | @@ -53,5 +53,4 @@ export function MovieInfo(replyToken, message) { |
53 | }); | 53 | }); |
54 | } | 54 | } |
55 | }); | 55 | }); |
56 | - | ||
57 | } | 56 | } | ... | ... |
-
Please register or login to post a comment