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 18:34:31 +0900
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
bd38bfb21d7775577c42109aea069ca6f8b76f4c
bd38bfb2
1 parent
19acf2b3
Update KOFIC_URL
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
3 deletions
MovieInfo.js
MovieInfo.js
View file @
bd38bfb
...
...
@@ -5,14 +5,14 @@ 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_URL
=
'http://www.kobis.or.kr/kobisopenapi/webservice/rest
'
const
KOFIC_KEY
=
config
.
KOFIC_KEY
;
//=============================================================
export
function
MovieInfo
(
replyToken
,
message
)
{
request
.
get
(
{
url
:
KOFIC_URL
+
`?key=
${
KOFIC_KEY
}
&movieCd=
${
message
}
`
,
url
:
KOFIC_URL
+
`
/movie/searchMovieInfo.json
?key=
${
KOFIC_KEY
}
&movieCd=
${
message
}
`
,
json
:
true
},(
error
,
response
,
body
)
=>
{
if
(
!
error
&&
response
.
statusCode
==
200
)
{
...
...
@@ -53,5 +53,4 @@ export function MovieInfo(replyToken, message) {
});
}
});
}
...
...
Please
register
or
login
to post a comment