Google drive preview “/image” API doesn't work anymore?

。_饼干妹妹 提交于 2019-12-08 04:07:34

问题


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


回答1:


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



来源:https://stackoverflow.com/questions/28279297/google-drive-preview-image-api-doesnt-work-anymore

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!