Edits history of script submission #6087 for ' Delete Comment (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,
    	comment: {
    		id: string
    		requestId?: string
    	}
    ) {
    	const api = new TodoistApi(resource.Token)
    	const commentResponse = await api.deleteComment(comment.id, comment.requestId)
    	return commentResponse
    }
    

    Submitted by hugo697 398 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,
    	comment: {
    		id: string
    		requestId?: string
    	}
    ) {
    	const api = new TodoistApi(resource.Token)
    	const commentResponse = await api.deleteComment(comment.id, comment.requestId)
    	return commentResponse
    }
    

    Submitted by hugo697 764 days ago