A quick and easy way to generate an endpoint that serves twitter timeline data for a given user.
First, you'll need Twitter developer credentials. These can be generated here. This library only requires READ permissions, so adjust your app's permissions accordingly.
Next, you'll need to install the package:
npm install twitter-timeline-middleware
And then configure and use the middleware in your app:
var twitterTimeline = ;var twitterCredentials =consumerKey: 'abcdefg'consumerSecret: 'hijklmn'accessTokenKey: 'opqrst'accessTokenSecret: 'uvwxyz';app;