title: Get user media (photos) only - Twitter API
body: <p>Using the Twitter API V1.1 is it possible to just retrieve the photos that a user has posted?</p>
  
  <p>I can see that one way to do this is to pull a user's timeline with <code>include_entities=true</code> and search for the photos that way. But that seems like an extremely cumbersome way around, and prone to problems.</p>
  
  <p>For example, we can pull the last 15 tweets and display them, and we know, for sure, that we will always get 15 tweets. </p>
  
  <p>But for just photos, if we were to even pull 100 tweets at a time, we can not be guaranteed that it will contain, say, 15 photos, or even that it will contain any photos at all. </p>
  
  <p>So perhaps I'm clutching at straws here hoping that there is some way to do this that the <a href="https://dev.twitter.com/docs/api/1.1/get/statuses/user_timeline" rel="noreferrer">Twitter API docs</a> and <a href="https://dev.twitter.com/discussions/3005" rel="noreferrer">Dev Discussions</a> doesn't know. </p>
  
  <p>I'm looking for a PHP example.</p>