Dnsimple.Identity (dnsimple v3.1.0) View Source

Provides functions to interact with the identity endpoints.

See:

Link to this section Summary

Functions

Returns information about the currently authenticated user and/or account.

Link to this section Functions

Link to this function

whoami(client, options \\ [])

View Source

Specs

whoami(Dnsimple.Client.t(), Keyword.t()) ::
  {:ok | :error, Dnsimple.Response.t()}

Returns information about the currently authenticated user and/or account.

See:

Examples:

client = %Dnsimple.Client{access_token: "a1b2c3d4"}
{:ok, response} = Dnsimple.Identity.whoami(client)