I\'ve been using Google Sheets API, and following The Google Guide. However there is no example, even beyond the second page of google, to add a worksheet and write to a new she
FYI, while the majority of the documentation is just using the raw JSON, it should map 1:1 to the constructs in each language.
For example, to update values you'd likely do something like:
var valueRange = new ValueRange();
valueRange.values = { { 1, 2, 3 }, { 4, 5, 6 } };
var range = "A1";
var update = service.Spreadsheets.Values.Update(valueRange, spreadsheetId, range);
var result = update.execute();
The above is pseudo-code based on your code example and the reference docs @ https://developers.google.com/sheets/reference/rest/v4/spreadsheets.values/update.