Showing
2 changed files
with
4 additions
and
4 deletions
... | @@ -3,9 +3,9 @@ var express = require('express'); | ... | @@ -3,9 +3,9 @@ var express = require('express'); |
3 | const request = require('request'); | 3 | const request = require('request'); |
4 | const config = require('./config.json'); | 4 | 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 | ||
... | @@ -16,7 +16,7 @@ exports.ShowYesterdayRank = function(replyToken) { | ... | @@ -16,7 +16,7 @@ exports.ShowYesterdayRank = function(replyToken) { |
16 | 16 | ||
17 | request.get( | 17 | request.get( |
18 | { | 18 | { |
19 | - url: BOXOFFICE_URL+`?key=${KOFIC_KEY}&targetDt=${yesterday}`, | 19 | + url: KOFIC_URL+`/boxoffice/searchDailyBoxOfficeList.json?key=${KOFIC_KEY}&targetDt=${yesterday}`, |
20 | json:true | 20 | json:true |
21 | },(error, response, body) => { | 21 | },(error, response, body) => { |
22 | if(!error && response.statusCode == 200) { | 22 | if(!error && response.statusCode == 200) { | ... | ... |
... | @@ -6,7 +6,7 @@ const dailyBoxOfficeList = require('./DailyBoxOfficeList.js'); | ... | @@ -6,7 +6,7 @@ const dailyBoxOfficeList = require('./DailyBoxOfficeList.js'); |
6 | //============================================================= | 6 | //============================================================= |
7 | const LINE_URL = 'https://api.line.me/v2/bot/message/reply' | 7 | const LINE_URL = 'https://api.line.me/v2/bot/message/reply' |
8 | const TOKEN = config.TOKEN; | 8 | const TOKEN = config.TOKEN; |
9 | -const BOXOFFICE_URL = 'http://www.kobis.or.kr/kobisopenapi/webservice/rest/boxoffice/searchDailyBoxOfficeList.json' | 9 | +const KOFIC_URL = 'http://www.kobis.or.kr/kobisopenapi/webservice/rest'; |
10 | const KOFIC_KEY = config.KOFIC_KEY; | 10 | const KOFIC_KEY = config.KOFIC_KEY; |
11 | //============================================================= | 11 | //============================================================= |
12 | const fs = require('fs'); | 12 | const fs = require('fs'); | ... | ... |
-
Please register or login to post a comment