Documentation
¶
Index ¶
- func ClearTasks(srv *tasks.Service, tasklistID string) error
- func CreateTask(srv *tasks.Service, task *tasks.Task, tasklistID string) (*tasks.Task, error)
- func DeleteTask(srv *tasks.Service, id string, tid string) error
- func DeleteTaskList(srv *tasks.Service, tID string) error
- func GetService() (*tasks.Service, error)
- func GetTaskInfo(srv *tasks.Service, id string, taskID string) (*tasks.Task, error)
- func GetTaskLists(srv *tasks.Service) ([]tasks.TaskList, error)
- func GetTasks(srv *tasks.Service, id string, includeCompleted bool, maxResults int) ([]*tasks.Task, error)
- func Login() error
- func Logout() error
- func MakeMap(taskList []*tasks.Task) map[string]tasks.Task
- func UpdateTask(srv *tasks.Service, t *tasks.Task, tListID string) (*tasks.Task, error)
- func UpdateTaskList(srv *tasks.Service, tl *tasks.TaskList) (*tasks.TaskList, error)
- type TaskList
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ClearTasks ¶ added in v0.12.0
ClearTasks clears all completed tasks from a task list. Completed tasks are marked as hidden and no longer returned by default.
func CreateTask ¶
CreateTask used to create tasks
func DeleteTask ¶
DeleteTask used to delete a task
func GetService ¶ added in v0.9.7
GetService creates a Google Tasks service client
func GetTaskInfo ¶
GetTaskInfo to get more info about a task
func GetTasks ¶
func GetTasks(srv *tasks.Service, id string, includeCompleted bool, maxResults int) ([]*tasks.Task, error)
GetTasks used to retreive tasks. If maxResults is 0, fetches all tasks with pagination. If maxResults > 0, limits the number of tasks returned.
func Login ¶ added in v0.9.7
func Login() error
Login performs OAuth2 authentication using PKCE + localhost flow
func UpdateTask ¶
UpdateTask used to update task data
Types ¶
Click to show internal directories.
Click to hide internal directories.