title: How can I access public spreadsheets with the Google Docs C# API?
body: <p>I've written a C# program using the Google Docs .NET API to read a Google worksheet into a DataTable given a user name, password, spreadsheet name, and worksheet name. This all works fine, but the programming model seems to revolve around giving the spreadsheet service a set of credentials, and then paring down the resulting feed to get a specific spreadsheet/worksheet, i.e.</p>
  
  <pre><code>        SpreadsheetsService service = new SpreadsheetsService("Application-Name");
          service.setUserCredentials(userName, password);
  
          SpreadsheetQuery spreadsheetQuery = new SpreadsheetQuery();
          SpreadsheetFeed spreadsheetFeed = service.Query(spreadsheetQuery);
  
          SpreadsheetEntry spreadsheetEntry = (SpreadsheetEntry)(from entries in spreadsheetFeed.Entries
                                                                 where entries.Title.Text == spreadsheetName
                                                                 select entries).SingleOrDefault();
  </code></pre>
  
  <p>Now I'm interested in extending the functionality of my program to read from public Google spreadsheets. That is, given the URL of a public Google spreadsheet (e.g. "<a href="https://spreadsheets.google.com/ccc?key=BUNCH_OF_LETTERS_HERE&amp;hl=en" rel="nofollow noreferrer">https://spreadsheets.google.com/ccc?key=BUNCH_OF_LETTERS_HERE&amp;hl=en</a>"), I want to get the SpreadsheetEntry object corresponding to that document. </p>
  
  <p>The method I've been using thus far obviously does not seem to extend to allow this, so I was wondering if anyone knows the proper way to access a public Google document through their API?</p>