Google Drive API with Python Part I: Set Up Credentials

billydharmawan
The Startup
Published in
5 min readMar 31, 2019

--

A lot of companies are using Google Drive to manage and store some of their files so that their employees can access them easily from anywhere as long as there’s an internet access. When I first started working with the API, I was having difficulties and only after using it a few times that I developed a better understanding.

That is why I decided to write this guide — to help you with setting up the minimum dependencies so you can start developing some workflow and automation for your companies or any projects that use Google Drive.

The guide I am writing is going to be divided into 3 x parts:

  1. Set up credentials for Google Drive API
  2. Connect to Google Drive and search for files via Google Drive API — Part II
  3. Download a specific worksheet from a Google sheet via Google Drive API — Part III

Let’s get you set up for your first Google Drive API project.

First, go to https://console.developers.google.com/ from your browser. This will take you to Google Console page (just like AWS console page, if you’re familiar with it) where you can manage your API and services, IAM and admin.

Create a Project

--

--

billydharmawan
The Startup

An ordinary man trying to leave a good legacy on earth