Pithub...:Assets(3pm)
β¨ Pithub::Repos::Releases::Assets β¨
okay bestie, so likeβ¦ this is the module for the Github v3 Repo Releases Assets API π like, all the little files you attach to a release? yeah those. it's Pithub::Repos::Releases::Assets and it's giving very much "yes I handle your zip files" energy π
πΈ VERSION πΈ
version 0.01043 β she's got a number, she's official π«Ά
π METHODS π
π create
- Upload a release asset. literally just yeeting a file up there β¨
POST https://uploads.github.com/repos/:owner/:repo/releases/:id/assets?name=foo.zip
Examples:
my $a = Pithub::Repos::Releases::Assets->new;
my $result = $a->create(
repo => 'graylog2-server',
user => 'Graylog2',
release_id => 81148,
name => 'Some Asset',
data => 'the asset data',
content_type => 'text/plain',
);
like look at that content_type sitting there being all 'text/plain'β¦ iconic honestly π
π delete
- Delete a release asset. bye bye asset, no cap, she's gone π
DELETE /repos/:owner/:repo/releases/assets/:id
Examples:
my $a = Pithub::Repos::Releases::Assets->new;
my $result = $a->delete(
repo => 'graylog2-server',
user => 'Graylog2',
asset_id => 81148,
);
π get
- Get a single release asset. one (1) asset, just the one, she's the main character π
GET /repos/:owner/:repo/releases/assets/:id
Examples:
my $a = Pithub::Repos::Releases::Assets->new;
my $result = $a->get(
repo => 'graylog2-server',
user => 'Graylog2',
asset_id => 81148,
);
π list
- List assets for a release. all of them. every single one. the whole girl group π¦
GET /repos/:owner/:repo/releases/:id/assets
Examples:
my $a = Pithub::Repos::Releases::Assets->new;
my $result = $a->list(
repo => 'graylog2-server',
user => 'Graylog2',
release_id => 198110,
);
β οΈ heads up bestie,listtakesrelease_idwhileget,deleteandupdatetakeasset_idβ different ids, don't mix them up π
π update
- Edit a release asset. little glow-up, change the name, change the label, slay π
PATCH /repos/:owner/:repo/releases/assets/:id
Examples:
my $a = Pithub::Repos::Releases::Assets->new;
my $result = $a->update(
repo => 'graylog2-server',
user => 'Graylog2',
asset_id => 81148,
data => {
name => 'Some Name',
label => 'Some Label',
}
);
π§ AUTHOR π§
Johannes Plunien <plu@cpan.org> β the legend, the icon, the moment π
π COPYRIGHT AND LICENSE π
This software is copyright (c) 2011 by Johannes Plunien.
This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself. π«Ά like, go off, do whatever, it's free fr fr
and that's the whole page bestie!! π this was perl v5.40.1, dated 2025-06-08, from the Pithub...:Assets(3pm) era β mwah, no notes, periodt πβ¨
π¦ where this page comes from
- debian trixie: libpithub-perl 0.01043-1 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- ubuntu resolute: libpithub-perl 0.01043-1 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- ubuntu stonking: libpithub-perl 0.01043-1 Β· 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