Pages

Monday, August 26, 2013

Google Drive Download Widget, a download button generator

Google Drive Download Button is an online app that builds a download button you can use in your website.
  1. Set the sharing settings for your file to "Public on the web" or "Anyone with the link"
  2. Copy the "sharing link" at the top of your Google Drive sharing window and paste it in the textbox, or copy the "fileId" in the textbox
  3. Click the "build button".
  4. Use the HTML code in your website
This small app makes use of the Google Drive API to check the file existance and get the file size.
If you would like to install this app you only have to generate a API key from the Google API Console, enable Drive API service, generate a Server or a Browser key and then paste your API key in the functions.js file.

That's it :)



Code
Notes
  • read risk disclaimer
  • excuse my bad english

No comments:

Post a Comment