github api (ghapi)
A github api for node and the browser.
Usage
npm install ghapi
var api =
See commands.js
for a list of all the commands. The file is compiled by scraping all the commands form the Github API documentation. Consult the Github documentation for parameters associated with each api call. For commands requiring authentication, append an auth
object to parameters.
Create a new gist
POST /gists
var files = 'api.txt': content: 'hello!' var basicAuth = user: 'user' pass: 'pass' ;
Fork a gist
POST /gists/:id/forks
;
var bearerAuth = bearer: 'access token' // github access token;
Todo
- Add tests and documentation