please dont rip this site

Cloud Data (File) Storage Servers

Google Drive

To directly download a raw file from Google Drive use the URL:
https://drive.google.com/uc?export=download&id=
followed by the ID of the file. So we can find the ID of files by opening the file in Google Drive, but that defeats the point of having a direct download doesn't it?

https://developers.google.com/drive/v3/reference/files/list
shows us how to get a list of files. And we can apply that to a single request via:
https://www.googleapis.com/drive/v3/files?q=<query>&key=<authorization token>
but:

1. we need an authorization token to access the users drive. Basically this tells google who's drive to access. So the user has to figure out how to provide that. At this point, it's not terribly difficult,
http://stackoverflow.com/questions/18116152/how-do-i-get-a-file-list-for-a-google-drive-public-hosted-folder
"Go to Google Console:
https://console.developers.google.com/
In left menu select 'Credentials'. Click 'Create credentials' and select API key. Click 'Browser key' Copy the generate key."

2. We need the ID of the folder (which we then have to find under the /main/ folder, which has ID 'root' to ensure we are looking there and not finding a folder of the same name under a sub folder). To find a specific folder called "Public" in the main folder, q is (html encoded):
name='Public' and 'root' in parents
Note that the "in parents" part means that the file we are looking for has a parent with that ID. e.g.
https://www.googleapis.com/drive/v3/files?q=name%3D'Public'+and+'root'+in+parents&key={YOUR_API_KEY}
To find things in a specific folder, given the ID of the folder:
name='test.TXT' and '0B0ap0WDOII5mbjdwajNBMlRoZUU' in parents
e.g.
https://www.googleapis.com/drive/v3/files?q=name%3D'test.TXT'+and+'0B0ap0WDOII5mbjdwajNBMlRoZUU'+in+parents&key={YOUR_API_KEY}

Except... That doesn't work:
https://code.google.com/a/google.com/p/apps-api-issues/issues/detail?id=4971


file: /Techref/inet/datastorage.htm, 2KB, , updated: 2016/12/6 19:27, local time: 2024/11/8 13:58,
TOP NEW HELP FIND: 
3.137.184.33:LOG IN
©2024 PLEASE DON'T RIP! THIS SITE CLOSES OCT 28, 2024 SO LONG AND THANKS FOR ALL THE FISH!

 ©2024 These pages are served without commercial sponsorship. (No popup ads, etc...).Bandwidth abuse increases hosting cost forcing sponsorship or shutdown. This server aggressively defends against automated copying for any reason including offline viewing, duplication, etc... Please respect this requirement and DO NOT RIP THIS SITE. Questions?
Please DO link to this page! Digg it! / MAKE!

<A HREF="http://sxlist.com/techref/inet/datastorage.htm"> Cloud Data (File) Storage Servers</A>

After you find an appropriate page, you are invited to your to this massmind site! (posts will be visible only to you before review) Just type a nice message (short messages are blocked as spam) in the box and press the Post button. (HTML welcomed, but not the <A tag: Instead, use the link box to link to another page. A tutorial is available Members can login to post directly, become page editors, and be credited for their posts.


Link? Put it here: 
if you want a response, please enter your email address: 
Attn spammers: All posts are reviewed before being made visible to anyone other than the poster.
Did you find what you needed?

 

Welcome to sxlist.com!


Site supported by
sales, advertizing,
& kind contributors
just like you!

Please don't rip/copy
(here's why

Copies of the site on CD
are available at minimal cost.
 

Welcome to sxlist.com!

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

  .