diff --git a/README.md b/README.md index 20b2883..8e662be 100644 --- a/README.md +++ b/README.md @@ -163,6 +163,17 @@ Finally we can instantiate and make the call: ```js var github = new Github(config); + +// The `fetch`-style: +github.emojis() + .then(function (res) { + return res.json(); + }) + .done(function (emojiList) { + console.log('Returned %d emojis', Object.keys(emojiList).length); + }); + +// Using the added convenience of req.json() github.emojis().json() .done(function (emojiList) { console.log('Returned %d emojis', Object.keys(emojiList).length);