Skip to content

salsakran/github-api

This branch is 3 commits ahead of, 29 commits behind fitzgen/github-api:master.

Folders and files

NameName
Last commit message
Last commit date

Latest commit

author
Sameer on mactop
Feb 9, 2011
4221813 · Feb 9, 2011

History

37 Commits
Jul 12, 2010
Jul 28, 2010
Jun 20, 2010
Jul 30, 2010
Feb 9, 2011

Repository files navigation

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

About

Javascript bindings for the Github API.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 100.0%