Showing
1 changed file
with
17 additions
and
0 deletions
express/chatbot.js
0 → 100644
1 | +const request = require('request'); | ||
2 | +const url = 'https://notify-api.line.me/api/notify'; | ||
3 | +const token = 'BX7LrLUnmQ2QosiYlg5g8BIXKcfraZnFvLqpLhMBjY8'; | ||
4 | +request.post( | ||
5 | + { | ||
6 | + url: url, | ||
7 | + headers: { | ||
8 | + 'Authorization': `Bearer ${token}` | ||
9 | + }, | ||
10 | + form: { | ||
11 | + message: '안녕하세요. 유해물질 알리미 챗봇입니다.', | ||
12 | + stickerPackageId: 1, | ||
13 | + stickerId: 1 | ||
14 | + } | ||
15 | + },(error, response, body) => { | ||
16 | + console.log(body) | ||
17 | + }); |
-
Please register or login to post a comment