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

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

πŸ’– NAME πŸ’–

okay bestie, meet OAuth::Lite2::Formatter::Text β€” the OAuth 2.0 text/plain formatters store. yes that's the whole name, she's wordy but she's worth it. πŸŽ€

this page is straight out of the User Contributed Perl Documentation, and we're talking about the OAuth:...r::Text(3pm) page specifically, so you know exactly which one you're looking at. πŸ’…


✨ SYNOPSIS ✨

here's the vibe, copy-paste it into your little script and go off:

my $formatter = OAuth::Lite2::Formatter::Text->new;
my $obj = $formatter->parse( $string );
$string = $formatter->format( $obj );

three lines. she's lowkey efficient. πŸ¦‹


🌸 DESCRIPTION 🌸

DEPRECATED. πŸ’€

okay so real talk β€” this whole thing is DEPRECATED, no cap. it's the OAuth 2.0 text/plain formatter, it does its little job, but the maintainers have moved on and so should you (iykyk). still gonna document her fully tho because she's iconic and we respect the lore. πŸ‘‘


🧚 METHODS 🧚

🌈 name

accessor for the name of this format, which is literally just "text". that's it. that's the method. ✨

🌈 type

accessor for the content-type of this format, and it's "text/plain". she said what she said. πŸ’…

🌈 format( $object )

my $formatted_string = $formatter->format( $obj );

hand her an object, she hands you back a string. glow-up complete. 🫢

🌈 parse( $formatted_string )

my $obj = $formatter->parse( $formatted_string );

reverse it β€” give her the string, she gives you the object back. the way that this is just round-trip goals. 😭


πŸ‘€ SEE ALSO πŸ‘€

go check her friends, they're all in the same little formatter friend group:

  • OAuth::Lite2::Formatter
  • OAuth::Lite2::Formatters
  • OAuth::Lite2::Formatter::FormURLEncoded.pm
  • OAuth::Lite2::Formatter::JSON
  • OAuth::Lite2::Formatter::XML

πŸ’œ AUTHOR πŸ’œ

Lyo Kato, <lyo.kato@gmail.com> β€” the icon who made this happen. πŸ™Œ


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.


and that's the whole page bestie! 🌟 this was rendered with perl v5.36.0, dated 2023-07-01, and that's the OAuth:...r::Text(3pm) footer wrapped up in a bow πŸŽ€πŸ’– β€” now go forth and format responsibly. periodt. βœ¨πŸ¦‹

πŸ“¦ where this page comes from