title: YouTube API 3 GET last videos from specific User
body: <p>I need help to retrieve YouTube videos from specific user with the new API version.</p>
  
  <p>I've create YouTube Data API on <a href="https://console.developers.google.com" rel="nofollow">console.developers.google.com</a></p>
  
  <p><strong>Both OAuth</strong> and <strong>Public API access</strong> for Browser.</p>
  
  <p>Before I was use this code to retrieve the latest 6 video:</p>
  
  <pre><code>$feedURL = 'http://gdata.youtube.com/feeds/api/users/USERNAME/uploads?max-results=6';
  $sxml = simplexml_load_file($feedURL);
  foreach ($sxml-&gt;entry as $entry) {
      $watch = (string)$media-&gt;group-&gt;player-&gt;attributes()-&gt;url;
  }
  </code></pre>
  
  <p>How can I update this code with API 3?</p>