Welcome to the Treehouse Community
Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.
Looking to learn something new?
Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.
Start your free trialadammccann
Python Web Development Techdegree Student 12,554 PointsI can't get the 5 most recent direct messages because they can't be access from their REST api anymore, since 2011.
The Twit npm package that you provide a link to on the project page only has support for opening a stream, and then firing off a callback function when a direct message comes in.
This is not the same as what the project asks for, which is to get the 5 most recent direct messages.
I see the twitter api has a '.../direct_messages' endpoint, but that endpoint doesn't seem to be supported by the Twit npm package.