Group
Extension

Matches 5

WWW-LogicBoxes ( D/DR/DRZIGMAN/WWW-LogicBoxes-0.0.4.tar.gz, DRZIGMAN, 2012; MetaCPAN )
WWW-LogicBoxes/lib/WWW/LogicBoxes.pm ( view source; MetaCPAN )

with "WWW::LogicBoxes::Role::Commands";

# Supported Response Types:
my @response_types = qw(xml json xml_simple);
subtype "LogicBoxesResponseType"
	=> as "Str",
	=> where {
		my $type = $ARG;
		{ $t
s' API will be in.  The default is XML, all supported protocols are:

=over

=item * xml

=item * json

=item * xml_simple

=back

=head2 Suggest Domains (and many others)

	my $response = $logic_boxe
he sample URI for this request would then be:

https://test.httpapi.com/api/domains/suggest-names.json?auth-userid=0&auth-password=password&keyword=domain&tlds=com&tlds=net&no-of-results=0&hyphen-allo
WWW-LogicBoxes ( D/DR/DRZIGMAN/WWW-LogicBoxes-0.0.4.tar.gz, DRZIGMAN, 2012; MetaCPAN )
WWW-LogicBoxes/lib/WWW/LogicBoxes/Role/Command/Raw.pm ( view source; MetaCPAN )
he sample URI for this request would then be:

https://test.httpapi.com/api/domains/suggest-names.json?auth-userid=0&auth-password=password&keyword=domain&tlds=com&tlds=net&no-of-results=0&hyphen-allo
check that accept the same I<key> multiple times:

https://test.httpapi.com/api/domains/available.json?auth-userid=0&auth-password=password&domain-name=domain1&domain-name=domain2&tlds=com&tlds=net

T
imes except an incrementing digit is appended:

https://test.httpapi.com/api/contacts/set-details.json?auth-userid=0&auth-password=password&contact-id=0&attr-name1=sponsor1&attr-value1=0&product-key=d
WWW-LogicBoxes ( D/DR/DRZIGMAN/WWW-LogicBoxes-0.0.4.tar.gz, DRZIGMAN, 2012; MetaCPAN )
WWW-LogicBoxes/lib/WWW/LogicBoxes/Contact/Factory.pm ( view source; MetaCPAN )
:LogicBoxes::Contact::Factory->construct_from_response( $response );

Given a HashRef that is the JSON response from LogicBoxes when retrieving contact details, returns an instance of L<WWW::LogicBoxe
WWW-LogicBoxes ( D/DR/DRZIGMAN/WWW-LogicBoxes-0.0.4.tar.gz, DRZIGMAN, 2012; MetaCPAN )
WWW-LogicBoxes/lib/WWW/LogicBoxes/Role/Command.pm ( view source; MetaCPAN )
::Role;
use MooseX::Params::Validate;

use WWW::LogicBoxes::Types qw( HashRef Str );

use JSON qw( decode_json );

use Try::Tiny;
use Carp;

requires 'response_type';
with 'WWW::LogicBoxes::Role::Comm
our $VERSION = '1.11.0'; # VERSION
# ABSTRACT: Submission of LogicBoxes Commands

# Used to force json as the response_type and restore the existing type afterwards
around submit => sub {
    my $orig
e_type;

    my $response;
    try {
        if( $current_response_type ne 'json' ) {
            $self->response_type('json');
        }

        $response = $self->$orig( $args );
    }
    catch {
WWW-LogicBoxes ( D/DR/DRZIGMAN/WWW-LogicBoxes-0.0.4.tar.gz, DRZIGMAN, 2012; MetaCPAN )
WWW-LogicBoxes/lib/WWW/LogicBoxes/Types.pm ( view source; MetaCPAN )
21 C31 C32 )];
enum NexusPurpose,       [qw( P1 P2 P3 P4 P5 )];
enum ResponseType,       [qw( xml json xml_simple )];
enum VerificationStatus, [qw( Verified Pending Suspended NA )];

class_type Contac

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