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
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
: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
::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 {
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