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.
source to share
You can do it this way without using the Google Drive API:
- Make a public folder
- Copy folder id from url
- Add https://googledrive.com/host/ for example. https://googledrive.com/host/0BzEbtMoF6IXbaVN2Qmx1em9qS0k/
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 .
source to share