
Net::ZooTool - Moose interface to the Zootool API: http://zootool.com

my $zoo = Net::ZooTool->new({ apikey => $config{apikey} });
my $weekly_popular = $zoo->item->popular({ type => "week" });
# Info about a specific item
print Dumper($zoo->item->info({ uid => "6a80z" }));
# Examples with authenticated calls
my $auth_zoo = Net::ZooTool->new(
{
apikey => $config{apikey},
user => $config{user},
password => $config{password},
}
);
my $data = $auth_zoo->user->validate({ username => $config{user}, login => 'true' });
print Dumper($data);
# In some methods authentication is optional.
# Public items only
my $public_items = $auth_zoo->user->items({ username => $config{user} });
# Include also your private items
my $all_items = $auth_zoo->user->items({ username => $config{user}, login => 'true' });

Net::ZooTool is a wrapper to the Zootool bookmarking service. It attempts to follow the api defined in http://zootool.com/api/docs/general as much as possible. Please refer to their API Documentation site for more information.

Create a new Net::ZooTool object.
Parameters:
string. Your Zootool apikey (required)
string. Your Zootool username (optional)
string. Your Zootool password (optional)

Net::ZooTool::User object
Net::ZooTool::Item object
Adds a new item to your zoo (authentication is required).
Parameters:
string. Your Zootool api key (required)
string. Url to add (required)
string. Item title (required)
string. Comma separated if you want to include more than one (optional)
string. Entry description (optional)
string. Entry referer, must be a valid url (optional)
string. Whether or not the item is public ('y' or 'n')
boolean. Add method requires authenticated call (required)
Get the latest items from all users or specify a username to get all items from a specific user. Authenticate to get all private items of a user as well. Use authentication if you want to get private items as well).
Parameters:
string. Your Zootool api key (required)
string. Zootool username (required)
string. must be true if you want to make an authenticated call via digest (optional).
string. Tag search (optional)
int. Search offset (optional)
int. Search limit (optional)
boolean. Set to true to get private items as well.
Get info about a certain user. Authentication is optional (if you want to get the email address from the user, you need to sign in).
Parameters:
string. Your Zootool api key (required)
string. Zootool username (required)
boolean. Set to true to get email address
Validate the user credentials. Useful for logins.
Parameters:
string. Your Zootool api key (required)
string. Your zootool username (required)


Josep Roca, <quelcom@gmail.com>

Copyright (C) 2011 by Josep Roca
This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself, either Perl version 5.10.1 or, at your option, any later version of Perl 5 you may have available.