title: YouTube API hosting unlisted videos for website using OAuth2.
body: <p>I need to host videos with a service like YouTube that allows some sort of privacy so that its not accessible easily to the public (or not at all).</p>
  
  <p>I am using the YouTube API V3.</p>
  
  <p>What I would like to achieve is to use one account to retrieve all the unlisted / private videos for that channel specified.</p>
  
  <p>At the moment when I use:</p>
  
  <pre><code>$youtube_service-&gt;playlists-&gt;listPlaylists('snippet,id',array('channelId'=&gt;'CHANNEL_ID'));
  </code></pre>
  
  <p>This will only retrieve public videos.</p>
  
  <p>Is there a way I can authorize a specific user pro-grammatically and retrieve that users private or unlisted content/videos/playlists from the youtube API and populate my website?</p>
  
  <p>Thanks in advance</p>
  
  <p>Adam</p>