API-Name
view release on metacpan or search on metacpan
README.mkdn view on Meta::CPAN
# SYNOPSIS
use API::Name;
my $name = API::Name->new(
user => 'USER',
token => 'TOKEN',
identifier => 'APPLICATION NAME',
);
$name->debug(1);
$name->fatal(1);
my $domain = $name->domains(get => 'example.com');
my $results = $domain->fetch;
# after some introspection
$domain->update( ... );
# DESCRIPTION
README.mkdn view on Meta::CPAN
holder.
## identifier
$name->identifier;
$name->identifier('IDENTIFIER');
The identifier attribute should be set to a string that identifies your
application.
## debug
$name->debug;
$name->debug(1);
The debug attribute if true prints HTTP requests and responses to standard out.
## fatal
$name->fatal;
$name->fatal(1);
The fatal attribute if true promotes 4xx and 5xx server response codes to
exceptions, a [API::Client::Exception](https://metacpan.org/pod/API::Client::Exception) object.
## retries
lib/API/Name.pm view on Meta::CPAN
$headers->header('Content-Type' => 'application/json');
$headers->header('Api-Username' => $user);
$headers->header('Api-Token' => $token);
}
method resource (@segments) {
# build new resource instance
my $instance = __PACKAGE__->new(
debug => $self->debug,
fatal => $self->fatal,
retries => $self->retries,
timeout => $self->timeout,
user_agent => $self->user_agent,
identifier => $self->identifier,
token => $self->token,
user => $self->user,
version => $self->version,
);
lib/API/Name.pm view on Meta::CPAN
=head1 SYNOPSIS
use API::Name;
my $name = API::Name->new(
user => 'USER',
token => 'TOKEN',
identifier => 'APPLICATION NAME',
);
$name->debug(1);
$name->fatal(1);
my $domain = $name->domains(get => 'example.com');
my $results = $domain->fetch;
# after some introspection
$domain->update( ... );
=head1 DESCRIPTION
lib/API/Name.pm view on Meta::CPAN
holder.
=head2 identifier
$name->identifier;
$name->identifier('IDENTIFIER');
The identifier attribute should be set to a string that identifies your
application.
=head2 debug
$name->debug;
$name->debug(1);
The debug attribute if true prints HTTP requests and responses to standard out.
=head2 fatal
$name->fatal;
$name->fatal(1);
The fatal attribute if true promotes 4xx and 5xx server response codes to
exceptions, a L<API::Client::Exception> object.
=head2 retries
( run in 0.931 second using v1.01-cache-2.11-cpan-49f99fa48dc )