Simple Tasks is a sample web app built using Apps Script that provides limited read and write access to your data in Google Tasks. It was created using the Html Service and demonstrates some common patterns and best practices to use when developing user interfaces.
For your convience we have a deployed instance of the script already running. The application supports reading your task lists and tasks, marking tasks as complete or incomplete, and adding new tasks to a task list.
The first step is to create your script and copy in the code. The simplest way to do this is to make a copy of the deployed instance of the script. If you wish to create your project from scratch, follow the steps below.
-
Create a new standalone script in your Google Drive (instructions available here) and add in each of the files in this directory. You should already have a file named Code.gs in your project, and you can replace its contents with the new code. For the remaining files, ensure you select File > New > Html file when creating the files, and when entering the file name omit the .html suffix as it will be added automatically.
-
Enabled the Google Tasks API on the script (instructions available here).
-
Save a new version of your script and publish it as a web app that runs as the User acessing the web app. (instructions available here).