var service = new SpreadsheetsService(null);
var query = new ListQuery("0AjD5UGMt5CGDdEcwaS10S2IzVzJFNDYtaEo5anN2RHc", "1", "public", "values");
var feed = service.Query(query);
var table = new DataTable();
foreach (ListEntry entry in feed.Entries)
{
var row = table.NewRow();
foreach (ListEntry.Custom element in entry.Elements)
{
var column = table.Columns[element.LocalName] ??
table.Columns.Add(element.LocalName);
row[column] = element.Value;
}
table.Rows.Add(row);
}
Google Data API .NET client library
No comments:
Post a Comment