There is a simple code excerpt:
gapi.client.sheets.spreadsheets.values.get({
spreadsheetId,
range: "TOP!A:B"
}).then(result => {
doSomething()
})
How to detect and handle errors if they occur?
Errors like 503,403 etc. that are appear in response data:
{error:...}