WebService::Shutterstock::SearchResults - Class representing a single page of search results from the Shutterstock API
version 0.006
my $search = $shutterstock->search(searchterm => 'butterfly'); # grab results a page at a time my $results = $search->results; my $next_results = $search->next_page; # or use an iterator my $iterator = $search->iterator; while(my $result = $iterator->()){ # ... }
A HashRef of the arguments used to perform the search.
Indicates whether these are "image" or "video" search results.
The current page of the search results (0-based).
The total number of search results.
The sort method used to perform the search.
Returns an ArrayRef of WebService::Shutterstock::SearchResult::Image or WebService::Shutterstock::SearchResult::Video objects for this page of search results (based on the type of this set of search results).
type
Returns an iterator as a CodeRef that will return results in order until all results are exhausted (walking from one page to the next as needed).
See the SYNOPSIS for example usage.
Retrieves the next page of search results (represented as a WebService::Shutterstock::SearchResults object). This is just a shortcut for specifying a specific page_number in the arguments to the search method.
page_number
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.