...
All captchas are valid in 5 minutes after requesting them.
Getting the captcha
Using captchas are currently free of usage. The API module is quite simple built: Requesting a captcha from /3.0/captcha/ will return a hash and an image url. You can also call for the captcha with /captcha/getCaptcha (works for APIv2 also).
...
Info | |||||||||
---|---|---|---|---|---|---|---|---|---|
| |||||||||
By running /captcha/getCaptcha, your response will instead be something like below:
|
Test the captcha string
Testing this string against the captchaApi is being made either through
...
Code Block | ||||
---|---|---|---|---|
| ||||
{ "response": [], "errors": { "code": "401", "success": "", "faultstring": "Captcha test failed" } } |
Get the image for a specific hash
As the URLs above reveals, getImage() is used to show a generated captcha image. Using /getImage/<hashString> will give you the image. For the example below, you'll get "test", since hashes expires after 5 minutes and will not be available for viewing after this.
...