Daisuke Maki > Atomik-0.00001_02 > Atomik::Client

Download:
Atomik-0.00001_02.tar.gz

Dependencies

Annotate this POD

Source  

NAME ^

Atomik::Client - An Atompub Client

SYNOPSIS ^

  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(...);

METHODS ^

new(%args)

  Atomik::Client->new(
    wsse => {
      username => $username,
      
    [ wsse_username => 
    [ use_wsse => $bool ]
syntax highlighting: