TODO: Add description
If available in Hex, the package can be installed
by adding keycdn
to your list of dependencies in mix.exs
:
def deps do
[
{:keycdn, "~> 0.1.0"}
]
end
Usage:
iex> client = KeyCDN.Client.new(<API_KEY>)
iex> KeyCDN.list_zones(client)
iex> client = KeyCDN.Client.new(<API_KEY>)
iex> KeyCDN.list_zones(client, <zone_id>)
iex> client = KeyCDN.Client.new(<API_KEY>)
iex> KeyCDN.add_zone(client, %{name: "x", type: "push", ...})
iex> client = KeyCDN.Client.new(<API_KEY>)
iex> KeyCDN.list_zones(client, <zone_id>, %{name: "x", type: "push", ...})
iex> client = KeyCDN.Client.new(<API_KEY>)
iex> KeyCDN.delete_zone(client, <zone_id>)
iex> client = KeyCDN.Client.new(<API_KEY>)
iex> KeyCDN.purge_zone_cache(client, <zone_id>)
iex> client = KeyCDN.Client.new(<API_KEY>)
iex> KeyCDN.purge_zone_url(client, <zone_id>, [
"example.com/style.css",
"example.com/image.png"
])