GitLab...Client(3pm)
π GitLab::API::v4::WWWClient π
okay bestie, gather round, because we're talking about GitLab::API::v4::WWWClient β a lil Perl module from the User Contributed Perl Documentation collection. it's the client that talks to the GitLab web site itself, like, the actual front-end, not just the API. iykyk. π
β¨ NAME β¨
GitLab::API::v4::WWWClient β a client that works against the GitLab web site. that's it, that's the whole vibe. π¦
πΈ SYNOPSIS πΈ
here's the whole thing in action, no cap:
use GitLab::API::v4::WWWClient;
my $client = GitLab::API::v4::WWWClient->new(
url => 'https://git.example.com/',
);
$client->sign_in( $username, $password );
my $res = $client->get( $path );
look at her. iconic. π
π DESCRIPTION π
so the tea is: this class makes it possible to interact with the GitLab web site. that's the whole job, and she does it. β¨
π₯ REQUIRED ARGUMENTS π₯
like, you have to pass these, bestie, it's not optional:
url
this is the base URL to your GitLab web site. so like, 'https://git.example.com/' type energy. you can't skip it, she needs to know where home is. π‘
π METHODS π
sign_in
$client->sign_in( $username, $password );
signs in the client given the username and password. that's it. you hand over the credentials, she handles the rest. main character energy fr fr. π
get
my $res = $client->get( $path );
gets the path and returns the HTTP::Tiny response hash. yes, the actual HTTP::Tiny response hash, exactly that, no substitutions. π
π«Ά SUPPORT π«Ά
see "SUPPORT" in GitLab::API::v4. go look, she's got friends. π
π AUTHORS π
see "AUTHORS" in GitLab::API::v4. the whole crew is credited over there. π
β LICENSE β
see "LICENSE" in GitLab::API::v4. legal girlies, this one's for you. π
and that's the whole page, bestie!! this lil beauty shipped with perl v5.36.0 and the docs are dated 2023-06-13 β so go forth, sign in, get your paths, and slay. periodt. πβ¨π¦
π¦ where this page comes from
- debian trixie: libgitlab-api-v4-perl 0.27-1 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- ubuntu noble: libgitlab-api-v4-perl 0.27-1 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- ubuntu resolute: libgitlab-api-v4-perl 0.27-1 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- ubuntu stonking: libgitlab-api-v4-perl 0.27-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