Edits history of script submission #6108 for ' Delete Task (todoist)'

  • bun
    One script reply has been approved by the moderators
    Ap­pro­ved
    import { TodoistApi } from '@doist/todoist-api-typescript'
    import { v9 as Todoist } from 'todoist'
    
    type Todoist = {
    	Token: string
    }
    
    export async function main(
    	resource: Todoist,
    	task: {
    		id: string
    		requestId?: string
    	}
    ) {
    	const api = new TodoistApi(resource.Token)
    	const taskResponse = await api.deleteTask(task.id, task.requestId)
    	return taskResponse
    }
    

    Submitted by hugo697 399 days ago

  • bun
    import { TodoistApi } from '@doist/todoist-api-typescript'
    import { v9 as Todoist } from 'todoist'
    
    type Todoist = {
    	Token: string
    }
    
    export async function main(
    	resource: Todoist,
    	task: {
    		id: string
    		requestId?: string
    	}
    ) {
    	const api = new TodoistApi(resource.Token)
    	const taskResponse = await api.deleteTask(task.id, task.requestId)
    	return taskResponse
    }
    

    Submitted by hugo697 764 days ago