View Source Dnsimple.Identity (dnsimple v4.0.0)

Provides functions to interact with the identity endpoints.

See:

Summary

Functions

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

Functions

Link to this function

whoami(client, options \\ [])

View Source
@spec 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)