Elixir toolkit for Geetest
If available in Hex, the package can be installed as:
- Add geetest to your list of dependencies in
mix.exs
:
def deps do
[{:geetest, "~> 0.0.1"}]
end
- Ensure geetest is started before your application:
def application do
[applications: [:geetest]]
end
config :geetest,
id: "app-id",
key: "app-key"
{:ok, pid} = Geetest.start_link
{:ok, challenge} = Geetest.register
{:ok} = Geetest.validate("challenge", "validate", "seccode")