NAME
Google::Shopping - Perl implementation of Search API for Google Shopping!
VERSION
Version 0.03
SUBROUTINES/METHODS
BUILD
Check if country and api parameter available!
search
Generate URL with parameters values and send HTTP Request!
SYNOPSIS
Google::Shopping - usage!
use strict;
use warnings;
use Google::Shopping;
use Data::Dumper;
use XML::Simple;
use JSON;
my $api_key = '<GOOGLE_API_KEY>';
my $country ='US';
my $str = Google::Shopping->new(api_key=>$api_key, country=>$country, rankBy=>"price:descending");
my $shopping = $str->search('Perl');
my $data = decode_json($shopping);
foreach my $items(@{$data->{items}}){
print $items->{product}->{inventories}->[0]->{price} ;
print $items->{product}->{inventories}->[0]->{currency} . "\n";
}
AUTHOR
Ovidiu Nita Tatar, <ovn.tatar at gmail.com>
BUGS
Please report any bugs or feature requests to: https://github.com/ovntatar/GoogleShopping/issues
SUPPORT
You can find documentation for this module with the perldoc command.
perldoc Google::Shopping
You can also look for information at: https://github.com/ovntatar/GoogleShopping
or on the Google official api documnetation site: https://developers.google.com/shopping-search/v1/getting_started#filters
LICENSE AND COPYRIGHT
Copyright 2013 Ovidiu Nita Tatar.
This program is free software; you can redistribute it and/or modify it under the terms of either: the GNU General Public License as published by the Free Software Foundation; or the Artistic License.
See http://dev.perl.org/licenses/ for more information.