Edits history of script submission #6120 for ' Create Task 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: {
    		args: {
    			content: string
    			attachment?: {
    				fileName?: string
    				fileUrl: string
    				fileType?: string
    				resourceType?: string
    			}
    			taskId?: string
    			projectId?: string
    		}
    		requestId?: string
    	}
    ) {
    	const api = new TodoistApi(resource.Token)
    	// @ts-ignore
    	const commentResponse = await api.addComment(comment.args, comment.requestId)
    	return commentResponse
    }
    

    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,
    	comment: {
    		args: {
    			content: string
    			attachment?: {
    				fileName?: string
    				fileUrl: string
    				fileType?: string
    				resourceType?: string
    			}
    			taskId?: string
    			projectId?: string
    		}
    		requestId?: string
    	}
    ) {
    	const api = new TodoistApi(resource.Token)
    	// @ts-ignore
    	const commentResponse = await api.addComment(comment.args, comment.requestId)
    	return commentResponse
    }
    

    Submitted by hugo697 764 days ago