Dnsimple.Domains.create_domain
You're seeing just the function
create_domain
, go back to Dnsimple.Domains module for more information.
Link to this function
create_domain(client, account_id, attributes, options \\ [])
Specs
create_domain(Dnsimple.Client.t(), String.t() | integer(), map(), Keyword.t()) :: {:ok | :error, Dnsimple.Response.t()}
Creates a new domain in the account.
This won't register the domain and will only add it to the account.
To register a domain please use Dnsimple.Registrar.register_domain/5
.
See:
Examples:
client = %Dnsimple.Client{access_token: "a1b2c3d4"}
{:ok, response} = Dnsimple.Domains.create_domain(client, account_id = 1010, %{name: "example.io"})