Current section
Files
Jump to
Current section
Files
lib/epik.ex
defmodule Epik do
@moduledoc """
Simple functions for interacting with the [Epik v2 API][1].
[1]: https://docs.userapi.epik.com/v2/
"""
@doc """
Check the status of domain names, including their price and availability.
"""
@spec check_domains(domains :: [String.t()]) :: {:ok, [any()]} | {:error, any()}
def check_domains(domains) when is_list(domains) do
params = %{"DOMAINS" => Enum.join(domains, ",")}
Epik.Client.get("/v2/domains/check", params)
end
end