Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/kanboard/javascript-api-client

[NOT MAINTAINED] Javascript API client for Kanboard
https://github.com/kanboard/javascript-api-client

Last synced: 5 days ago
JSON representation

[NOT MAINTAINED] Javascript API client for Kanboard

Awesome Lists containing this project

README

        

Javascript API Client for Kanboard
==================================

[Kanboard](https://kanboard.org/) is a Kanban project management software.

- Author: Frédéric Guillot
- License: MIT

Requirements
------------

- Tested with nodejs >= 7.3.x

Installation
------------

```bash
npm install kanboard
```

Examples
--------

Methods and arguments are the same as the API procedures described in the [official documentation](https://docs.kanboard.org/en/1.2.2/api/index.html).

### Get list of projects

```javascript
const Kanboard = require('kanboard');

var kb = new Kanboard('http://localhost/jsonrpc.php', 'username', 'password');

kb.execute('getMyProjects')
.on('success', (result) => {
console.log(result);
})
.on('error', (error) => {
console.log(error);
});
```

### Create a new project

```javascript
kb.execute('getMyProjects', {name: 'My project'});
```

### Create a new task

```javascript
kb.execute('createTask', {title: 'My task', project_id: 3, color_id: 'blue'});
```