Javascript bindings for the Github API.
JavaScript
Latest commit 06c4f9f Sep 24, 2015 @fitzgen Merge pull request #19 from bronzehedwick/patch-1
Add syntax highlighting to readme code snippet
Permalink
Failed to load latest commit information.
.gitignore
AUTHORS Adding AUTHORS file, credit to Alexander. Jul 28, 2010
LICENSE
README.md Add syntax highlighting to readme code snippet Sep 22, 2015
github.js

README.md

Exposes gh to the global environment. Tries to follow both the form of Github HTTP API and JS style.

gh.authenticate("fitzgen", "sdfk32we-FAKE-uydfs7f-rhrwe8r7");
var huddlej = gh.user("huddlej");
huddlej.show(function (data) {
    console.log(data.user);
});
huddlej.repos(function (data) {
    console.log("Number of repos: " + data.repositories.length);
});
var wujs = gh.repo("fitzgen", "wu.js")
wujs.show(function (data) {
    console.log("Number of watchers: " + data.repository.watchers);
});
wujs.update({ has_wiki: 0 }); // Unfortunately, no callbacks with POSTs :(

COMPLETE

  • Authentication
  • Users
  • Repos
  • Commits
  • Issues
  • Gists
  • Network
  • Objects

TODO

  • Documentation