This post contains my notes after watching the 2 videos below.
Google Drive API: Uploading & Downloading Files
https://youtu.be/-7YH6rdR-tk
Accessing Google APIs: Common code walkthrough
https://youtu.be/h-gBeC9Y9cE?list=PLOU2XLYxmsILOIxBRPPhgYbuSslr50KVq
The Common Code Section
Below are the first 21 lines of code for uploading and downloading files using Google Drive API. They are the common code (with minor changes to the parameters in Line 14 - SCOPE and Line 21 - DRIVE) needed for accessing Google APIs.