Patrick Hochstenbach > Catmandu-MediaMosa-0.275 > Catmandu::MediaMosa

Download:
Catmandu-MediaMosa-0.275.tar.gz

Dependencies

Annotate this POD

View/Report Bugs
Module Version: 0.271   Source   Latest Release: Catmandu-MediaMosa-0.279

NAME ^

MediaMosa - Low level Perl conncector for the MediaMosa REST API

SYNOPSIS ^

    my $mm = Catmandu::MediaMosa->new( base_url => 'http://localhost/mediamosa' , user => "foo",password => "mysecret" );

    #login is handled automatically ;-), and only redone when the session cookie expires
    #$mm->login;
    
    #equivalent of /asset?offset=0&limit=100
    my $vpcore = $mm->asset_list({ offset => 0,limit => 1000});

    say "total found:".$vpcore->header->item_count_total;
    say "total fetched:".$vpcore->header->item_count;

    #the result list 'items' is iterable!
    $vpcore->items->each(sub{
        my $item = shift;
        say "asset_id:".$item->{asset_id};
    });

DESCRIPTION ^

A implementation of Grim::Acl must contain a method 'is_allowed'. This method compares the information in the request environment with information in the media-record, and returns true when allowed.

SEE ALSO ^

Catmandu

AUTHOR ^

Nicolas Franck , <nicolas.franck at ugent.be>

syntax highlighting: