Group
Extension

Matches 1

Net-WHMCS ( F/FA/FAYLAND/Net-WHMCS-0.10.tar.gz, FAYLAND, 2019; MetaCPAN )
Net-WHMCS/lib/Net/WHMCS/Base.pm ( view source; MetaCPAN )
ON = '0.10';
# ABSTRACT: WHMCS API Role

use Moo::Role;
use Carp 'croak';
use LWP::UserAgent;
use JSON;

has 'WHMCS_URL' => (
    is       => 'rw',
    required => 1
);

has 'api_identifier' => (is =>
= $self->WHMCS_API_ACCESSKEY if $self->WHMCS_API_ACCESSKEY;
    }

    $params->{responsetype} = 'json';

    my $resp = $self->ua->post($self->WHMCS_URL, $params);
    return {
        result  => 'er
    } unless $resp->is_success;

    # print Dumper(\$resp); use Data::Dumper;

    return decode_json($resp->content);
}

1;

__END__

=pod

=encoding UTF-8

=head1 NAME

Net::WHMCS::Base - WHMCS API

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