dnsimple v1.2.0 Dnsimple.Tlds

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

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

Specs

Returns a TLD.

See:

Examples

client = %Dnsimple.Client{access_token: "a1b2c3d4"}
{:ok, response} = Dnsimple.Tlds.get_tld(client, "com")
get_tld_extended_attributes(client, tld, options \\ [])

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")
list_tlds(client, options \\ [])

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")