This application automatically log hours in everyday basis to a google sheet.
- Use this wizard to create or select a project in the Google Developers Console and automatically turn on the API. Click Continue , then Go to credentials.
- On the Add credentials to your project page, click the Cancel button.
- At the top of the page, select the OAuth consent screen tab. 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 the name "Google Sheets API Quickstart", and click the Create button.
- Click OK to dismiss the resulting dialog.
- Click the file_download (Download JSON) button to the right of the client ID.
- Move this file to your working directory and rename it client_secret.json.
- Create a new Visual C# Console Application project in Visual Studio.
- Open the NuGet Package Manager Console, select the package source nuget.org , and run the following command:
Install-PackageGoogle.Apis.Sheets.v4
- Drag client_secret.json (downloaded in Step 1) into your Visual Studio Solution Explorer.
- Select client_secret.json, and then go to the Properties window and set the Copy to Output Directory field to Copy always.