Skip to content

Instantly share code, notes, and snippets.

@njradford
Last active November 7, 2018 18:20
Show Gist options
  • Save njradford/ce5f4ca908cefc3f2ecef44462aeeaaa to your computer and use it in GitHub Desktop.
Save njradford/ce5f4ca908cefc3f2ecef44462aeeaaa to your computer and use it in GitHub Desktop.
gsheets-api-example.js
gapi.client.sheets.spreadsheets.values.get({
spreadsheetId: '1BxiMVs0XRA5nFMdKvBdBZjgmUUqptlbs74OgvE2upms',
range: 'Class Data!A2:E',
}).then(function(response) {
var range = response.result;
for (i = 0; i < range.values.length; i++) {
var row = range.values[i];
var colA = row[0];
var colB = row[1];
var combined = colA + colB;
console.log(combined)
}
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment