Dnsimple.Webhooks.create_webhook
You're seeing just the function
create_webhook
, go back to Dnsimple.Webhooks module for more information.
Link to this function
create_webhook(client, account_id, attributes, options \\ [])
Specs
create_webhook(Dnsimple.Client.t(), String.t() | integer(), map(), Keyword.t()) :: {:ok | :error, Dnsimple.Response.t()}
Creates a new webhook.
See:
Examples:
client = %Dnsimple.Client{access_token: "a1b2c3d4"}
{:ok, response} = Dnsimple.Webhooks.create_webhook(client, account_id = "1010", %{
url: "https://test.host/handler"
})