@@ -44,6 +44,7 @@ function doGet() {
4444/**
4545 * Returns the ID and name of every task list in the user's account.
4646 * @return {TaskListInfo[] } The task list data.
47+ * @see https://developers.google.com/workspace/tasks/reference/rest/v1/tasklists/list
4748 */
4849function getTaskLists ( ) {
4950 if ( ! Tasks . Tasklists ) {
@@ -66,6 +67,7 @@ function getTaskLists() {
6667 * Returns information about the tasks within a given task list.
6768 * @param {string } taskListId The ID of the task list.
6869 * @return {TaskInfo[] } The task data.
70+ * @see https://developers.google.com/workspace/tasks/reference/rest/v1/tasks/list
6971 */
7072function getTasks ( taskListId ) {
7173 if ( ! Tasks . Tasks ) {
@@ -94,6 +96,8 @@ function getTasks(taskListId) {
9496 * @param {string } taskListId The ID of the task list.
9597 * @param {string } taskId The ID of the task.
9698 * @param {boolean } completed True if the task should be marked as complete, false otherwise.
99+ * @see https://developers.google.com/apps-script/advanced/tasks
100+ * @see https://developers.google.com/workspace/tasks/reference/rest/v1/tasks/patch
97101 */
98102function setCompleted ( taskListId , taskId , completed ) {
99103 const task = Tasks . newTask ( ) ;
@@ -113,6 +117,8 @@ function setCompleted(taskListId, taskId, completed) {
113117 * Adds a new task to the task list.
114118 * @param {string } taskListId The ID of the task list.
115119 * @param {string } title The title of the new task.
120+ * @see https://developers.google.com/apps-script/advanced/tasks
121+ * @see https://developers.google.com/workspace/tasks/reference/rest/v1/tasks/insert
116122 */
117123function addTask ( taskListId , title ) {
118124 const task = Tasks . newTask ( ) ;
0 commit comments