WebService::Shutterstock::SearchResult::Image - Class representing a single image search result from the Shutterstock API
version 0.005
my $search = $shutterstock->search(searchterm => 'butterfly'); my $results = $search->results; foreach my $result(@$results){ printf "%d: %s\n", $result->photo_id, $result->description; print "Tags: "; print join ", ", @{ $result->image->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 image ID for this search result.
A HashRef containing a height, width and URL for a "small" thumbnail of this image.
A HashRef containing a height, width and URL for a "large" thumbnail of this image.
A HashRef containing a height, width and URL for a watermarked preview of this image.
The http://www.shutterstock.com link for this image.
An abbreviated description of this search result.
Returns a WebService::Shutterstock::Image 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.