WWW::G...:Agent(3pm)
π WWW::G...:Agent(3pm) π
okay bestie, this is the manual page for WWW::G...:Agent(3pm), straight outta User Contributed Perl Documentation, and it's literally the whole vibe for talking to GoodData's JSON API. pull up a chair, grab a boba, we're doing this π§β¨
πΈ NAME πΈ
WWW::GoodData::Agent β an HTTP client for the GoodData JSON-based API. that's it, that's the whole personality π
π SYNOPSIS π
use WWW::GoodData::Agent;
my $ua = new WWW::GoodData::Agent;
my $metadata = $ua->get ('/md');
likeβ¦ three lines and you're already fetching metadata. we love a low-effort queen π
π¦ DESCRIPTION π¦
so WWW::GoodData::Agent is an HTTP user agent whose whole thing is making it easy to follow the specifics of the GoodData service API. it handles the conversion to and from JSON content type transparently (no cap, you don't have to think about it), and it recognizes and handles all the various kinds of exceptions and error states that come your way. it's giving β¨emotional support HTTP clientβ¨.
and listen β it's a subclass of LWP::UserAgent and it follows LWP::UserAgent's semantics, unless documented otherwise. so if you already know your way around LWP::UserAgent, you're basically home. periodt. π
π«Ά PROPERTIES π«Ά
rootβ a URI object pointing to the root of the service API. this is the main character that gets used to resolve relative request paths. π―
π METHODS π
π new ROOT, PARAMS
creates a shiny new agent instance, bestie. the first argument is the root of the service API, and the rest of the args get passed straight through to LWP::UserAgent as is β no meddling, no editing, we just hand them over π«΄.
compared to a stock LWP::UserAgent, it comes with a memory-backed cookie storage and it sets the Accept header to prefer JSON content. so it already knows what it wants. iconic. πͺ
π post URI, BODY, PARAMS
constructs and issues a POST request, obviously π.
compared to stock LWP::UserAgent, there's an extra body parameter, and that body gets encoded into JSON and set as the request content. and heads up β that is the only way to set the request content. no sneaky alternate routes, bestie π«.
the rest of the parameters are passed to LWP::UserAgent untouched. hands off π
π put URI, BODY, PARAMS
constructs and issues a PUT request. same energy as POST, different verb π.
compared to stock LWP::UserAgent, there's an extra body parameter that gets encoded into JSON and set as the request content β and again, that's the only way to set the request content, fr fr.
the rest of the parameters are passed to LWP::UserAgent untouched. π«Ά
π delete URI
a convenience method for constructing and issuing a DELETE request. short, sweet, unbothered, moisturized π β¨
π request PARAMS
this call is the common one for all request types β the group chat everyone's in π±.
the API is the same as stock LWP::UserAgent, but relative URIs are permitted, and extra content processing happens with the response. so extra. we stan.
namely: errors are either handled or turned into exceptions, and known content types (that's JSON bestie) get decoded. so you're not out here parsing raw strings like it's 2009 π
π SEE ALSO π
<https://secure.gooddata.com/gdc/>β the Browsable GoodData API. go peek, it's a whole experience πLWP::UserAgentβ the Perl HTTP client that raised this one πΌ
π COPYRIGHT π
Copyright 2011, 2012, 2013 Lubomir Rintel
Copyright 2012 Jan Orel
This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself. (yes bestie, it's free, go off ποΈ)
π€ AUTHOR π€
Lubomir Rintel lkundrak@v3.sk β the icon, the legend, the moment π
and that's the whole page, bestie! no details skipped, no options dropped, every single fact intact π
this was WWW::G...:Agent(3pm) from perl v5.42.0, dated 2025-07-25 β go forth and make JSON requests, you absolute main character π¦π
πΈ
π¦ where this page comes from
- fedora 43: perl-WWW-GoodData 1.11-33.fc43 Β· GPL-1.0-or-later OR Artistic-1.0-Perl
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms