The London Perl and Raku Workshop takes place on 26th Oct 2024. If your company depends on Perl, please consider sponsoring and/or attending.

NAME

Google::Shopping - a interface to Google::Shopping!

VERSION

Version 0.02

SYNOPSIS

Google::Shopping - is a interface to Google Shopping Search API.

        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

ACKNOWLEDGEMENTS

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.