gisty
A node.js wrapper for the GitHub Gists API v3.
Installation
$ npm install gisty
Examples
var Gisty = ; var gist = username: 'meritt'; gist;
Gisty = require 'gisty' gist = username: 'meritt' gistfetch '1111422' throw error if error consolelog "\n\n\n" for filenamefile of gistfiles
How to retrieve github OAuth2 access_token
Grab latest source code and install all dev dependencies
$ npm link
Change your host, client id, client secret in examples/get-access-token.coffee and after that run examples/get-access-token.coffee
$ coffee examples/get-access-token.coffee
API
fetch(gist_id, callback)
comments(gist_id, callback)
all(callback)
public(callback)
starred(callback)
Author
License
The MIT License, see the included license.md
file.