Skip to content

linjunpop/geetest

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Geetest

Elixir toolkit for Geetest

Installation

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

Usage

Config

config :geetest,
  id: "app-id",
  key: "app-key"

Start the server

{:ok, pid} = Geetest.start_link

Register

{:ok, challenge} = Geetest.register

Validate

{:ok} = Geetest.validate("challenge", "validate", "seccode")