Skip to main content

googlesheets@2.1.2

Adaptor

Adaptor.execute

Kind: static class of Adaptor

new exports.execute(operations)

Execute a sequence of operations. Wraps language-common/execute, and prepends initial state for http.

ParamTypeDescription
operationsOperationsOperations to be performed.

Example

execute(
create('foo'),
delete('bar')
)(state)

Adaptor.appendValues

Kind: static class of Adaptor
Access: public

new exports.appendValues(params)

Add an array of rows to the spreadsheet. https://developers.google.com/sheets/api/samples/writing#append_values

ParamTypeDescription
paramsObjectData object to add to the spreadsheet.

Example

appendValues({
spreadsheetId: '1O-a4_RgPF_p8W3I6b5M9wobA3-CBW8hLClZfUik5sos',
range: 'Sheet1!A1:E1',
values: [
['From expression', '$15', '2', '3/15/2016'],
['Really now!', '$100', '1', '3/20/2016'],
],
})