/** section: github, internal
 *  Example
 *
 *  Github API usage example.
 *
 *  Copyright 2012 Cloud9 IDE, Inc.
 *
 *  This product includes software developed by
 *  Cloud9 IDE, Inc (http://c9.io).
 *
 *  Author: Mike de Boer <mike@c9.io>
 **/

"use strict";

var Client = require("./../index");

var github = new Client({
    debug: true
});

github.authenticate({
    type: "oauth",
    token: "ef6b58a25fc2e0145754610c3d3b6dce2251d6c1"
});

github.user.get({}, function(err, res) {
    console.log("GOT ERR?", err);
    console.log("GOT RES?", res);

    github.repos.getAll({}, function(err, res) {
        console.log("GOT ERR?", err);
        console.log("GOT RES?", res);
    });
});

@@ -397,48 +397,15 @@
 n: %22
-ef6b58a25fc2e0145754610c3d3b6dce2251d6c1
+%3CTOKEN%3E
 %22%0A%7D)
@@ -468,191 +468,16 @@
 log(
-%22GOT ERR?%22, err);%0A    console.log(%22GOT RES?%22, res);%0A%0A    github.repos.getAll(%7B%7D, function(err, res) %7B%0A        console.log(%22GOT ERR?%22, err);%0A        console.log(%22GOT RES?%22, res);%0A    %7D
+err, res
 );%0A%7D

simplify example