Getting Names

If you are just looking for names and do not need the full JSON object, this methods are for you.

This methods are not available in the rest API. They have been implemented just for this client and dont provide performance improvements respect of getting all JSON and filtering it.

getAllTaskNames()

const myClient // an authorized client instance
myClient.extras.getAllTaskNames().then(res => console.log(res)) // ["task1 content", "task2 content", ...]

getAllProjectNames()

const myClient // an authorized client instance
myClient.extras.getAllProjectNames().then(res => console.log(res)) // ["Inbox", "Project 1", ...]

getAllSectionNames(project_id?)

If no project_id is provided returns all section names, if provided, returns sections from that project.

const myClient // an authorized client instance
myClient.extras.getAllSectionNames().then(res => console.log(res)) // ["Section 1", "Section 2", ...]

getAllLabelNames()

const myClient // an authorized client instance
myClient.extras.getAllLabelNames().then(res => console.log(res)) // ["Label-1", "another-label", ...]

Last updated