github
Version:
NodeJS wrapper for the GitHub API
18 lines (14 loc) • 306 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.users.getFollowers({
}, function(err, res) {
console.log(err, res);
});