Open Source to connect to different data sources
Google has made it really easy to create api credentials for own use, just follow these few steps:
- Go to Google Cloud Console
- Create a new project (or select an existing) from the menu [screenshot]
- Search for
drive apiin the search bar and selectGoogle drive apiunder the marketplace section [screenshot] - Click to enable
Google Drive APIbutton [screenshot] - Click on the
Credentialsmenu item - Click on the
Configure Consent Screenbutton [screenshot] - Select
Externaluser type (Internal is only available for workspace subscribers) [screenshot] - Click on the
Createbutton - Fill out the fields
App name,User support email,Developer contact informationwith your information; you will need to put the Project ID into the app name (keep the other fields empty) [screenshot] - Click the
Save and continuebutton. If you getAn error saving your app has occurredtry changing the project name to something unique - Click the
Add or remove scopesbutton - Search for
google drive api - Select the scopes
.../auth/driveand [screenshot] - Click the
Updatebutton - Click the
Save and continuebutton [screenshot] - Click the
Add usersbutton - Add the email of the user you will use with gdrive [screenshot]
- Click the
Addbutton until the sidebar disappears - Click the
Save and continuebutton [screenshot] - Click on the
Credentialsmenu item again - Click on the
Create credentialsbutton in the top bar and selectOAuth client ID[screenshot] - Select application type
Desktop appand give a name [screenshot] - Click on the
Createbutton - You should be presented with a Cliend Id and Client Secret [screenshot]. If you dont copy/download them now, you may find them again later.
- Click
OK - Click on
OAuth consent screenmenu item - Click on
Publish app(to prevent the token from expiring after 7 days) [screenshot] - Click
Confirmin the dialog - Redirect URI: Visit here: https://console.cloud.google.com/apis/credentials/oauthclient/?project= and add following redirect uri
http://localhost:3030 /

Thats it!
Gdrive will ask for your Client Id and Client Secret when using the gdrive account add command.
Then you will be pointed to a URL, where you confirm access to your Google Drive data.
To run the program, set CREDS_PATH export CREDS_PATH= ( You should have it downloaded from Step 22 above )