1.0.6 • Published 9 years ago

tuleap-api v1.0.6

Weekly downloads
3
License
MIT
Repository
github
Last release
9 years ago

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

1.0.6

9 years ago

1.0.5

9 years ago

1.0.4

9 years ago

1.0.3

9 years ago

1.0.2

9 years ago

1.0.1

9 years ago

1.0.0

9 years ago