NAME

WWW::Pinboard - https://pinboard.in/ API client

VERSION

version 0.02

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) {
        ...;
    }
}

DESCRIPTION

This module is a basic client for the https://pinboard.in/ API. It currently provides methods for each API method in the posts/ 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 https://pinboard.in/api/.

ATTRIBUTES

token

Pinboard API token. You can access your API token at https://pinboard.in/settings/password.

endpoint

URL of the API endpoint. Defaults to https://api.pinboard.in/v1/.

METHODS

update

add

delete

get

recent

dates

all

suggest

BUGS

No known bugs.

Please report any bugs to GitHub Issues at https://github.com/doy/www-pinboard/issues.

SEE ALSO

https://pinboard.in/

SUPPORT

You can find this documentation for this module with the perldoc command.

perldoc WWW::Pinboard

You can also look for information at:

AUTHOR

Jesse Luehrs <doy@tozt.net>

COPYRIGHT AND LICENSE

This software is Copyright (c) 2014 by Jesse Luehrs.

This is free software, licensed under:

The MIT (X11) License