I need to do lots of protected range manipulation. I want to unlink the sheet to perform the operations on a local copy and sync it afterwards. This, however, doesn't work.
spreadsheet = googleCloud.open_by_key(key)
worksheets = spreadsheet.worksheets()
worksheets[4].unlink()
print(worksheets[4].get_value((1, 5)))
This code causes an exception:
File "/usr/local/lib/python2.7/dist-packages/pygsheets/worksheet.py", line 293, in get_value
include_tailing_empty_rows=True, value_render=value_render)[0][0]
TypeError: 'bool' object has no attribute '__getitem__'
Without the unlink() the code works as expected. Am I using this method incorrectly? pygsheets from staging.