Interface Gists


@Immutable public interface Gists
GitHub gists.
Since:
0.1
See Also:
  • Method Details

    • github

      GitHub github()
      GitHub we're in.
      Returns:
      GitHub
    • create

      Gist create(Map<String,String> files, boolean visible) throws IOException
      Create a new gist.
      Parameters:
      files - Names and content of files
      visible - Indicates whether the gist is public
      Returns:
      Gist
      Throws:
      IOException - If there is any I/O problem
      See Also:
    • get

      Gist get(String name)
      Get gist by name.
      Parameters:
      name - Name of it
      Returns:
      Gist
      See Also:
    • iterate

      Iterable<Gist> iterate()
      Iterate all gists.
      Returns:
      Iterator of gists
      See Also:
    • remove

      void remove(String identifier) throws IOException
      Removes a gist by id.
      Parameters:
      identifier - Identifier of the gist to be removed.
      Throws:
      IOException - If there is any I/O problem