Skip to content

Instantly share code, notes, and snippets.

@g0ddest
Last active January 1, 2016 18:18
Show Gist options
  • Save g0ddest/ee80100a79a2a4534cd7 to your computer and use it in GitHub Desktop.
Save g0ddest/ee80100a79a2a4534cd7 to your computer and use it in GitHub Desktop.
foreach (var csvline in csv)
{
var csvlineParsed = csvline.Split(';');
for (uint index = 0; index < csvlineParsed.Length; index++)
{
var cell = new CellEntry(i, index + 1);
cell.Id = new AtomId(string.Format("{0}/{1}", cellFeed.Self, "R" + i + "C" + index + 1));
cell.InputValue = csvlineParsed[index];
cell.BatchData = new GDataBatchEntryData("R" + cell.Row + "C" + cell.Column, GDataBatchOperationType.update);
batchRequest.Entries.Add(cell);
}
i++;
}
var batchResponse = (CellFeed) _service.Batch(batchRequest, new Uri(cellFeed.Batch));
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment