Skip to content

MIEMHSE/node-taigaio-client

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

36 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Taiga.io client

Gitmoji

Create client

You should import TaigaClient

Example

  • 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);
});

Releases

No releases published