Dnsimple.Zones.create_zone_record
You're seeing just the function
create_zone_record
, go back to Dnsimple.Zones module for more information.
Link to this function
create_zone_record(client, account_id, zone_id, attributes, options \\ [])
Specs
create_zone_record( Dnsimple.Client.t(), String.t() | integer(), String.t() | integer(), Keyword.t(), Keyword.t() ) :: {:ok | :error, Dnsimple.Response.t()}
Creates a record in the zone.
See:
Examples:
client = %Dnsimple.Client{access_token: "a1b2c3d4"}
{:ok, response} = Dnsimple.Zones.create_zone_record(client, account_id = 1010, zone_id = "example.com", %{
name: "www",
type: "CNAME",
content: "example.com",
ttl: 3600,
})