View Source Dnsimple.Tlds (dnsimple v4.0.0)

Provides functions to interact with the TLD endpoints.

See:

Summary

Functions

Returns the extended attributes for a TLD.

Returns the lists of DNSimple supported TLDs.

Functions

Link to this function

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

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