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