https://github.com/linjunpop/geetest
Elixir toolkit for Geetest
https://github.com/linjunpop/geetest
captcha elixir geetest
Last synced: about 1 year ago
JSON representation
Elixir toolkit for Geetest
- Host: GitHub
- URL: https://github.com/linjunpop/geetest
- Owner: linjunpop
- License: mit
- Created: 2016-06-15T03:21:10.000Z (about 10 years ago)
- Default Branch: master
- Last Pushed: 2016-06-15T05:57:48.000Z (about 10 years ago)
- Last Synced: 2024-10-30T06:59:35.301Z (over 1 year ago)
- Topics: captcha, elixir, geetest
- Language: Elixir
- Homepage: https://hex.pm/packages/geetest
- Size: 77.1 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Geetest
Elixir toolkit for [Geetest](http://www.geetest.com)
## Installation
If [available in Hex](https://hex.pm/docs/publish), the package can be installed as:
* Add geetest to your list of dependencies in `mix.exs`:
```elixir
def deps do
[{:geetest, "~> 0.0.1"}]
end
```
* Ensure geetest is started before your application:
```elixir
def application do
[applications: [:geetest]]
end
```
## Usage
### Config
```elixir
config :geetest,
id: "app-id",
key: "app-key"
```
### Start the server
```elixir
{:ok, pid} = Geetest.start_link
```
### Register
```elixir
{:ok, challenge} = Geetest.register
```
### Validate
```elixir
{:ok} = Geetest.validate("challenge", "validate", "seccode")
```