Mat*_*ias 3 google-apps-script
要获取上次更新文件的日期,您可以调用 getLastUpdated()
如何让谷歌应用程序脚本代码中的最后更新用户?
我试图在Advanced Drive Service的列表修订版下运行代码
var revisions = Drive.Revisions.list(fileId);
Run Code Online (Sandbox Code Playgroud)
但我明白了
ReferenceError: "Drive" is not defined.
Run Code Online (Sandbox Code Playgroud)
https://developers.google.com/apps-script/guides/services/advanced
在Resouces>高级Google服务中,启用Drive API ...

在同一窗口中>单击Google Developer's Console >>启用Drive API和Drive SDK ...

然后...
Drive.Files.get('<FILEDID>').lastModifyingUser
Run Code Online (Sandbox Code Playgroud)
| 归档时间: |
|
| 查看次数: |
3604 次 |
| 最近记录: |