Convenience functions for the GitHub Gists REST API.
Thin wrappers over GhEx.REST that return the same {:ok, body, meta} /
{:error, reason} shape; opts pass through to Req.
Summary
Functions
Creates a gist. attrs is the JSON body (files, description, public, ...).
Deletes a gist.
Gets a gist by id.
Lists gists for the authenticated user.
Auto-paginates the authenticated user's gists into a lazy Stream (see GhEx.REST.stream/3).
Updates a gist.
Types
Functions
@spec create(GhEx.Client.t(), map(), keyword()) :: GhEx.REST.result()
Creates a gist. attrs is the JSON body (files, description, public, ...).
@spec delete(GhEx.Client.t(), id(), keyword()) :: GhEx.REST.result()
Deletes a gist.
@spec get(GhEx.Client.t(), id(), keyword()) :: GhEx.REST.result()
Gets a gist by id.
@spec list( GhEx.Client.t(), keyword() ) :: GhEx.REST.result()
Lists gists for the authenticated user.
@spec stream( GhEx.Client.t(), keyword() ) :: Enumerable.t()
Auto-paginates the authenticated user's gists into a lazy Stream (see GhEx.REST.stream/3).
@spec update(GhEx.Client.t(), id(), map(), keyword()) :: GhEx.REST.result()
Updates a gist.