Skip to content

Instantly share code, notes, and snippets.

@chengscott
Last active August 29, 2015 14:25
Show Gist options
  • Select an option

  • Save chengscott/5df4175fdaa43142fb14 to your computer and use it in GitHub Desktop.

Select an option

Save chengscott/5df4175fdaa43142fb14 to your computer and use it in GitHub Desktop.
Parse Cloud Code - grecaptcha
Parse.Cloud.define("grecaptcha", function (request, response) {
Parse.Cloud.httpRequest({
url: 'https://www.google.com/recaptcha/api/siteverify?secret=<Your Secret Key here>&response=' + request.params.key,
success: function (httpResponse) {
response.success(JSON.parse(httpResponse.text).success);
}
});
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment