title: Getting meta data on a video that is hidden [Vimeo]
body: <p>Environment: ASP.NET 4.0 Forms running on Windows Server 2008
  Visual Studio 2010 Ultimate
  DotNetOpenAuth (Just learning)</p>
  
  <p>Trying to do something quite simple, creating a video archive using Vimeo as the host but we want them on Vimeo, just embedding on our website. We uploaded a few sample videos and set them to be hidden and restricted embedding to only our domain. When testing it, they embed just fine but when we send a request for the video info (<a href="http://vimeo.com/api/v2/video/" rel="nofollow">http://vimeo.com/api/v2/video/</a>*.xml), the server responds 404 not found. If we go back and set it to anyone can view, we get the response information we need. How can we get the video information and still keep the video hidden?</p>
  
  <pre><code>private string GetVideoXML(string id)
  {
      try
      {
          // URL
          String url = string.Format("http://vimeo.com/api/v2/video/{0}.xml", id);
  
          // Make the request
          HttpWebRequest request = (HttpWebRequest)HttpWebRequest.Create(url);
          string token = "&lt;My authorization token from Vimeo API&gt;";           
          request.Headers.Add("Authorization", "Basic " + token);
  
          // Show me the money?
          WebResponse response = request.GetResponse();  // Throws an exception, 404 not found
  
          // Read XML
          StreamReader reader = new StreamReader(response.GetResponseStream());
          String responseData = reader.ReadToEnd();
  
          //Close
          reader.Close();
          response.Close();
  
          // Show me the money!
          return responseData;            
  
      }
      catch (Exception ex)
      {
          // You has some 'splaining to do
          litError.Text = ex.ToString();
      }
  }
  </code></pre>