Thumbnail 404 error

后端 未结 2 1548
Happy的楠姐
Happy的楠姐 2021-01-12 11:23

I\'m trying to get the thumbnail of a file but am getting an error 404, the url that return drive is like this in some files

https://docs.google.com/feeds/vt?gd=tru

2条回答
  •  醉酒成梦
    2021-01-12 11:43

    To get the thumbnail of a file stored on Google Drive you have to send a GET request to the file endpoint and then check its thumbnailLink property:

    https://developers.google.com/drive/v2/reference/files/get

    Regardless of the format of the thumbnail URL, as long as you use the value returned in the file metadata you should be fine.

    Please take into account that thumbnail URLs expire after a certain time.

提交回复
热议问题