DmitryBaranovskiy / githubjs
- Source
- Commits
- Network (0)
- Issues (0)
- Downloads (0)
- Wiki (1)
- Graphs
-
Branch:
master
githubjs /
| name | age | message | |
|---|---|---|---|
| |
README.markdown | Mon May 11 17:12:11 -0700 2009 | |
| |
github.js | Mon May 11 17:12:11 -0700 2009 |
README.markdown
GitHub.js
JavaScript Wrapper for GitHub API
Usage
GitHub("username", "repository");
// for sake of not duplicating API documentation, I will just include links to it. It should be pretty obvious:
// http://develop.GitHub.com/p/users.html#searching_for_users
GitHub.user.search(term, callback)
// http://develop.GitHub.com/p/users.html#getting_user_information
GitHub.user.show(callback)
// http://develop.GitHub.com/p/users.html#following_network
GitHub.user.followers(callback)
// http://develop.GitHub.com/p/users.html#following_network
GitHub.user.following(callback)
// http://develop.GitHub.com/p/issues.html#search_issues
GitHub.issues.search(state_is_open, term, callback)
// http://develop.GitHub.com/p/issues.html#list_a_projects_issues
GitHub.issues.list(state_is_open, callback)
// http://develop.GitHub.com/p/issues.html#view_an_issue
GitHub.issues.show(number, callback)
// http://develop.GitHub.com/p/repo.html#searching_repositories
GitHub.repo.search(term, callback)
// http://develop.GitHub.com/p/repo.html#show_repo_info
GitHub.repo.show(callback)
// http://develop.GitHub.com/p/repo.html#list_all_repositories
GitHub.repo.list(callback)
// http://develop.GitHub.com/p/repo.html#collaborators
GitHub.repo.collaborators(callback)
// http://develop.GitHub.com/p/repo.html#network
GitHub.repo.network(callback)
// http://develop.GitHub.com/p/repo.html#repository_refs
GitHub.repo.tags(callback)
// http://develop.GitHub.com/p/repo.html#repository_refs
GitHub.repo.branches(callback)
// http://develop.GitHub.com/p/commits.html#listing_commits_on_a_branch
GitHub.commits.list(branch, callback)
// http://develop.GitHub.com/p/commits.html#listing_commits_for_a_file
GitHub.commits.file(branch, path, callback)
// http://develop.GitHub.com/p/commits.html#showing_a_specific_commit
GitHub.commits.show(sha, callback)
// http://develop.GitHub.com/p/object.html#trees
GitHub.object.tree(tree_sha, callback)
// http://develop.GitHub.com/p/object.html#blobs
GitHub.object.blob(tree_sha, path, callback)
// http://develop.GitHub.com/p/object.html#raw_git_data
GitHub.object.rawURI(sha)
