sashee / drive-api-from-js

An example app on how to upload files to Google Drive

Home Page:https://advancedweb.hu/2015/05/26/accessing-google-drive-in-javascript/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Drive API from JS

This is a sample project that shows how one can use the Google authentication, and also how to store files in the user's Drive.

For a more detailed description, check out these 2 blog posts:

Live demo

For a live demo, see this link

To run this sample project on your computer

Just clone the repo, host the files on a web server of your choice and open index.html in a browser.

Note: The app must listen on port 8080, because that is the only whitelisted origin

To change the API project

  • Register a new project at the Google Developers Console
  • Create a new Client ID for a Web Application
    • Add a valid origin
    • Take note of the Client ID
  • Enable Drive API
  • At the gapi-auth-service there is a client id, change it to your project's

About

An example app on how to upload files to Google Drive

https://advancedweb.hu/2015/05/26/accessing-google-drive-in-javascript/


Languages

Language:JavaScript 70.9%Language:HTML 29.1%