OAuth:...r::XML(3pm)

πŸ“¦
version 0.11 Β· 2 versions
, in debian trixie, ubuntu noble, ubuntu resolute, ubuntu stonking

πŸ’– 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::Formatter
  • OAuth::Lite2::Formatters
  • OAuth::Lite2::Formatter::JSON
  • OAuth::Lite2::Formatter::FormURLEncoded

✨ AUTHOR ✨

Lyo Kato, <lyo.kato@gmail.com> 🫢


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