Convenience functions for the GitHub Organizations REST API.
Thin wrappers over GhEx.REST that return the same {:ok, body, meta} /
{:error, reason} shape; opts pass through to Req.
Summary
Functions
@spec get(GhEx.Client.t(), String.t(), keyword()) :: GhEx.REST.result()
Gets an organization.
@spec list_for_authenticated_user( GhEx.Client.t(), keyword() ) :: GhEx.REST.result()
Lists organizations for the authenticated user.
@spec list_members(GhEx.Client.t(), String.t(), keyword()) :: GhEx.REST.result()
Lists members of an organization.
@spec stream_for_authenticated_user( GhEx.Client.t(), keyword() ) :: Enumerable.t()
Auto-paginates the authenticated user's organizations into a lazy Stream.
@spec stream_members(GhEx.Client.t(), String.t(), keyword()) :: Enumerable.t()
Auto-paginates an organization's members into a lazy Stream.
@spec update(GhEx.Client.t(), String.t(), map(), keyword()) :: GhEx.REST.result()
Updates an organization. attrs is the JSON body.