I have several columns in my google sheet. The number of columns varies over time (new columns may get added in future). I want to get a map or something similar like this if my sheets look like this :
Response of an API call:
{
"timestamp" : "A",
"Col1" : "B",
"Col2" : "C",
"Col3" : "D"
}
In other words, I want to get column name and its label in the sheet in api response. Or, anything similar will also work. I don't know what API call to make. I'm aware about .get
call of the sheet, but I don't know how to get labels of the column in this. I can only get data in certain range. I don't know how to get labels of the columns.