Skip to content

Commit d471ab0

Browse files
committed
added ability to get current users info
Added ability to get current users info without asking his name as like this done here http://developer.github.com/v3/users/#get-the-authenticated-user
1 parent f89422f commit d471ab0

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

github.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -80,6 +80,8 @@
8080
// -------
8181

8282
this.show = function(username, cb) {
83+
var command = username ? "/users/"+username : "/user";
84+
8385
_request("GET", "/users/"+username, null, function(err, res) {
8486
cb(err, res);
8587
});

0 commit comments

Comments
 (0)