NAME
WWW::Vimeo::Simple::Activity - Activity requests for the Vimeo Simple API
VERSION
version 0.09
SYNOPSIS
This module is a full object-oriented implementation of the Vimeo Simple API. The specifications are available at http://vimeo.com/api/docs/simple-api.
Activity requests implementation.
use feature 'say';
use WWW::Vimeo::Simple::Activity qw(user_did);
# retrieve user's activities
my $activities = user_did($user_name);
foreach my $activity (@$activities) {
say $activity -> user_name;
say $activity -> type;
say $activity -> subject_name;
}
SUBROUTINES
The module exports the following subroutines on request.
user_did( $user_name | $user_id [, $page ] )
Fetch activities by the user. This method returns an array reference of WWW::Vimeo::Simple::Activity objects.
happened_to_user( $user_name | $user_id [, $page ] )
Fetch activities on the user. This method returns an array reference of WWW::Vimeo::Simple::Activity objects.
contacts_did( $user_name | $user_id [, $page ] )
Fetch activities by the user's contacts. This method returns an array reference of WWW::Vimeo::Simple::Activity objects.
happened_to_contacts( $user_name | $user_id [, $page ] )
Fetch activities on the user's contacts. This method returns an array reference of WWW::Vimeo::Simple::Activity objects.
everyone_did( $user_name | $user_id [, $page ] )
Fetch activities by everyone. This method returns an array reference of WWW::Vimeo::Simple::Activity objects.
INTERNAL SUBROUTINES
_make_url( $request )
Build a Vimeo Simple API url
AUTHOR
Alessandro Ghedini <alexbio@cpan.org>
LICENSE AND COPYRIGHT
Copyright 2011 Alessandro Ghedini.
This program is free software; you can redistribute it and/or modify it under the terms of either: the GNU General Public License as published by the Free Software Foundation; or the Artistic License.
See http://dev.perl.org/licenses/ for more information.