github
Version:
NodeJS wrapper for the GitHub API
22 lines (17 loc) • 358 B
JavaScript
;
var Client = require("./../lib/index");
var testAuth = require("./../testAuth.json");
var github = new Client({
debug: true
});
github.authenticate({
type: "oauth",
token: testAuth["token"]
});
github.issues.lock({
owner: "kaizensoze",
repo: "test2",
number: 3
}, function(err, res) {
console.log(err, res);
});