Lyo Kato > Net-OpenSocial-Client-0.01_01 > Net::OpenSocial::Client::Container

Download:
Net-OpenSocial-Client-0.01_01.tar.gz

Dependencies

Annotate this POD

CPAN RT

Open  0
Report a bug
Source  

NAME ^

Net::OpenSocial::Client::Container - Container configuration

SYNOPSIS ^

    my $container = Net::OpenSocial::Client::Container->new(
        rest_endpoint         => q{http://example.org/rest},
        rpc_endpoint          => q{http://example.org/rpc},
        use_request_body_hash => 1,
    );

DESCRIPTION ^

Container confguration and provides some methods to support container specific implementation.

USAGE ^

BUILD BY YOURSELF

    my $container = Net::OpenSocial::Client::Container->new(
        rest_endpoint         => q{http://example.org/rest},
        rpc_endpoint          => q{http://example.org/rpc},
        use_request_body_hash => 1,
    );

USE SUBCLASS

There already exist some major container classes. See Net::OpenSocial::Client::Container::Orkut, Net::OpenSocial::Client::Container::MySpace, Net::OpenSocial::Client::Container::Google, Net::OpenSocial::Client::Container::FriendConnect

    my $container = Net::OpenSocial::Client::Container::Orkut->new;

or if you need new class for another container. You should make new class extending this.

METHODS ^

request_token_endpoint

OAuth request-token endpoint

authorize_endpoint

OAuth authorization endpoint

access_token_endpoint

OAuth access-token endpoint

rest_endpoint

RESTful API endpoint URL of container.

rpc_endpoint

RPC endpoint URL of container.

use_request_body_hash

if container use OAuth Request Body Hash extension or not. Set 0 by default.

AUTHOR ^

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

COPYRIGHT AND LICENSE ^

Copyright (C) 2009 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.