diff --git a/github.coffee b/github.coffee index cb2050be..ff2b553d 100644 --- a/github.coffee +++ b/github.coffee @@ -106,6 +106,10 @@ makeGithub = (_, jQuery, base64encode) => onRateLimitChanged: (listener) -> listeners.push listener + # Request a random zen quote (test the API) + # ------- + zen: -> _request 'GET', '/zen', null + # User API # ======= class User diff --git a/github.js b/github.js index 4866c681..e77f3f48 100644 --- a/github.js +++ b/github.js @@ -99,6 +99,10 @@ return listeners.push(listener); }; + Github.prototype.zen = function() { + return _request('GET', '/zen', null); + }; + User = (function() { function User() {}