defmodule Keplars.Domains do
@moduledoc false
alias Keplars.Http
def add(client, domain) do
Http.request(client, :post, "/domains", %{domain: domain})
end
def list(client) do
Http.request(client, :get, "/domains")
end
def get_status(client, domain_id) do
Http.request(client, :get, "/domains/#{domain_id}")
end
def verify(client, domain_id) do
Http.request(client, :post, "/domains/#{domain_id}/verify", %{})
end
def delete(client, domain_id) do
Http.request(client, :delete, "/domains/#{domain_id}")
end
def create_api_key(client, params) do
Http.request(client, :post, "/domains/api-keys", params)
end
end