Skip to content

ForNeVeR/GoogleTaskExport

GoogleTaskExport Status Aquana

This is a program to export the Google Tasks data from your Google account to a JSON file, or just print them in the terminal.

Usage

Client Secret

To use GoogleTaskExport, you'll have to register an application with Google and obtain a client secret file.

  1. Create a Google Cloud Project.
  2. On the Enabled APIs & services page, choose Enable APIs and Services, search for Google Tasks API and choose Enable.
  3. On the Google Tasks API page, click Create Credentials.
  4. On the Which API are you using? step, choose User data.
  5. On the OAuth Consent Screen step, configure it whatever you want.
    • One detail to remember is not to use the Google name in the application name. See here for more details.
  6. On the Scopes step, choose Google Tasks API (the one with the .readonly suffix), https://www.googleapis.com/auth/tasks.readonly.
  7. On the OAuth Client ID step, choose Desktop app. Specify the name as GoogleTaskExport.
  8. Download the resulting JSON file.
  9. Remember to add the users you want to use the application on the OAuth consent screen page, in the Test users list.

Running the Application

Use the following shell command:

$ dotnet run --project GoogleTaskExport -- [json|print] <userName> <path to the JSON credential file>

Here, <userName> is the user email, e.g. example@gmail.com.

This command will fetch all the stored Google Tasks (including the completed ones, but omitting the deleted ones) and output them in the specified format.

Note that on the first run, it will open a browser window to ask you to grant the application access to your Google Tasks data.

If you want to flush the credential cache, delete the <homePath>/Google.Apis.Auth directory (or inspect the files and delete only the ones you want to flush; note that this is the default location for Google API libraries, so other programs may store their authentication tokens there as well), where <homePath> is %APPDATA% on Windows.

Documentation

About

Exporter program for Google Tasks.

Topics

Resources

License

Code of conduct

Contributing

Stars

Watchers

Forks

Releases

No releases published

Contributors 2

  •  
  •  

Languages