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:58 +0900
Browse Files
Options
Browse Files
Download
Plain Diff
Commit
1fa20e85b4e86059af718c19f15ae7eb265b1a57
1fa20e85
2 parents
f111ab57
951a82b1
Merge branch 'feature/MovieList'(for version 1.0)
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 additions
and
2 deletions
MovieList.js
MovieList.js
View file @
1fa20e8
...
...
@@ -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