Create google service account and Enable Google Drive API
This tutorial will guide you through the process of creating a Google Service Account and enabling the Google Drive API.
Create a Project in Google Cloud Console
Go to the Google Cloud Console. Click the project dropdown in the top navigation bar and click "New Project". Follow the prompts to create a new project.
Create a Service Account
- Go to the Google Cloud Console.
- Click the hamburger menu in the top-left corner and navigate to "IAM & admin" > "Service accounts".
- Click "Create Service Account".
- Enter a name and description for the service account.
- Click "Create".
- Grant the service account the "Project Editor" role.
Create a Service Account Key
Click the three-dot menu next to the service account you just created and select "Create key". Choose the "JSON" key type and click "Create". *Save the JSON key file to a secure location. You will need this file to authenticate your service account.
Enable the Google Drive API
- Go to the Google Cloud Console.
- Click the hamburger menu in the top-left corner and navigate to "APIs & Services" > "Library".
- Search for "Google Drive API" and click on it.
- Click "Enable".