相关疑难解决方法(0)

Google REST API v3 - 修订版:列表与"显示更详细的修订版"

我需要获取Google文档修订的详细列表.
在以下位置使用Google API Explorer时:

GET https://www.googleapis.com/drive/v3/files/{fileId}/revisions
Run Code Online (Sandbox Code Playgroud)

我只得到非详细列表.

要调用的API(或要设置的参数)是什么,以便通过按下显示更详细的修订来看到类似的内容?

更新:
我试图"嗅探"浏览器流量,我意识到Google云端硬盘会定期向网址请求修订列表:

https://docs.google.com/spreadsheets/d/{fileId}/revisions/history?id={fileId}&start=1&end=-1&zoom_level=0&token={token}
Run Code Online (Sandbox Code Playgroud)

单击显示更详细的修订时,以前的URL将变为:

https://docs.google.com/spreadsheets/d/{fileId}/revisions/history?id={fileId}&start=1&end=-1&zoom_level=1&token={token}
Run Code Online (Sandbox Code Playgroud)

(zoom_level参数从0变为1)但是
我在API参考上找不到类似的东西.似乎必须手动调用这样的URL.
因此,我手动为驱动器范围生成一个令牌,手动检查它以保持新鲜并手动调用该URL,以便查看发生了什么.不幸的是,我在浏览器上遇到以下错误:

Impossibile aprire il file in questo momento.
Verifica l'indirizzo e riprova.
Run Code Online (Sandbox Code Playgroud)

这大致意味着:

Unable to open the file at the moment.
Please verify the address and try again.
Run Code Online (Sandbox Code Playgroud)

有人能指出我朝着正确的方向前进吗?

google-drive-api google-api-v3

8
推荐指数
1
解决办法
541
查看次数

标签 统计

google-api-v3 ×1

google-drive-api ×1