NAME

Purple::Client - Client to Purple and Purple::Server

SYNOPSIS

# use a remote Purple::Server
my $client_net = Purple::Client->new(server_url => $SERVER_URL);

# access a local store through the library
my $client_lib = Purple::Client->new(store => 't/sql.lite');

METHODS

new(%options)

Valid %options include:

server_url => 'SERVER_URL'  # for distributed Purple
store => 'STORE'            # for local Purple

If no options specified, defaults to local SQLite store.

getNext($uri)

Gets the next available NID, assigning it $uri in the database.

getNIDs($uri)

Gets all NIDs associated with $uri.

getURL($nid)

Gets the URL associated with NID $nid.

deleteNIDs($nid)

Deletes the NID $nid. Note that while the local API supports deleting multiple NIDs at once, this does not (yet).

updateURL($url, $nid)

Updates the NID $nid with the URL $url. Note that while the local API supports updating multiple NIDs at once, this does not (yet).

AUTHOR

Chris Dent, <cdent@burningchrome.com>

Eugene Eric Kim, <eekim@blueoxen.com>

BUGS

Please report any bugs or feature requests to bug-purple@rt.cpan.org, or through the web interface at http://rt.cpan.org/NoAuth/ReportBug.html?Queue=Purple. I will be notified, and then you'll automatically be notified of progress on your bug as I make changes.

COPYRIGHT & LICENSE

(C) Copyright 2006 Blue Oxen Associates. All rights reserved.

This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.