Catman...Object(3pm)
β¨ NAME β¨
Catmandu::FedoraCommons::Model::modifyObject β bestie, it's the Perl model for the Fedora modifyObject REST call π
like, it's the lil' wrapper that speaks REST so you don't have to.
User Contributed Perl Documentation is the manual family this cutie lives in, and the page header calls it Catman...Object(3pm) (yes the title got truncated, she's mysterious like that π).
πΈ SYNOPSIS πΈ
Okay so here's the whole vibe, copy it exactly bestie:
use Catmandu::FedoraCommons;
my $fedora = Catmandu::FedoraCommons->new('http://localhost:8080/fedora','fedoraAdmin','fedoraAdmin');
my $obj = $fedora->modifyObject(pid => 'demo:29' , state => 'I')->parse_content;
{
'date' => '2013-02-08T10:09:09.273Z'
}
So you spin up a Catmandu::FedoraCommons object pointing at 'http://localhost:8080/fedora' with the user and password 'fedoraAdmin' / 'fedoraAdmin' (yes same for both, she's lowkey unbothered π«Ά), then call modifyObject with pid => 'demo:29' and state => 'I', chain ->parse_content on it, and the response you get back is that lil' hashref with the 'date' key set to '2013-02-08T10:09:09.273Z'. Iconic. Periodt. β
π SEE ALSO π
Catmandu::FedoraCommonsβ the main character this whole model serves, go read her next fr fr π
perl v5.36.0 Β· 2023-02-05 Β· that's the source/version and the date this page was stamped, mwah π go forth and modify your objects bestie ππ¦
π¦ where this page comes from
- debian bookworm: libcatmandu-fedoracommons-perl 0.5-2 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- debian trixie: libcatmandu-fedoracommons-perl 0.5-2 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- ubuntu noble: libcatmandu-fedoracommons-perl 0.5-2 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- ubuntu resolute: libcatmandu-fedoracommons-perl 0.5-2 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- ubuntu stonking: libcatmandu-fedoracommons-perl 0.5-2 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms