Hearthstone

無料
よって omgvamp | 更新済み 한 달 전 | Entertainment
人気

9.7 / 10

レイテンシー

2,280ms

サービスレベル

100%

Health Check

N/A

すべてのディスカッションに戻る

Card Search with locale errors

Rapid account: Bryanmytko
bryanmytko
8 years ago

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 8 years ago

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

Rapid account: Omgvamp
omgvamp Commented 8 years ago

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.

ディスカッションに参加しましょう-以下にコメントを追加してください:

ログイン/サインアップして新しいコメントを投稿