public-gists

0.0.2 • Public • Published

Public Gists

Fetch public github gists by username and id with no authentication

Installation

Install via NPM

npm install public-gists

Require it

var gists = require('public-gists');

Call the API

gists.getPublicGistsByUsername( 'wixo', function ( error, result ) {
    if ( error ) {
        throw new Error( 'There was an error', error );
    }
    console.log( 'getPublicGistsByUsername: ', result );
} );

gists.getPublicGistById( 1, function ( error, result ) {
    if ( error ) {
        throw new Error( 'There was an error', error );
    }
    console.log( 'getPublicGistById: ', result );
} );

Okthxbye

Dependencies (1)

Dev Dependencies (0)

    Package Sidebar

    Install

    npm i public-gists

    Weekly Downloads

    0

    Version

    0.0.2

    License

    ISC

    Last publish

    Collaborators

    • wxo