...
The Account Activity API provides you the ability to subscribe to realtime activities related to a user account via webhooks. This means that you can receive realtime Direct Messages and other account events from one or more of your owned or subscribed accounts through a single connection.
...
Set up User authentication
...
Authentication allows users to log in to your App with Twitter. It also allows your App to make specific requests for authenticated users.