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-01 22:48:11 +0900
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
16217ca38f70e30d7d274da98d065c32e0f02dc4
16217ca3
1 parent
052597e8
Add require/API_URL/TOKEN/KEY
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
2 deletions
DailyBoxOfficeList.js
DailyBoxOfficeList.js
View file @
16217ca
//=============================================================
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
TOKEN
=
config
.
TOKEN
;
const
BOXOFFICE_URL
=
'http://www.kobis.or.kr/kobisopenapi/webservice/rest/boxoffice/searchDailyBoxOfficeList.json'
const
KOFIC_KEY
=
config
.
KOFIC_KEY
;
//=============================================================
// 어제 기준 영화 순위(1위 ~ 5위) 출력
exports
.
ShowYesterdayRank
=
function
(
replyToken
)
{
var
yesterday
=
GetYesterday
();
var
yesterday
=
exports
.
GetYesterday
();
request
.
get
(
{
...
...
Please
register
or
login
to post a comment