GhEx.Users (gh_ex v0.3.1)

Copy Markdown View Source

Convenience functions for the GitHub Users REST API.

Thin wrappers over GhEx.REST that return the same {:ok, body, meta} / {:error, reason} shape; opts pass through to Req.

Summary

Functions

Gets a user by username.

Gets the authenticated user.

Lists email addresses for the authenticated user.

Lists users followed by a user.

Functions

get(client, username, opts \\ [])

Gets a user by username.

get_authenticated(client, opts \\ [])

@spec get_authenticated(
  GhEx.Client.t(),
  keyword()
) :: GhEx.REST.result()

Gets the authenticated user.

list_emails(client, opts \\ [])

@spec list_emails(
  GhEx.Client.t(),
  keyword()
) :: GhEx.REST.result()

Lists email addresses for the authenticated user.

list_followers(client, username, opts \\ [])

@spec list_followers(GhEx.Client.t(), String.t(), keyword()) :: GhEx.REST.result()

Lists followers of a user.

list_following(client, username, opts \\ [])

@spec list_following(GhEx.Client.t(), String.t(), keyword()) :: GhEx.REST.result()

Lists users followed by a user.