Hi there! Are you looking for the official Deno documentation? Try docs.deno.com for all your Deno learning needs.

Tasks

import { Tasks } from "https://googleapis.deno.dev/v1/tasks:v1.ts";

The Google Tasks API lets you manage your tasks and task lists.

class Tasks {
constructor(client?: CredentialsClient, baseUrl?: string);
async tasklistsDelete(tasklist: string): Promise<void>;
async tasklistsGet(tasklist: string): Promise<TaskList>;
async tasklistsInsert(req: TaskList): Promise<TaskList>;
async tasklistsList(opts?: TasklistsListOptions): Promise<TaskLists>;
async tasklistsPatch(tasklist: string, req: TaskList): Promise<TaskList>;
async tasklistsUpdate(tasklist: string, req: TaskList): Promise<TaskList>;
async tasksClear(tasklist: string): Promise<void>;
async tasksDelete(task: string, tasklist: string): Promise<void>;
async tasksGet(task: string, tasklist: string): Promise<Task>;
async tasksInsert(
tasklist: string,
req: Task,
): Promise<Task>;
async tasksList(tasklist: string, opts?: TasksListOptions): Promise<Tasks>;
async tasksMove(
task: string,
tasklist: string,
): Promise<Task>;
async tasksPatch(
task: string,
tasklist: string,
req: Task,
): Promise<Task>;
async tasksUpdate(
task: string,
tasklist: string,
req: Task,
): Promise<Task>;
}
interface Tasks {
etag?: string;
items?: Task[];
kind?: string;
nextPageToken?: string;
}

§Constructors

§
new Tasks(client?: CredentialsClient, baseUrl?: string)
[src]

§Methods

§
tasklistsDelete(tasklist: string): Promise<void>
[src]

Deletes the authenticated user's specified task list.

@param tasklist

Task list identifier.

§
tasklistsGet(tasklist: string): Promise<TaskList>
[src]

Returns the authenticated user's specified task list.

@param tasklist

Task list identifier.

§
tasklistsInsert(req: TaskList): Promise<TaskList>
[src]

Creates a new task list and adds it to the authenticated user's task lists. A user can have up to 2000 lists at a time.

§
tasklistsList(opts?: TasklistsListOptions): Promise<TaskLists>
[src]

Returns all the authenticated user's task lists. A user can have up to 2000 lists at a time.

§
tasklistsPatch(tasklist: string, req: TaskList): Promise<TaskList>
[src]

Updates the authenticated user's specified task list. This method supports patch semantics.

@param tasklist

Task list identifier.

§
tasklistsUpdate(tasklist: string, req: TaskList): Promise<TaskList>
[src]

Updates the authenticated user's specified task list.

@param tasklist

Task list identifier.

§
tasksClear(tasklist: string): Promise<void>
[src]

Clears all completed tasks from the specified task list. The affected tasks will be marked as 'hidden' and no longer be returned by default when retrieving all tasks for a task list.

@param tasklist

Task list identifier.

§
tasksDelete(task: string, tasklist: string): Promise<void>
[src]

Deletes the specified task from the task list.

@param task

Task identifier.

@param tasklist

Task list identifier.

§
tasksGet(task: string, tasklist: string): Promise<Task>
[src]

Returns the specified task.

@param task

Task identifier.

@param tasklist

Task list identifier.

§
tasksInsert(tasklist: string, req: Task, opts?: TasksInsertOptions): Promise<Task>
[src]

Creates a new task on the specified task list. A user can have up to 20,000 non-hidden tasks per list and up to 100,000 tasks in total at a time.

@param tasklist

Task list identifier.

§
tasksList(tasklist: string, opts?: TasksListOptions): Promise<Tasks>
[src]

Returns all tasks in the specified task list. A user can have up to 20,000 non-hidden tasks per list and up to 100,000 tasks in total at a time.

@param tasklist

Task list identifier.

§
tasksMove(task: string, tasklist: string, opts?: TasksMoveOptions): Promise<Task>
[src]

Moves the specified task to another position in the task list. This can include putting it as a child task under a new parent and/or move it to a different position among its sibling tasks. A user can have up to 2,000 subtasks per task.

@param task

Task identifier.

@param tasklist

Task list identifier.

§
tasksPatch(task: string, tasklist: string, req: Task): Promise<Task>
[src]

Updates the specified task. This method supports patch semantics.

@param task

Task identifier.

@param tasklist

Task list identifier.

§
tasksUpdate(task: string, tasklist: string, req: Task): Promise<Task>
[src]

Updates the specified task.

@param task

Task identifier.

@param tasklist

Task list identifier.

§Properties

§
etag?: string
[src]

ETag of the resource.

§
items?: Task[]
[src]

Collection of tasks.

§
kind?: string
[src]

Type of the resource. This is always "tasks#tasks".

§
nextPageToken?: string
[src]

Token used to access the next page of this result.