github
Version:
NodeJS wrapper for the GitHub API
24 lines (19 loc) • 436 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.repos.createFile({
owner: "kaizensoze",
repo: "misc-scripts",
path: "blah.txt",
message: "blah blah",
content: "YmxlZXAgYmxvb3A="
}, function(err, res) {
console.log(err, res);
});