Closed nithinmurali closed 1 year ago
Hi, I receive this error:
>>> client.drive.create_folder('test folder', folder='XXXX')
Traceback (most recent call last):
File "/usr/local/lib/python3.9/code.py", line 90, in runcode
exec(code, self.locals)
File "<console>", line 1, in <module>
File "/opt/project/src/pygsheets/pygsheets/drive.py", line 124, in create_folder
return self._execute_request(self.service.files().create(body=body, supportsAllDrives=self.is_team_drive(),
File "/usr/local/lib/python3.9/site-packages/googleapiclient/discovery.py", line 997, in method
raise TypeError('Got an unexpected keyword argument {}'.format(name))
TypeError: Got an unexpected keyword argument supportsAllDrives
>>>
This is with google-api-python-client 2.20.0
and google-auth-oauthlib 0.5.0
.
Updated the local discovery document with latest specs. It should work now.
Sorry for the really late reply. This PR does work now.
The files api has added new params for teamDrives and has deprecated old ones. With this change we are migrating to the new ones.
This should also solve the issue mentioned in https://github.com/nithinmurali/pygsheets/pull/556 @thuibr Please confirm.