mbrenig / SheetSync

A python library to create, update and delete rows of data in a google spreadsheet.
http://sheetsync.readthedocs.org
MIT License
48 stars 18 forks source link

Ability to move a sheet to a new parent folder (by ID) #17

Open jethrowest opened 8 years ago

jethrowest commented 8 years ago

Hi Mark,

Please could you add the functionality to change a Spreadsheet's parent folder ID?

Thanks, Jethro

jethrowest commented 8 years ago

I tried something similar to the following based on Google API docs:

spreadsheet_instance.drive_service.files().update(fileId=file_id, addParents=old_testplan_folder_id, removeParents=spreadsheet_folder_id, fields='id, parents').execute()

but this didn't work, complaining on the string type of the file_id :(