Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Code Block
languagejs
titleMismatch Captcha
{
    "response": {
        "responseString": ""
    },
    "errors": {
        "success": "",
        "faultstring": "Captcha test failed",
        "action": "",
        "code": "2003"
    },
    "api": {
        "endPoint": "captcha",
        "verb": "testCaptcha"
    },
    "request": [],
    "client": []
}

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.

https://api.tornevall.net/2.0/captcha/getImage/test

An alternative to this is to use /captcha/getImage/hash/<hashString>

Tip
titleCaptcha Expiration

Each captcha expires after 5 minutes.