Toggle navigation
Toggle navigation
This project
Loading...
Sign in
홍예림
/
emergency_room_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-11-15 15:56:45 +0900
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
6ab5352574bb6ba14f7684b79885761d65b7002b
6ab53525
1 parent
8087b562
notify
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
20 additions
and
0 deletions
notify_app.js
notify_app.js
0 → 100644
View file @
6ab5352
// 모듈을 읽어 들입니다.
const
request
=
require
(
'request'
);
// 요청을 위한 상수를 선언합니다: TOKEN은 자신의 것을 입력해주세요.
const
TARGET_URL
=
'https://notify-api.line.me/api/notify'
;
const
TOKEN
=
'2lGVtxPmn2VOsRczarnwqvQ6cMFOpCMnk3QHA4Ykd2E'
;
// 요청합니다.
request
.
post
(
{
url
:
TARGET_URL
,
headers
:
{
'Authorization'
:
`Bearer
${
TOKEN
}
`
},
form
:
{
message
:
'안녕하세요. LINE Notify 테스트입니다.'
,
stickerPackageId
:
1
,
stickerId
:
1
}
},(
error
,
response
,
body
)
=>
{
console
.
log
(
body
)
});
\ No newline at end of file
Please
register
or
login
to post a comment