Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/samsonjs/gitter
GitHub client for node and browsers (v3 API)
https://github.com/samsonjs/gitter
Last synced: 3 months ago
JSON representation
GitHub client for node and browsers (v3 API)
- Host: GitHub
- URL: https://github.com/samsonjs/gitter
- Owner: samsonjs
- License: mit
- Created: 2010-11-08T00:01:46.000Z (about 14 years ago)
- Default Branch: master
- Last Pushed: 2012-06-13T05:14:21.000Z (over 12 years ago)
- Last Synced: 2024-08-07T15:10:00.418Z (3 months ago)
- Language: JavaScript
- Homepage: http://samhuri.net/proj/gitter
- Size: 146 KB
- Stars: 20
- Watchers: 5
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: Readme.md
- License: LICENSE
Awesome Lists containing this project
README
gitter
======A GitHub client inspired by [pengwynn/octokit](https://github.com/pengwynn/octokit).
v3 API
Works in Node.js and most web browsers.
Installation
============npm install gitter
Usage
=====var gh = require('gitter')
gh.user('samsonjs', function(err, user) {
if (err) throw err
console.log('---- user: samsonjs ----')
console.dir(user)
})gh.repo('samsonjs', 'gitter', function(err, repo) {
if (err) throw err
console.log('---- repo: ' + repo.owner + '/' + repo.name + ' ----')
console.dir(repo)
}).fetchWatchers(function(err, watchers) {
if (err) throw err
console.log('---- watchers ----')
console.dir(watchers)
}).fetchBranches(function(err, branches) {
if (err) throw err
console.log('---- branches: samsonjs/gitter ----')
console.dir(branches)
gh.commit(this.user, this.repo, branches['master'], function(err, commit) {
if (err) throw err
console.log('---- samsonjs/gitter/master commit: ' + commit.id + ' ----')
console.dir(commit.data())
})
})For the full API have a look at the top of [lib/index.js](https://github.com/samsonjs/gitter/blob/master/lib/index.js).
License
=======Copyright 2010 - 2012 Sami Samhuri [email protected]
[MIT License](http://sjs.mit-license.org)