Atomik::Client - An Atompub Client
use Atomik::Client; my $client = Atomik::Client->new(); # You need to know the collection URI of whatever you're dealing with # before hand. One way to obtain it is by getting the service document my $service = $client->service( uri => $service_document_uri ); foreach my $workspace ($service->workspaces) { foreach my $collection ($workspace->collections) { $collection->href; # this is a collection URI # What this URI is, is not described in the service document } } # if you know the collection URI, you can operate CRUD operations my $entry_uri = $client->entry_create( uri => $entry_uri, entry => $entry_object, ); # you can receive an Atomik::Entry, if you get the result in # list context my ($entry_uri, $entry) = $client->entry_create(...);
Atomik::Client->new( wsse => { username => $username, [ wsse_username => [ use_wsse => $bool ]
To install Atomik, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Atomik
CPAN shell
perl -MCPAN -e shell install Atomik
For more information on module installation, please visit the detailed CPAN module installation guide.