Dnsimple.Tlds (dnsimple v3.1.0) View Source

Provides functions to interact with the TLD endpoints.

See:

Link to this section Summary

Functions

Returns the extended attributes for a TLD.

Returns the lists of DNSimple supported TLDs.

Link to this section Functions

Link to this function

get_tld(client, tld, options \\ [])

View Source

Specs

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

Returns a TLD.

See:

Examples

client = %Dnsimple.Client{access_token: "a1b2c3d4"}
{:ok, response} = Dnsimple.Tlds.get_tld(client, "com")
Link to this function

get_tld_extended_attributes(client, tld, options \\ [])

View Source

Specs

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

Returns the extended attributes for a TLD.

See:

Examples

client = %Dnsimple.Client{access_token: "a1b2c3d4"}
{:ok, response} = Dnsimple.Tlds.get_tld_extended_attributes(client, "com")
Link to this function

list_tlds(client, options \\ [])

View Source

Specs

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

Returns the lists of DNSimple supported TLDs.

See:

Examples

client = %Dnsimple.Client{access_token: "a1b2c3d4"}
{:ok, response} = Dnsimple.Tlds.list_tlds(client)
{:ok, response} = Dnsimple.Tlds.list_tlds(client, page: 2, per_page: 10)
{:ok, response} = Dnsimple.Tlds.list_tlds(client, sort: "tlds:desc")