Skip to content

services recaptchaService

Baasic edited this page Apr 27, 2015 · 11 revisions

baasicRecaptchaService

baasicRecaptchaService provides an easy way to consume ReCapctcha REST API end-points. For more information please visit reCaptcha documentation.


baasicRecaptchaService.create()

Creates a new reCaptcha instance with provided options and injects a reCaptcha DOM onto a given element.

Example:

baasicRecaptchaService.create(element, {theme: 'clean'});

baasicRecaptchaService.challenge()

Communicates with reCaptcha service and provides a reCaptcha challenge identifier.

Example:

baasicRecaptchaService.challenge();

baasicRecaptchaService.response()

Communicates with reCaptcha service and returns users response to a reCaptcha challenge.

Example:

baasicRecaptchaService.response();

baasicRecaptchaService.reload()

Communicates with reCaptcha service and displays a new reCaptcha challenge.

Example:

baasicRecaptchaService.reload();

baasicRecaptchaService.destroy()

Communicates with reCaptcha service and unloads a reCaptcha instance.

Example:

baasicRecaptchaService.destroy();