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-04 22:36:15 +0900
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
951a82b120e536ed9c7d188cce39ea016f33081c
951a82b1
1 parent
f9c6bbd6
Rename a variable
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 additions
and
2 deletions
MovieList.js
MovieList.js
View file @
951a82b
...
...
@@ -4,7 +4,6 @@ var config = require('./config.json');
const
TARGET_URL
=
'https://api.line.me/v2/bot/message/reply'
const
TOKEN
=
config
.
TOKEN
;
const
KOFIC_URL
=
'http://www.kobis.or.kr/kobisopenapi/webservice/rest'
const
bodyParser
=
require
(
'body-parser'
);
//Enter a movie title in the message variable.
//It will then return the movie title, director, and actor information to Line Messenger.
...
...
@@ -12,7 +11,7 @@ exports.movielist = function (replyToken, message) {
var
encodedMessage
=
encodeURI
(
message
);
request
.
get
(
{
url
:
KOFIC_URL
+
`/movie/searchMovieList.json?key=
${
config
.
KOFIC_KEY
_MovieList
}
&movieNm=
${
encodedMessage
}
`
,
url
:
KOFIC_URL
+
`/movie/searchMovieList.json?key=
${
config
.
KOFIC_KEY
}
&movieNm=
${
encodedMessage
}
`
,
json
:
true
},(
error
,
response
,
body
)
=>
{
if
(
!
error
&&
response
.
statusCode
==
200
)
{
...
...
Please
register
or
login
to post a comment