Packages

An extended and functional wrapper for the Clash of Clans API

Current section

Files

Jump to
clashofclans lib api errors invalid_ip.ex
Raw

lib/api/errors/invalid_ip.ex

defmodule Api.Errors.InvalidIp do
def invalid_ip(data) do
if data["reason"] == "accessDenied.InvalidIp" do
{:error, "The IP address is not whitelisted."}
else
{:ok, data}
end
end
end