a-marenkov / gsheets

A Dart library for working with Google Sheets API.
Other
78 stars 31 forks source link

Is there a way to get the spreadsheet title? #68

Open ghzeni opened 2 years ago

ghzeni commented 2 years ago

Hi! I'm developing an application and I'm trying to fetch the spreadsheet title in order to improve the UX, but I can't find anything on the documentation on whether this is possible or not.

Is this possible? Thanks.

bradintheusa commented 1 year ago
    final ss = await gsheets.spreadsheet(ssid);
    ssidTitle = ss.data.properties.title ?? "Unknown";
gcoladon commented 4 months ago

Thank you @bradintheusa!

I couldn't figure this out from reading the API docs either. I will take a look at them some time and maybe send an MR.

gcoladon commented 4 months ago

Interesting. I found that the SpreadsheetProperties class is fully documented.. but only in the googleapis package. Not sure if or how the documentation for this package can link, for classes like this one, to the documentation for the classes in the package of origin.