Toggle navigation
Toggle navigation
This project
Loading...
Sign in
백승욱
/
movie-reco-chatbot
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Snippets
Network
Create a new issue
Builds
Commits
Issue Boards
Authored by
백승욱
2022-06-03 19:27:53 +0900
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
91a28f96407c46f57fd9344816f4b03c791f5459
91a28f96
1 parent
7f84e189
Modify API_URL
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
4 deletions
DailyBoxOfficeList.js
main.js
DailyBoxOfficeList.js
View file @
91a28f9
...
...
@@ -3,9 +3,9 @@ var express = require('express');
const
request
=
require
(
'request'
);
const
config
=
require
(
'./config.json'
);
//=============================================================
const
LINE_URL
=
'https://api.line.me/v2/bot/message/reply'
const
LINE_URL
=
'https://api.line.me/v2/bot/message/reply'
;
const
TOKEN
=
config
.
TOKEN
;
const
BOXOFFICE_URL
=
'http://www.kobis.or.kr/kobisopenapi/webservice/rest/boxoffice/searchDailyBoxOfficeList.json'
const
KOFIC_URL
=
'http://www.kobis.or.kr/kobisopenapi/webservice/rest'
;
const
KOFIC_KEY
=
config
.
KOFIC_KEY
;
//=============================================================
...
...
@@ -16,7 +16,7 @@ exports.ShowYesterdayRank = function(replyToken) {
request
.
get
(
{
url
:
BOXOFFICE_URL
+
`
?key=
${
KOFIC_KEY
}
&targetDt=
${
yesterday
}
`
,
url
:
KOFIC_URL
+
`/boxoffice/searchDailyBoxOfficeList.json
?key=
${
KOFIC_KEY
}
&targetDt=
${
yesterday
}
`
,
json
:
true
},(
error
,
response
,
body
)
=>
{
if
(
!
error
&&
response
.
statusCode
==
200
)
{
...
...
main.js
View file @
91a28f9
...
...
@@ -6,7 +6,7 @@ const dailyBoxOfficeList = require('./DailyBoxOfficeList.js');
//=============================================================
const
LINE_URL
=
'https://api.line.me/v2/bot/message/reply'
const
TOKEN
=
config
.
TOKEN
;
const
BOXOFFICE_URL
=
'http://www.kobis.or.kr/kobisopenapi/webservice/rest/boxoffice/searchDailyBoxOfficeList.json'
const
KOFIC_URL
=
'http://www.kobis.or.kr/kobisopenapi/webservice/rest'
;
const
KOFIC_KEY
=
config
.
KOFIC_KEY
;
//=============================================================
const
fs
=
require
(
'fs'
);
...
...
Please
register
or
login
to post a comment