| 1 | package WebService::Rakuten::API::Provider::Recipe; | ||
| 2 | use strict; | ||
| 3 | use warnings; | ||
| 4 | |||
| 5 | use constant BASERECIPEURL => 'https://app.rakuten.co.jp/services/api/Recipe/CategoryList/20121121?'; | ||
| 6 | |||
| 7 | use constant CategoryRanking => 'https://app.rakuten.co.jp/services/api/Recipe/CategoryRanking/20121121?'; | ||
| 8 | |||
| 9 | sub call{ | ||
| 10 | my($class,$context,$arg) = @_; | ||
| 11 | my $url = URI->new(BASERECIPEURL); | ||
| 12 | $url->query_form(applicationId => $context->appid,categoryType=>$arg->{categoryType}); | ||
| 13 | my $res = $context->furl->get($url); | ||
| 14 | } | ||
| 15 | |||
| 16 | 1; |