- Set the sharing settings for your file to "Public on the web" or "Anyone with the link"
- 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
- Click the "build button".
- Use the HTML code in your website
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