Toggle navigation
Toggle navigation
This project
Loading...
Sign in
term-project
/
project
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
박주영
2020-11-28 00:44:07 +0900
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
6f27098a8a7adbfb78ae2f8b34006d27eeb6d0b4
6f27098a
1 parent
33ac0792
line notify 이용하기
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
17 additions
and
0 deletions
express/chatbot.js
express/chatbot.js
0 → 100644
View file @
6f27098
const
request
=
require
(
'request'
);
const
url
=
'https://notify-api.line.me/api/notify'
;
const
token
=
'BX7LrLUnmQ2QosiYlg5g8BIXKcfraZnFvLqpLhMBjY8'
;
request
.
post
(
{
url
:
url
,
headers
:
{
'Authorization'
:
`Bearer
${
token
}
`
},
form
:
{
message
:
'안녕하세요. 유해물질 알리미 챗봇입니다.'
,
stickerPackageId
:
1
,
stickerId
:
1
}
},(
error
,
response
,
body
)
=>
{
console
.
log
(
body
)
});
Please
register
or
login
to post a comment