Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
SteveWinward authored Oct 7, 2024
1 parent 49e82a4 commit d3a0928
Showing 1 changed file with 8 additions and 4 deletions.
12 changes: 8 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -319,10 +319,14 @@ using (var stream = new FileStream(filepath, FileMode.Open))
// Google Sheets API throttles requests per minute so you may need to play
// with this setting.
appender.AppendCsv(
stream, // The CSV FileStrem
csvHasHeaderRecord: true, // true indicating the CSV file has a header record as the first row
skipWritingHeaderRow: false, // false indicating to not skip writing the header record to the Google sheets file
batchWaitTime: 1000); // 1000 milliseconds to wait every 100 rows that are batch sent to the Google Sheets API
// The CSV FileStream
stream,
// true indicating the CSV file has a header record as the first row
csvHasHeaderRecord: true,
// false indicating to not skip writing the header record to the Google sheets file
skipWritingHeaderRow: false,
// 1000 milliseconds to wait every 100 rows that are batch sent to the Google Sheets API
batchWaitTime: 1000);

// OPTION 2: Create your own CsvConfiguration object with full control on Culture and delimiter
var csvConfig = new CsvConfiguration(CultureInfo.CurrentCulture)
Expand Down

0 comments on commit d3a0928

Please sign in to comment.