Hearthstone

免费
通过 omgvamp | 已更新 il y a un mois | Entertainment
人气

9.7 / 10

延迟

2,280ms

服务等级

100%

Health Check

N/A

返回所有讨论

Card Search with locale errors

Rapid account: Bryanmytko
bryanmytko
il y a 8 ans

If you try to make a search request with a locale parameter set the API errors:

E.g.,

name: "Onyx"
locale: “jaJP”

The API could not understand the request. Please review your parameters before making any new attempt.

{"error":404,"message":"Card not found."}
Rapid account: Bryanmytko
bryanmytko Commented il y a 8 ans

Ah, great this makes sense now! Thanks for the clarification!

Rapid account: Omgvamp
omgvamp Commented il y a 8 ans

For the search endpoint you have to actually search in the given locale. So if your locale is jaJP the search term has to be in Japanese. If you request the full card name through the single card endpoint you can actually request it in english and get the Japanese version by setting the locale to jaJP. I hope that clarifies things. I’ll check if I can enable the same functionality on the search endpoint, but I can’t make any promises.

加入讨论 - 在下面添加评论:

登录/注册以发布新的评论