Skip to content

Simple browser application that makes requests to the Google Drive API

License

Notifications You must be signed in to change notification settings

xxxmatko/google.drive.browser

Repository files navigation

Google Drive Browser

Simple browser application that makes requests to the Google Drive API.

To run this application, which makes requests to the Drive API, complete the steps described in the rest of this page.

Turn on the Drive API

  1. Use this wizard to create or select a project in the Google Developers Console and automatically turn on the API. Click Continue, then Go to credentials.
  2. On the Add credentials to your project page, click the Cancel button.
  3. At the top of the page, select the OAuth consent screen tab. Select an Email address, enter a Product name if not already set, and click the Save button.
  4. Select the Credentials tab, click the Create credentials button and select OAuth client ID.
  5. Select the application type Web application.
  6. In the Authorized JavaScript origins field, enter the URL http://localhost:8000. Enter the same URL in the Authorized redirect URIs field as well. If you see an error message "..domain must be added to the authorized domains list before submitting.", do the following:
    • Select the OAuth consent screen tab.
    • Scrool down to Authorized domains section.
    • Type the domain name (like mygit.github.io) into the textbox field and press Enter.
  7. Click the Create button.
  8. Take note of the client ID in the resulting dialog. You will need it in a later step.
  9. Click OK to dismiss the resulting dialog.
  10. Click the Create credentials button and select API key.
  11. Take note of the API key in the resulting dialog. You will need it in a later.
  12. Click the Close button to create an unrestricted key. In production applications, you can restrict access to the API key to specific websites, IP addresses or mobile apps.

Run the sample

  1. Download the source code of this repository.
  2. Open the folder with Visual Studio Code.
  3. Install the IIS Express extension.
  4. In order to build the project install node.js.
  5. Build the project using the build.cmd.
  6. Run the application by pressing Ctrl + F5.

About

Simple browser application that makes requests to the Google Drive API

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages