NAME
WebService::Rakuten - Object interface to Rakuten webservice
SYNOPSIS
use WebService::Rakuten;
my $rws = WebService::Rakuten->new(
output_type => 'perl',
developer_id => '0123456789abcdef',
);
my $result_rh = $rws->itemsearch(
keyword => 'Sony Vaio',
page => 1,
);
DESCRIPTION
Use this module to conveniently interface with the Rakuten webservices.
Documentation
http://webservice.rakuten.co.jp/
METHODS
simplehotelsearch
Example
my $results_rh = $rws->simplehotelsearch(
largeClassCode => 'japan',
middleClassCode => 'akita',
smallClassCode => 'tazawa',
);
Parameters
- callBack
- largeClassCode
- middleClassCode
- smallClassCode
- detailClassCode
- hotelNo
- latitude
- longitude
- searchRadius
- squeezeCondition
- carrier
- hits
- datumType
Documentation
http://webservice.rakuten.co.jp/simplehotelsearch/
booksgamesearch
Example
my $results_rh = $rws->booksgamesearch(
title => 'バイオハザード',
hardware => 'Wii',
sort => '+itemPrice',
);
Parameters
- callBack
- title
- hardware
- makerCode
- label
- jan
- booksGenreId
- hits
- page
- availability
- outOfStockFlag
- sort
- carrier
Documentation
http://webservice.rakuten.co.jp/booksgamesearch/
hoteldetailsearch
Example
my $results_rh = $rws->hoteldetailsearch( hotelNo => 123456, );
Parameters
Documentation
http://webservice.rakuten.co.jp/hoteldetailsearch/
gethotelchainlist
Parameters
Documentation
http://webservice.rakuten.co.jp/gethotelchainlist/
bookssoftwaresearch
Example
my $results_rh = $rws->bookssoftwaresearch(
title => '会計',
os => 'Mac',
sort => '+itemPrice',
);
Parameters
- callBack
- title
- os
- makerCode
- label
- jan
- booksGenreId
- hits
- page
- availability
- outOfStockFlag
- sort
- carrier
Documentation
http://webservice.rakuten.co.jp/bookssoftwaresearch/
bookscdsearch
Example
my $results_rh = $rws->bookscdsearch(
artistName => 'サザンオールスターズ',
sort => '+itemPrice',
);
Parameters
- callBack
- title
- artistName
- label
- jan
- booksGenreId
- hits
- page
- availability
- outOfStockFlag
- sort
- carrier
Documentation
http://webservice.rakuten.co.jp/bookscdsearch/
vacanthotelsearch
Example
my $results_rh = $rws->vacanthotelsearch(
largeClassCode => 'japan',
middleClassCode => 'akita',
smallClassCode => 'tazawa',
checkinDate => '2009-07-01',
checkoutDate => '2009-07-02',
adultNum => 2,
);
Parameters
- callBack
- largeClassCode
- middleClassCode
- smallClassCode
- detailClassCode
- hotelNo
- checkinDate (required)
- checkoutDate (required)
- adultNum
- upClassNum
- lowClassNum
- infantWithMBNum
- infantWithMNum
- infantWithBNum
- infantWithoutMBNum
- roomNum
- maxCharge
- minCharge
- latitude
- longitude
- searchRadius
- squeezeCondition
- carrier
- datumType
Documentation
http://webservice.rakuten.co.jp/vacanthotelsearch/
booksmagazinesearch
Example
my $results_rh = $rws->booksmagazinesearch(
title => '週間 経済',
booksGenreId => 007604001,
sort => '+itemPrice',
);
Parameters
- callBack
- title
- publisherName
- jan
- booksGenreId
- hits
- page
- availability
- outOfStockFlag
- sort
- carrier
Documentation
http://webservice.rakuten.co.jp/booksmagazinesearch/
itemcodesearch
Example
my $results_rh = $rws->itemcodesearch( itemCode => 'aaa:1234567', );
Parameters
Documentation
http://webservice.rakuten.co.jp/itemcodesearch/
bookstotalsearch
Example
my $results_rh = $rws->bookstotalsearch(
keyword => 'ガンダム',
NGKeyword => '予約',
sort => '+itemPrice',
);
Parameters
- callBack
- keyword
- booksGenreId
- hits
- page
- availability
- outOfStockFlag
- sort
- field
- carrier
- orFlag
- NGKeyword
Documentation
http://webservice.rakuten.co.jp/bookstotalsearch/
booksforeignbooksearch
Example
my $results_rh = $rws->booksforeignbooksearch(
title => 'HarryPotter',
booksGenreId => 005407,
sort => '+itemPrice',
);
Parameters
- callBack
- title
- publisherName
- isbn
- booksGenreId
- hits
- page
- availability
- outOfStockFlag
- sort
- carrier
Documentation
http://webservice.rakuten.co.jp/booksforeignbooksearch/
genresearch
Example
my $results_rh = $rws->genresearch( genreId => 0, );
Parameters
Documentation
http://webservice.rakuten.co.jp/genresearch/
auctionitemsearch
Example
my $results_rh = $rws->auctionitemsearch(
keyword => '福袋',
sort => '+bidCount',
);
Parameters
- callBack
- keyword
- genreId
- hits
- page
- minPrice
- maxPrice
- sort
- blowFlag
- itemType
- newFlag
- field
- carrier
- imageFlag
- orFlag
- NGKeyword
Documentation
http://webservice.rakuten.co.jp/auctionitemsearch/
dynamicad
Example
my $results_rh =
$rws->dynamicad( url =>
'http%3a%2f%2fplaza%2erakuten%2eco%2ejp%2fisblog%2fdiary%2f200705230001%2f',
);
Parameters
Documentation
http://webservice.rakuten.co.jp/dynamicad/
cdsearch
Example
my $results_rh = $rws->cdsearch(
keyword => 'SMAP',
genreId => 200533,
sort => '+itemPrice',
);
Parameters
- callBack
- keyword
- genreId
- hits
- page
- sort
- minPrice
- maxPrice
- availability
- field
- carrier
- imageFlag
- orFlag
- NGKeyword
- genreInformationFlag
Documentation
http://webservice.rakuten.co.jp/cdsearch/
booksearch
Example
my $results_rh = $rws->booksearch(
keyword => 'ブログ',
genreId => 200446,
sort => '+itemPrice',
);
Parameters
- callBack
- keyword
- genreId
- hits
- page
- sort
- minPrice
- maxPrice
- availability
- field
- carrier
- imageFlag
- orFlag
- NGKeyword
- genreInformationFlag
Documentation
http://webservice.rakuten.co.jp/booksearch/
getareaclass
Parameters
Documentation
http://webservice.rakuten.co.jp/getareaclass/
hotelranking
Example
my $results_rh = $rws->hotelranking( genre => 'all', );
Parameters
Documentation
http://webservice.rakuten.co.jp/hotelranking/
catalogsearch
Example
my $results_rh = $rws->catalogsearch(
keyword => '%e6%b6%b2%e6�%b6%e3��%e3�%ac%e3��',
sort => '-reviewCount',
);
Parameters
- callBack
- keyword
- genreId
- hits
- page
- sort
- field
- imageFlag
- releaseRange
- orFlag
- NGKeyword
- genreInformationFlag
Documentation
http://webservice.rakuten.co.jp/catalogsearch/
booksdvdsearch
Example
my $results_rh = $rws->booksdvdsearch(
title => 'ガンダム',
sort => '+itemPrice',
);
Parameters
- callBack
- title
- artistName
- label
- jan
- booksGenreId
- hits
- page
- availability
- outOfStockFlag
- sort
- carrier
Documentation
http://webservice.rakuten.co.jp/booksdvdsearch/
keywordhotelsearch
Example
my $results_rh = $rws->keywordhotelsearch( keyword => '伊豆', );
Parameters
Documentation
http://webservice.rakuten.co.jp/keywordhotelsearch/
itemranking
Parameters
Documentation
http://webservice.rakuten.co.jp/itemranking/
auctionitemcodesearch
Example
my $results_rh = $rws->auctionitemcodesearch( itemCode => 'i:aaa:1234567', );
Parameters
Documentation
http://webservice.rakuten.co.jp/auctionitemcodesearch/
dvdsearch
Example
my $results_rh = $rws->dvdsearch(
keyword => 'SMAP',
genreId => 300337,
sort => '+itemPrice',
);
Parameters
- callBack
- keyword
- genreId
- hits
- page
- sort
- minPrice
- maxPrice
- availability
- field
- carrier
- imageFlag
- orFlag
- NGKeyword
- genreInformationFlag
Documentation
http://webservice.rakuten.co.jp/dvdsearch/
itemsearch
Example
my $results_rh = $rws->itemsearch(
keyword => '福袋',
sort => '+itemPrice',
);
Parameters
- callBack
- keyword
- shopCode
- genreId
- catalogCode
- hits
- page
- sort
- minPrice
- maxPrice
- availability
- field
- carrier
- imageFlag
- orFlag
- NGKeyword
- genreInformationFlag
- purchaseType
Documentation
http://webservice.rakuten.co.jp/itemsearch/
booksbooksearch
Example
my $results_rh = $rws->booksbooksearch(
title => '太陽',
booksGenreId => 001004008,
sort => '+itemPrice',
);
Parameters
- callBack
- title
- publisherName
- size
- isbn
- booksGenreId
- hits
- page
- availability
- outOfStockFlag
- sort
- carrier
Documentation
http://webservice.rakuten.co.jp/booksbooksearch/
booksgenresearch
Example
my $results_rh = $rws->booksgenresearch( booksGenreId => 000, );
Parameters
Documentation
http://webservice.rakuten.co.jp/booksgenresearch/
LIMITATIONS
- Namespace
-
There are multiple authors with permission on this namespace. If you're installing via the cpan prompt, or command line tool, you'll need to do so like this:
cpan[1]> install DYLAN/WebService-Rakuten-0.05.tar.gz
- Auto-generated code
-
This module and its POD were generated by a program which crawls the online documentation and outputs a Perl interpretation. I may never personally test every function. Please report any bugs.
- Method documentation links
-
For reasons beyond this author's control, Rakuten doesn't want you to follow links from other websites to their API pages. They enforce this by redirecting you to the main API page whenever you follow any of the above links. Go figure.
AUTHOR
Dylan Doxey, <dylan.doxey@gmail.com>
COPYRIGHT AND LICENSE
Copyright (C) 2009 by Dylan Doxey
This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself, either Perl version 5.8.8 or, at your option, any later version of Perl 5 you may have available.