View Source Dnsimple.Identity (dnsimple v3.4.0)

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
@spec whoami(Dnsimple.Client.t(), Keyword.t()) ::
  {:ok | :error, Dnsimple.Response.t()}

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

See:

examples

Examples:

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