UNPKG

baasic-sdk-angularjs

Version:

AngularJS SDK provides core functionality for building web and mobile applications on [Baasic](http://www.baasic.com/).

75 lines (34 loc) 1.29 kB
# baasicRecaptchaService `baasicRecaptchaService` provides an easy way to consume ReCapctcha REST API end-points. For more information please visit [reCaptcha documentation](https://code.google.com/p/recaptcha/wiki/HowToSetUpRecaptcha). * * * ### baasicRecaptchaService.create() Creates a new reCaptcha instance with provided options and injects a reCaptcha DOM onto a given element. **Example**: ```js baasicRecaptchaService.create(element, {theme: 'clean'}); ``` ### baasicRecaptchaService.challenge() Communicates with reCaptcha service and provides a reCaptcha challenge identifier. **Example**: ```js baasicRecaptchaService.challenge(); ``` ### baasicRecaptchaService.response() Communicates with reCaptcha service and returns users response to a reCaptcha challenge. **Example**: ```js baasicRecaptchaService.response(); ``` ### baasicRecaptchaService.reload() Communicates with reCaptcha service and displays a new reCaptcha challenge. **Example**: ```js baasicRecaptchaService.reload(); ``` ### baasicRecaptchaService.destroy() Communicates with reCaptcha service and unloads a reCaptcha instance. **Example**: ```js baasicRecaptchaService.destroy(); ``` * * *