Google驱动器预览“/ image” API不起作用了? [英] Google drive preview "/image" API doesn't work anymore?
问题描述
几天前,我可以提出请求:
https://drive.google。 com / a / {{domain}} / file / d / {{docDriveId}} / image?pagenumber = 1& w = 400
API我能够在多页文档上获得图像预览。
似乎它在那里,但在一段时间后超时。它不再工作了。有谁知道发生了什么?看起来这个API没有任何文档。另一方面,我知道通过API获取文档对象时的thumbnailLink URL,但这只会得到1st页面预览。
对此的其他解决方案?
非常感谢,
M
该网址不是官方Drive API的一部分,不保证保持稳定。 Drive API不包含提取文档的每页图像预览的功能,但您可能希望使用 embedLink
作为替代方案: https://developers.google.com/drive/v2/reference/files
Few days ago I was able to make request to: https://drive.google.com/a/{{domain}}/file/d/{{docDriveId}}/image?pagenumber=1&w=400
Via this API I was able to get image preview on multi-page documents.
Seems it's there, but times-out after some time. It doesn't work anymore. Does anyone know what happened? It seems there's no documentation on this API.
On the other hand, I am aware of the thumbnailLink URL when getting document object via API, but this will only get 1st page preview.
Any alternative solutions to this?
Thanks a lot, M
That URL is not a part of the official Drive API and is not guaranteed to remain stable. The Drive API doesn't include the ability to fetch per-page image previews of documents, but you may want to investigate using the embedLink
as an alternative: https://developers.google.com/drive/v2/reference/files
这篇关于Google驱动器预览“/ image” API不起作用了?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!