Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Google Drive API changes thumbnailLink value on every GET request?

I'm uploading some images to our GDrive account (via API) so I can publish them in our webapp.

I like to post thumbnailLink because of the =s parameter where you can scale the image to a desire width.

But now I've found a problem:

  • everytime I make a file get request (https://developers.google.com/drive/v2/reference/files/get) the thumbnailLink changes its value

This problem raises two questions:

  1. Why does this happen?

  2. Is there anyway I can keep the same thumbnailLink and make it work forever?

edition: in file documentation (https://developers.google.com/drive/v2/reference/files) says that only downloadUrl has a short lived value

like image 748
Francisco Costa Avatar asked Oct 10 '12 13:10

Francisco Costa


People also ask

How does Google Drive API work?

The Google Drive API allows you to create apps that leverage Google Drive cloud storage. You can develop applications that integrate with Drive, and create robust functionality in your application using the Drive API.

Does Google Drive API cost money?

All use of the Drive API is available at no additional cost. Exceeding the quota request limits doesn't incur extra charges and your account is not billed.

Why an item is automatically placed in Google Drive?

If there is an item placed in your drive, the system knows that it is there, if you are close and no one is using the drive. As such, it will automatically change the rotation of items and deliver you back to front most commonly used every time someone uses the drive. This prevents an unexpected interrupt in surfing.

How many authorization options are there in Google Drive?

Google Drive sharing settings have a similar interface and functionality to permissions settings. There's three choices for sharing a file for organizations: restricted, only within the group, and anyone with the link.


1 Answers

The thumbnail URL is also short lived (as some simple testing revealed). I'll work with the documentation team to also have this noted in the documentation.

like image 139
Eric Koleda Avatar answered Oct 19 '22 00:10

Eric Koleda