Interface Gists


  • @Immutable
    public interface Gists
    Github gists.
    Since:
    0.1
    Version:
    $Id: 439a608065052c222995591a184596cf10916552 $
    Author:
    Yegor Bugayenko (yegor256@gmail.com)
    See Also:
    Gists API
    • Method Detail

      • 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:
        Create a Gist
      • 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