tuleap-api

1.0.6 • Public • Published

node-tuleap

Build Status (Travis) Dependency Status Code Climate

NPM Badge

Tuleap API Nodejs library. It wraps the HTTP api library described here.

Install

# Install from npm 
npm install tuleap-api

Usage

URL to your Tuleap instance should not include /api path.

Javascript

// Connection
var tuleap = require('tuleap')({
  server:   'https://example.com',
  strictSSL: true
});
 
// Authentication (generate token)
tuleap.token.login(username, password, function(err, data) {
  if (!err) {
   console.log(data); // Token and user_id
  }
});
 
// Listing projects
tuleap.projects.all(function(err, projects) {
  for (var i = 0; i < projects.length; i++) {
    console.log('#' + projects[i].id + '' + projects[i].shortname + '\nuri: ' + projects[i].uri + '\nresources: ' + projects[i].resources + '\n\n');
  }
});

License

MIT

Readme

Keywords

Package Sidebar

Install

npm i tuleap-api

Weekly Downloads

0

Version

1.0.6

License

MIT

Last publish

Collaborators

  • vipex