API-Basecamp
view release on metacpan or search on metacpan
README.mkdn view on Meta::CPAN
use API::Basecamp;
my $basecamp = API::Basecamp->new(
username => 'USERNAME',
password => 'PASSWORD',
identifier => 'APPLICATION NAME',
account => 'ACCOUNT NUMBER',
);
$basecamp->debug(1);
$basecamp->fatal(1);
my $project = $basecamp->projects('605816632');
my $results = $project->fetch;
# after some introspection
$project->update( ... );
# DESCRIPTION
README.mkdn view on Meta::CPAN
The password attribute should be set to the account holder's password.
## username
$basecamp->username;
$basecamp->username('USERNAME');
The username attribute should be set to the account holder's username.
## debug
$basecamp->debug;
$basecamp->debug(1);
The debug attribute if true prints HTTP requests and responses to standard out.
## fatal
$basecamp->fatal;
$basecamp->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/Basecamp.pm view on Meta::CPAN
# append path suffix
$url->path("@{[$url->path]}.json") if $url->path !~ /\.json$/;
}
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,
account => $self->account,
identifier => $self->identifier,
username => $self->username,
password => $self->password,
version => $self->version,
);
lib/API/Basecamp.pm view on Meta::CPAN
use API::Basecamp;
my $basecamp = API::Basecamp->new(
username => 'USERNAME',
password => 'PASSWORD',
identifier => 'APPLICATION NAME',
account => 'ACCOUNT NUMBER',
);
$basecamp->debug(1);
$basecamp->fatal(1);
my $project = $basecamp->projects('605816632');
my $results = $project->fetch;
# after some introspection
$project->update( ... );
=head1 DESCRIPTION
lib/API/Basecamp.pm view on Meta::CPAN
The password attribute should be set to the account holder's password.
=head2 username
$basecamp->username;
$basecamp->username('USERNAME');
The username attribute should be set to the account holder's username.
=head2 debug
$basecamp->debug;
$basecamp->debug(1);
The debug attribute if true prints HTTP requests and responses to standard out.
=head2 fatal
$basecamp->fatal;
$basecamp->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 1.104 second using v1.01-cache-2.11-cpan-49f99fa48dc )