Net::OpenSocial::Client::Request - Request class.
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, }, );
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.
Request id
Service type. See Net::OpenSocial::Client::Type::Service
Operation type. See Net::OpenSocial::Client::Type::Operation
Service(container) specific user-id or selector like '@me'
Service(container) specific group-id or selector like '@self' or '@friends'
Other parameters
Net::OpenSocial::Client::Resource object, This parameter is required when the operation is 'CREATE' or 'UPDATE'
RPC service name
HTTP method name for current operation.
Lyo Kato, <lyo.kato@gmail.com>
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.
To install Net::OpenSocial::Client, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Net::OpenSocial::Client
CPAN shell
perl -MCPAN -e shell install Net::OpenSocial::Client
For more information on module installation, please visit the detailed CPAN module installation guide.