A Google Tasks API command line interface tool. Tool written poorly by @jameshi16.
This tool interfaces with the Google Tasks API using a client ID. The bash script can be entirely converted to a Python script, however, @jameshi16 decided to use Bash instead because he wanted to learn scripting for Ubuntu. Cross-platform compatibility? What's that?
- This repository
- Python 3.6.5
- curl 7.58.0
- getopt from util-linux 2.31.1
- date from GNU coreutils 8.28
- sed (GNU sed) 4.4
This tool is built with the above pre-requisite, and it is in no way fully definitive.
You will also need to acquire a Client ID and Client Secret from your nearest Google API Console, because you would need it to initialize the tool.
- Log onto the Google API Console.
- Create a new project. The name does not matter.
- Click on 'Credentials' on the sidebar.
- Select 'OAuth consent screen', and set up the required fields. These contents on these fields do not matter.
- Select 'Credentials', and click on 'Create credentials', selecting 'OAuth client ID' in the dropdown list.
- Under 'Application type', select 'Web application'. Some form fields should pop out.
- Fill in whatever for the 'Name' field.
- Fill in 'http://127.0.0.1' for the 'Authorized redirect URIs'.
- Click 'Create'.
- Take note of the client ID and client secret generated.
- Run
./gtaskscli -h
found in this folder - When prompted for the client ID and secret, paste them into the script. (Note: Pasting them will sometimes cause the terminal to automatically skip the next prompt. Please perform
rm ~/.gtaskscli
before trying again. We recommend you to copy the client ID and secret to another location, before copy+pasting it into the script.) - You will be prompted to open your browser for authentication. If you choose not to, a link will be provided for you to perform authentication.
- After authentication, you can close the window when prompted. Back at the terminal, you should notice that the help page should have printed. From here on out, you will not be prompted for your information again until you revoke access to this app through your Google Account. In that case, please perform
rm ~/.gtaskscli
to restart the registration process
Please perform ~/.gtaskscli -h
to view the help, or, alternatively, refer to cmdHelp.txt
in the same repository.
- Ubuntu 18.04
Licensed under MIT License.