Skip to content

Commit e20fd3a

Browse files
committed
Updated README.md
1 parent 4f8de0e commit e20fd3a

File tree

1 file changed

+16
-0
lines changed

1 file changed

+16
-0
lines changed

README.md

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -118,6 +118,14 @@ user.orgs(function(err, orgs) {
118118
});
119119
```
120120

121+
List authenticated user's gists.
122+
123+
```js
124+
user.gists(username, function(err, gists) {
125+
126+
});
127+
```
128+
121129
Show user information for a particular username. Also works for organizations.
122130

123131
```js
@@ -142,6 +150,14 @@ user.orgRepos(orgname, function(err, repos) {
142150
});
143151
```
144152

153+
List all gists of a particular user. If username is ommitted gists of the current authenticated user are returned.
154+
155+
```js
156+
user.userGists(username, function(err, gists) {
157+
158+
});
159+
```
160+
145161
## Tests
146162

147163
Github.js is automatically™ tested by the users of [Prose](http://prose.io). Because of that, we decided to save some time by not maintaining a test suite. Yes, you heard right. :) However, you can still consider it stable since it is used in production.

0 commit comments

Comments
 (0)