Skip to content
This repository has been archived by the owner on Aug 31, 2024. It is now read-only.

fitzgen/github-api

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

63 Commits
 
 
 
 
 
 
 
 
 
 

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