I am attempting to use Google Sheets from an app.
I have gone through the tutorial, api documentation and searched the forum, to try to figure out what is wrong with the following:
lib = app_files.my_library_ods
print('lib : ', lib)
print('lib.content_type : ', lib.content_type)
print('list(lib.worksheets) : ', list(lib.worksheets))
I am getting the following:
lib : ‘<‘Google Drive File: my library.ods’>’
lib.content_type : application/vnd.oasis.opendocument.spreadsheet
AttributeError: ‘File’ object has no attribute ‘worksheets’
at main, line 25
What am I missing?
Any help appreciated.