将文档添加到父文件夹?
如何将此文档添加到父文件夹? 以下不起作用。
drive.files.insert({ convert: true, parents: [ { "id":parentId } ], resource: { title: title, mimeType: 'text/csv', }, media: { mimeType: 'text/csv', body: body, } }, function(){ console.log(arguments) })
尝试:
drive.files.insert({ resource: { title: title, mimeType: 'text/csv', parents: [ { id: parentId } ] }, media: { mimeType: 'text/csv', body: body }, }, function(err, resp) {});
看起来像文档可能已经改变: https : //github.com/google/google-api-nodejs-client/issues/96
- 使用Google API访问公共日历,无需用户login
- Google API,drive.files.list和仅返回子文件
- Google Page Speed Insights – 基本authentication
- 如何自动获取节点谷歌API的授权令牌为Gmail
- 使用访问令牌在节点中获取Google +用户个人资料
- GoogleloginNodejs中的Android服务器端身份validation
- 用于在Node.js中发送邮件的Gmail API
- 如何使用节点js googleapis客户端上传和更新youtube频道横幅
- 在Google云端存储中使用nodejs gcloud api移动/重命名文件夹