NAME

Net::OpenSocial::Client::Request - Request class.

SYNOPSIS

use Net::OpenSocial::Client::Type::Service qw(PEOPLE, ACTIVITY);
use Net::OpenSocial::Client::Type::Operation qw(GET CREATE UPDATE DELETE);

my $req = Net::OpenSocial::Client::Request->new(
    service   => PEOPL,
    operation => GET,
    user_id   => '@me',
    group_id  => '@friends',
    params    => {
        itemsPerPage => 10,
        startIndex   => 11,
    },
);

DESCRIPTION

This module represents a OpenSocial REST/RPC request. For short circuit, there are many request subclasses like Net::OpenSocial::Client::Request::FetchPerson, Net::OpenSocial::Client::Request::FetchFriends and so on.

METHODS

id

Request id

service

Service type. See Net::OpenSocial::Client::Type::Service

operation

Operation type. See Net::OpenSocial::Client::Type::Operation

user_id

Service(container) specific user-id or selector like '@me'

group_id

Service(container) specific group-id or selector like '@self' or '@friends'

params

Other parameters

resource

Net::OpenSocial::Client::Resource object, This parameter is required when the operation is 'CREATE' or 'UPDATE'

rpc_service

RPC service name

http_method_for_operation

HTTP method name for current operation.

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.