Bb-Collaborate-Ultra
view release on metacpan or search on metacpan
lib/Bb/Collaborate/Ultra/Connection.pm view on Meta::CPAN
$client= REST::Client->new;
$client->setHost($self->host);
$self->_client($client);
}
$client;
}
=head2 renew_lease
if ($connection->auth->expires_in < time() + 60) {
# connection is about to expire; keep it alive.
$connection->renew_lease;
}
A authorization token typically remains valid for several minutes. This method
can be used to extend the lease, whilst keeping the current connection.
=cut
sub renew_lease {
my $self = shift;
( run in 1.113 second using v1.01-cache-2.11-cpan-df04353d9ac )