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

Search in portuguese #43

Open
ciscoproo0 opened this issue Sep 25, 2019 · 1 comment
Open

Search in portuguese #43

ciscoproo0 opened this issue Sep 25, 2019 · 1 comment

Comments

@ciscoproo0
Copy link

Hi,

I'm consuming this API and I tried to search a cardname by language, and seems that the search in portuguese is not working (Tried get with spanish for example and works fine).

What could it be?

I am calling endpoint?name=&language=portuguese

Best regards,

@WPaul15
Copy link

WPaul15 commented Mar 31, 2022

In order to query Portuguese, the query text has to match the string as it is in the response object. Since it's technically Brazilian Portuguese, the language param has to be Portuguese (Brazil).

Here's an example URL: https://api.magicthegathering.io/v1/cards?name=Avacyn,%20Anjo%20da%20Esperan%C3%A7a&language=Portuguese%20(Brazil)

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

No branches or pull requests

2 participants