title: twitter API identify users with direct messaging enabled
body: <p>I'm trying to use twitter4j (in Java) to grab the list of users following a particular user who happen to have direct messaging enabled.  Something like this...</p>
  
  <pre><code>IDs followerIDs = twitter.getFollowersIDs(someTwitterScreenName, -1); 
  long[] ids = followerIDs.getIDs(); 
  for (long id : ids) {
  
      twitter4j.User user = twitter.showUser(id); 
  
      String userScreenName = user.getScreenName();
      String realName = user.getName();
  
      //I'm hoping for something like...
      ///Boolean directMessagingEnabled = user.messagingEnabled();              
  }
  </code></pre>
  
  <p>The only problem is that I can't find any attributes associated with the twitter4j.User object that sound suitable (and also can't find any reference to it in the API documentation).  Does anyone know if there's some way to programmatically find these types of users?  Or perhaps twitter have deliberately excluded it?  Thanks for any thoughts at all.</p>
  
  <p>------EDIT-----</p>
  
  <p>The documentation link from Yuri led me to this response from a twitter employee: "Determining if a user accepts DMs from all is not available via the public API. If you are a trusted partner please reach out via your direct Twitter contacts for details."
  (<a href="https://twittercommunity.com/t/how-can-i-tell-which-users-the-current-user-can-send-messages-to/36127/4" rel="nofollow">https://twittercommunity.com/t/how-can-i-tell-which-users-the-current-user-can-send-messages-to/36127/4</a>)</p>
  
  <p>Also noticed that it IS possible to get the DM status for an already authenticated user using "AccountSettings.getAccountSettings().allow_dms_from"</p>