WebService::Shutterstock::SearchResult::Video - Class representing a single video search result from the Shutterstock API
version 0.006
my $search = $shutterstock->search_video(searchterm => 'butterfly'); my $results = $search->results; foreach my $result(@$results){ printf "%d: %s\n", $result->video_id, $result->description; print "Tags: "; print join ", ", @{ $result->video->keywords }; print "\n"; }
An object of this class provides information about a single search result. When executing a search, an array of these objects is returned by the "results" in WebService::Shutterstock::SearchResults method.
The video ID for this search result.
A HashRef containing a webm and mp4 URL for a "thumbnail" size of this video.
A HashRef containing a webm and mp4 URL for a "preview" size of this video.
An URL for a watermarked preview of this image.
The http://footage.shutterstock.com link for this image.
An abbreviated description of this search result.
The ID for the submitter of this video.
Length of this video in seconds.
Aspect ratio as a string (i.e. "16:9").
Aspect ratio as a float (i.e. 1.7778).
Returns a WebService::Shutterstock::Video object for this search result.
Brian Phillips <bphillips@cpan.org>
This software is copyright (c) 2012 by Brian Phillips and Shutterstock, Inc. (http://shutterstock.com).
This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.
To install WebService::Shutterstock, copy and paste the appropriate command in to your terminal.
cpanm
cpanm WebService::Shutterstock
CPAN shell
perl -MCPAN -e shell install WebService::Shutterstock
For more information on module installation, please visit the detailed CPAN module installation guide.