xdevplatform / twitter-webhook-boilerplate-node

A simple Node.js app using Express 4 for Twitter DMs and webhooks.
72 stars 31 forks source link

Support the automatic creation of multiple webhooks for the same app #4

Closed bkhau closed 7 years ago

bkhau commented 7 years ago

Allows setting a NUMBER_OF_WEBHOOKS config parameter that will generate more than one webhook destination that the app will listen to.

This would change the default generated webhooks destinations to: https://.herokuapp.com/webhooks/twitter/0 https://.herokuapp.com/webhooks/twitter/1 https://.herokuapp.com/webhooks/twitter/2 ...

Since they are still run by the same app at the moment, they all respond the same to the CRC checks and do the same thing. Could improve by stating the destination the received messages arrived on if necessary.