Google Drive API without Ouath and retrieving files

We are creating a web application that needs to get all files from a specific folder on our Drive (read-only). The problem is, I cannot find a way to access our files without using OAuth. Basically, I would like to request our files using AJAX and present their content on the page (without having to do anything). Is this even possible and am I missing something?

Whenever I try to use something without using OAuth, I get a global internalError (related to authorization as per the current documentation).

The experience I am trying to achieve:

User enters http://domain.com/posts > Get all public files from folder Y> Sort by date> Show headers in HTML> User clicks on a title> The user is presented with the full content of the file as HTML.

Is it possible?

Thanks in advance!:)

UPDATE: To clarify: I would like to only depend on our API key.

+3


source to share


1 answer


You can do it this way without using the Google Drive API:



You will get the index of the directory with all the files listed, and if the (sub) folder contains an index.html file, it will show up instead.

To get a list of JSON or XML files, use YQL .

+4


source







All Articles