Showing
1 changed file
with
0 additions
and
17 deletions
express/chatbot.js
deleted
100644 → 0
| 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