Interface Gists


  • @Immutable
    public interface Gists
    Github gists.
    Since:
    0.1
    Version:
    $Id: 1aebced4ec86467ab50d6ec1a83ee23e1cefd821 $
    Author:
    Yegor Bugayenko ([email protected])
    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