Pithub...:Blobs(3pm)
β¨ NAME β¨
Pithub::GitData::Blobs β it's the Github v3 Git Data Blobs API wrapper, bestie π
πΈ VERSION πΈ
This is version 0.01043, okurrr β¨
π¦ DESCRIPTION π¦
So here's the tea β β blobs can literally be any arbitrary binary data, like anything, no cap. So the input and the responses for the blob api take an encoding parameter, and it can be either "utf-8" or "base64" π
And if your data can't be losslessly sent as a UTF-8 string? Then bestie, you just base64 encode it. That's the move π
π METHODS π
π create
- Create a Blob β iconic behaviour, truly
POST /repos/:user/:repo/git/blobs
Parameters:
user: mandatory stringrepo: mandatory stringdata: mandatory hashref, having following keys:content: mandatory stringencoding: mandatory string,"utf-8"or"base64"
Examples:
my $b = Pithub::GitData::Blobs->new;
my $result = $b->create(
user => 'plu',
repo => 'Pithub',
data => {
content => 'Content of the blob',
encoding => 'utf-8',
}
);
Response: Status: 201 Created π
{
"sha": "3a0f86fb8db8eea7ccbb9a95f325ddbedfb25e15"
}
π§ get
- Get a Blob β go get that blob, main character energy π
GET /repos/:user/:repo/git/blobs/:sha
Parameters:
user: mandatory stringrepo: mandatory stringsha: mandatory string
Examples:
my $b = Pithub::GitData::Blobs->new;
my $result = $b->get(
user => 'plu',
repo => 'Pithub',
sha => 'b7cdea6830e128bc16c2b75efd99842d971666e2',
);
Response: Status: 200 OK β¨
{
"content": "Content of the blob",
"encoding": "utf-8"
}
π AUTHOR π
Johannes Plunien <plu@cpan.org> β the icon, the legend, 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. Slay π
Ok bye bestie, ily! π This was perl v5.40.1, dated 2025-06-08, and it's giving Pithub::GitData::Blobs(3pm) β 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