This repository was archived by the owner on Aug 6, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 4
III.2.e. Captcha
Andrey Bogdanov edited this page Apr 6, 2016
·
13 revisions
See: Developer's Guide for more details.
-
recaptcha_challenge_fieldThe challenge. -
recaptcha_response_fieldUser response.
-
nodeCaptchaChallengeThe challenge. -
nodeCaptchaResponseUser response.
-
codecha_challenge_fieldThe challenge. -
codecha_response_fieldUser response.
/api/captchaQuota.json?boardName=<boardName>
Returns captcha quota (number of posts a user may submit without solving a captcha) for the current user.
Example:
/api/captchaQuota.json?boardName=b
{
quota: 2
}
On any error, an error object is returned.
Example:
{
"title": "Error",
"errorMessage": "Error",
"errorDescription": "Invalid board"
}
/api/nodeCaptchaImage.json
Returns an object containing challenge and challenge file name. Files are located at ./public/node-captcha.
Example:
/api/nodeCaptchaImage.json
{
"challenge": "550e8400-e29b-41d4-a716-446655440000",
"fileName": "1458478662244.png"
}
On any error returns an error object.
/api/codechaChallenge.json
Returns the challenge string.
Example:
/api/codechaChallenge.json
4fe088447eea40b4a5a6d9af98a4d657
On any error, returns an error object.