-
Clone the repository from https://github.com/SaifuddinTipu/twit-dm.git
-
Use 'npm install' to install all the packages
-
Double click the ngrok.exe file to start the ngrok server
-
Type ngrok http 5000 and hit Enter
-
Copy the https url (e,g. https://XXXXXXXXXX.ngrok.io)
-
Go to main.js file and find const webhookURL and past the {URL}/webhook/twitter
-
Add the url in twitter developer app callback url
-
Run npm start
-
Go to localhost:5000/activity from your web browser.
That's it. Now you can see the DIRECT MESSAGE EVENTS.