Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/huang-x-h/node-gitlab
access gitlab api by using node. API Reference Docs:
https://github.com/huang-x-h/node-gitlab
api gitlab node
Last synced: about 11 hours ago
JSON representation
access gitlab api by using node. API Reference Docs:
- Host: GitHub
- URL: https://github.com/huang-x-h/node-gitlab
- Owner: huang-x-h
- Created: 2016-06-08T03:11:11.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2018-09-17T01:38:00.000Z (over 6 years ago)
- Last Synced: 2024-10-10T00:08:02.200Z (3 months ago)
- Topics: api, gitlab, node
- Language: JavaScript
- Homepage: http://huang-x-h.github.io/node-gitlab
- Size: 542 KB
- Stars: 3
- Watchers: 2
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
Awesome Lists containing this project
README
# node-gitlab
> access gitlab api by using node, support v4
## Install
$ npm install gitlab-node --save
## Usage
1. Use private token
```js
// 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
});
```2. Use oauth2 token
```js
// 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](http://huang-x-h.github.io/node-gitlab)