Closed EkiFauziFirdaus closed 7 years ago
@EkiFauziFirdaus LINE webhook URL is called via POST
method instead of GET
.
app.post('/linewebhook', linebotParser);`
Also, it assumes that the request body has never been parsed by any body parser before, so it must be placed BEFORE any generic body parser, if there is any.
app.post('/linewebhook', linebotParser);
app.use(bodyParser.json());
My bad... I'm sorry...
I got error:
I'm using linebot v1.3.0... My code: