WebService::Shutterstock::Image - Represent the set of information about a Shutterstock image as returned by the API
version 0.001
my $image = $shutterstock->image(59915404); printf( "Image %d (%dx%d) - %s\n", $image->id, $image->size('huge')->{width}, $image->size('huge')->{height}, $image->description ); print "Categories:\n"; foreach my $category ( @{ $image->categories } ) { printf( " - %s (%d)\n", $category->{category}, $category->{category_id} ); }
This module serves as a proxy class for the data returned from a URL like http://api.shutterstock.com/images/15484942.json. Please look at that data structure for a better idea of exactly what each of the attributes in this class contains.
The ID of this image on the Shutterstock system
ArrayRef of category names and IDs.
Boolean
ArrayRef of keywords.
Details regarding
Returns a HashRef of information about the various sizes for the image.
Name of the individual who submitted the image to Shutterstock.
ID of the submitter.
For a JPG image, this is undef. For a vector image, this would be a value like "eps".
undef
"eps"
A URL for the main page on Shutterstock's site for this image.
Returns an ArrayRef of WebService::Shutterstock::Image objects similar to the current image.
Returns details for a specific size. Some sizes provide just dimensions (small, medium, large). Other sizes include a URL for the image as well (thumb_small, thumb_large).
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.