listCurrentUserGists method

Stream<Gist> listCurrentUserGists()

Fetches the gists for the currently authenticated user. If the user is not authenticated, this returns all public gists.

API docs: https://developer.github.com/v3/gists/#list-gists

Implementation

Stream<Gist> listCurrentUserGists() {
  return PaginationHelper(github).objects('GET', '/gists', Gist.fromJson);
}