package WWW::Pinboard;
use Moose;
# ABSTRACT: https://pinboard.in/ API client
use HTTP::Tiny;
use JSON::PP;
use URI;
=head1 SYNOPSIS
my $latest_post_sync_time = ...;
my $api = WWW::Pinboard->new(token => $token);
my $last_updated = $api->update->{update_time};
if ($last_updated ge $latest_post_sync_time) {
my @posts = @{ $api->all(fromdt => $latest_post_sync_time) };
for my $post (@posts) {
...;
}
}
=head1 DESCRIPTION
This module is a basic client for the L API. It currently
provides methods for each API method in the C namespace (patches
welcome to add support for more methods). Each method takes a hash of
arguments, which correspond to the parameters documented in the API
documentation at L. They can also take an additional
parameter C