View on
MetaCPAN
search.cpan.org is shutting down
For details read Perl NOC. After June 25th this page will redirect to MetaCPAN.org
Ryo Ito > OAuth-Lite2 > OAuth::Lite2::Formatters

Download:
OAuth-Lite2-0.11.tar.gz

Dependencies

Annotate this POD

Website

View/Report Bugs
Source  

NAME ^

OAuth::Lite2::Formatters - OAuth 2.0 formatters store

SYNOPSIS ^

    my $formatter = OAuth::Lite2::Formatter->get_formatter_by_name("json");
    my $formatter = OAuth::Lite2::Formatter->get_formatter_by_type("application/json");

    my $obj = $formatter->parse( $string );
    $string = $formatter->format( $obj );

DESCRIPTION ^

OAuth 2.0 formatters store. from draft-v8, specification requires only JSON format. This library leaves the other formatters for interop.

METHODS ^

get_formatter_by_name( $name )

return formatter by name

get_formatter_by_type( $content_type )

return formatter by content type

SEE ALSO ^

OAuth::Lite2::Formatter OAuth::Lite2::Formatter::JSON OAuth::Lite2::Formatter::XML OAuth::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.

syntax highlighting: