You should import TaigaClient
- Create Client and get information about all projects and filter by is_backlog_activated: true and order by total_fans
import { TaigaClient } from 'taigaio-client';
(async () => {
const client = new TaigaClient('localhost:8080', '<usertoken>');
const filteredProjects = await client.getProjectList({
is_backlog_activated: true,
order_by: 'total_fans'
});
})().catch((err: unknown) => {
console.log(err);
});
- or the same thing, but with normal login
import { TaigaClient } from 'taigaio-client';
(async () => {
const client = new TaigaClient('localhost:8080');
await client.normalLogin('<username>', '<password>');
const filteredProjects = await client.getProjectList({
is_backlog_activated: true,
order_by: 'total_fans'
});
})().catch((err: unknown) => {
console.log(err);
});