KeyCDN
TODO: Add description
Installation
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"}
]
endUsage:
Returns all zones
iex> client = KeyCDN.Client.new(<API_KEY>)
iex> KeyCDN.list_zones(client)Returns a specific zone
iex> client = KeyCDN.Client.new(<API_KEY>)
iex> KeyCDN.list_zones(client, <zone_id>)Creates a zone
iex> client = KeyCDN.Client.new(<API_KEY>)
iex> KeyCDN.add_zone(client, %{name: "x", type: "push", ...})Updates a specific zone
iex> client = KeyCDN.Client.new(<API_KEY>)
iex> KeyCDN.list_zones(client, <zone_id>, %{name: "x", type: "push", ...})Deletes a specific zone
iex> client = KeyCDN.Client.new(<API_KEY>)
iex> KeyCDN.delete_zone(client, <zone_id>)Purge zone cache
iex> client = KeyCDN.Client.new(<API_KEY>)
iex> KeyCDN.purge_zone_cache(client, <zone_id>)Purge zone urls
iex> client = KeyCDN.Client.new(<API_KEY>)
iex> KeyCDN.purge_zone_url(client, <zone_id>, [
"example.com/style.css",
"example.com/image.png"
])