I'm trying to get cell color from google sheets cell. I'm currently getting the value with the following code
const api = google.sheets({ version:'v4', auth: client });
const opt = {
spreadsheetId: '??',
range: 'Sheet!C1:C2'
}
var returnedData = await api.spreadsheets.values.get(opt);
// use returnedData here
The problem is that it returns range, majorDimension and values. I cannot get the cell color with any of these. I can't really find any help regarding this. I have looked into Cells (https://developers.google.com/sheets/api/reference/rest/v4/spreadsheets/cells), but can't figure out how to obtain them.
Thank you!