Returns a list of comments for a project. [See the docs here](https://developer.todoist.com/rest/v2/#get-all-comments)
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 projects = await api.getComments({ projectId: projectId })
11
return projects
12
13