Group
Extension

Matches 1

Captcha-reCAPTCHA-V2 ( P/PA/PATTAWAN/Captcha-reCAPTCHA-V2-0.3.tar.gz, PATTAWAN, 2015; MetaCPAN )
Captcha-reCAPTCHA-V2/lib/Captcha/reCAPTCHA/V2.pm ( view source; MetaCPAN )
package Captcha::reCAPTCHA::V2;

use strict;
use warnings;

use Carp;
use HTTP::Tiny;
use JSON;

# ABSTRACT: A Perl implementation of reCAPTCHA API version 2

our $VERSION = '0.3'; # VERSION


sub new
ptcha_script {
    my ($self, $sitekey, $options) = @_;

    my $json_options = to_json({ sitekey => $sitekey, %$options }, $self->{json_options} || {});

    return '<script type="text/javascript">va
r onloadCallback = function(){grecaptcha.render(\''
        . _element_id($sitekey) . '\',' . $json_options . ');};</script>';
}


sub html {
    my ($self, $sitekey, $options) = @_;

    $options ||=

Powered by Groonga
Maintained by Kenichi Ishigaki <ishigaki@cpan.org>. If you find anything, submit it on GitHub.