-
-
11 May 2007 09:12:31 UTC
- Distribution: WebService-Gnavi
- Source (raw)
- Browse (raw)
- Changes
- How to Contribute
- Issues
- Testers (357 / 0 / 0)
- Kwalitee
Bus factor: 1- 90.00% Coverage
- License: perl_5
- Activity
24 month- Tools
- Download (19.34KB)
- MetaCPAN Explorer
- Permissions
- Subscribe to distribution
- Permalinks
- This version
- Latest version
and 1 contributors-
Copyright (c) 2007 Daisuke Maki
- Dependencies
- Data::Page
- LWP::UserAgent
- URI
- XML::LibXML
- and possibly others
- Reverse dependencies
- CPAN Testers List
- Dependency graph
NAME
WebService::Gnavi - Use Gnavi API From Perl
SYNOPSIS
my $gnavi = WebService::Gnavi->new( access_key => $key ); my $res = $gnavi->search(\%params); my $pager = $res->pager; my @list = $res->list; my @list = $gnavi->areas(); my @list = $gnavi->prefectures(); my @list = $gnavi->category_large(); my @list = $gnavi->category_small();
DESCRIPTION
WebService::Gnavi allows you to access gnavi.co.jp's APIs from Perl.
METHODS
new
Creates a new instance of WebService::Gnavi. The access_key argument is required.
search(\%params)
Searches for restaurants using the specified params
areas()
Returns the list of areas.
prefectures()
Returns the list of prefectures.
category_large()
Returns the list of large categories.
category_small()
Returns the list of small categories.
send_request($type, $request)
Sends a request to the API
CAVEATS
WebService::Gnavi::SearchResult doesn't collect categories at the moment. This is planned to be fixed soon-ish (or, send in a patch, please ;)
AUTHOR
Copyright (c) 2007 Daisuke Maki <daisuke@endeworks.jp>
LICENSE
This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
See http://www.perl.com/perl/misc/Artistic.html
Module Install Instructions
To install WebService::Gnavi, copy and paste the appropriate command in to your terminal.
cpanm WebService::Gnavi
perl -MCPAN -e shell install WebService::Gnavi
For more information on module installation, please visit the detailed CPAN module installation guide.