| Bing-Search documentation | Contained in the Bing-Search distribution. |
Bing::Search::Source::Image - Image search for Bing::Search
my $source = Bing::Search::Source::Image->new( Market => 'en-US', Count => 1 );
Market, Adult, Version, Options, setOptionsSee Bing::Search for details on these common methods.
Image_CountIndicates how many results to return.
Image_OffsetIndicates on which result to start. An value of '2', coupled with a
Count of '10' would fetch results 2 through 12.
Image_FilterReturns the list of current filters. You may attempt to set the filters yourself this way, keeping in mind the filters are simply an arrayref.
Using the setImage_Filter method is the reccomended way to change
the filters.
See http://msdn.microsoft.com/en-us/library/dd560913.aspx for details on which filters are currently available. Please note that, at the time of this writing, 'Size:Height:<Height>' and 'Size:Width:<Width>' filters are not implemented.
setImage_FilterChanges the image filters. The syntax is easy. Prepend a - to the name of a filter to remove it. Name it or prepend a + to add it.
Dave Houston, dhouston@cpan.org, 2010
This library is free software; you may redistribute and/or modify it under the same terms as Perl itself.
| Bing-Search documentation | Contained in the Bing-Search distribution. |
package Bing::Search::Source::Image; use Moose; extends 'Bing::Search::Source'; with 'Bing::Search::Role::ImageRequest::Count'; with qw( Bing::Search::Role::SearchRequest::Market Bing::Search::Role::SearchRequest::Adult Bing::Search::Role::SearchRequest::Version Bing::Search::Role::SearchRequest::Options ); with qw( Bing::Search::Role::ImageRequest::Offset Bing::Search::Role::ImageRequest::Filter ); sub _build_source_name { 'Image' } __PACKAGE__->meta->make_immutable;