Returns a list of all labels. [See the docs here](https://developer.todoist.com/rest/v2/#get-all-personal-labels)
1
import { TodoistApi } from '@doist/todoist-api-typescript'
2
3
type Todoist = {
4
Token: string
5
}
6
7
export async function main(resource: Todoist) {
8
const api = new TodoistApi(resource.Token)
9
const labels = await api.getLabels()
10
return labels
11
12