View Source Dnsimple.Tlds (dnsimple v4.0.0)
Provides functions to interact with the TLD endpoints.
See:
Summary
Functions
Returns a TLD.
Returns the extended attributes for a TLD.
Returns the lists of DNSimple supported TLDs.
Functions
@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")
@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")
@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")