Skip to content

chitreshd/dataconnectors

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

dataconnectors

Open Source to connect to different data sources

OAuth Setup

Create Google API credentials in 50 easy steps

Google has made it really easy to create api credentials for own use, just follow these few steps:

  1. Go to Google Cloud Console
  2. Create a new project (or select an existing) from the menu [screenshot]
  3. Search for drive api in the search bar and select Google drive api under the marketplace section [screenshot]
  4. Click to enable Google Drive API button [screenshot]
  5. Click on the Credentials menu item
  6. Click on the Configure Consent Screen button [screenshot]
  7. Select External user type (Internal is only available for workspace subscribers) [screenshot]
  8. Click on the Create button
  9. Fill out the fields App name, User support email, Developer contact information with your information; you will need to put the Project ID into the app name (keep the other fields empty) [screenshot]
  10. Click the Save and continue button. If you get An error saving your app has occurred try changing the project name to something unique
  11. Click the Add or remove scopes button
  12. Search for google drive api
  13. Select the scopes .../auth/drive and [screenshot]
  14. Click the Update button
  15. Click the Save and continue button [screenshot]
  16. Click the Add users button
  17. Add the email of the user you will use with gdrive [screenshot]
  18. Click the Add button until the sidebar disappears
  19. Click the Save and continue button [screenshot]
  20. Click on the Credentials menu item again
  21. Click on the Create credentials button in the top bar and select OAuth client ID [screenshot]
  22. Select application type Desktop app and give a name [screenshot]
  23. Click on the Create button
  24. 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.
  25. Click OK
  26. Click on OAuth consent screen menu item
  27. Click on Publish app (to prevent the token from expiring after 7 days) [screenshot]
  28. Click Confirm in the dialog
  29. Redirect URI: Visit here: https://console.cloud.google.com/apis/credentials/oauthclient/?project= and add following redirect uri http://localhost:3030 /Screenshot 2024-11-29 at 8 17 00 PM

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.

Execution

To run the program, set CREDS_PATH export CREDS_PATH= ( You should have it downloaded from Step 22 above )

About

Open Source to connect to different data sources

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 2

  •  
  •  

Languages