Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added information to run the quickstart sample #1460

Merged
merged 1 commit into from Nov 26, 2018
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
17 changes: 16 additions & 1 deletion samples/drive/README.md
@@ -1,6 +1,6 @@
# Drive v3 API Samples

This samples allows you to download a single file from Google Drive.
These samples allow you to list, download, and upload files from Google Drive.

## Running the samples

Expand All @@ -10,8 +10,23 @@ Set the following values in `oauth2.keys.json` (up one directory):
* `project_id`
* `client_secret`

__Run the `quickstart.js` sample:__

This sample will list the files in the user's Google Drive.

You'll need to do the following before you can run this sample:

* Enable the [Google Drive API](https://console.developers.google.com/apis/api/drive.googleapis.com/overview).
* Set the redirect API in the Google Cloud Console application registration to `http://localhost:3000/oauth2callback`.

```
node quickstart.js
```

__Run the `download.js` sample:__

Run the `quickstart.js` sample to get a list of files in your Google Drive.

```
node download.js <fileId>
```
Expand Down