From 4cc343274d4a6106c87b2d690cfb53bc89974b78 Mon Sep 17 00:00:00 2001 From: bobthedev90368 <84109060+bobthedev90368@users.noreply.github.com> Date: Thu, 1 Sep 2022 17:39:11 -0400 Subject: [PATCH 1/5] Create credentials.json --- drive/quickstart/credentials.json | 1 + 1 file changed, 1 insertion(+) create mode 100644 drive/quickstart/credentials.json diff --git a/drive/quickstart/credentials.json b/drive/quickstart/credentials.json new file mode 100644 index 00000000..c2e88cfa --- /dev/null +++ b/drive/quickstart/credentials.json @@ -0,0 +1 @@ +{"installed":{"auth_uri":"https://accounts.google.com/o/oauth2/auth","client_secret":"ckGVrYYQ_GE7O4rL80ozlEXR","token_uri":"https://accounts.google.com/o/oauth2/token","client_email":"","redirect_uris":["urn:ietf:wg:oauth:2.0:oob","oob"],"client_x509_cert_url":"","client_id":"665081966568.apps.googleusercontent.com","auth_provider_x509_cert_url":"https://www.googleapis.com/oauth2/v1/certs"}} From 1f8230db28a005eb83a52274ac0baf253677425a Mon Sep 17 00:00:00 2001 From: bobthedev90368 <84109060+bobthedev90368@users.noreply.github.com> Date: Thu, 1 Sep 2022 17:47:21 -0400 Subject: [PATCH 2/5] Delete credentials.json --- drive/quickstart/credentials.json | 1 - 1 file changed, 1 deletion(-) delete mode 100644 drive/quickstart/credentials.json diff --git a/drive/quickstart/credentials.json b/drive/quickstart/credentials.json deleted file mode 100644 index c2e88cfa..00000000 --- a/drive/quickstart/credentials.json +++ /dev/null @@ -1 +0,0 @@ -{"installed":{"auth_uri":"https://accounts.google.com/o/oauth2/auth","client_secret":"ckGVrYYQ_GE7O4rL80ozlEXR","token_uri":"https://accounts.google.com/o/oauth2/token","client_email":"","redirect_uris":["urn:ietf:wg:oauth:2.0:oob","oob"],"client_x509_cert_url":"","client_id":"665081966568.apps.googleusercontent.com","auth_provider_x509_cert_url":"https://www.googleapis.com/oauth2/v1/certs"}} From af13f7af2a6b3ddb4e9e852eef25e17a820d8e43 Mon Sep 17 00:00:00 2001 From: bobthedev90368 <84109060+bobthedev90368@users.noreply.github.com> Date: Thu, 1 Sep 2022 17:48:21 -0400 Subject: [PATCH 3/5] Update README.md --- drive/quickstart/README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drive/quickstart/README.md b/drive/quickstart/README.md index 2aabc91a..0c780011 100644 --- a/drive/quickstart/README.md +++ b/drive/quickstart/README.md @@ -9,8 +9,8 @@ makes requests to the Drive V3 API. - Python - Create a project - Activate the Drive API in the Google API Console([the detail page](https://developers.google.com/workspace/guides/create-project)) -- Create a OAuth client ID credential and download the json file ([the datil page](https://developers.google.com/workspace/guides/create-credentials)) -- Rename the json file +- Create a OAuth client ID credential and download the OAuth client ID json file ([the datil page](https://developers.google.com/workspace/guides/create-credentials)) +- Rename the json file to credentials.json ## Install From 50e67138da17f65db3d0b042a2422e853e91b11b Mon Sep 17 00:00:00 2001 From: bobthedev90368 <84109060+bobthedev90368@users.noreply.github.com> Date: Thu, 1 Sep 2022 17:48:37 -0400 Subject: [PATCH 4/5] Update README.md --- drive/quickstart/README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drive/quickstart/README.md b/drive/quickstart/README.md index 0c780011..b3e6ebd3 100644 --- a/drive/quickstart/README.md +++ b/drive/quickstart/README.md @@ -8,7 +8,7 @@ makes requests to the Drive V3 API. ## Prerequisites - Python - Create a project -- Activate the Drive API in the Google API Console([the detail page](https://developers.google.com/workspace/guides/create-project)) +- Activate the Drive API in the Google API Console ([the detail page](https://developers.google.com/workspace/guides/create-project)) - Create a OAuth client ID credential and download the OAuth client ID json file ([the datil page](https://developers.google.com/workspace/guides/create-credentials)) - Rename the json file to credentials.json From 3263827e8adaa65d758faa307a068cf6295c99f4 Mon Sep 17 00:00:00 2001 From: bobthedev90368 <84109060+bobthedev90368@users.noreply.github.com> Date: Thu, 1 Sep 2022 21:27:14 -0400 Subject: [PATCH 5/5] Major changes ro readme.md --- drive/quickstart/README.md | 19 +++++++++++++++---- 1 file changed, 15 insertions(+), 4 deletions(-) diff --git a/drive/quickstart/README.md b/drive/quickstart/README.md index b3e6ebd3..8715ed15 100644 --- a/drive/quickstart/README.md +++ b/drive/quickstart/README.md @@ -7,10 +7,18 @@ makes requests to the Drive V3 API. ## Prerequisites - Python -- Create a project -- Activate the Drive API in the Google API Console ([the detail page](https://developers.google.com/workspace/guides/create-project)) -- Create a OAuth client ID credential and download the OAuth client ID json file ([the datil page](https://developers.google.com/workspace/guides/create-credentials)) -- Rename the json file to credentials.json +- Visual Studio Code or another text editor +- An active Google account with access to Google Devlopers + +## Getting Started +1. Clone the Github repo either using the git command or by downloading and extracting the folder. +```shell +gh repo clone googleworkspace/python-samples +``` +2. Open the extrancted or cloned folder in Visual Studio Code or your text editor. +3. Activate the Drive API in the Google API Console ([Instructions here.](https://developers.google.com/workspace/guides/create-project)) +4. Create a OAuth client ID credential and download the OAuth client ID json file ([Instructions here.](https://developers.google.com/workspace/guides/create-credentials)) +5. Move the json file into the quickstart folder (*/python-samples/drive/quickstart) and rename it credentials.json ## Install @@ -23,3 +31,6 @@ pip install -r requirements.txt ```shell python quickstart.py ``` + +## Expanding +The Google Drive devloper api can be found [here](https://developers.google.com/drive/api).