(async () => {
try {
const filterData = {
date_created: 1508369194377,
'list_ids[]': [123],
'statuses[]': ['active', 'in progress'],
};
const { body } = await clickup.teams.getFilteredTasks(543, filterData);
console.log(body);
} catch (error) {
if (error.response) {
console.log(error.response.body);
console.log(error.response.statusCode);
console.log(error.response.headers);
} else if (error.request) {
console.log(error.request);
} else {
console.log('Error', error.message);
}
console.log(error.options);
}
})();