Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/fitzgen/github-api
Javascript bindings for the Github API.
https://github.com/fitzgen/github-api
Last synced: about 1 month ago
JSON representation
Javascript bindings for the Github API.
- Host: GitHub
- URL: https://github.com/fitzgen/github-api
- Owner: fitzgen
- License: mit
- Created: 2010-06-20T04:44:48.000Z (over 14 years ago)
- Default Branch: master
- Last Pushed: 2015-09-24T01:17:32.000Z (almost 9 years ago)
- Last Synced: 2024-06-28T20:51:52.912Z (3 months ago)
- Language: JavaScript
- Homepage: http://fitzgen.github.com/github-api
- Size: 158 KB
- Stars: 168
- Watchers: 6
- Forks: 33
- Open Issues: 4
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
Exposes `gh` to the global environment. Tries to follow both the form of Github
HTTP API and JS style.```js
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
* ObjectsTODO
====* Documentation