-
Notifications
You must be signed in to change notification settings - Fork 2
Using Google API
Floris Bernard edited this page Jan 3, 2018
·
1 revision
If you want to use the Google Drive and Sheets APIs directly instead of using our hosted service, you will need to create a project in the Google Developers Console and generate an OAuth Client ID.
- Open the Google Developers Console and login
- Create a new project (you can name it whatever you want, for example
git-housekeeper
) - Select the OAuth Consent Screen tab on the Credentials page
- Select an Email address, enter a Product name if not already set, and click the Save button
- Select the Credentials tab, click the Create credentials button and select OAuth client ID.
- Select the application type Other, enter a name and click the Create button.
- Click OK to dismiss the resulting dialog.
- Click the Download JSON icon to the right of the client ID. You will need this JSON later
- Go to the Library page using the navigation on the left
- Search for and enable the Google Drive API and Google Sheets API
- Rename the JSON downloaded in step 8 to google_client_secret.json and move it to one of the following locations:
<user home directory>/.credentials/
- the working directory from which you run git-housekeeper
- Make sure you completed the instructions for generating an OAuth Client ID above
- Run the git-housekeeper tool on your repository
- Select "review branches on remote" in the main menu
- Choose "review branches collaboratively using Google Sheets"
- Choose "no, I'd rather use the Google API directly"
- Follow the on-screen instructions