Thumbnail 404 error

后端 未结 2 1504
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:37

    I ran into the same issue.

    You should append access token to the thumbnailLink URL, which will authorize your GET request for it.

    So something like:

    var thumbLink = driveEntry["thumbnailLink"] + "&access_token=" + YOURTOKEN;
    

    Cheers.

提交回复
热议问题