搭建
在 Duaer 里用 Google Drive 上传文件
在 Duaer 里,Google Drive 默认 Authentication 是 OAuth2,Resource 是 File,Operation 是 Upload。Input Data Field Name 默认 data。需要 googleDriveOAuth2Api 凭据。
上传一个文件
- 先建好 googleDriveOAuth2Api 凭据(或按面板改用 Service Account)。
- 搜索 Google Drive,接到带有 binary 的节点后面,选上凭据。
- Resource 保持 File,Operation 保持 Upload。
- Input Data Field Name 保持 data(或改成你的 binary 字段名)。可填 File Name、Parent Drive、Parent Folder。
- 点执行此步骤。
同一 Resource 下还有 Download、Copy、Move、Share、Update、Delete、Create From Text。
表格协作见 在 Duaer 里用 Google Sheets 读行;其他网盘见 在 Duaer 里用 Dropbox 上传文件。
常见问题
Duaer 的 Google Drive Upload 需要主机路径吗?
不需要。它上传的是条目上的 binary,不是本机磁盘路径。
同组
节点
在 Duaer 里用 Google Sheets 读行
在 Duaer 里,Google Sheets 默认 Authentication 是 OAuth2,Resource 是 Sheet,Operation 是 Get Row(s)。需要 googleSheetsOAuth2Api 凭据。
节点在 Duaer 里用 FTP 传文件
在 Duaer 里,FTP 节点 Protocol 默认是 FTP(也可选 SFTP)。Operation 默认 Download;下载结果写到 Put Output File in Field(默认 data)。
节点在 Duaer 里用 Dropbox 上传文件
在 Duaer 里,Dropbox 默认 Authentication 是 Access Token,Resource 是 File,Operation 是 Upload。File Path 必填。需要 dropboxApi 凭据。