with Switch and Google Tasks?
Emit new event for each task added to Google Tasks. See the documentation
Emit new event for each task added or updated to Google Tasks. See the documentation
Creates a new task and adds it to the authenticated user's task lists. See the docs here
Creates a new task list and adds it to the authenticated user's task lists. See the docs here
Deletes the authenticated user's specified task. See the docs here
Deletes the authenticated user's specified task list. See the docs here
Lists the authenticated user's task lists. See the docs here
/*
Switch is single path branching operator.
Create non-linear workflows with multiple
execution branches and Pipedream will execute
the first branch that matches the configured
rules. The order in which rules are defined
will affect the path of execution.
The code for this operator is not currently
public. Please select the *Switch* operator
from the *Add Step* menu.
Check out the docs to learn more:
https://pipedream.com/docs/workflows/control-flow/switch
*/
The Google Tasks API allows you to manage and manipulate a user's tasks and task lists on Google Tasks directly from Pipedream. With this API, you can create, read, update, and delete tasks, as well as manage the lists themselves. This opens up possibilities for automating task management, syncing tasks with other systems, and creating custom task-based workflows that can increase productivity and ensure nothing falls through the cracks.
import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
google_tasks: {
type: "app",
app: "google_tasks",
}
},
async run({steps, $}) {
return await axios($, {
url: `https://www.googleapis.com/tasks/v1/users/@me/lists`,
headers: {
Authorization: `Bearer ${this.google_tasks.$auth.oauth_access_token}`,
},
})
},
})