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