The London Perl and Raku Workshop takes place on 26th Oct 2024. If your company depends on Perl, please consider sponsoring and/or attending.

NAME

Catmandu::Store::CA - Retrieve items from a CollectiveAccess instance

SYNOPSIS

    # From the command line
    catmandu export CA to YAML --id 1234 --username demo --password demo --url http://demo.collectiveaccess.org

    # From a Catmandu Fix
    lookup_in_store(
      object_id,
      CA,
      url: http://demo.collectiveaccess.org,
      username: demo,
      password: demo
    )

    # From Perl code
    use Catmandu;

    my $store = Catmandu->store('CA',
        username => 'demo',
        password => 'demo',
        url      => 'http://demo.collectiveaccess.org'
    )->bag;

    my $item = $store->get('1234');

DESCRIPTION

A Catmandu::Store::CA is Perl package that can query a CollectiveAccess instance.

At the moment, only get is supported.

CONFIGURATION

url

url of the CA instance (e.g. http://demo.collectiveaccess.org).

username

Name of a user that can be used to query the API. If you want to store items in the CA instance, it must have the necessary rights.

password

Password for the user.

METHODS

new(%configuration)

Create a new Catmandu::Store::CA

get($id)

Retrieve a CA record given an identifier. This returns whatever the CA administrator designated as the "summary" of the record.

add()

Not supported

delete()

Not supported

each()

Not supported

AUTHOR

Pieter De Praetere <pieter at packed.be>

COPYRIGHT

Copyright 2017- PACKED vzw

LICENSE

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

SEE ALSO

Catmandu Catmandu::Store::VKC Catmandu::CA::API