0

Get Project Comment

by
Published Jun 6, 2022

Returns info about a project comment. [See the docs here](https://developer.todoist.com/rest/v2/#get-a-comment)

Script todoist Verified

The script

Submitted by hugo697 Bun
Verified 398 days ago
1
import { TodoistApi } from '@doist/todoist-api-typescript'
2
import { v9 as Todoist } from 'todoist'
3

4
type Todoist = {
5
	Token: string
6
}
7

8
export async function main(resource: Todoist, projectId: string) {
9
	const api = new TodoistApi(resource.Token)
10
	const project = await api.getComments({
11
		projectId: projectId
12
	})
13
	return project
14
}
15