NAME

WebService::Shutterstock::SearchResult::Item - Class representing a single search result from the Shutterstock API

VERSION

version 0.002

SYNOPSIS

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";
}

DESCRIPTION

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.

ATTRIBUTES

photo_id

The image ID for this search result.

thumb_small

A HashRef containing a height, width and URL for a "small" thumbnail of this image.

thumb_large

A HashRef containing a height, width and URL for a "large" thumbnail of this image.

preview

A HashRef containing a height, width and URL for a watermarked preview of this image.

web_url

The http://www.shutterstock.com link for this image.

description

An abbreviated description of this search result.

METHODS

image

Returns a WebService::Shutterstock::Image object for this search result.

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.