Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Supported "Recipe Category Ranking" call without "category_id" #70

Merged
merged 3 commits into from
Mar 31, 2017

Conversation

kakakakakku
Copy link
Contributor

What is this

Hi !
I found that "Recipe Category Ranking" should call without category_id like this.

$ curl -s https://app.rakuten.co.jp/services/api/Recipe/CategoryRanking/20121121?applicationId=123 | jq .result[].recipeTitle
$ curl -s https://app.rakuten.co.jp/services/api/Recipe/CategoryRanking/20121121?applicationId=123&categoryId=15 | jq .result[].recipeTitle
$ curl -s https://app.rakuten.co.jp/services/api/Recipe/CategoryRanking/20121121?applicationId=123&categoryId=10-276 | jq .result[].recipeTitle

省略時の場合は総合ランキング
https://webservice.rakuten.co.jp/api/recipecategoryranking/

docs

So, I supported that can call method without category_id like this.

> items = RakutenWebService::Recipe.ranking
> items = RakutenWebService::Recipe.ranking('15')
> items = RakutenWebService::Recipe.ranking('10-276')

Please review, thanks !

@satoryu satoryu merged commit b1d5c76 into rakuten-ws:master Mar 31, 2017
@satoryu
Copy link
Member

satoryu commented Mar 31, 2017

@kakakakakku thank you for opening your pull-reqeust 👍 this PR will be shipped with the next version.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants