WebService::Instapaper - A client for the Instapaper Full API
use WebService::Instapaper; my $client = WebService::Instapaper->new(consumer_key => '...', consumer_secret => '...'); $client->auth('username', 'password'); # or $client->token('access_token', 'access_token_secret'); # get bookmark list my @bookmarks = $client->bookmarks; # archive bookmarks my $bookmark = shift @bookmarks; $client->archive_bookmark($bookmark->{bookmark_id});
WebService::Instapaper is a client for the Instapepr Full API (https://www.instapaper.com/api)
Create new instance of this module. %options should contain following keys: consumer_key and consumer_secret.
%options
consumer_key
consumer_secret
Authenticate with given $username and $password.
$username
$password
Set existing access token to the instance.
Return bookmark list. By default, it returns 25 bookmark items.
%options may contain limit to specify the number of results.
limit
my @many_bookmarks = $client->bookmarks(limit => 100);
Add new bookmark to Instapaper.
$client->add_bookmark('http://www.example.org/'); # with details $client->add_bookmark('http://www.example.org/', title => 'Example Article', description => 'This is an example.');
Delete the bookmark.
Archive the bookmark.
Unarchive the bookmark.
Copyright (C) Shun Takebayashi.
This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
Shun Takebayashi <shun@takebayashi.asia>
To install WebService::Instapaper, copy and paste the appropriate command in to your terminal.
cpanm
cpanm WebService::Instapaper
CPAN shell
perl -MCPAN -e shell install WebService::Instapaper
For more information on module installation, please visit the detailed CPAN module installation guide.