github.node

0.2.1 • Public • Published

github.node

Github v3 Client for Node.js

Installation

npm install github.node

Usage

var Github = require('github.node');

var client = new Github({access_token: '...'});
client.

Constructors

new Github()

new Github({access_token: '...'})

Methods

Users API

Authenticated

client.user.get(callback)

client.user.update(updates, callback)

client.user.emails.list(callback)

client.user.emails.add(emails, callback)

client.user.emails.remove(emails, callback)

client.user.followers.list(callback)

client.user.following.list(callback)

client.user.following.check(username, callback)

client.user.following.add(username, callback)

client.user.following.remove(username, callback)

Not Authenticated

client.users.list([parameters], callback)

client.users(username).get(callback)

client.users(username).followers.list(callback)

client.users(username).following.list(callback)

Repos API

Authenticated

client.repos.list([parameters], callback)

client.repos.get(repo, callback)

client.repos.create(data, callback)

client.repos.update(repo, updates, callback)

client.orgs(organization).repos.create(data, callback)

client.

Not Authenticated

client.repos.list([parameters], callback)

client.users(username).repos.list([parameters], callback)

client.users(username).repos.get(repo, callback)

client.orgs(organization).repos.list([parameters], callback)

License

Copyright (c) 2013 Matt Insler
Licensed under the MIT license.

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 0.2.1
    0
    • latest

Version History

  • Version
    Downloads (Last 7 Days)
    • Published
  • 0.2.1
    0
  • 0.2.0
    0
  • 0.0.1
    0

Package Sidebar

Install

npm i github.node

Weekly Downloads

0

Version

0.2.1

License

none

Last publish

Collaborators

  • mattinsler