Catman...astream(3pm)

πŸ’… Catmandu::FedoraCommons::Model::purgeDatastream β€” bestie edition ✨

okay so this page lives in section 3pm (perl module territory, we love her), and her full government name is Catmandu::FedoraCommons::Model::purgeDatastream β€” a Perl model for the Fedora purgeDatastream REST call. yes the whole vibe is "talk to Fedora, yeet a datastream." no cap. πŸŽ€


✨ NAME ✨

Catmandu::FedoraCommons::Model::purgeDatastream β€” it's a Perl model for the Fedora purgeDatastream REST call. that's it, that's the whole job. iconic behavior honestly πŸ‘‘


πŸ¦‹ SYNOPSIS πŸ¦‹

here's how you actually use her, copied exactly, no edits, periodt:

use Catmandu::FedoraCommons;

my $fedora = Catmandu::FedoraCommons->new('http://localhost:8080/fedora','fedoraAdmin','fedoraAdmin');

my $obj = $fedora->purgeDatastream(pid => 'demo:29', dsID => 'TEST')->parse_content;

[
          '2013-02-08T10:18:21.019Z'
];

so like β€” you spin up a Catmandu::FedoraCommons object pointing at http://localhost:8080/fedora with the username fedoraAdmin and the password fedoraAdmin (yes, same string twice, we're not judging, it's a localhost demo 🫢). then you call purgeDatastream with pid => 'demo:29' and dsID => 'TEST', chain ->parse_content on it, and what comes back is that little array with the timestamp '2013-02-08T10:18:21.019Z' in it. the way that timestamp is just sitting there alone in a list πŸ’€ she ate and left no crumbs.

lowkey reminder bestie: that's the example exactly as the docs show it β€” don't go rewriting the pid or the dsID and then act surprised when Fedora is confused πŸ™ˆ

🌸 SEE ALSO 🌸

  • Catmandu::FedoraCommons β€” the parent vibe, go read her too, iykyk πŸ’–

and that's the whole page, we're done here!! this gem was documented for perl v5.36.0, dated 2023-02-05, and filed under that very mysterious truncated name Catman...astream(3pm) β€” like girl, your name got cut off mid-sentence, but we know exactly who you are 😭✨ mwah, bye bestie! πŸŒˆπŸŽ€πŸ¦‹

πŸ“¦ where this page comes from