gitlab-node
v1.5.0
Published
access gitlab api by using node
Downloads
46
Readme
node-gitlab
access gitlab api by using node, support v4
Install
$ npm install gitlab-node --save
Usage
- Use private token
// url is your gitlab api path such as http://example.com/api/v4/
// token is your user private token
const gitlab = require('gitlab-node').connect(url, token);
gitlab.issues.proejcts(projectId).then(function(issues) {
// do something
});
- Use oauth2 token
// url is your gitlab api path such as http://example.com/api/v4/
// token is your oauth2 token
const gitlab = require('gitlab-node').connect(url, token, true);
gitlab.issues.proejcts(projectId).then(function(issues) {
// do something
});
API
See detail