title: Getting the list of youtube channels for the authenticated user
body: <p>I am trying to display YouTube analytics data in a .Net application (Asp.net MVC 4 to be specific) using the <a href="http://code.google.com/p/google-api-dotnet-client/" rel="nofollow">google api .net client</a></p>
  
  <p>The only sample I could find for this was a JavaScript sample located <a href="https://developers.google.com/youtube/analytics/v1/sample-application" rel="nofollow">here</a> for the most parts I was able to recreate the code in .Net, <strong>The only problem is that I don't seem to be able to find the counterpart for this lines of code which returns a list of Channels for the authenticated user</strong>:</p>
  
  <pre><code> var request = gapi.client.youtube.channels.list({
        // "mine: true" indicates that you want to retrieve the authenticated user's channel.
        mine: true,
        part: 'id,contentDetails'
      }); 
  </code></pre>
  
  <p>which should be then used here in my code:</p>
  
  <pre><code> var request = youtubeAnalyiticsService.Reports.Query(
                      "channel=="+ channelId, fromDate, toDate, 
                      "views,likes,dislikes" // metrics to include in report 
                      );
  </code></pre>
  
  <p>What I currently do to get it to work is to copy and paste the channel Id here and therefore "hard-code" it which is not practical in this my case and used only for testing purposes.</p>
  
  <p>Hopefully I'm wrong but after searching for hours I think that the .Net API might be missing this part, can anyone confirm this? and if true are there any alternatives for doing this in the .net application?</p>
  
  <p>I also guess that there might be a straightforward way to just use that part of the JavaScript code in the .net application but I'm not sure how!</p>
  
  <p>Any help, hint or clarification would be much appreciated :)</p>