Skip to content

HadeAs/node-gitlab

 
 

Repository files navigation

node-gitlab

access gitlab api by using node, support v4

Install

$ npm install gitlab-node --save

Usage

  1. 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
});
  1. 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

About

access gitlab api by using node. API Reference Docs:

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 100.0%