Brian Phillips > WebService-Shutterstock-0.002 > WebService::Shutterstock::SearchResults

Download:
WebService-Shutterstock-0.002.tar.gz

Dependencies

Annotate this POD

Website

View/Report Bugs
Module Version: 0.002   Source   Latest Release: WebService-Shutterstock-0.006

NAME ^

WebService::Shutterstock::SearchResults - Class representing a single page of search results from the Shutterstock API

VERSION ^

version 0.002

SYNOPSIS ^

        my $search = $shutterstock->search(searchterm => 'butterfly');
        my $results = $search->results;

        my $next_results = $search->next_page;

ATTRIBUTES ^

query

A HashRef of the arguments used to perform the search.

page

The current page of the search results (0-based).

count

The total number of search results.

sort_method

The sort method used to perform the search.

METHODS ^

results

Returns an ArrayRef of WebService::Shutterstock::SearchResult::Item for this page of search results.

next_page

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.

AUTHOR ^

Brian Phillips <bphillips@cpan.org>

COPYRIGHT AND LICENSE ^

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.

syntax highlighting: