WebService::Pixabay - Perl 5 interface to Pixabay API.
version 0.0.1
faraco <skelic3@gmail.com>
This software is copyright (c) 2017 by faraco.
This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.
use WebService::Pixabay; my $pix = WebService::Pixabay->new(api_key => 'secret'); # default searches my $img_search = $pix->image_search(); my $vid_search = $pix->video_search(); $pix->show_data_structure($img_search); $pix->show_data_structure($vid_search); # example custom searches my $nis = $pix->image_search( q => 'cats dog'. en => 'es', response_group => 'high_resolution', image_type => 'illustration', category => 'animals', safesearch => 'true', order => 'latest', page => 2, per_page => 5, pretty => 'true' ); $pix->show_data_structure($nis);
Pixabay API documentations
Moo
Function::Parameters
Test::More
WebService::Client
LWP::Online
Data::Printer
To install WebService::Pixabay, copy and paste the appropriate command in to your terminal.
cpanm
cpanm WebService::Pixabay
CPAN shell
perl -MCPAN -e shell install WebService::Pixabay
For more information on module installation, please visit the detailed CPAN module installation guide.