Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Google drive files preview api

I want to display previews of the files (images, videos, docs, xl, ppt, pdf) stored on the google drive on a webpage. Which api or library should I use?

like image 815
user1288043 Avatar asked May 16 '12 20:05

user1288043


People also ask

How do I preview files in Google Drive?

To see a preview of a Google document, right-click on the file name and select “preview.” Once the preview window is open, you can click on the arrows on either side to flip to other files. And right from within the preview, you can watch video files or scroll through multi-page documents.

Is there an API for Google Drive?

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.

How do I get files from Google Drive API?

If you provide the URL parameter alt=media , then the response includes the file contents in the response body. Downloading content with alt=media only works if the file is stored in Drive. To download Google Docs, Sheets, and Slides use files. export instead.

How do I test my Google Drive API?

Go to the Google API Console. Select a project. In the sidebar on the left, expand APIs & auth and select APIs. In the displayed list of available APIs, click the Drive API link and click Enable API.


1 Answers

with the google drive api, you can get the file's metadata via the https://www.googleapis.com/drive/v2/files/YourFileID request. Then parse the JSON response and use the thumbnailLink in the file info

like image 94
David Avatar answered Oct 02 '22 01:10

David