OAuth:...r::XML(3pm)
π OAuth::Lite2::Formatter::XML β bestie edition π
okay so real talk, this is a page from the User Contributed Perl Documentation collection, and the star of the show is OAuth::Lite2::Formatter::XML. it's an OAuth 2.0 XML formatter store. yes, XML. yes, in the year of our lord. we'll get to that. sit down, grab a strawberry π, and let's go.
β¨ NAME β¨
OAuth::Lite2::Formatter::XML β the OAuth 2.0 XML formatters store, no cap π
β¨ SYNOPSIS β¨
here's the vibe, literally just three lines and you're in:
my $formatter = OAuth::Lite2::Formatter::XML->new;
my $obj = $formatter->parse( $string );
$string = $formatter->format( $obj );
new it up, parse a string into an object, format an object back into a string. the little circle of life. π¦
β¨ DESCRIPTION β¨
DEPRECATED. π like, officially. this is the OAuth 2.0 XML formatter. it still does its thing, but the vibes have shifted, bestie β deprecation is not a rumour, it's right there in the docs.
β¨ METHODS β¨
πΈ name
the accessor for the name of this format, which is "xml". iconic, self-explanatory, no notes. π
πΈ type
the accessor for the content-type of this format, which is "application/xml". that's the whole job. it ate. π
πΈ format( $object )
turn your object into an XML string, like so:
my $xml_string = $formatter->format( $obj );
πΈ parse( $xml_string )
and the reverse, turn an XML string back into an object:
my $obj = $formatter->parse( $xml_string );
β¨ SEE ALSO β¨
go read your other favs, they're all in the group chat together:
OAuth::Lite2::FormatterOAuth::Lite2::FormattersOAuth::Lite2::Formatter::JSONOAuth::Lite2::Formatter::FormURLEncoded
β¨ AUTHOR β¨
Lyo Kato, <lyo.kato@gmail.com> π«Ά
β¨ COPYRIGHT AND LICENSE β¨
Copyright (C) 2010 by Lyo Kato
This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself, either Perl version 5.8.8 or, at your option, any later version of Perl 5 you may have available.
aaaand that's the whole page, bestie π this was perl v5.36.0, dated 2023-07-01 β so if you're reading this from the future, hi, hope XML is still treating you okay. mwah πβ¨
π¦ where this page comes from
- debian trixie: liboauth-lite2-perl 0.11-3 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- ubuntu noble: liboauth-lite2-perl 0.11-3 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- ubuntu resolute: liboauth-lite2-perl 0.11-3 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- ubuntu stonking: liboauth-lite2-perl 0.11-3 Β· 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