我需要使用 Google Drive API 创建一个文件(我正在使用 v3,目前是最新的)。如果重要,请使用 python。
我的代码如下,
drive_service.files().create(supportsTeamDrives=True, body={
'name': 'test-file',
'mimeType': 'application/vnd.google-apps.spreadsheet',
'parents': [folder_id],
'properties': {'locale': 'en_GB',
'timeZone': 'Europe/Berlin'}
})
根据@ here的文档,我尝试将properties
密钥设置为所需的区域设置,但它会继续使用我帐户的默认区域设置创建文件。
我怎样才能让它在创建时工作?我可以填写另一个参数吗?